mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
module list agent view
This commit is contained in:
parent
c57949079b
commit
445db7c43b
@ -800,6 +800,7 @@ if (check_login()) {
|
|||||||
|
|
||||||
$table = new stdClass();
|
$table = new stdClass();
|
||||||
$table->width = '100%';
|
$table->width = '100%';
|
||||||
|
$table->styleTable = 'border: 0;border-radius: 0;';
|
||||||
$table->cellpadding = 0;
|
$table->cellpadding = 0;
|
||||||
$table->cellspacing = 0;
|
$table->cellspacing = 0;
|
||||||
$table->class = 'info_table';
|
$table->class = 'info_table';
|
||||||
|
@ -2783,15 +2783,15 @@ function ui_toggle(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Link to toggle.
|
// Link to toggle.
|
||||||
$output = '';
|
$output = '<div class="white_table_graph">';
|
||||||
$output .= '<a href="javascript:" id="tgl_ctrl_'.$uniqid.'">'.html_print_image(
|
$output .= '<div class="white_table_graph_header" id="tgl_ctrl_'.$uniqid.'">'.html_print_image(
|
||||||
$original,
|
$original,
|
||||||
true,
|
true,
|
||||||
[
|
[
|
||||||
'title' => $title,
|
'title' => $title,
|
||||||
'id' => 'image_'.$uniqid,
|
'id' => 'image_'.$uniqid,
|
||||||
]
|
]
|
||||||
).' <b>'.$name.'</b></a>';
|
).' <b>'.$name.'</b></div>';
|
||||||
// $output .= '<br />';
|
// $output .= '<br />';
|
||||||
// if (!defined("METACONSOLE"))
|
// if (!defined("METACONSOLE"))
|
||||||
// $output .= '<br />';
|
// $output .= '<br />';
|
||||||
@ -2820,6 +2820,7 @@ function ui_toggle(
|
|||||||
$output .= " });\n";
|
$output .= " });\n";
|
||||||
$output .= '/* ]]> */';
|
$output .= '/* ]]> */';
|
||||||
$output .= '</script>';
|
$output .= '</script>';
|
||||||
|
$output .= '</div>';
|
||||||
|
|
||||||
if (!$return) {
|
if (!$return) {
|
||||||
echo $output;
|
echo $output;
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
width: 43px;
|
width: 43px;
|
||||||
height: 11px;
|
height: 11px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
background-image: url(../../images/wait.gif);
|
background-image: url(../../../images/wait.gif);
|
||||||
}
|
}
|
||||||
.cluetip-arrows {
|
.cluetip-arrows {
|
||||||
display: none;
|
display: none;
|
||||||
|
@ -5166,15 +5166,22 @@ table.info_table {
|
|||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
border-spacing: 0;
|
border-spacing: 0;
|
||||||
|
border-collapse: collapse;
|
||||||
|
overflow: hidden;
|
||||||
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table.info_table tr,
|
||||||
|
table.info_table th,
|
||||||
|
table.info_table td {
|
||||||
|
border: 1px solid #e2e2e2;
|
||||||
|
}
|
||||||
table.info_table > tbody > tr:nth-child(even) {
|
table.info_table > tbody > tr:nth-child(even) {
|
||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.info_table tr:first-child > th {
|
table.info_table tr:first-child > th {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-top: 1px solid #e2e2e2;
|
|
||||||
color: #000;
|
color: #000;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
@ -5187,25 +5194,25 @@ table.info_table th {
|
|||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.info_table > thead > tr > th:first-child {
|
|
||||||
border-left: 1px solid #e2e2e2;
|
|
||||||
}
|
|
||||||
|
|
||||||
table.info_table > thead > tr > th:last-child {
|
|
||||||
border-right: 1px solid #e2e2e2;
|
|
||||||
}
|
|
||||||
|
|
||||||
table.info_table tr th {
|
table.info_table tr th {
|
||||||
border-bottom: 1px solid #e2e2e2;
|
border-bottom: 1px solid #e2e2e2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Radius top */
|
||||||
|
table.info_table > thead > tr:first-child > th:first-child {
|
||||||
|
border-top-left-radius: 4px;
|
||||||
|
}
|
||||||
table.info_table > thead > tr:first-child > th:last-child {
|
table.info_table > thead > tr:first-child > th:last-child {
|
||||||
border-top-right-radius: 4px;
|
border-top-right-radius: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.info_table > thead > tr:first-child > th:first-child {
|
/* Radius bottom */
|
||||||
|
table.info_table > tbody > tr:last-child > td:first-child {
|
||||||
border-top-left-radius: 4px;
|
border-top-left-radius: 4px;
|
||||||
}
|
}
|
||||||
|
table.info_table > tbody > tr:last-child > td:last-child {
|
||||||
|
border-top-right-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
table.info_table > thead > tr > th,
|
table.info_table > thead > tr > th,
|
||||||
table.info_table > tbody > tr > th,
|
table.info_table > tbody > tr > th,
|
||||||
@ -5219,6 +5226,10 @@ table.info_table > thead > tr > th a {
|
|||||||
font-size: 8.6pt;
|
font-size: 8.6pt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table.info_table > tbody > tr {
|
||||||
|
border-bottom: 1px solid #e2e2e2;
|
||||||
|
}
|
||||||
|
|
||||||
table.info_table > tbody > tr > td {
|
table.info_table > tbody > tr > td {
|
||||||
-moz-border-radius: 0px;
|
-moz-border-radius: 0px;
|
||||||
-webkit-border-radius: 0px;
|
-webkit-border-radius: 0px;
|
||||||
@ -5228,23 +5239,6 @@ table.info_table > tbody > tr > td {
|
|||||||
padding-right: 9px;
|
padding-right: 9px;
|
||||||
padding-top: 7px;
|
padding-top: 7px;
|
||||||
padding-bottom: 7px;
|
padding-bottom: 7px;
|
||||||
border-bottom: 1px solid #e2e2e2;
|
|
||||||
}
|
|
||||||
|
|
||||||
table.info_table > tbody > tr:last-child > td:first-child {
|
|
||||||
border-bottom-left-radius: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
table.info_table > tbody > tr > td:first-child {
|
|
||||||
border-left: 1px solid #e2e2e2;
|
|
||||||
}
|
|
||||||
|
|
||||||
table.info_table > tbody > tr:last-child > td:last-child {
|
|
||||||
border-bottom-right-radius: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
table.info_table > tbody > tr > td:last-child {
|
|
||||||
border-right: 1px solid #e2e2e2;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
table.info_table > tbody > tr > td > img,
|
table.info_table > tbody > tr > td > img,
|
||||||
@ -5942,13 +5936,14 @@ a#qr_code_agent_view {
|
|||||||
}
|
}
|
||||||
|
|
||||||
div#bullets_modules {
|
div#bullets_modules {
|
||||||
display: inline-block;
|
display: flex;
|
||||||
margin-left: 2em;
|
margin-left: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
div#bullets_modules div {
|
div#bullets_modules div {
|
||||||
display: inline-block;
|
display: flex;
|
||||||
margin: 0 0.5em;
|
align-items: center;
|
||||||
|
margin: 0 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.orange_background {
|
.orange_background {
|
||||||
@ -5986,27 +5981,22 @@ div#bullets_modules div {
|
|||||||
border: 1px solid #e2e2e2;
|
border: 1px solid #e2e2e2;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
flex: 0 1 auto;
|
flex: 0 1 auto;
|
||||||
margin: 5px auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.agent_details_col_left {
|
.agent_details_col_left {
|
||||||
width: 35%;
|
width: 35%;
|
||||||
min-width: 390px;
|
min-width: 470px;
|
||||||
}
|
}
|
||||||
.agent_details_col_right {
|
.agent_details_col_right {
|
||||||
width: 64%;
|
width: 64%;
|
||||||
min-width: 455px;
|
min-width: 455px;
|
||||||
}
|
}
|
||||||
@media screen and (max-width: 1400px) {
|
@media screen and (max-width: 1600px) {
|
||||||
.agent_details_col {
|
.agent_details_col {
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.agent_details_bullets {
|
|
||||||
padding-bottom: 2em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.buttons_agent_view {
|
.buttons_agent_view {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
@ -6023,7 +6013,10 @@ div#bullets_modules div {
|
|||||||
|
|
||||||
/* Agent details in agent view */
|
/* Agent details in agent view */
|
||||||
div#status_pie path {
|
div#status_pie path {
|
||||||
stroke-width: 15px !important;
|
stroke-width: 8px !important;
|
||||||
|
}
|
||||||
|
div#status_pie {
|
||||||
|
margin-bottom: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.agent_details_header {
|
.agent_details_header {
|
||||||
@ -6038,6 +6031,7 @@ div#status_pie path {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
|
padding-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.agent_details_agent_name {
|
.agent_details_agent_name {
|
||||||
@ -6056,13 +6050,15 @@ div#status_pie path {
|
|||||||
|
|
||||||
.agent_details_info {
|
.agent_details_info {
|
||||||
max-width: 45%;
|
max-width: 45%;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.agent_details_info span {
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
.agent_details_info p {
|
.agent_details_info p {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding-left: 5px;
|
|
||||||
padding-right: 5px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.agent_details_info img {
|
.agent_details_info img {
|
||||||
@ -6101,6 +6097,9 @@ div#status_pie path {
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.white_table_graph_header div#bullets_modules {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
.white_table_graph_header img,
|
.white_table_graph_header img,
|
||||||
.white_table_graph_header span {
|
.white_table_graph_header span {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
@ -6119,6 +6118,12 @@ div#status_pie path {
|
|||||||
border-bottom-right-radius: 4px;
|
border-bottom-right-radius: 4px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.white_table_graph_content div.pagination {
|
||||||
|
width: 100%;
|
||||||
|
padding: 0 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* White tables */
|
/* White tables */
|
||||||
@ -6147,10 +6152,6 @@ div#status_pie path {
|
|||||||
padding-top: 25px;
|
padding-top: 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.white_table tbody tr:last-child td {
|
|
||||||
padding-bottom: 25px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.white_table tr td:first-child,
|
.white_table tr td:first-child,
|
||||||
.white_table tr th:first-child {
|
.white_table tr th:first-child {
|
||||||
padding-left: 50px;
|
padding-left: 50px;
|
||||||
|
@ -406,8 +406,6 @@ if ($agent['url_address'] != '') {
|
|||||||
if ($agent['url_address'] != '') {
|
if ($agent['url_address'] != '') {
|
||||||
$data_opcional[] = '<a href='.$agent['url_address'].'>'.$agent['url_address'].'</a>';
|
$data_opcional[] = '<a href='.$agent['url_address'].'>'.$agent['url_address'].'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
array_push($data_opcional);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -418,8 +416,6 @@ if (!empty($addresses)) {
|
|||||||
if (!empty($addresses)) {
|
if (!empty($addresses)) {
|
||||||
$data_opcional[] = '<div style="overflow-y: scroll;">'.implode('<br>', $addresses).'</div>';
|
$data_opcional[] = '<div style="overflow-y: scroll;">'.implode('<br>', $addresses).'</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
array_push($data_opcional);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Timezone Offset.
|
// Timezone Offset.
|
||||||
@ -428,8 +424,6 @@ if ($agent['timezone_offset'] != 0) {
|
|||||||
if ($agent['timezone_offset'] != 0) {
|
if ($agent['timezone_offset'] != 0) {
|
||||||
$data_opcional[] = $agent['timezone_offset'];
|
$data_opcional[] = $agent['timezone_offset'];
|
||||||
}
|
}
|
||||||
|
|
||||||
array_push($data_opcional);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -147,44 +147,42 @@ $sort_field = get_parameter('sort_field', 'name');
|
|||||||
$sort = get_parameter('sort', 'up');
|
$sort = get_parameter('sort', 'up');
|
||||||
|
|
||||||
|
|
||||||
echo "<h4 style='padding-top:0px !important;'>";
|
|
||||||
|
|
||||||
echo ui_print_help_tip(
|
|
||||||
__('To see the list of modules paginated, enable this option in the Styles Configuration.'),
|
|
||||||
true
|
|
||||||
);
|
|
||||||
echo '<span>'.__('Full list of monitors').'</span>';
|
|
||||||
echo reporting_tiny_stats(
|
|
||||||
$agent,
|
|
||||||
true,
|
|
||||||
'modules',
|
|
||||||
':',
|
|
||||||
true
|
|
||||||
);
|
|
||||||
|
|
||||||
$modules_not_init = agents_monitor_notinit($id_agente);
|
$modules_not_init = agents_monitor_notinit($id_agente);
|
||||||
if (!empty($modules_not_init)) {
|
if (!empty($modules_not_init)) {
|
||||||
echo clippy_context_help('modules_not_init');
|
echo clippy_context_help('modules_not_init');
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '</h4>';
|
|
||||||
|
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
print_form_filter_monitors($id_agente, $status_filter_monitor, $status_text_monitor, $status_hierachy_mode);
|
print_form_filter_monitors(
|
||||||
|
$id_agente,
|
||||||
|
$status_filter_monitor,
|
||||||
|
$status_text_monitor,
|
||||||
|
$status_hierachy_mode
|
||||||
|
);
|
||||||
|
|
||||||
echo "<div id='module_list_loading'>".html_print_image('images/spinner.gif', true).'</div>';
|
echo '<div class="white_table_graph_content" id="module_list_loading">'.html_print_image('images/spinner.gif', true).'</div>';
|
||||||
echo "<div id='module_list'>".'</div>';
|
echo '<div class="white_table_graph_content" style="padding: 0;" id="module_list"></div>';
|
||||||
|
|
||||||
$html_toggle = ob_get_clean();
|
$html_toggle = ob_get_clean();
|
||||||
|
|
||||||
ui_toggle(
|
ui_toggle(
|
||||||
$html_toggle,
|
$html_toggle,
|
||||||
__('List of modules'),
|
__('List of modules').ui_print_help_tip(
|
||||||
|
__('To see the list of modules paginated, enable this option in the Styles Configuration.'),
|
||||||
|
true
|
||||||
|
).reporting_tiny_stats(
|
||||||
|
$agent,
|
||||||
|
true,
|
||||||
|
'modules',
|
||||||
|
':',
|
||||||
|
true
|
||||||
|
),
|
||||||
'status_monitor_agent',
|
'status_monitor_agent',
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var sort_field = '<?php echo $sort_field; ?>';
|
var sort_field = '<?php echo $sort_field; ?>';
|
||||||
@ -493,7 +491,8 @@ function print_form_filter_monitors(
|
|||||||
) {
|
) {
|
||||||
$form_text = '';
|
$form_text = '';
|
||||||
$table = new stdClass();
|
$table = new stdClass();
|
||||||
$table->class = 'databox filters';
|
$table->class = 'info_table';
|
||||||
|
$table->styleTable = 'width: 100%;border-radius: 0;padding: 0;margin: 0;margin-top: -1px;';
|
||||||
$table->width = '100%';
|
$table->width = '100%';
|
||||||
$table->style[0] = 'font-weight: bold;';
|
$table->style[0] = 'font-weight: bold;';
|
||||||
$table->style[2] = 'font-weight: bold;';
|
$table->style[2] = 'font-weight: bold;';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user