Add links to certain column text in a list view.

Misc bug fixes.
This commit is contained in:
Nate Jones
2014-06-21 03:42:09 +00:00
parent d5a9796e0f
commit 632fd2cb39
28 changed files with 203 additions and 74 deletions
+8 -7
View File
@@ -46,19 +46,20 @@
$text['label-response']['pt-pt'] = "Resposta:";
$text['label-response']['fr-fr'] = "Réponse:";
$text['button-reboot']['en-us'] = "Reboot";
$text['button-reboot']['pt-pt'] = "Reinicialização";
$text['button-reboot']['fr-fr'] = "Redémarrage";
$text['button-unregister']['en-us'] = "Unregister";
$text['button-unregister']['es-cl'] = "";
$text['button-unregister']['pt-pt'] = "";
$text['button-unregister']['fr-fr'] = "";
$text['button-reboot']['en-us'] = "Reboot";
$text['button-reboot']['es-cl'] = "Reiniciar";
$text['button-reboot']['pt-pt'] = "Reinicialização";
$text['button-reboot']['fr-fr'] = "Redémarrage";
$text['button-check_sync']['en-us'] = "Check Sync";
$text['button-check_sync']['es-cl'] = "Compruebe Sync";
$text['button-check_sync']['pt-pt'] = "Sincronização";
$text['button-check_sync']['fr-fr'] = "Contrôle Sync";
$text['button-provision']['en-us'] = "Provision";
$text['button-provision']['es-cl'] = "";
$text['button-provision']['pt-pt'] = "";
$text['button-provision']['fr-fr'] = "";
$text['label-message']['en-us'] = "Message";
$text['label-message']['es-cl'] = "Mensaje";
@@ -160,9 +160,10 @@ require_once "resources/check_auth.php";
echo " <td class='".$row_style[$c]."'><a href='http://".$row['network-ip']."' target='_blank'>".$row['network-ip']."</a>&nbsp;</td>\n";
echo " <td class='".$row_style[$c]."'>".$row['network-port']."&nbsp;</td>\n";
echo " <td class='".$row_style[$c]."'>".$row['status']."&nbsp;</td>\n";
echo " <td class='".$row_style[$c]."' style='text-align: right;'>\n";
echo " <input type='button' class='btn' value='".$text['button-reboot']."' onclick=\"document.location.href='cmd.php?cmd=reboot&profile=".$sip_profile_name."&user=".$row['user']."&domain=".$row['sip-auth-realm']."&agent=".urlencode($row['agent'])."';\" />\n";
echo " <input type='button' class='btn' value='".$text['button-check_sync']."' onclick=\"document.location.href='cmd.php?cmd=check_sync&profile=".$sip_profile_name."&user=".$row['user']."&domain=".$row['sip-auth-realm']."&agent=".urlencode($row['agent'])."';\" />\n";
echo " <td class='".$row_style[$c]."' style='text-align: right;' nowrap='nowrap'>\n";
echo " <input type='button' class='btn' value='".$text['button-unregister']."' onclick=\"document.location.href='cmd.php?cmd=reboot&profile=".$sip_profile_name."&user=".$row['user']."&domain=".$row['sip-auth-realm']."&agent=".urlencode($row['agent'])."';\" />\n";
echo " <input type='button' class='btn' value='".$text['button-provision']."' onclick=\"document.location.href='cmd.php?cmd=check_sync&profile=".$sip_profile_name."&user=".$row['user']."&domain=".$row['sip-auth-realm']."&agent=".urlencode($row['agent'])."';\" />\n";
echo " <input type='button' class='btn' value='".$text['button-reboot']."' disabled='disabled' onclick=\"\" />\n";
echo " </td>\n";
echo "</tr>\n";
if ($c==0) { $c=1; } else { $c=0; }