|
@@ -260,7 +260,7 @@
|
|
}
|
|
}
|
|
if (permission_exists('default_setting_add') && $default_settings) {
|
|
if (permission_exists('default_setting_add') && $default_settings) {
|
|
if (permission_exists("domain_select") && permission_exists("domain_setting_add") && count($_SESSION['domains']) > 1) {
|
|
if (permission_exists("domain_select") && permission_exists("domain_setting_add") && count($_SESSION['domains']) > 1) {
|
|
- echo button::create(['type'=>'button','label'=>$text['button-copy'],'id'=>'btn_copy','icon'=>$_SESSION['theme']['button_icon_copy'],'id'=>'btn_copy','onclick'=>'show_domains();']);
|
|
|
|
|
|
+ echo button::create(['type'=>'button','label'=>$text['button-copy'],'id'=>'btn_copy','name'=>'btn_copy','style'=>'display: none;','icon'=>$_SESSION['theme']['button_icon_copy'],'id'=>'btn_copy','onclick'=>'show_domains();']);
|
|
echo button::create(['type'=>'button','label'=>$text['button-cancel'],'id'=>'btn_copy_cancel','icon'=>$_SESSION['theme']['button_icon_cancel'],'style'=>'display: none;','onclick'=>'hide_domains();']);
|
|
echo button::create(['type'=>'button','label'=>$text['button-cancel'],'id'=>'btn_copy_cancel','icon'=>$_SESSION['theme']['button_icon_cancel'],'style'=>'display: none;','onclick'=>'hide_domains();']);
|
|
echo "<select name='domain_uuid' class='formfld' style='display: none; width: auto;' id='target_domain_uuid' onchange=\"document.getElementById('domain_uuid').value = this.options[this.selectedIndex].value;\">\n";
|
|
echo "<select name='domain_uuid' class='formfld' style='display: none; width: auto;' id='target_domain_uuid' onchange=\"document.getElementById('domain_uuid').value = this.options[this.selectedIndex].value;\">\n";
|
|
echo " <option value=''>".$text['label-domain']."...</option>\n";
|
|
echo " <option value=''>".$text['label-domain']."...</option>\n";
|
|
@@ -272,10 +272,10 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (permission_exists('default_setting_edit') && $default_settings) {
|
|
if (permission_exists('default_setting_edit') && $default_settings) {
|
|
- echo button::create(['type'=>'button','label'=>$text['button-toggle'],'icon'=>$_SESSION['theme']['button_icon_toggle'],'name'=>'btn_toggle','onclick'=>"modal_open('modal-toggle','btn_toggle');"]);
|
|
|
|
|
|
+ echo button::create(['type'=>'button','label'=>$text['button-toggle'],'icon'=>$_SESSION['theme']['button_icon_toggle'],'id'=>'btn_toggle','name'=>'btn_toggle','style'=>'display: none;','onclick'=>"modal_open('modal-toggle','btn_toggle');"]);
|
|
}
|
|
}
|
|
if (permission_exists('default_setting_delete') && $default_settings) {
|
|
if (permission_exists('default_setting_delete') && $default_settings) {
|
|
- echo button::create(['type'=>'button','label'=>$text['button-delete'],'icon'=>$_SESSION['theme']['button_icon_delete'],'name'=>'btn_delete','onclick'=>"modal_open('modal-delete','btn_delete');"]);
|
|
|
|
|
|
+ echo button::create(['type'=>'button','label'=>$text['button-delete'],'icon'=>$_SESSION['theme']['button_icon_delete'],'id'=>'btn_delete','name'=>'btn_delete','style'=>'display: none;','onclick'=>"modal_open('modal-delete','btn_delete');"]);
|
|
}
|
|
}
|
|
echo "<form id='form_search' class='inline' method='get'>\n";
|
|
echo "<form id='form_search' class='inline' method='get'>\n";
|
|
if (is_array($categories) && @sizeof($categories) != 0) {
|
|
if (is_array($categories) && @sizeof($categories) != 0) {
|
|
@@ -373,7 +373,7 @@
|
|
echo "<tr class='list-header'>\n";
|
|
echo "<tr class='list-header'>\n";
|
|
if (permission_exists('default_setting_add') || permission_exists('default_setting_edit') || permission_exists('default_setting_delete')) {
|
|
if (permission_exists('default_setting_add') || permission_exists('default_setting_edit') || permission_exists('default_setting_delete')) {
|
|
echo " <th class='checkbox'>\n";
|
|
echo " <th class='checkbox'>\n";
|
|
- echo " <input type='checkbox' id='checkbox_all_".$default_setting_category."' name='checkbox_all' onclick=\"list_all_toggle('".$default_setting_category."');\">\n";
|
|
|
|
|
|
+ echo " <input type='checkbox' id='checkbox_all_".$default_setting_category."' name='checkbox_all' onclick=\"list_all_toggle('".$default_setting_category."'); checkbox_on_change(this);\">\n";
|
|
echo " </th>\n";
|
|
echo " </th>\n";
|
|
}
|
|
}
|
|
if ($_GET['show'] == 'all' && permission_exists('default_setting_all')) {
|
|
if ($_GET['show'] == 'all' && permission_exists('default_setting_all')) {
|
|
@@ -395,7 +395,7 @@
|
|
echo "<tr class='list-row' href='".$list_row_url."'>\n";
|
|
echo "<tr class='list-row' href='".$list_row_url."'>\n";
|
|
if (permission_exists('default_setting_add') || permission_exists('default_setting_edit') || permission_exists('default_setting_delete')) {
|
|
if (permission_exists('default_setting_add') || permission_exists('default_setting_edit') || permission_exists('default_setting_delete')) {
|
|
echo " <td class='checkbox'>\n";
|
|
echo " <td class='checkbox'>\n";
|
|
- echo " <input type='checkbox' name='default_settings[$x][checked]' id='checkbox_".$x."' class='checkbox_".$default_setting_category."' value='true' onclick=\"if (!this.checked) { document.getElementById('checkbox_all_".$default_setting_category."').checked = false; }\">\n";
|
|
|
|
|
|
+ echo " <input type='checkbox' name='default_settings[$x][checked]' id='checkbox_".$x."' class='checkbox_".$default_setting_category."' value='true' onclick=\"checkbox_on_change(this); if (!this.checked) { document.getElementById('checkbox_all_".$default_setting_category."').checked = false; }\">\n";
|
|
echo " <input type='hidden' name='default_settings[$x][uuid]' value='".escape($row['default_setting_uuid'])."' />\n";
|
|
echo " <input type='hidden' name='default_settings[$x][uuid]' value='".escape($row['default_setting_uuid'])."' />\n";
|
|
echo " </td>\n";
|
|
echo " </td>\n";
|
|
}
|
|
}
|