mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Admin tools
This commit is contained in:
parent
2934ff25ff
commit
bb1d9c323d
@ -25,7 +25,20 @@ if (! check_acl($config['id_user'], 0, 'PM') && ! is_user_admin($config['id_user
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Header
|
// Header
|
||||||
ui_print_page_header(__('Link management'), 'images/extensions.png', false, '', true, '');
|
ui_print_standard_header(
|
||||||
|
__('Admin tools'),
|
||||||
|
'images/extensions.png',
|
||||||
|
false,
|
||||||
|
'',
|
||||||
|
true,
|
||||||
|
[],
|
||||||
|
[
|
||||||
|
[
|
||||||
|
'link' => '',
|
||||||
|
'label' => __('Link management'),
|
||||||
|
],
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
if (isset($_POST['create'])) {
|
if (isset($_POST['create'])) {
|
||||||
@ -98,7 +111,7 @@ if ((isset($_GET['form_add'])) or (isset($_GET['form_edit']))) {
|
|||||||
$link = '';
|
$link = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '<table class="databox filters" cellpadding="4" cellspacing="4" width="100%">';
|
echo '<table class="databox filters filter-table-adv max_floating_element_size" cellpadding="4" cellspacing="4" width="100%">';
|
||||||
echo '<form name="ilink" method="post" action="index.php?sec=gsetup&sec2=godmode/setup/links">';
|
echo '<form name="ilink" method="post" action="index.php?sec=gsetup&sec2=godmode/setup/links">';
|
||||||
if ($creation_mode == 1) {
|
if ($creation_mode == 1) {
|
||||||
echo "<input type='hidden' name='create' value='1'>";
|
echo "<input type='hidden' name='create' value='1'>";
|
||||||
@ -112,17 +125,42 @@ if ((isset($_GET['form_add'])) or (isset($_GET['form_edit']))) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
echo "'>";
|
echo "'>";
|
||||||
echo '<tr>
|
echo '<tr>';
|
||||||
<td class="datos">'.__('Link name').'</td>
|
echo '<td class="w50p">';
|
||||||
<td class="datos"><input type="text" class="text_input" name="name" size="50" value="'.$nombre.'"></td>';
|
echo html_print_label_input_block(
|
||||||
echo '</tr><tr>
|
__('Link name'),
|
||||||
<td class="datos2">'.__('Link').'</td>
|
html_print_input_text(
|
||||||
<td class="datos2">
|
'name',
|
||||||
<input type="text" class="text_input" name="link" size="50" value="'.$link.'"></td>';
|
$nombre,
|
||||||
echo '</tr>';
|
'',
|
||||||
|
50,
|
||||||
|
255,
|
||||||
|
true,
|
||||||
|
false,
|
||||||
|
true,
|
||||||
|
'',
|
||||||
|
'text_input'
|
||||||
|
)
|
||||||
|
);
|
||||||
|
echo '</td>';
|
||||||
|
echo '<td class="w50p">';
|
||||||
|
echo html_print_label_input_block(
|
||||||
|
__('Link'),
|
||||||
|
html_print_input_text(
|
||||||
|
'link',
|
||||||
|
$link,
|
||||||
|
'',
|
||||||
|
50,
|
||||||
|
255,
|
||||||
|
true,
|
||||||
|
false,
|
||||||
|
true,
|
||||||
|
'',
|
||||||
|
'text_input'
|
||||||
|
)
|
||||||
|
);
|
||||||
|
echo '</td></tr>';
|
||||||
echo '</table>';
|
echo '</table>';
|
||||||
echo "<table width='100%'>";
|
|
||||||
echo "<tr><td align='right'>";
|
|
||||||
if (isset($_GET['form_add']) === true) {
|
if (isset($_GET['form_add']) === true) {
|
||||||
$actionForPerform = __('Create');
|
$actionForPerform = __('Create');
|
||||||
$iconForPerform = 'wand';
|
$iconForPerform = 'wand';
|
||||||
@ -131,16 +169,14 @@ if ((isset($_GET['form_add'])) or (isset($_GET['form_edit']))) {
|
|||||||
$iconForPerform = 'update';
|
$iconForPerform = 'update';
|
||||||
}
|
}
|
||||||
|
|
||||||
html_print_div(
|
html_print_action_buttons(
|
||||||
[
|
html_print_submit_button(
|
||||||
'class' => 'action-buttons',
|
$actionForPerform,
|
||||||
'content' => html_print_submit_button(
|
'crtbutton',
|
||||||
$actionForPerform,
|
false,
|
||||||
'crtbutton',
|
[ 'icon' => $iconForPerform ],
|
||||||
false,
|
true
|
||||||
[ 'icon' => $iconForPerform ]
|
)
|
||||||
),
|
|
||||||
],
|
|
||||||
);
|
);
|
||||||
|
|
||||||
echo '</form></td></tr></table>';
|
echo '</form></td></tr></table>';
|
||||||
@ -185,16 +221,14 @@ if ((isset($_GET['form_add'])) or (isset($_GET['form_edit']))) {
|
|||||||
echo "<tr><td align='right'>";
|
echo "<tr><td align='right'>";
|
||||||
echo "<form method='post' action='index.php?sec=gsetup&sec2=godmode/setup/links&form_add=1'>";
|
echo "<form method='post' action='index.php?sec=gsetup&sec2=godmode/setup/links&form_add=1'>";
|
||||||
|
|
||||||
html_print_div(
|
html_print_action_buttons(
|
||||||
[
|
html_print_submit_button(
|
||||||
'class' => 'action-buttons',
|
__('Add'),
|
||||||
'content' => html_print_submit_button(
|
'form_add',
|
||||||
__('Add'),
|
false,
|
||||||
'form_add',
|
[ 'icon' => 'wand' ],
|
||||||
false,
|
true
|
||||||
[ 'icon' => 'wand' ]
|
)
|
||||||
),
|
|
||||||
],
|
|
||||||
);
|
);
|
||||||
|
|
||||||
echo '</form></table>';
|
echo '</form></table>';
|
||||||
|
@ -155,13 +155,19 @@ class Diagnostics extends Wizard
|
|||||||
];
|
];
|
||||||
|
|
||||||
// Header.
|
// Header.
|
||||||
ui_print_page_header(
|
ui_print_standard_header(
|
||||||
__('%s Diagnostic tool', $this->product_name),
|
__('Admin tools'),
|
||||||
'images/gm_massive_operations.png',
|
'images/gm_massive_operations.png',
|
||||||
false,
|
false,
|
||||||
'',
|
'',
|
||||||
true,
|
true,
|
||||||
$header_buttons
|
$header_buttons,
|
||||||
|
[
|
||||||
|
[
|
||||||
|
'link' => '',
|
||||||
|
'label' => __('%s Diagnostic tool', $this->product_name),
|
||||||
|
],
|
||||||
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
// Print all Methods Diagnostic Info.
|
// Print all Methods Diagnostic Info.
|
||||||
@ -1569,7 +1575,7 @@ class Diagnostics extends Wizard
|
|||||||
[
|
[
|
||||||
'id' => $tableId,
|
'id' => $tableId,
|
||||||
'class' => 'info_table caption_table',
|
'class' => 'info_table caption_table',
|
||||||
'style' => 'width: 100%',
|
'style' => 'width: 99%',
|
||||||
'columns' => $columns,
|
'columns' => $columns,
|
||||||
'column_names' => $columnNames,
|
'column_names' => $columnNames,
|
||||||
'ajax_data' => [
|
'ajax_data' => [
|
||||||
|
@ -8,8 +8,8 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 1.5em;
|
font-size: 1.5em;
|
||||||
font-weight: bolder;
|
font-weight: bolder;
|
||||||
color: #fff;
|
color: #000;
|
||||||
background: #282828;
|
background: var(--secondary-color);
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -489,14 +489,6 @@ li > .select2-selection {
|
|||||||
padding: 0px !important;
|
padding: 0px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box-flat {
|
|
||||||
margin: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mrgn_20px {
|
|
||||||
margin: 20px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.omnishell_results_wrapper {
|
.omnishell_results_wrapper {
|
||||||
max-width: 100% !important;
|
max-width: 100% !important;
|
||||||
}
|
}
|
||||||
@ -547,10 +539,6 @@ ul.datatable_filter > li > div.action-buttons > button {
|
|||||||
height: auto !important;
|
height: auto !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.action_buttons_right_content {
|
|
||||||
padding-left: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#image-1,
|
#image-1,
|
||||||
#image-2 {
|
#image-2 {
|
||||||
padding-left: 0px !important;
|
padding-left: 0px !important;
|
||||||
@ -560,10 +548,6 @@ ul.datatable_filter > li > div.action-buttons > button {
|
|||||||
margin-bottom: 10px !important;
|
margin-bottom: 10px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dataTables_length {
|
|
||||||
margin-bottom: 50px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.item_status_tree_view {
|
.item_status_tree_view {
|
||||||
position: initial;
|
position: initial;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user