Permalink
Browse files

Reworks Guestbook admin module.

  • Loading branch information...
JB Lebrun
JB Lebrun committed Mar 28, 2018
1 parent 5673fff commit 30ff40199ee58015b38ffc87aeb84ea814fad4cc
Showing with 1,624 additions and 1,481 deletions.
  1. +732 −620 plugin/module/Admin_GenericGuestBookManager/Admin_GenericGuestBookManager.php.inc
  2. +42 −42 plugin/module/Admin_GenericGuestBookManager/html/admin.html.inc
  3. +27 −119 plugin/module/Admin_GenericGuestBookManager/html/admin_edit_config.html.inc
  4. +88 −91 plugin/module/Admin_GenericGuestBookManager/html/admin_edit_msg.html.inc
  5. +0 −94 plugin/module/Admin_GenericGuestBookManager/html/admin_view_config.html.inc
  6. +85 −87 plugin/module/Admin_GenericGuestBookManager/html/admin_view_msg.html.inc
  7. +130 −0 plugin/module/Admin_GenericGuestBookManager/html/configuration/edit.html.inc
  8. +105 −0 plugin/module/Admin_GenericGuestBookManager/html/configuration/view.html.inc
  9. +24 −26 plugin/module/Admin_GenericGuestBookManager/html/email_notification.html.inc
  10. BIN plugin/module/Admin_GenericGuestBookManager/img/icon32.gif
  11. BIN plugin/module/Admin_GenericGuestBookManager/img/icon64.gif
  12. +0 −45 plugin/module/Admin_GenericGuestBookManager/js/usersmanager_accounteditor.js
  13. +120 −111 plugin/module/Admin_GenericGuestBookManager/lib/Admin_GenericGuestBookManagerConfig.php.inc
  14. +231 −211 plugin/module/Admin_GenericGuestBookManager/lib/Admin_GenericGuestBookManagerMessage.php.inc
  15. +20 −18 ...n/module/Admin_GenericGuestBookManager/lib/Admin_GenericGuestBookManagerMessageListParams.php.inc
  16. +11 −13 plugin/module/Admin_GenericGuestBookManager/locale/data/translation_fr.php.inc
  17. +9 −4 plugin/module/Admin_GenericGuestBookManager/locale/translation_fr.php.inc

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -1,42 +1,42 @@
<?php
/*
* CaMykS Engine
* Developed by : camyks.net
* Author : CaMykS Team <camyks.contact@gmail.com>
* CaMykS Version : 1.0b
* Object Version : 1.0
* Object Type : Plugin / Module Layout
* Creation Date : Sep 2010
* Last Modif Date : Sep 2010
*
* Admin_GenericGuestBookManager Module admin layout : main
*/
?>
<?=$this->theme->get_boxHeader('width:600px;margin:0 auto;');?>
<?=$this->theme->get_boxTitleBar($this->adminTitle) ?>

<?php if ($this->check_right(2) === false) : ?>
<?=$this->theme->get_boxContent1Header('height:16px;')?>
<?=$this->msgList->display('head');?>
<?=$this->theme->get_boxContent1Footer(); ?>
<?=$this->theme->get_boxContent2Header()?>
<div class="adminContentPanel">
<?=$this->msgList->display('list');?>
</div>
<?=$this->theme->get_boxContent2Footer(); ?>

<?php else : ?>
<?=$this->theme->get_boxTabsBar($this->tabBuilder->tabs,
$this->tabBuilder->jsParams);?>
<?=$this->theme->get_boxContent2Header()?>
<div id="itemconfig" style="display:<?=$this->tabBuilder->get_tabDisplay('config')?>;" class="adminContentPanel">
<?=$this->load_file('html/admin_view_config.html.inc');?>
</div>
<div id="itemmessages" style="display:<?=$this->tabBuilder->get_tabDisplay('messages')?>;" class="adminContentPanel">
<?=$this->msgList->display('head');?>
<?=$this->msgList->display('list');?>
</div>
<?=$this->theme->get_boxContent2Footer(); ?>
<?php endif; ?>
<?=$this->theme->get_boxButtonsBar( $this->buttons ); ?>
<?=$this->theme->get_boxFooter(); ?>
<?php
/*
* CaMykS Engine
* Developed by : camyks.net
* Author : CaMykS Team <camyks.contact@gmail.com>
* CaMykS Version : 1.0
* Object Version : 1.0
* Object Type : Plugin / Module Layout
* Creation Date : Sep 2010
* Last Modif Date : Mar 2018
*
* Admin_GenericGuestBookManager Module admin layout : main
*/
global $camyks;
?>
<?=$this->theme->get_boxHeader(array('class'=>'adminEditorModule'));?>
<?=$this->theme->get_boxTitleBar($this->adminTitle) ?>
<?=$this->theme->get_boxTabsBar($this->tabBuilder->tabs, $this->tabBuilder->jsParams);?>
<?=$this->theme->get_boxContent2Header()?>

<?php if ($this->check_right(2) !== false) : ?>
<div id="itemConfig" style="display:<?=$this->tabBuilder->get_tabDisplay('Config')?>;" class="adminContentPanel">
<?php $this->load_file('html/configuration/view.html.inc');?>
<div>
&nbsp;
</div>
<div>
<?=$this->theme->get_button(array(
'url' => $this->get_adminLink(array('mode'=>'edit_config')),
'title' => $camyks->get_translation('modify')
));?>
</div>
</div>
<?php endif; ?>
<div id="itemMessages" style="display:<?=$this->tabBuilder->get_tabDisplay('Messages')?>;" class="adminContentPanel">
<?=$this->msgList->display('head');?>
<?=$this->msgList->display('list');?>
</div>

