Action Bar mods.
This commit is contained in:
parent
95ef1a5a71
commit
0304827fd3
|
|
@ -119,7 +119,8 @@
|
|||
|
||||
//show the content
|
||||
echo "<div class='action_bar' id='action_bar'>\n";
|
||||
echo " <b style='float: left;'>".$text['title-access_controls']." (".$num_rows.")</b>\n";
|
||||
echo " <div class='heading'><b>".$text['title-access_controls']." (".$num_rows.")</b></div>\n";
|
||||
echo " <div class='buttons'>\n";
|
||||
if (permission_exists('access_control_add')) {
|
||||
echo button::create(['type'=>'button','label'=>$text['button-add'],'icon'=>$_SESSION['theme']['button_icon_add'],'link'=>'access_control_edit.php']);
|
||||
}
|
||||
|
|
@ -138,6 +139,8 @@
|
|||
}
|
||||
echo " </form>\n";
|
||||
echo " </div>\n";
|
||||
echo " <div style='clear: both;'></div>\n";
|
||||
echo "</div>\n";
|
||||
|
||||
echo $text['description-access_control']."\n";
|
||||
echo "<br /><br />\n";
|
||||
|
|
|
|||
|
|
@ -143,7 +143,8 @@
|
|||
|
||||
//show the content
|
||||
echo "<div class='action_bar' id='action_bar'>\n";
|
||||
echo " <b style='float: left;'>".$text['title-bridges']." (".$num_rows.")</b>\n";
|
||||
echo " <div class='heading'><b>".$text['title-bridges']." (".$num_rows.")</b></div>\n";
|
||||
echo " <div class='buttons'>\n";
|
||||
if (permission_exists('bridge_add')) {
|
||||
echo button::create(['type'=>'button','label'=>$text['button-add'],'icon'=>$_SESSION['theme']['button_icon_add'],'link'=>'bridge_edit.php']);
|
||||
}
|
||||
|
|
@ -156,6 +157,7 @@
|
|||
if (permission_exists('bridge_delete') && $bridges) {
|
||||
echo button::create(['type'=>'button','label'=>$text['button-delete'],'icon'=>$_SESSION['theme']['button_icon_delete'],'onclick'=>"if (confirm('".$text['confirm-delete']."')) { list_action_set('delete'); list_form_submit('form_list'); } else { this.blur(); return false; }"]);
|
||||
}
|
||||
echo " <form id='form_search' class='inline' method='get'>\n";
|
||||
if (permission_exists('bridge_all')) {
|
||||
if ($_GET['show'] == 'all') {
|
||||
echo " <input type='hidden' name='show' value='all'>";
|
||||
|
|
@ -164,7 +166,6 @@
|
|||
echo button::create(['type'=>'button','label'=>$text['button-show_all'],'icon'=>$_SESSION['theme']['button_icon_all'],'link'=>'?show=all']);
|
||||
}
|
||||
}
|
||||
echo "<form id='form_search' class='inline' method='get'>\n";
|
||||
echo " <input type='text' class='txt list-search' name='search' id='search' value=\"".escape($search)."\" placeholder=\"".$text['label-search']."\" onkeydown='list_search_reset();'>";
|
||||
echo button::create(['label'=>$text['button-search'],'icon'=>$_SESSION['theme']['button_icon_search'],'type'=>'submit','id'=>'btn_search','style'=>($search != '' ? 'display: none;' : null)]);
|
||||
echo button::create(['label'=>$text['button-reset'],'icon'=>$_SESSION['theme']['button_icon_reset'],'type'=>'button','id'=>'btn_reset','link'=>'bridges.php','style'=>($search == '' ? 'display: none;' : null)]);
|
||||
|
|
@ -173,6 +174,8 @@
|
|||
}
|
||||
echo " </form>\n";
|
||||
echo " </div>\n";
|
||||
echo " <div style='clear: both;'></div>\n";
|
||||
echo "</div>\n";
|
||||
|
||||
echo $text['title_description-bridge']."\n";
|
||||
echo "<br /><br />\n";
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@
|
|||
|
||||
//show the content
|
||||
echo "<div class='action_bar' id='action_bar'>\n";
|
||||
echo " <b style='float: left;'>".$text['title-call-block']." (".$num_rows.")</b>\n";
|
||||
echo " <div class='heading'><b>".$text['title-call-block']." (".$num_rows.")</b></div>\n";
|
||||
if (permission_exists('call_block_add')) {
|
||||
echo button::create(['type'=>'button','label'=>$text['button-add'],'icon'=>$_SESSION['theme']['button_icon_add'],'link'=>'call_block_edit.php']);
|
||||
}
|
||||
|
|
@ -156,6 +156,8 @@
|
|||
}
|
||||
echo " </form>\n";
|
||||
echo " </div>\n";
|
||||
echo " <div style='clear: both;'></div>\n";
|
||||
echo "</div>\n";
|
||||
|
||||
echo $text['description-call-block']."\n";
|
||||
echo "<br /><br />\n";
|
||||
|
|
|
|||
|
|
@ -124,7 +124,8 @@
|
|||
|
||||
//show the content
|
||||
echo "<div class='action_bar' id='action_bar'>\n";
|
||||
echo " <b style='float: left;'>".$text['title-call_broadcast']." (".$num_rows.")</b>\n";
|
||||
echo " <div class='heading'><b>".$text['title-call_broadcast']." (".$num_rows.")</b></div>\n";
|
||||
echo " <div class='buttons'>\n";
|
||||
if (permission_exists('call_broadcast_add')) {
|
||||
echo button::create(['type'=>'button','label'=>$text['button-add'],'icon'=>$_SESSION['theme']['button_icon_add'],'link'=>'call_broadcast_edit.php']);
|
||||
}
|
||||
|
|
@ -143,6 +144,8 @@
|
|||
}
|
||||
echo " </form>\n";
|
||||
echo " </div>\n";
|
||||
echo " <div style='clear: both;'></div>\n";
|
||||
echo "</div>\n";
|
||||
|
||||
echo $text['title_description-call_broadcast']."\n";
|
||||
echo "<br /><br />\n";
|
||||
|
|
|
|||
|
|
@ -101,7 +101,8 @@
|
|||
|
||||
//page title and description
|
||||
echo "<div class='action_bar' id='action_bar'>\n";
|
||||
echo " <b style='float: left;'>".$text['title-call_detail_records']."</b>\n";
|
||||
echo " <div class='heading'><b>".$text['title-call_detail_records']."</b></div>\n";
|
||||
echo " <div class='buttons'>\n";
|
||||
echo " <form id='frm_export' class='inline' method='post' action='xml_cdr_export.php'>\n";
|
||||
echo " <input type='hidden' name='cdr_id' value='".escape($cdr_id)."'>\n";
|
||||
echo " <input type='hidden' name='direction' value='".escape($direction)."'>\n";
|
||||
|
|
@ -149,10 +150,7 @@
|
|||
echo button::create(['type'=>'button','label'=>$text['button-delete'],'icon'=>$_SESSION['theme']['button_icon_delete'],'onclick'=>"if (confirm('".$text['confirm-delete']."')) { list_action_set('delete'); list_form_submit('form_list'); } else { this.blur(); return false; }"]);
|
||||
}
|
||||
if (permission_exists('xml_cdr_all')) {
|
||||
if ($_REQUEST['show'] == 'all') {
|
||||
echo " <input type='hidden' name='show' value='all'>\n";
|
||||
}
|
||||
else {
|
||||
if (!$_REQUEST['show'] == 'all') {
|
||||
echo button::create(['type'=>'button','label'=>$text['button-show_all'],'icon'=>$_SESSION['theme']['button_icon_all'],'link'=>'?show=all']);
|
||||
}
|
||||
}
|
||||
|
|
@ -175,6 +173,8 @@
|
|||
}
|
||||
echo " </form>\n";
|
||||
echo " </div>\n";
|
||||
echo " <div style='clear: both;'></div>\n";
|
||||
echo "</div>\n";
|
||||
|
||||
echo $text['description']." \n";
|
||||
echo $text['description2']." \n";
|
||||
|
|
@ -185,6 +185,9 @@
|
|||
//basic search of call detail records
|
||||
if (permission_exists('xml_cdr_search')) {
|
||||
echo "<form method='get' action=''>\n";
|
||||
if (permission_exists('xml_cdr_all') && $_REQUEST['show'] == 'all') {
|
||||
echo "<input type='hidden' name='show' value='all'>\n";
|
||||
}
|
||||
|
||||
echo "<div class='form_grid'>\n";
|
||||
|
||||
|
|
|
|||
|
|
@ -2188,10 +2188,20 @@ $default_login = ($_REQUEST['login'] == 'default') ? true : false;
|
|||
box-shadow: <?php echo ($_SESSION['theme']['action_bar_shadow_scroll']['text'] != '') ? $_SESSION['theme']['action_bar_shadow_scroll']['text'] : '0 3px 3px 0 rgba(0,0,0,0.2)'; ?>;
|
||||
}
|
||||
|
||||
div.action_bar > div.heading {
|
||||
float: left;
|
||||
}
|
||||
|
||||
div.action_bar > div.buttons {
|
||||
float: right;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* LIST ************************************************************************/
|
||||
|
||||
.list {
|
||||
width: 100%;
|
||||
empty-cells: show;
|
||||
}
|
||||
|
||||
.list tr {
|
||||
|
|
|
|||
Loading…
Reference in New Issue