|
@@ -184,15 +184,15 @@
|
|
|
if (permission_exists('domain_add')) {
|
|
|
echo button::create(['type'=>'button','label'=>$text['button-add'],'icon'=>$_SESSION['theme']['button_icon_add'],'link'=>'domain_edit.php']);
|
|
|
}
|
|
|
- if (permission_exists('domain_copy') && $domains) {
|
|
|
- echo button::create(['type'=>'button','label'=>$text['button-copy'],'icon'=>$_SESSION['theme']['button_icon_copy'],'onclick'=>"if (confirm('".$text['confirm-copy']."')) { list_action_set('copy'); list_form_submit('form_list'); } else { this.blur(); return false; }"]);
|
|
|
- }
|
|
|
+// if (permission_exists('domain_copy') && $domains) {
|
|
|
+// echo button::create(['type'=>'button','label'=>$text['button-copy'],'icon'=>$_SESSION['theme']['button_icon_copy'],'onclick'=>"if (confirm('".$text['confirm-copy']."')) { list_action_set('copy'); list_form_submit('form_list'); } else { this.blur(); return false; }"]);
|
|
|
+// }
|
|
|
if (permission_exists('domain_edit') && $domains) {
|
|
|
echo button::create(['type'=>'button','label'=>$text['button-toggle'],'icon'=>$_SESSION['theme']['button_icon_toggle'],'onclick'=>"if (confirm('".$text['confirm-toggle']."')) { list_action_set('toggle'); list_form_submit('form_list'); } else { this.blur(); return false; }"]);
|
|
|
}
|
|
|
- if (permission_exists('domain_delete') && $domains) {
|
|
|
- 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('domain_delete') && $domains) {
|
|
|
+// 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";
|
|
|
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)]);
|
|
@@ -214,7 +214,7 @@
|
|
|
|
|
|
echo "<table class='list'>\n";
|
|
|
echo "<tr class='list-header'>\n";
|
|
|
- if (permission_exists('domain_add') || permission_exists('domain_edit') || permission_exists('domain_delete')) {
|
|
|
+ if (permission_exists('domain_edit') || permission_exists('domain_delete')) {
|
|
|
echo " <th class='checkbox'>\n";
|
|
|
echo " <input type='checkbox' id='checkbox_all' name='checkbox_all' onclick='list_all_toggle();' ".($domains ?: "style='visibility: hidden;'").">\n";
|
|
|
echo " </th>\n";
|
|
@@ -237,7 +237,7 @@
|
|
|
$list_row_url = "domain_edit.php?id=".urlencode($row['domain_uuid']);
|
|
|
}
|
|
|
echo "<tr class='list-row' href='".$list_row_url."'>\n";
|
|
|
- if (permission_exists('domain_add') || permission_exists('domain_edit') || permission_exists('domain_delete')) {
|
|
|
+ if (permission_exists('domain_edit') || permission_exists('domain_delete')) {
|
|
|
echo " <td class='checkbox'>\n";
|
|
|
echo " <input type='checkbox' name='domains[$x][checked]' id='checkbox_".$x."' value='true' onclick=\"if (!this.checked) { document.getElementById('checkbox_all').checked = false; }\">\n";
|
|
|
echo " <input type='hidden' name='domains[$x][uuid]' value='".escape($row['domain_uuid'])."' />\n";
|
|
@@ -284,4 +284,4 @@
|
|
|
//include the footer
|
|
|
require_once "resources/footer.php";
|
|
|
|
|
|
-?>
|
|
|
+?>
|