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 f1b8be9cda
commit fd5f2b8630
28 changed files with 203 additions and 74 deletions

View File

@ -26,6 +26,16 @@
$text['confirm-delete-info']['pt-pt'] = "Deseja realmente remover isto?";
$text['confirm-delete-info']['fr-fr'] = "Voulez-vous vraiment supprimer cela?";
$text['button-edit']['en-us'] = "Edit";
$text['button-edit']['es-cl'] = "Editar";
$text['button-edit']['pt-pt'] = "Editar";
$text['button-edit']['fr-fr'] = "Editer";
$text['button-delete']['en-us'] = "Delete";
$text['button-delete']['es-cl'] = "Eliminar";
$text['button-delete']['pt-pt'] = "Remover";
$text['button-delete']['fr-fr'] = "Supprimer";
//v_call_broadcast_delete
$text['confirm-delete']['en-us'] = "Delete Complete";
$text['confirm-delete']['es-cl'] = "Eliminación Completa";

View File

@ -38,7 +38,7 @@ else {
//add multi-lingual support
require_once "app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
//add the includes
@ -74,9 +74,9 @@ else {
$rows_per_page = 10;
$param = "";
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }
list($paging_controls, $rows_per_page, $var_3) = paging($num_rows, $param, $rows_per_page);
$offset = $rows_per_page * $page;
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }
list($paging_controls, $rows_per_page, $var_3) = paging($num_rows, $param, $rows_per_page);
$offset = $rows_per_page * $page;
$sql = "select * from v_call_broadcasts ";
$sql .= "where domain_uuid = '$domain_uuid' ";
@ -99,9 +99,9 @@ else {
echo th_order_by('broadcast_concurrent_limit', $text['label-concurrent-limit'], $order_by, $order);
echo th_order_by('broadcast_description', $text['label-description'], $order_by, $order);
//echo th_order_by('recordingid', 'Recording', $order_by, $order);
echo "<td align='right' width='42'>\n";
echo "<td class='list_control_icons'>";
if (permission_exists('call_broadcast_add')) {
echo " <a href='call_broadcast_edit.php' alt='add'>$v_link_label_add</a>\n";
echo "<a href='call_broadcast_edit.php' alt='add'>$v_link_label_add</a>";
}
echo "</td>\n";
echo "<tr>\n";
@ -109,16 +109,23 @@ else {
if ($result_count > 0) {
foreach($result as $row) {
echo "<tr >\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['broadcast_name']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>";
if (permission_exists('call_broadcast_edit')) {
echo "<a href='call_broadcast_edit.php?id=".$row['call_broadcast_uuid']."'>".$row['broadcast_name']."</a>";
}
else {
echo $row['broadcast_name'];
}
echo " </td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['broadcast_concurrent_limit']."&nbsp;</td>\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['recordingid']."</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['broadcast_description']."&nbsp;</td>\n";
echo " <td valign='top' align='right'>\n";
echo " <td class='list_control_icons'>";
if (permission_exists('call_broadcast_edit')) {
echo " <a href='call_broadcast_edit.php?id=".$row['call_broadcast_uuid']."' alt='edit'>$v_link_label_edit</a>\n";
echo "<a href='call_broadcast_edit.php?id=".$row['call_broadcast_uuid']."' alt='".$text['button-edit']."'>$v_link_label_edit</a>";
}
if (permission_exists('call_broadcast_delete')) {
echo " <a href='call_broadcast_delete.php?id=".$row['call_broadcast_uuid']."' alt='delete' onclick=\"return confirm('".$text['confirm-delete-info']."')\">$v_link_label_delete</a>\n";
echo "<a href='call_broadcast_delete.php?id=".$row['call_broadcast_uuid']."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete-info']."')\">$v_link_label_delete</a>";
}
echo " </td>\n";
echo "</tr>\n";
@ -134,9 +141,9 @@ else {
echo " <tr>\n";
echo " <td width='33.3%' nowrap>&nbsp;</td>\n";
echo " <td width='33.3%' align='center' nowrap>$paging_controls</td>\n";
echo " <td width='33.3%' align='right'>\n";
echo " <td class='list_control_icons'>";
if (permission_exists('call_broadcast_add')) {
echo " <a href='call_broadcast_edit.php' alt='add'>$v_link_label_add</a>\n";
echo "<a href='call_broadcast_edit.php' alt='add'>$v_link_label_add</a>";
}
echo " </td>\n";
echo " </tr>\n";

View File

@ -140,7 +140,14 @@ require_once "resources/paging.php";
foreach($result as $row) {
echo "<tr >\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row[domain_uuid]."</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row[agent_name]."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>";
if (permission_exists('call_center_agent_edit')) {
echo "<a href='call_center_agent_edit.php?id=".$row[call_center_agent_uuid]."'>".$row[agent_name]."</a>";
}
else {
echo $row[agent_name];
}
echo " </td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row[agent_type]."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row[agent_call_timeout]."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row[agent_contact]."&nbsp;</td>\n";

View File

@ -139,7 +139,14 @@ require_once "resources/paging.php";
if ($result_count > 0) {
foreach($result as $row) {
echo "<tr >\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row[queue_name]."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>";
if (permission_exists('call_center_queue_edit')) {
echo "<a href='call_center_queue_edit.php?id=".$row[call_center_queue_uuid]."'>".$row[queue_name]."</a>";
}
else {
echo $row[queue_name];
}
echo " </td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row[queue_extension]."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row[queue_strategy]."&nbsp;</td>\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row[queue_moh_sound]."&nbsp;</td>\n";
@ -147,13 +154,13 @@ require_once "resources/paging.php";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row[queue_time_base_score]."&nbsp;</td>\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row[queue_max_wait_time]."&nbsp;</td>\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row[queue_max_wait_time_with_no_agent]."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row[queue_tier_rules_apply]."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".ucwords($row[queue_tier_rules_apply])."&nbsp;</td>\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row[queue_tier_rule_wait_second]."&nbsp;</td>\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row[queue_tier_rule_no_agent_no_wait]."&nbsp;</td>\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row[queue_discard_abandoned_after]."&nbsp;</td>\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row[queue_abandoned_resume_allowed]."&nbsp;</td>\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row[queue_tier_rule_wait_multiply_level]."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row[queue_description]."&nbsp;</td>\n";
echo " <td valign='top' class='row_stylebg'>".$row[queue_description]."&nbsp;</td>\n";
echo " <td class='list_control_icons'>";
if (permission_exists('call_center_queue_edit')) {
echo "<a href='call_center_queue_edit.php?id=".$row[call_center_queue_uuid]."' alt='".$text['button-edit']."'>$v_link_label_edit</a>";

View File

@ -4,6 +4,11 @@
$text['button-edit']['fr-fr'] = "Editer";
$text['button-edit']['pt-pt'] = "Editar";
$text['button-view']['en-us'] = "View";
$text['button-view']['es-cl'] = "Ver";
$text['button-view']['pt-pt'] = "Vista";
$text['button-view']['fr-fr'] = "Voir";
$text['description-active_call_center']['en-us'] = "Select a Call Center Queue from the list below to view its activity.";
$text['description-active_call_center']['es-cl'] = "Seleccione la Cola del Centro de Llamados desde el siguiente listado para ver su actividad.";
$text['description-active_call_center']['fr-fr'] = "Choisir une file d'attente dans la liste pour voir son activité.";

View File

@ -116,7 +116,7 @@ $order = $_GET["order"];
//echo th_order_by('queue_abandoned_resume_allowed', $text['label-abandoned_resume_allowed'], $order_by, $order);
//echo th_order_by('queue_tier_rule_wait_multiply_level', $text['label-tier_rule_wait_multiply_level'], $order_by, $order);
echo th_order_by('queue_description', $text['label-description'], $order_by, $order);
echo "<td align='right' width='42'>\n";
echo "<td class='list_control_icons'>\n";
//echo " <a href='call_center_queue_edit.php' alt='add'>$v_link_label_add</a>\n";
echo "</td>\n";
echo "<tr>\n";
@ -126,7 +126,7 @@ $order = $_GET["order"];
else { //received results
foreach($result as $row) {
echo "<tr >\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row[queue_name]."</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'><a href='".PROJECT_PATH."/app/call_center_active/call_center_active.php?queue_name=".$row[queue_name]."'>".$row[queue_name]."</a></td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row[queue_extension]."</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row[queue_strategy]."</td>\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row[queue_moh_sound]."</td>\n";
@ -140,9 +140,9 @@ $order = $_GET["order"];
//echo " <td valign='top' class='".$row_style[$c]."'>".$row[queue_discard_abandoned_after]."</td>\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row[queue_abandoned_resume_allowed]."</td>\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row[queue_tier_rule_wait_multiply_level]."</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row[queue_description]."&nbsp;</td>\n";
echo " <td valign='top' align='right'>\n";
echo " <a href='".PROJECT_PATH."/app/call_center_active/call_center_active.php?queue_name=".$row[queue_name]."' alt='".$text['button-edit']."'>$v_link_label_edit</a>\n";
echo " <td valign='top' class='row_stylebg'>".$row[queue_description]."&nbsp;</td>\n";
echo " <td class='list_control_icons'>\n";
echo " <a href='".PROJECT_PATH."/app/call_center_active/call_center_active.php?queue_name=".$row[queue_name]."' alt='".$text['button-view']."'>$v_link_label_view</a>\n";
//echo " <a href='call_center_queue_delete.php?id=".$row[call_center_queue_uuid]."' alt='delete' onclick=\"return confirm('Do you really want to delete this?')\">$v_link_label_delete</a>\n";
//echo " <input type='button' class='btn' name='' alt='edit' onclick=\"window.location='call_center_queue_edit.php?id=".$row[call_center_queue_uuid]."'\" value='e'>\n";
//echo " <input type='button' class='btn' name='' alt='delete' onclick=\"if (confirm('Are you sure you want to delete this?')) { window.location='call_center_queue_delete.php?id=".$row[call_center_queue_uuid]."' }\" value='x'>\n";

View File

@ -127,10 +127,10 @@ else {
$sql .= "and u.user_uuid = '".$_SESSION['user_uuid']."' ";
}
if (strlen($order_by) == 0) {
$sql .= "order by conference_center_name asc ";
$sql .= "order by conference_center_name asc ";
}
else {
$sql .= "order by $order_by $order ";
$sql .= "order by $order_by $order ";
}
$sql .= "limit $rows_per_page offset $offset ";
$prep_statement = $db->prepare(check_sql($sql));
@ -166,10 +166,17 @@ else {
$conference_center_name = $row['conference_center_name'];
$conference_center_name = str_replace("-", " ", $conference_center_name);
echo "<tr >\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$conference_center_name."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>";
if (permission_exists('conference_center_edit')) {
echo "<a href='conference_center_edit.php?id=".$row['conference_center_uuid']."'>".$conference_center_name."</a>";
}
else {
echo $conference_center_name;
}
echo " </td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['conference_center_extension']."&nbsp;</td>\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['conference_center_order']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['conference_center_enabled']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".ucwords($row['conference_center_enabled'])."&nbsp;</td>\n";
echo " <td valign='top' class='row_stylebg' width='35%'>".$row['conference_center_description']."&nbsp;</td>\n";
echo " <td class='list_control_icons'>";
if (permission_exists('conference_center_edit')) {

View File

@ -293,12 +293,11 @@ else {
echo " <td valign='middle' class='".$row_style[$c]."'>";
if ($row['mute'] == "true") {
echo " <a href=\"?conference_room_uuid=".$row['conference_room_uuid']."&mute=false\">".$text['label-true']."</a>";
echo " <a href=\"?conference_room_uuid=".$row['conference_room_uuid']."&mute=false\">".$text['label-true']."</a>&nbsp;";
}
else {
echo " <a href=\"?conference_room_uuid=".$row['conference_room_uuid']."&mute=true\">".$text['label-false']."</a>";
echo " <a href=\"?conference_room_uuid=".$row['conference_room_uuid']."&mute=true\">".$text['label-false']."</a>&nbsp;";
}
echo " &nbsp;\n";
echo " </td>\n";
echo " <td valign='middle' class='".$row_style[$c]."'>";

View File

@ -205,9 +205,9 @@ require_once "resources/paging.php";
foreach($result as $row) {
echo "<tr >\n";
echo " <td valign='top' class='".$row_style[$c]."'>".ucwords($row['contact_type'])."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['contact_organization']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['contact_name_given']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['contact_name_family']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'><a href='contact_edit.php?id=".$row['contact_uuid']."&query_string=".urlencode($_SERVER["QUERY_STRING"])."'>".$row['contact_organization']."</a>&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'><a href='contact_edit.php?id=".$row['contact_uuid']."&query_string=".urlencode($_SERVER["QUERY_STRING"])."'>".$row['contact_name_given']."</a>&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'><a href='contact_edit.php?id=".$row['contact_uuid']."&query_string=".urlencode($_SERVER["QUERY_STRING"])."'>".$row['contact_name_family']."</a>&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['contact_nickname']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['contact_title']."&nbsp;</td>\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['contact_category']."&nbsp;</td>\n";

View File

@ -262,7 +262,7 @@ else {
echo " <td valign='top' class='".$row_style[$c]."'>".((strlen($row['dialplan_number']) > 0) ? $row['dialplan_number'] : "&nbsp;")."</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['dialplan_context']."</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['dialplan_order']."</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['dialplan_enabled']."</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".ucwords($row['dialplan_enabled'])."</td>\n";
echo " <td valign='top' class='row_stylebg' width='30%'>".((strlen($row['dialplan_description']) > 0) ? $row['dialplan_description'] : "&nbsp;")."</td>\n";
echo " <td class='list_control_icons'>\n";
if (

View File

@ -60,6 +60,16 @@
$text['description-upload']['pt-pt'] = "Selecione o ficheiro a carregar para enviar por fax.";
$text['description-upload']['fr-fr'] = "Choisir un fichier à télécharger pour être émis en tant que Fax.";
$text['button-edit']['en-us'] = "Edit";
$text['button-edit']['es-cl'] = "Editar";
$text['button-edit']['pt-pt'] = "Editar";
$text['button-edit']['fr-fr'] = "Editer";
$text['button-delete']['en-us'] = "Delete";
$text['button-delete']['es-cl'] = "Eliminar";
$text['button-delete']['pt-pt'] = "Remover";
$text['button-delete']['fr-fr'] = "Supprimer";
$text['button-back']['en-us'] = "Back";
$text['button-back']['es-cl'] = "Volver";
$text['button-back']['pt-pt'] = "Voltar";

View File

@ -145,16 +145,23 @@ require_once "resources/paging.php";
$row['fax_email'] = str_replace("\\", "", $row['fax_email']);
//show the fax extensions
echo "<tr >\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['fax_name']."</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>";
if (permission_exists('fax_extension_edit')) {
echo "<a href='fax_view.php?id=".$row['fax_uuid']."'>".$row['fax_name']."</a>";
}
else {
echo $row['fax_name'];
}
echo " </td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['fax_extension']."</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['fax_email']."&nbsp;</td>\n";
echo " <td valign='top' class='row_stylebg' width='35%'>".$row['fax_description']."&nbsp;</td>\n";
echo " <td class='list_control_icons'>";
if (permission_exists('fax_extension_edit')) {
echo "<a href='fax_view.php?id=".$row['fax_uuid']."' alt='edit'>$v_link_label_edit</a>";
echo "<a href='fax_view.php?id=".$row['fax_uuid']."' alt='".$text['button-edit']."'>$v_link_label_edit</a>";
}
if (permission_exists('fax_extension_delete')) {
echo "<a href='fax_delete.php?id=".$row['fax_uuid']."' alt='delete' onclick=\"return confirm('".$text['message-confirm-delete']."')\">$v_link_label_delete</a>";
echo "<a href='fax_delete.php?id=".$row['fax_uuid']."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['message-confirm-delete']."')\">$v_link_label_delete</a>";
}
echo " </td>\n";
echo "</tr>\n";

View File

@ -60,6 +60,11 @@
$text['label-view']['pt-pt'] = "Vista";
$text['label-view']['fr-fr'] = "Voir";
$text['button-view']['en-us'] = "View";
$text['button-view']['es-cl'] = "Ver";
$text['button-view']['pt-pt'] = "Vista";
$text['button-view']['fr-fr'] = "Voir";
$text['label-username']['en-us'] = "Username";
$text['label-username']['es-cl'] = "Nombre de Usuario";
$text['label-username']['pt-pt'] = "Nome de Utilizador";

View File

@ -40,6 +40,10 @@ else {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
//echo PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/config.php";
//exit;
include_once("themes/".$_SESSION['domain']['template']['name']."/config.php");
$switch_cmd = 'fifo list';
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
if ($fp) {
@ -79,7 +83,7 @@ if ($fp) {
echo "<th>".$text['label-caller_count']."</th>\n";
echo "<th>".$text['label-waiting_count']."</th>\n";
echo "<th>".$text['label-importance']."</th>\n";
echo "<th>&nbsp;</th>\n";
echo "<td class='list_control_icons'></td>\n";
echo "</tr>\n";
foreach ($xml->fifo as $row) {
@ -97,24 +101,24 @@ if ($fp) {
if (if_group("superadmin")) {
//show all fifo queues
echo "<tr>\n";
echo "<td valign='top' class='".$row_style[$c]."'>".$tmp_name."</td>\n";
echo "<td valign='top' class='".$row_style[$c]."'><a href='fifo_interactive.php?c=".$name."'>".$tmp_name."</a></td>\n";
echo "<td valign='top' class='".$row_style[$c]."'>".$consumer_count."</td>\n";
echo "<td valign='top' class='".$row_style[$c]."'>".$caller_count."</td>\n";
echo "<td valign='top' class='".$row_style[$c]."'>".$waiting_count."</td>\n";
echo "<td valign='top' class='".$row_style[$c]."'>".$importance."</td>\n";
echo "<td valign='top' class='".$row_style[$c]."'><a href='fifo_interactive.php?c=".$name."'>".$text['label-view']."</a></td>\n";
echo "<td valign='top' class='list_control_icons'><a href='fifo_interactive.php?c=".$name."' alt='".$text['button-view']."'>$v_link_label_view</a></td>\n";
echo "</tr>\n";
}
else {
//show only the fifo queues that match the domain_name
if (stripos($name, $_SESSION['domain_name']) !== false) {
echo "<tr>\n";
echo "<td valign='top' class='".$row_style[$c]."'>".$tmp_name."</td>\n";
echo "<td valign='top' class='".$row_style[$c]."'><a href='fifo_interactive.php?c=".$name."'>".$tmp_name."</a></td>\n";
echo "<td valign='top' class='".$row_style[$c]."'>".$consumer_count."</td>\n";
echo "<td valign='top' class='".$row_style[$c]."'>".$caller_count."</td>\n";
echo "<td valign='top' class='".$row_style[$c]."'>".$waiting_count."</td>\n";
echo "<td valign='top' class='".$row_style[$c]."'>".$importance."</td>\n";
echo "<td valign='top' class='".$row_style[$c]."'><a href='fifo_interactive.php?c=".$name."'>".$text['label-view']."</a></td>\n";
echo "<td valign='top' class='list_control_icons'><a href='fifo_interactive.php?c=".$name."' alt='".$text['button-view']."'>$v_link_label_view</a></td>\n";
echo "</tr>\n";
}
}

View File

@ -287,7 +287,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo "<td class='vncellreq' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-unique_id'].":\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";

View File

@ -131,7 +131,14 @@ require_once "resources/paging.php";
if ($result_count > 0) {
foreach($result as $row) {
echo "<tr >\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['extension']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>";
if (permission_exists('extension_edit')) {
echo "<a href='extension_edit.php?id=".$row['extension_uuid']."'>".$row['extension']."</a>";
}
else {
echo $row['extension'];
}
echo " </td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['unique_id']."&nbsp;</td>\n";
if (strlen($row['dial_user']) > 0) {
echo " <td valign='top' class='".$row_style[$c]."'>".$row['dial_user']."@".$row['dial_domain']."&nbsp;</td>\n";

View File

@ -127,10 +127,17 @@ else {
foreach($result as $row) {
$ivr_menu_name = str_replace("-", " ", $row['ivr_menu_name']);
echo "<tr >\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$ivr_menu_name."</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>";
if (permission_exists('ivr_menu_edit')) {
echo "<a href='ivr_menu_edit.php?id=".$row['ivr_menu_uuid']."'>".$ivr_menu_name."</a>";
}
else {
echo $ivr_menu_name;
}
echo " </td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['ivr_menu_extension']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['ivr_menu_direct_dial']."</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['ivr_menu_enabled']."</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".ucwords($row['ivr_menu_direct_dial'])."</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".ucwords($row['ivr_menu_enabled'])."</td>\n";
echo " <td valign='top' class='row_stylebg'>".$row['ivr_menu_description']."&nbsp;</td>\n";
echo " <td class='list_control_icons'>";
if (permission_exists('ivr_menu_edit')) {

View File

@ -247,7 +247,7 @@ require_once "resources/paging.php";
echo " <td class='".$row_style[$c]."'>\n";
echo " ".$tmp_filesize;
echo " </td>\n";
echo " <td valign='top' class='".$row_style[$c]."' width='30%'>".$row['recording_description']."&nbsp;</td>\n";
echo " <td valign='top' class='row_stylebg' width='30%'>".$row['recording_description']."&nbsp;</td>\n";
echo " <td class='list_control_icons'>";
if (permission_exists('recording_edit')) {
echo "<a href='recording_edit.php?id=".$row['recording_uuid']."' alt='edit'>$v_link_label_edit</a>";

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";

View File

@ -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; }

View File

@ -379,4 +379,14 @@
$text['title']['fr-fr'] = "Groupes de Sonnerie";
$text['title']['pt-pt'] = "Grupos";
$text['button-edit']['en-us'] = "Edit";
$text['button-edit']['es-cl'] = "Editar";
$text['button-edit']['pt-pt'] = "Editar";
$text['button-edit']['fr-fr'] = "Editer";
$text['button-delete']['en-us'] = "Delete";
$text['button-delete']['es-cl'] = "Eliminar";
$text['button-delete']['pt-pt'] = "Remover";
$text['button-delete']['fr-fr'] = "Supprimer";
?>

View File

@ -127,7 +127,7 @@ require_once "resources/paging.php";
//echo th_order_by('ring_group_timeout_app', 'Timeout App', $order_by, $order);
//echo th_order_by('ring_group_timeout_data', 'Timeout Data', $order_by, $order);
echo th_order_by('ring_group_enabled', $text['label-enabled'], $order_by, $order);
echo th_order_by('ring_group_description', $text['label-description'], $order_by, $order);
echo th_order_by('ring_group_description', $text['header-description'], $order_by, $order);
echo "<td class='list_control_icons'>";
if (permission_exists('ring_group_add')) {
echo "<a href='ring_group_edit.php' alt='add'>$v_link_label_add</a>";
@ -138,21 +138,28 @@ require_once "resources/paging.php";
if ($result_count > 0) {
foreach($result as $row) {
echo "<tr >\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['ring_group_name']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>";
if (permission_exists('ring_group_edit')) {
echo "<a href='ring_group_edit.php?id=".$row['ring_group_uuid']."'>".$row['ring_group_name']."</a>";
}
else {
echo $row['ring_group_name'];
}
echo " </td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['ring_group_extension']."&nbsp;</td>\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['ring_group_context']."&nbsp;</td>\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['ring_group_strategy']."&nbsp;</td>\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['ring_group_timeout_sec']."&nbsp;</td>\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['ring_group_timeout_app']."&nbsp;</td>\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['ring_group_timeout_data']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['ring_group_enabled']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".ucwords($row['ring_group_enabled'])."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['ring_group_description']."&nbsp;</td>\n";
echo " <td class='list_control_icons'>";
if (permission_exists('ring_group_edit')) {
echo "<a href='ring_group_edit.php?id=".$row['ring_group_uuid']."' alt='edit'>$v_link_label_edit</a>";
echo "<a href='ring_group_edit.php?id=".$row['ring_group_uuid']."' alt='".$text['button-edit']."'>$v_link_label_edit</a>";
}
if (permission_exists('ring_group_delete')) {
echo "<a href='ring_group_delete.php?id=".$row['ring_group_uuid']."' alt='delete' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>";
echo "<a href='ring_group_delete.php?id=".$row['ring_group_uuid']."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>";
}
echo " </td>\n";
echo "</tr>\n";

View File

@ -190,12 +190,12 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "<tr>\n";
echo "<td align='left' width='30%' nowrap='nowrap'><b>".$text['header-schema']."</b></td>\n";
echo "<td width='70%' align='right'>\n";
echo " <input type='button' class='btn' name='' alt='".$text['button-back']."' onclick=\"window.location='schemas.php'\" value='".$text['button-back']."'>\n";
if (strlen($schema_uuid) > 0) {
echo " <input type='button' class='btn' name='' alt='".$text['button-view']."' onclick=\"window.location='schema_data_view.php?id=".$row["schema_uuid"]."'\" value='".$text['button-view']."'>&nbsp;&nbsp;\n";
echo " <input type='button' class='btn' name='' alt='".$text['button-import']."' onclick=\"window.location='schema_import.php?id=".$row["schema_uuid"]."'\" value='".$text['button-import']."'>&nbsp;&nbsp;\n";
echo " <input type='button' class='btn' name='' alt='".$text['button-view']."' onclick=\"window.location='schema_data_view.php?id=".$row["schema_uuid"]."'\" value='".$text['button-view']."'>\n";
echo " <input type='button' class='btn' name='' alt='".$text['button-import']."' onclick=\"window.location='schema_import.php?id=".$row["schema_uuid"]."'\" value='".$text['button-import']."'>\n";
}
include "export/index.php";
echo " <input type='button' class='btn' name='' alt='".$text['button-back']."' onclick=\"window.location='schemas.php'\" value='".$text['button-back']."'>\n";
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
echo "</td>\n";
echo "</tr>\n";

View File

@ -102,7 +102,14 @@ $order = $_GET["order"];
foreach($result as $row) {
echo "<tr >\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['field_label']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['field_name']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>";
if (permission_exists('schema_edit')) {
echo "<a href='schema_field_edit.php?schema_uuid=".$row['schema_uuid']."&id=".$row['schema_field_uuid']."'>".$row['field_name']."</a>";
}
else {
echo $row['field_name'];
}
echo " </td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>";
switch ($row['field_type']) {
case "text" : echo $text['option-text']; break;

View File

@ -120,7 +120,14 @@ require_once "resources/paging.php";
foreach($result as $row) {
echo "<tr >\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['schema_label']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['schema_name']."</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>";
if (permission_exists('schema_edit')) {
echo "<a href='schema_edit.php?id=".$row['schema_uuid']."'>".$row['schema_name']."</a>";
}
else {
echo $row['schema_name'];
}
echo " </td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>";
if ($row['schema_auth'] == 'yes') {
echo $text['option-true'];

View File

@ -138,9 +138,9 @@ if (strlen($_GET["a"]) > 0) {
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo th_order_by('service_name', 'Name', $order_by, $order);
echo th_order_by('service_description', 'Description', $order_by, $order);
echo "<th>Status</th>\n";
echo "<th>Action</th>\n";
echo th_order_by('service_description', 'Description', $order_by, $order);
echo "<td class='list_control_icons'>";
if (permission_exists('service_add')) {
echo "<a href='service_edit.php' alt='add'>$v_link_label_add</a>";
@ -154,8 +154,14 @@ if (strlen($_GET["a"]) > 0) {
else { //received results
foreach($result as $row) {
echo "<tr >\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row[service_name]."</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row[service_description]."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>";
if (permission_exists('service_edit')) {
echo "<a href='service_edit.php?id=".$row[service_uuid]."'>".$row[service_name]."</a>";
}
else {
echo $row[service_name];
}
echo " </td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>\n";
$pid = file_get_contents($row[service_data]);
if (is_process_running($pid)) {
@ -173,6 +179,7 @@ if (strlen($_GET["a"]) > 0) {
echo " <a href='services.php?id=".$row[service_uuid]."&a=start' alt='start'>Start</a>";
}
echo "</td>\n";
echo " <td valign='top' class='row_stylebg'>".$row[service_description]."&nbsp;</td>\n";
echo " <td class='list_control_icons'>";
if (permission_exists('service_edit')) {
echo "<a href='service_edit.php?id=".$row[service_uuid]."' alt='edit'>$v_link_label_edit</a>";

View File

@ -198,18 +198,25 @@ else {
if ($result_count > 0) {
foreach($result as $row) {
echo "<tr >\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['voicemail_id']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>";
if (permission_exists('voicemail_edit')) {
echo "<a href='voicemail_edit.php?id=".$row['voicemail_uuid']."'>".$row['voicemail_id']."</a>";
}
else {
echo $row['voicemail_id'];
}
echo " </td>\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['voicemail_password']."&nbsp;</td>\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['greeting_id']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['voicemail_mail_to']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['voicemail_attach_file']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['voicemail_local_after_email']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".ucwords($row['voicemail_attach_file'])."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".ucwords($row['voicemail_local_after_email'])."&nbsp;</td>\n";
//echo " <td valign='top' class='".$row_style[$c]."'>&nbsp;</td>\n";
echo " <td valign='middle' class='".$row_style[$c]."' style='white-space: nowrap;'>\n";
echo " <a href='voicemail_messages.php?id=".$row['voicemail_uuid']."'>".$text['label-view']."</a>&nbsp;&nbsp;\n";
echo " <a href='".PROJECT_PATH."/app/voicemail_greetings/voicemail_greetings.php?id=".$row['voicemail_id']."'>".$text['label-greetings']."</a>\n";
echo " </td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['voicemail_enabled']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".ucwords($row['voicemail_enabled'])."&nbsp;</td>\n";
echo " <td valign='top' class='row_stylebg' width='30%'>".$row['voicemail_description']."&nbsp;</td>\n";
echo " <td class='list_control_icons'>";
if (permission_exists('voicemail_edit')) {

View File

@ -4,6 +4,6 @@
$v_link_label_edit = "<img src='".PROJECT_PATH."/themes/enhanced/images/icon_edit.png' class='list_control_icon'>";
$v_link_label_add = "<img src='".PROJECT_PATH."/themes/enhanced/images/icon_add.png' class='list_control_icon'>";
$v_link_label_delete = "<img src='".PROJECT_PATH."/themes/enhanced/images/icon_delete.png' class='list_control_icon'>";
$v_link_label_view = "<img src='".PROJECT_PATH."/themes/enhanced/images/icon_view.gif' class='list_control_icon'>";
$v_link_label_view = "<img src='".PROJECT_PATH."/themes/enhanced/images/icon_view.png' class='list_control_icon'>";
?>