mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
#11723 Fix tree view node
This commit is contained in:
parent
676b7a9302
commit
e40c60f6c5
@ -650,16 +650,28 @@ function treeview_printTable($id_agente, $server_data=[], $no_head=false)
|
|||||||
// Agent name.
|
// Agent name.
|
||||||
$row = [];
|
$row = [];
|
||||||
$row['title'] = __('Agent name');
|
$row['title'] = __('Agent name');
|
||||||
$row['data'] = html_print_anchor(
|
if (is_metaconsole() === true) {
|
||||||
[
|
$row['data'] = html_print_anchor(
|
||||||
'href' => 'javascript:void(0)',
|
[
|
||||||
'title' => __('Click here for view this agent'),
|
'href' => 'javascript:void(0)',
|
||||||
'class' => 'font_11',
|
'title' => __('Click here for view this agent'),
|
||||||
'content' => $cellName,
|
'class' => 'font_11',
|
||||||
'onClick' => "sendHash('".$urlAgent."')",
|
'content' => $cellName,
|
||||||
],
|
'onClick' => "sendHash('".$urlAgent."')",
|
||||||
true
|
],
|
||||||
);
|
true
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
$row['data'] = html_print_anchor(
|
||||||
|
[
|
||||||
|
'href' => $urlAgent,
|
||||||
|
'title' => __('Click here for view this agent'),
|
||||||
|
'class' => 'font_11',
|
||||||
|
'content' => $cellName,
|
||||||
|
],
|
||||||
|
true
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
$table->data['name'] = $row;
|
$table->data['name'] = $row;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user