2011-08-18 Sergio Martin <sergio.martin@artica.es>
* operation/agentes/estado_generalagente.php: Changed the IP address view in the agent info from a useless combo to a text with the main addres and help_tip with the others git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4764 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
c35cb15176
commit
035c20ca8d
|
@ -1,3 +1,9 @@
|
||||||
|
2011-08-18 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
|
* operation/agentes/estado_generalagente.php: Changed the
|
||||||
|
IP address view in the agent info from a useless combo
|
||||||
|
to a text with the main addres and help_tip with the others
|
||||||
|
|
||||||
2011-08-17 Sancho lerena <slerena@artica.es>
|
2011-08-17 Sancho lerena <slerena@artica.es>
|
||||||
|
|
||||||
* pandoradb.oracle.sql,
|
* pandoradb.oracle.sql,
|
||||||
|
|
|
@ -83,17 +83,18 @@ $ips = array();
|
||||||
$addresses = agents_get_addresses ($id_agente);
|
$addresses = agents_get_addresses ($id_agente);
|
||||||
$address = agents_get_address($id_agente);
|
$address = agents_get_address($id_agente);
|
||||||
|
|
||||||
|
foreach($addresses as $k => $add) {
|
||||||
|
if($add == $address) {
|
||||||
|
unset($addresses[$k]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
echo $address;
|
||||||
|
|
||||||
if (!empty($addresses)) {
|
if (!empty($addresses)) {
|
||||||
$ips = $addresses;
|
ui_print_help_tip(__('Other IP addresses').': <br>'.implode('<br>',$addresses));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($address)) {
|
|
||||||
$ips = array_merge((array)agents_get_address ($id_agente), $ips);
|
|
||||||
}
|
|
||||||
|
|
||||||
$ips = array_unique($ips);
|
|
||||||
|
|
||||||
html_print_select($ips, "not_used", agents_get_address ($id_agente));
|
|
||||||
echo '</td></tr>';
|
echo '</td></tr>';
|
||||||
|
|
||||||
//OS
|
//OS
|
||||||
|
|
Loading…
Reference in New Issue