fixed styles
This commit is contained in:
parent
1f7183c701
commit
64fc4bcd46
|
@ -679,7 +679,7 @@ foreach ($simple_alerts as $alert) {
|
|||
true,
|
||||
[
|
||||
'id' => 'template-details-'.$alert['id_alert_template'],
|
||||
'class' => 'img_help action_button_img invert_filter',
|
||||
'class' => 'img_help main_menu_icon invert_filter',
|
||||
]
|
||||
);
|
||||
$data[2] .= '</a> ';
|
||||
|
@ -757,7 +757,7 @@ foreach ($simple_alerts as $alert) {
|
|||
true,
|
||||
[
|
||||
'title' => __('Delete action'),
|
||||
'class' => 'action_button_img invert_filter',
|
||||
'class' => 'main_menu_icon invert_filter',
|
||||
]
|
||||
);
|
||||
$data[3] .= html_print_input_hidden('delete_action', 1, true);
|
||||
|
@ -772,7 +772,7 @@ foreach ($simple_alerts as $alert) {
|
|||
true,
|
||||
[
|
||||
'title' => __('Update action'),
|
||||
'class' => 'action_button_img invert_filter',
|
||||
'class' => 'main_menu_icon invert_filter',
|
||||
'onclick' => 'show_display_update_action(\''.$action['id'].'\',\''.$alert['id'].'\',\''.$alert['id_agent_module'].'\',\''.$action_id.'\',\''.$alert['id_agent_module'].'\')',
|
||||
]
|
||||
);
|
||||
|
|
|
@ -393,7 +393,7 @@ class SatelliteAgent extends HTML
|
|||
true,
|
||||
[
|
||||
'border' => '0',
|
||||
'class' => 'action_button_img mrgn_lft_05em invert_filter',
|
||||
'class' => 'main_menu_icon mrgn_lft_05em invert_filter',
|
||||
'onclick' => 'disable_agent(\''.$tmp->address.'\',\''.strip_tags($tmp->name).'\',\''.(int) $disable.'\',\''.$id_agente.'\')',
|
||||
]
|
||||
);
|
||||
|
@ -405,7 +405,7 @@ class SatelliteAgent extends HTML
|
|||
true,
|
||||
[
|
||||
'border' => '0',
|
||||
'class' => 'action_button_img mrgn_lft_05em invert_filter',
|
||||
'class' => 'main_menu_icon mrgn_lft_05em invert_filter',
|
||||
'onclick' => 'delete_agent(\''.$tmp->address.'\',\''.strip_tags($tmp->name).'\',\''.(int) $delete.'\',\''.$id_agente.'\')',
|
||||
]
|
||||
);
|
||||
|
|
|
@ -6002,6 +6002,7 @@ function reporting_get_last_activity()
|
|||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->data = [];
|
||||
$table->class = 'info_table';
|
||||
$table->size = [];
|
||||
$table->size[2] = '150px';
|
||||
$table->size[3] = '130px';
|
||||
|
@ -6015,37 +6016,13 @@ function reporting_get_last_activity()
|
|||
$table->head[5] = __('Comments');
|
||||
$table->title = '<span>'.__('Last activity in %s console', get_product_name()).'</span>';
|
||||
|
||||
switch ($config['dbtype']) {
|
||||
case 'mysql':
|
||||
$sql = sprintf(
|
||||
'SELECT id_usuario,accion,fecha,ip_origen,descripcion,utimestamp
|
||||
FROM tsesion
|
||||
WHERE (`utimestamp` > UNIX_TIMESTAMP(NOW()) - '.SECONDS_1WEEK.")
|
||||
AND `id_usuario` = '%s' ORDER BY `utimestamp` DESC LIMIT 5",
|
||||
$config['id_user']
|
||||
);
|
||||
break;
|
||||
|
||||
case 'postgresql':
|
||||
$sql = sprintf(
|
||||
"SELECT \"id_usuario\", accion, fecha, \"ip_origen\", descripcion, utimestamp
|
||||
FROM tsesion
|
||||
WHERE (\"utimestamp\" > ceil(date_part('epoch', CURRENT_TIMESTAMP)) - ".SECONDS_1WEEK.")
|
||||
AND \"id_usuario\" = '%s' ORDER BY \"utimestamp\" DESC LIMIT 5",
|
||||
$config['id_user']
|
||||
);
|
||||
break;
|
||||
|
||||
case 'oracle':
|
||||
$sql = sprintf(
|
||||
"SELECT id_usuario, accion, fecha, ip_origen, descripcion, utimestamp
|
||||
FROM tsesion
|
||||
WHERE ((utimestamp > ceil((sysdate - to_date('19700101000000','YYYYMMDDHH24MISS')) * (".SECONDS_1DAY.')) - '.SECONDS_1WEEK.")
|
||||
AND id_usuario = '%s') AND rownum <= 10 ORDER BY utimestamp DESC",
|
||||
$config['id_user']
|
||||
);
|
||||
break;
|
||||
}
|
||||
$sql = sprintf(
|
||||
'SELECT id_usuario,accion,fecha,ip_origen,descripcion,utimestamp
|
||||
FROM tsesion
|
||||
WHERE (`utimestamp` > UNIX_TIMESTAMP(NOW()) - '.SECONDS_1WEEK.")
|
||||
AND `id_usuario` = '%s' ORDER BY `utimestamp` DESC LIMIT 5",
|
||||
$config['id_user']
|
||||
);
|
||||
|
||||
$sessions = db_get_all_rows_sql($sql);
|
||||
|
||||
|
@ -6056,18 +6033,8 @@ function reporting_get_last_activity()
|
|||
foreach ($sessions as $session) {
|
||||
$data = [];
|
||||
|
||||
switch ($config['dbtype']) {
|
||||
case 'mysql':
|
||||
case 'oracle':
|
||||
$session_id_usuario = $session['id_usuario'];
|
||||
$session_ip_origen = $session['ip_origen'];
|
||||
break;
|
||||
|
||||
case 'postgresql':
|
||||
$session_id_usuario = $session['id_usuario'];
|
||||
$session_ip_origen = $session['ip_origen'];
|
||||
break;
|
||||
}
|
||||
$session_id_usuario = $session['id_usuario'];
|
||||
$session_ip_origen = $session['ip_origen'];
|
||||
|
||||
$data[0] = '<strong>'.$session_id_usuario.'</strong>';
|
||||
$data[1] = ui_print_session_action_icon($session['accion'], true);
|
||||
|
@ -6079,10 +6046,6 @@ function reporting_get_last_activity()
|
|||
array_push($table->data, $data);
|
||||
}
|
||||
|
||||
if (defined('METACONSOLE')) {
|
||||
$table->class = 'databox_tactical';
|
||||
}
|
||||
|
||||
return html_print_table($table, true);
|
||||
|
||||
}
|
||||
|
|
|
@ -5020,30 +5020,22 @@ function ui_print_standard_header(
|
|||
$applyBreadcrumbs,
|
||||
true
|
||||
);
|
||||
// Create the header.
|
||||
// if (is_metaconsole() === true) {
|
||||
// $output = ui_meta_print_header(
|
||||
// $title,
|
||||
// false,
|
||||
// $options
|
||||
// );
|
||||
// } else {
|
||||
$output = ui_print_page_header(
|
||||
$title,
|
||||
$icon,
|
||||
true,
|
||||
$help,
|
||||
$godmode,
|
||||
$options,
|
||||
false,
|
||||
'',
|
||||
GENERIC_SIZE_TEXT,
|
||||
'',
|
||||
$headerInformation->printHeader(true),
|
||||
false,
|
||||
$fav_menu_config
|
||||
);
|
||||
// }
|
||||
|
||||
$output = ui_print_page_header(
|
||||
$title,
|
||||
$icon,
|
||||
true,
|
||||
$help,
|
||||
$godmode,
|
||||
$options,
|
||||
false,
|
||||
'',
|
||||
GENERIC_SIZE_TEXT,
|
||||
'',
|
||||
$headerInformation->printHeader(true),
|
||||
false,
|
||||
$fav_menu_config
|
||||
);
|
||||
if ($return !== true) {
|
||||
echo $output;
|
||||
} else {
|
||||
|
@ -7327,9 +7319,6 @@ function ui_get_inventory_module_add_form(
|
|||
$table->rowstyle = [];
|
||||
$table->rowstyle['hidden-custom-field-row'] = 'display: none;';
|
||||
$table->rowstyle['custom-fields-button'] = 'display: none;';
|
||||
// $table->colspan = [];
|
||||
// $table->colspan['custom-fields-row'] = [];
|
||||
// $table->colspan['custom-fields-row']['custom-fields-column'] = 2;
|
||||
$table->data = [];
|
||||
|
||||
$row = [];
|
||||
|
@ -7593,13 +7582,10 @@ function ui_get_inventory_module_add_form(
|
|||
|
||||
ob_start();
|
||||
|
||||
echo '<form name="modulo" method="post" action="'.$form_action.'" class="max_floating_element_size">';
|
||||
echo '<form id="policy_inventory_module_edit_form" name="modulo" method="post" action="'.$form_action.'" class="max_floating_element_size">';
|
||||
echo html_print_table($table);
|
||||
echo '<div class="action-buttons w100p">';
|
||||
echo $form_buttons;
|
||||
echo '</div>';
|
||||
echo '</form>';
|
||||
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
|
|
@ -707,6 +707,10 @@ select:-internal-list-box {
|
|||
width: 60%;
|
||||
}
|
||||
|
||||
.w67p {
|
||||
width: 67%;
|
||||
}
|
||||
|
||||
.w70p {
|
||||
width: 70%;
|
||||
}
|
||||
|
@ -970,6 +974,10 @@ select:-internal-list-box {
|
|||
padding-left: 2em !important;
|
||||
}
|
||||
|
||||
.padding10 {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.margin-soft {
|
||||
margin: 0.3em 1em;
|
||||
}
|
||||
|
@ -11720,3 +11728,8 @@ div.relative > div > div#ui-datepicker-div {
|
|||
top: 55px !important;
|
||||
left: 5px !important;
|
||||
}
|
||||
|
||||
.ui-widget-overlay {
|
||||
background: #aaa;
|
||||
opacity: 0.3 !important;
|
||||
}
|
||||
|
|
|
@ -85,7 +85,7 @@ $product_name = get_product_name(); ?>
|
|||
__('Cancel'),
|
||||
'cancel_registration',
|
||||
false,
|
||||
'class="lato ui-widget
|
||||
'id="submit-cancel_registration" class="lato ui-widget
|
||||
ui-state-default ui-corner-all ui-button-text-only sub upd submit-cancel"',
|
||||
true
|
||||
);
|
||||
|
@ -97,7 +97,7 @@ $product_name = get_product_name(); ?>
|
|||
__('OK!'),
|
||||
'register',
|
||||
false,
|
||||
'class="lato ui-widget
|
||||
'id="submit-register" class="lato ui-widget
|
||||
ui-state-default ui-corner-all ui-button-text-only sub ok submit-next w100px"',
|
||||
true
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue