mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 06:07:32 +02:00
Admin Log Administration ready
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -8,8 +8,8 @@
|
|||||||
* e107 Admin Helper
|
* e107 Admin Helper
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_files/jslib/core/admin.js,v $
|
* $Source: /cvs_backup/e107_0.8/e107_files/jslib/core/admin.js,v $
|
||||||
* $Revision: 1.4 $
|
* $Revision: 1.5 $
|
||||||
* $Date: 2008-12-15 17:03:25 $
|
* $Date: 2008-12-16 14:22:01 $
|
||||||
* $Author: secretr $
|
* $Author: secretr $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@@ -33,7 +33,8 @@ e107Admin.Helper = {
|
|||||||
$$('.autocheck').invoke('observe', 'click', this.toggleCheckedHandler);
|
$$('.autocheck').invoke('observe', 'click', this.toggleCheckedHandler);
|
||||||
$$('button.action[name=check_all]').invoke('observe', 'click', this.allCheckedEventHandler);
|
$$('button.action[name=check_all]').invoke('observe', 'click', this.allCheckedEventHandler);
|
||||||
$$('button.action[name=uncheck_all]').invoke('observe', 'click', this.allUncheckedEventHandler);
|
$$('button.action[name=uncheck_all]').invoke('observe', 'click', this.allUncheckedEventHandler);
|
||||||
$$('button.delete', 'input.delete[type=image]').invoke('observe', 'click', function(e) {
|
$$('button.delete', 'input.delete[type=image]', 'a.delete').invoke('observe', 'click', function(e) {
|
||||||
|
if(e.element().hasClassName('no-confirm') || (e.element().readAttribute('rel') && e.element().readAttribute('rel').toLowerCase == 'no-confirm')) return;
|
||||||
var msg = e.element().readAttribute('title') || e107.getModLan('delete_confirm');
|
var msg = e.element().readAttribute('title') || e107.getModLan('delete_confirm');
|
||||||
if( !e107Helper.confirm(msg) ) e.stop();
|
if( !e107Helper.confirm(msg) ) e.stop();
|
||||||
});
|
});
|
||||||
@@ -84,53 +85,71 @@ e107Admin.Helper = {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Event listener
|
* Event listener
|
||||||
* Check all checkboxes in the current form, having
|
* Check all checkboxes in the current form, having name attribute value starting with 'multiaction'
|
||||||
* name attribute value starting with 'multiaction'
|
* by default or any value set by button's value(special command 'jstarget:')
|
||||||
* This method is auto-attached to every button having name=check_all
|
* This method is auto-attached to every button having name=check_all if init() method is executed
|
||||||
* if init() method is executed
|
|
||||||
*
|
*
|
||||||
* Examples of valid inputbox markup:
|
* Examples of valid inputbox markup:
|
||||||
* <input type='checkbox' class='checkbox' name='multiaction[]'>
|
* <input type='checkbox' class='checkbox' name='multiaction[]'>
|
||||||
* OR
|
* OR
|
||||||
* <input type='checkbox' class='checkbox' name='multiaction_something_else[]'>
|
* <input type='checkbox' class='checkbox' name='multiaction_something_else[]'>
|
||||||
|
* OR
|
||||||
|
* <input type='checkbox' class='checkbox' name='some_checkbox_arary[]'> (see the button example below)
|
||||||
|
* OR
|
||||||
|
* <input type='checkbox' class='checkbox' name='some_checkbox_arary_some_more[]'> (see the button example below)
|
||||||
*
|
*
|
||||||
* Example of button being auto-observed (see e107Admin.Helper#init)
|
* Example of button being auto-observed (see e107Admin.Helper#init)
|
||||||
* <button class='action' type='button' name='check_all' value='Check All'><span>Check All</span></button>
|
* <button class='action' type='button' name='check_all' value='Check All'><span>Check All</span></button> // default selector - multiaction
|
||||||
|
* OR
|
||||||
|
* <button class='action' type='button' name='check_all' value='jstarget:some_checkbox_arary'><span>Check All</span></button> // checkboxes names starting with - some_checkbox_arary
|
||||||
*
|
*
|
||||||
* Demo: e107_admin/image.php
|
* Demo: e107_admin/image.php, admin_log.php
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
allChecked: function(event) {
|
allChecked: function(event) {
|
||||||
event.stop();
|
event.stop();
|
||||||
var form = event.element().up('form');
|
var form = event.element().up('form'), selector = 'multiaction';
|
||||||
|
if(event.element().readAttribute('value').startsWith('jstarget:')) {
|
||||||
|
selector = event.element().readAttribute('value').replace(/jstarget:/, '').strip();
|
||||||
|
}
|
||||||
|
|
||||||
if(form) {
|
if(form) {
|
||||||
form.toggleChecked(true, 'name^=multiaction');
|
form.toggleChecked(true, 'name^=' + selector);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Event listener
|
* Event listener
|
||||||
* Uncheck all checkboxes in the current form, having
|
* Uncheck all checkboxes in the current form, having name attribute value starting with 'multiaction'
|
||||||
* name attribute value starting with 'multiaction'
|
* by default or any value set by button's value(special command 'jstarget:')
|
||||||
* This method is auto-attached to every button having name=uncheck_all
|
* This method is auto-attached to every button having name=uncheck_all if init() method is executed
|
||||||
* if init() method is executed
|
|
||||||
*
|
*
|
||||||
* Examples of valid inputbox markup:
|
* Examples of valid inputbox markup:
|
||||||
* <input type='checkbox' class='checkbox' name='multiaction[]'>
|
* <input type='checkbox' class='checkbox' name='multiaction[]'>
|
||||||
* OR
|
* OR
|
||||||
* <input type='checkbox' class='checkbox' name='multiaction_something_else[]'>
|
* <input type='checkbox' class='checkbox' name='multiaction_something_else[]'>
|
||||||
|
* OR
|
||||||
|
* <input type='checkbox' class='checkbox' name='some_checkbox_arary[]'> (see the button example below)
|
||||||
|
* OR
|
||||||
|
* <input type='checkbox' class='checkbox' name='some_checkbox_arary_some_more[]'> (see the button example below)
|
||||||
*
|
*
|
||||||
* Example of button being auto-observed (see e107Admin.Helper#init)
|
* Example of button being auto-observed (see e107Admin.Helper#init)
|
||||||
* <button class='action' type='button' name='uncheck_all' value='Uncheck All'><span>Uncheck All</span></button>
|
* <button class='action' type='button' name='uncheck_all' value='Uncheck All'><span>Uncheck All</span></button> // default selector - multiaction
|
||||||
|
* OR
|
||||||
|
* <button class='action' type='button' name='uncheck_all' value='jstarget:some_checkbox_arary'><span>Uncheck All</span></button> // checkboxes names starting with - some_checkbox_arary
|
||||||
*
|
*
|
||||||
* Demo: e107_admin/image.php
|
* Demo: e107_admin/image.php, admin_log.php
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
allUnchecked: function(event) {
|
allUnchecked: function(event) {
|
||||||
event.stop();
|
event.stop();
|
||||||
var form = event.element().up('form');
|
var form = event.element().up('form'), selector = 'multiaction';
|
||||||
|
if(event.element().readAttribute('value').startsWith('jstarget:')) {
|
||||||
|
selector = event.element().readAttribute('value').replace(/jstarget:/, '').strip();
|
||||||
|
}
|
||||||
|
|
||||||
if(form) {
|
if(form) {
|
||||||
form.toggleChecked(false, 'name^=multiaction');
|
form.toggleChecked(false, 'name^=' + selector);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -9,8 +9,8 @@
|
|||||||
* Form Handler
|
* Form Handler
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_handlers/form_handler.php,v $
|
* $Source: /cvs_backup/e107_0.8/e107_handlers/form_handler.php,v $
|
||||||
* $Revision: 1.7 $
|
* $Revision: 1.8 $
|
||||||
* $Date: 2008-12-15 21:16:32 $
|
* $Date: 2008-12-16 14:22:01 $
|
||||||
* $Author: secretr $
|
* $Author: secretr $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@@ -174,9 +174,7 @@ class e_form
|
|||||||
if(empty($label)) $label = $value;
|
if(empty($label)) $label = $value;
|
||||||
|
|
||||||
return "
|
return "
|
||||||
<button type='{$btype}' name='{$name}' value='{$value}'".$this->get_attributes($options, $name).">
|
<button type='{$btype}' name='{$name}' value='{$value}'".$this->get_attributes($options, $name)."><span>{$label}</span></button>
|
||||||
<span>{$label}</span>
|
|
||||||
</button>
|
|
||||||
";
|
";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
// e107 Language File.
|
// e107 Language File.
|
||||||
// $Id: lan_admin_log.php,v 1.7 2008-12-06 15:48:26 e107steved Exp $
|
// $Id: lan_admin_log.php,v 1.8 2008-12-16 14:22:01 secretr Exp $
|
||||||
|
|
||||||
define('RL_LAN_001', 'System Logs');
|
define('RL_LAN_001', 'System Logs');
|
||||||
define('RL_LAN_002', "Rolling Log");
|
define('RL_LAN_002', "Rolling Log");
|
||||||
@@ -107,4 +107,11 @@ define('RL_LAN_119', 'Active');
|
|||||||
define('RL_LAN_120', 'Users on-line');
|
define('RL_LAN_120', 'Users on-line');
|
||||||
|
|
||||||
|
|
||||||
|
define('RL_LAN_121', 'System Logs Options');
|
||||||
|
define('RL_LAN_122', 'System Logs Configuration');
|
||||||
|
define('RL_LAN_123', 'User audit trail class');
|
||||||
|
define('RL_LAN_124', 'User audit trail actions');
|
||||||
|
define('RL_LAN_125', 'System Logs Maintenance');
|
||||||
|
define('RL_LAN_126', 'Total <strong>%d</strong> entries matching search condition');
|
||||||
|
define('RL_LAN_JS_CONFIRM', 'Are you sure?');
|
||||||
?>
|
?>
|
@@ -89,6 +89,9 @@ ul,ol { list-style:none; }
|
|||||||
.adminlist { width:100%; border:1px solid #ddd;}
|
.adminlist { width:100%; border:1px solid #ddd;}
|
||||||
.adminlist th { padding: 5px; border-bottom:1px solid #ddd; border-right: 1px solid #ddd; font-weight: bold; white-space:nowrap; }
|
.adminlist th { padding: 5px; border-bottom:1px solid #ddd; border-right: 1px solid #ddd; font-weight: bold; white-space:nowrap; }
|
||||||
.adminlist td { padding: 5px; border-bottom:1px solid #ddd; border-right: 1px solid #ddd; }
|
.adminlist td { padding: 5px; border-bottom:1px solid #ddd; border-right: 1px solid #ddd; }
|
||||||
|
|
||||||
|
.adminlist td div.field-spacer { clear: both; margin-bottom: 3px; } /* multi-fields per row separator */
|
||||||
|
|
||||||
.adminlist th.last,
|
.adminlist th.last,
|
||||||
.adminlist td.last { border-right: 0px solid;}
|
.adminlist td.last { border-right: 0px solid;}
|
||||||
.adminlist tr.last td{ border-bottom: 0px solid;}
|
.adminlist tr.last td{ border-bottom: 0px solid;}
|
||||||
@@ -113,7 +116,7 @@ select, .tbox, .helpbox {
|
|||||||
}
|
}
|
||||||
option { padding-right: 10px;}
|
option { padding-right: 10px;}
|
||||||
input.input-text, textarea, .tbox, .helpbox { padding:2px; }
|
input.input-text, textarea, .tbox, .helpbox { padding:2px; }
|
||||||
select.tbox { min-height:17px; padding: 0px; /* to set the height for empty selects */ }
|
select.tbox { min-height:17px; padding: 0px; /* setting the height of empty selects */ }
|
||||||
.select.order { width: 40px !important; }
|
.select.order { width: 40px !important; }
|
||||||
.select.time-offset { width: 60px !important; }
|
.select.time-offset { width: 60px !important; }
|
||||||
input.radio { margin-right: 3px; }
|
input.radio { margin-right: 3px; }
|
||||||
@@ -129,6 +132,7 @@ label { cursor: pointer; }
|
|||||||
.adminform { width:100%; border:1px solid #ddd;}
|
.adminform { width:100%; border:1px solid #ddd;}
|
||||||
|
|
||||||
.adminform td { padding: 5px; text-align: left}
|
.adminform td { padding: 5px; text-align: left}
|
||||||
|
.adminform td div.field-spacer { clear: both; margin-bottom: 3px; } /* multi-fields per row separator */
|
||||||
|
|
||||||
.adminform .select { width: 280px;}
|
.adminform .select { width: 280px;}
|
||||||
.adminform .input-text { width: 274px;}
|
.adminform .input-text { width: 274px;}
|
||||||
@@ -143,6 +147,7 @@ label { cursor: pointer; }
|
|||||||
/* form used for content edit */
|
/* form used for content edit */
|
||||||
.adminedit { width:100%; border:1px solid #ddd;}
|
.adminedit { width:100%; border:1px solid #ddd;}
|
||||||
.adminedit td { padding: 5px; text-align: left}
|
.adminedit td { padding: 5px; text-align: left}
|
||||||
|
.adminedit td div.field-spacer { clear: both; margin-bottom: 3px; } /* multi-fields per row separator */
|
||||||
|
|
||||||
.adminedit .select { width: 280px; }
|
.adminedit .select { width: 280px; }
|
||||||
.adminedit .input-text { width: 274px;}
|
.adminedit .input-text { width: 274px;}
|
||||||
@@ -298,6 +303,7 @@ input.action.edit {}
|
|||||||
/********** Misc */
|
/********** Misc */
|
||||||
.e-pointer { cursor: pointer; } /* Pointer Hand */
|
.e-pointer { cursor: pointer; } /* Pointer Hand */
|
||||||
.expand-container { padding: 10px; } /* Block with expandable items */
|
.expand-container { padding: 10px; } /* Block with expandable items */
|
||||||
|
.nextprev-bar { clear: both; padding: 5px; font-size: 14px; margin: 5px; border:1px solid #ddd; } /* Page NextPrev nabigation block */
|
||||||
|
|
||||||
/*******************************************************************************************************************/
|
/*******************************************************************************************************************/
|
||||||
|
|
||||||
@@ -309,7 +315,7 @@ input.action.edit {}
|
|||||||
.admin-header-content { border: 1px solid #DDDDDD; }
|
.admin-header-content { border: 1px solid #DDDDDD; }
|
||||||
.admin-page-body { padding: 20px 15px 0; }
|
.admin-page-body { padding: 20px 15px 0; }
|
||||||
.admin-footer {}
|
.admin-footer {}
|
||||||
legend { font-size: 16px; font-weight: bold; padding: 5px; }
|
legend { font-size: 14px; font-weight: bold; padding: 5px; }
|
||||||
|
|
||||||
/******** Layout */
|
/******** Layout */
|
||||||
.main-table { width: 100%; border: 0 none; }
|
.main-table { width: 100%; border: 0 none; }
|
||||||
|
Reference in New Issue
Block a user