<?=$this->theme->get_boxContent2Footer(); ?>
<?=$this->theme->get_boxButtonsBar($this->buttons); ?>
<?=$this->theme->get_boxFooter(); ?>
@@ -1,119 +1,27 @@
<?php
/*
* CaMykS Engine
* Developed by : camyks.net
* Author : CaMykS Team <camyks.contact@gmail.com>
* CaMykS Version : 1.0b
* Object Version : 1.0
* Object Type : Plugin / Module Layout
* Creation Date : Sep 2010
* Last Modif Date : Sep 2010
*
* Admin_GenericGuestBookManager Module Admin Layout : edit_config
*/
global $camyks;
?>
<?=$this->theme->get_boxHeader('width:600px;margin:0 auto;');?>
<?=$this->theme->get_boxTitleBar($this->adminTitle);?>
<?=$this->theme->get_boxContent2Header( )?>
<?=$this->configform->display_header(); ?>
<?=$this->configform->display_hiddens(); ?>
<div class="adminContentPanel">
<table cellspacing="0" cellpadding="0" border="0" style="width:100%;">

<tr>
<td class="eTableHeader" colspan="2">
<?=$this->get_translation('formtitle_messages');?>
</td>
</tr>

<tr>
<td class="eTableLine0 eContent2" style="width:150px;">
<?=$this->get_translation('formitem_validation')?>
</td>
<td class="eTableLine0 eContent1">
<?=$this->configform->display_selectInput(array('name'=>'message_validation', 'values'=>$this->config->get_messageValidationList()));?>
</td>
</tr>

<tr>
<td class="eTableHeader" colspan="2">
<?=$this->get_translation('formtitle_notifications');?>
</td>
</tr>

<tr>
<td class="eTableLine0 eContent2">
<?=$camyks->get_translation('formitem_status')?>
</td>
<td class="eTableLine0 eContent1">
<?=$this->configform->display_selectInput(array('name'=>'notification_status', 'values'=>$this->config->get_notificationStatusList()));?>
</td>
</tr>

<tr>
<td class="eTableLine1 eContent2">
<?=$this->get_translation('formitem_sender')?>
</td>
<td class="eTableLine1 eContent1">
<?=$this->configform->display_textInput('notification_sender');?>
</td>
</tr>

<tr>
<td class="eTableLine0 eContent2">
<?=$this->get_translation('formitem_recipients')?>
</td>
<td>

<?php $col = 0; ?>
<?php $cnt = 0; ?>
<table cellspacing="0" cellpadding="0" border="0" style="width:100%">
<?php foreach ($this->userList as $admin) : ?>
<?php if ($col == 0) : ?>
<tr>
<?php endif; ?>
<td class="eTableLine0 eContent1">
<input type="checkbox" id="admin<?=$cnt;?>" name="notification_recipients_<?=$cnt;?>" value="<?=$admin->login?>" <?=in_array($admin->login, $this->config->vars['notification_recipients'])?' checked="checked"':'' ?> />
<label for="admin<?=$cnt;?>"><?=$admin->get_nameDisplay();?></label>
</td>
<?php $cnt++; ?>
<?php $col++; ?>
<?php if ($col == 2) : ?>
</tr>
<?php $col = 0; ?>
<?php endif; ?>
<?php endforeach; ?>
<?php if ($col == 1) : ?>
<td class="eTableLine0 eContent1">
&nbsp;
</td>
</tr>
<?php endif; ?>
</table>
</td>
</tr>

<tr>
<td class="eTableHeader" colspan="2">
<?=$this->get_translation('formtitle_statistics');?>
</td>
</tr>

<tr>
<td class="eTableLine0 eContent2">
<?=$camyks->get_translation('formitem_status')?>
</td>
<td class="eTableLine0 eContent1">
<?=$this->configform->display_selectInput(array('name'=>'statistic_status', 'values'=>$this->config->get_statisticStatusList()));?>
</td>
</tr>


</table>
</div>

<?=$this->configform->display_footer(); ?>
<?=$this->theme->get_boxContent2Footer(); ?>
<?=$this->theme->get_boxButtonsBar($this->buttons); ?>
<?=$this->theme->get_boxFooter(); ?>
<?php
/*
* CaMykS Engine
* Developed by : camyks.net
* Author : CaMykS Team <camyks.contact@gmail.com>
* CaMykS Version : 1.0
* Object Version : 1.0
* Object Type : Plugin / Module Layout
* Creation Date : Sep 2010
* Last Modif Date : Mar 2018
*
* Admin_GenericGuestBookManager Module Admin Layout : edit_config
*/
global $camyks;
?>
<?=$this->theme->get_boxHeader(array('class'=>'adminEditorModule'));?>
<?=$this->theme->get_boxTitleBar($this->adminTitle);?>
<?=$this->theme->get_boxContent2Header();?>
<?=$this->configform->display_header();?>
<?=$this->configform->display_hiddens();?>
<div class="adminContentPanel">
<?php $this->load_file('html/configuration/edit.html.inc'); ?>
</div>
<?=$this->configform->display_footer();?>
<?=$this->theme->get_boxContent2Footer();?>
<?=$this->theme->get_boxButtonsBar($this->buttons);?>
<?=$this->theme->get_boxFooter();?>
Oops, something went wrong.

0 comments on commit 30ff401

Please sign in to comment.