mirror of
https://github.com/e107inc/e107.git
synced 2025-07-12 10:36:20 +02:00
Admin-UI: Added record total to list view.
This commit is contained in:
@ -5292,6 +5292,8 @@ class e_admin_form_ui extends e_form
|
|||||||
// if going through confirm screen - no JS confirm
|
// if going through confirm screen - no JS confirm
|
||||||
$controller->setFieldAttr('options', 'noConfirm', $controller->deleteConfirmScreen);
|
$controller->setFieldAttr('options', 'noConfirm', $controller->deleteConfirmScreen);
|
||||||
|
|
||||||
|
$this->listTotal = $tree[$id]->getTotal();
|
||||||
|
|
||||||
$options[$id] = array(
|
$options[$id] = array(
|
||||||
'id' => $this->getElementId(), // unique string used for building element ids, REQUIRED
|
'id' => $this->getElementId(), // unique string used for building element ids, REQUIRED
|
||||||
'pid' => $controller->getPrimaryName(), // primary field name, REQUIRED
|
'pid' => $controller->getPrimaryName(), // primary field name, REQUIRED
|
||||||
@ -5569,6 +5571,9 @@ class e_admin_form_ui extends e_form
|
|||||||
// $allow_copy = TRUE;
|
// $allow_copy = TRUE;
|
||||||
|
|
||||||
$fields = $this->getController()->getFields();
|
$fields = $this->getController()->getFields();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(!varset($fields['checkboxes']))
|
if(!varset($fields['checkboxes']))
|
||||||
{
|
{
|
||||||
$mes = e107::getMessage();
|
$mes = e107::getMessage();
|
||||||
@ -5586,6 +5591,7 @@ class e_admin_form_ui extends e_form
|
|||||||
// XXX Quick Fix for styling - correct.
|
// XXX Quick Fix for styling - correct.
|
||||||
$text = "
|
$text = "
|
||||||
<div class='navbar navbar-inner left' style='padding-left:15px; padding-top:8px; margin-top:-20px;border-top:0px'>
|
<div class='navbar navbar-inner left' style='padding-left:15px; padding-top:8px; margin-top:-20px;border-top:0px'>
|
||||||
|
<div class='span6'>
|
||||||
<div class='input-append'>
|
<div class='input-append'>
|
||||||
<img src='".e_IMAGE_ABS."generic/branchbottom.gif' alt='' class='icon action' style='padding-top:5px' />
|
<img src='".e_IMAGE_ABS."generic/branchbottom.gif' alt='' class='icon action' style='padding-top:5px' />
|
||||||
".$this->select_open('etrigger_batch', array('class' => 'tbox select batch e-autosubmit reset', 'id' => false))."
|
".$this->select_open('etrigger_batch', array('class' => 'tbox select batch e-autosubmit reset', 'id' => false))."
|
||||||
@ -5600,6 +5606,8 @@ class e_admin_form_ui extends e_form
|
|||||||
".$this->admin_button('e__execute_batch', 'e__execute_batch', 'batch e-hide-if-js', LAN_GO, array('id' => false))."
|
".$this->admin_button('e__execute_batch', 'e__execute_batch', 'batch e-hide-if-js', LAN_GO, array('id' => false))."
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class='span6 right' style='padding-top:5px'><span>".e107::getParser()->lanVars(LAN_UI_TOTAL_RECORDS,number_format($this->listTotal))."</span></div>
|
||||||
|
</div>
|
||||||
";
|
";
|
||||||
|
|
||||||
return $text;
|
return $text;
|
||||||
|
@ -385,6 +385,7 @@ define("LAN_UI_DELETE_WARNING", "You are about to delete [x] records. Please con
|
|||||||
define("LAN_UI_BATCH_CREATELINK", "Create Link");
|
define("LAN_UI_BATCH_CREATELINK", "Create Link");
|
||||||
|
|
||||||
define("LAN_UI_USING_DATABASE_TABLE", "Using [x] database table");
|
define("LAN_UI_USING_DATABASE_TABLE", "Using [x] database table");
|
||||||
|
define("LAN_UI_TOTAL_RECORDS", "Total Records: [x]");
|
||||||
|
|
||||||
define("LAN_USER_MANAGEALL", "Manage all User, Userclass and Extended User-Field settings");
|
define("LAN_USER_MANAGEALL", "Manage all User, Userclass and Extended User-Field settings");
|
||||||
define("LAN_USER_LIST", "User List");
|
define("LAN_USER_LIST", "User List");
|
||||||
|
Reference in New Issue
Block a user