Usability Enhancement: Click on list rows to View/Edit items.
Misc other fixes.
This commit is contained in:
parent
fff50d15e6
commit
d674dc677a
|
|
@ -746,7 +746,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
*/
|
||||
echo "</td>\n";
|
||||
//tools
|
||||
echo " <td style='width:55px;' nowrap='nowrap'>\n";
|
||||
echo " <td class='list_control_icon'>\n";
|
||||
if ($element['hidden']) {
|
||||
//echo " <a href='dialplan_detail_edit.php?id=".$dialplan_detail_uuid."&dialplan_uuid=".$dialplan_uuid."&app_uuid=".$app_uuid."' alt='".$text['button-edit']."'>$v_link_label_edit</a>\n";
|
||||
echo " <a href='dialplan_detail_delete.php?id=".$dialplan_detail_uuid."&dialplan_uuid=".$dialplan_uuid."&app_uuid=".$app_uuid."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>\n";
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ require_once "resources/paging.php";
|
|||
$row_style["1"] = "row_style1";
|
||||
|
||||
echo "<div align='center'>\n";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo th_order_by('fax_name', $text['label-name'], $order_by, $order);
|
||||
echo th_order_by('fax_extension', $text['label-extension'], $order_by, $order);
|
||||
|
|
@ -137,14 +137,15 @@ require_once "resources/paging.php";
|
|||
echo " <a href='fax_edit.php' alt='add'>$v_link_label_add</a>\n";
|
||||
}
|
||||
echo "</td>\n";
|
||||
echo "<tr>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
if ($result_count > 0) {
|
||||
foreach($result as $row) {
|
||||
//remove the backslash
|
||||
$row['fax_email'] = str_replace("\\", "", $row['fax_email']);
|
||||
//show the fax extensions
|
||||
echo "<tr >\n";
|
||||
$tr_link = (permission_exists('fax_extension_edit')) ? "href='fax_view.php?id=".$row['fax_uuid']."'" : null;
|
||||
echo "<tr ".$tr_link.">\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>";
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ require_once "resources/paging.php";
|
|||
$row_style["1"] = "row_style1";
|
||||
|
||||
echo "<div align='center'>\n";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo th_order_by('extension', $text['label-extension'], $order_by, $order);
|
||||
echo th_order_by('unique_id', $text['label-unique_id'], $order_by, $order);
|
||||
|
|
@ -126,11 +126,12 @@ require_once "resources/paging.php";
|
|||
echo "<a href='extension_edit.php' alt='".$text['message-add']."'>$v_link_label_add</a>";
|
||||
}
|
||||
echo "</td>\n";
|
||||
echo "<tr>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
if ($result_count > 0) {
|
||||
foreach($result as $row) {
|
||||
echo "<tr >\n";
|
||||
$tr_link = (permission_exists('extension_edit')) ? "href='extension_edit.php?id=".$row['extension_uuid']."'" : null;
|
||||
echo "<tr ".$tr_link.">\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>";
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ else {
|
|||
$row_style["1"] = "row_style1";
|
||||
|
||||
echo "<div align='center'>\n";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo th_order_by('ivr_menu_name', $text['label-name'], $order_by[0]['name'], $order_by[0]['order']);
|
||||
echo th_order_by('ivr_menu_extension', $text['label-extension'], $order_by[0]['name'], $order_by[0]['order']);
|
||||
|
|
@ -121,12 +121,13 @@ else {
|
|||
echo "<a href='ivr_menu_edit.php' alt='".$text['button-add']."'>$v_link_label_add</a>";
|
||||
}
|
||||
echo "</td>\n";
|
||||
echo "<tr>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
if ($result_count > 0) {
|
||||
foreach($result as $row) {
|
||||
$ivr_menu_name = str_replace("-", " ", $row['ivr_menu_name']);
|
||||
echo "<tr >\n";
|
||||
$tr_link = (permission_exists('ivr_menu_edit')) ? "href='ivr_menu_edit.php?id=".$row['ivr_menu_uuid']."'" : null;
|
||||
echo "<tr ".$tr_link.">\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>";
|
||||
|
|
|
|||
|
|
@ -87,6 +87,16 @@
|
|||
$text['message-available-to-all']['pt-pt'] = "Disponível para todos os domínios";
|
||||
$text['message-available-to-all']['fr-fr'] = "Disponible pour tous Domaines";
|
||||
|
||||
$text['label-file_name']['en-us'] = "File Name";
|
||||
$text['label-file_name']['es-cl'] = "Nombre del Archivo";
|
||||
$text['label-file_name']['pt-pt'] = "Nome do Arquivo";
|
||||
$text['label-file_name']['fr-fr'] = "Nom du Fichier";
|
||||
|
||||
$text['label-tools']['en-us'] = "Tools";
|
||||
$text['label-tools']['es-cl'] = "Instrumentos";
|
||||
$text['label-tools']['pt-pt'] = "Ferramentas";
|
||||
$text['label-tools']['fr-fr'] = "Outils";
|
||||
|
||||
$text['label-download']['en-us'] = "Download";
|
||||
$text['label-download']['es-cl'] = "Descargar";
|
||||
$text['label-download']['pt-pt'] = "Descarregar";
|
||||
|
|
@ -94,7 +104,7 @@
|
|||
|
||||
$text['label-play']['en-us'] = "Play";
|
||||
$text['label-play']['es-cl'] = "Reproducir";
|
||||
$text['label-play']['pt-pt'] = "Ouvir";
|
||||
$text['label-play']['pt-pt'] = "Tocar";
|
||||
$text['label-play']['fr-fr'] = "Jouer";
|
||||
|
||||
$text['label-uploaded']['en-us'] = "Uploaded";
|
||||
|
|
@ -113,7 +123,7 @@
|
|||
$text['label-sampling']['fr-fr'] = "Echantillonage";
|
||||
|
||||
$text['message-delete']['en-us'] = "Do you really want to delete this file?";
|
||||
$text['message-delete']['es-cl'] = "¿Realmente desea eliminar este archivo?";
|
||||
$text['message-delete']['es-cl'] = "¿Realmente desea eliminar este archivo?";
|
||||
$text['message-delete']['pt-pt'] = "Deseja realmente remover este ficheiro?";
|
||||
$text['message-delete']['fr-fr'] = "Voulez-vous vraiment supprimer ce fichier?";
|
||||
|
||||
|
|
|
|||
|
|
@ -329,8 +329,8 @@ if ($_GET['act'] == "del" && permission_exists('music_on_hold_delete')) {
|
|||
echo "<br><br>\n";
|
||||
echo "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"margin-bottom: 3px;\">\n";
|
||||
echo " <tr>\n";
|
||||
echo " <th class=\"listhdrr\">".$text['label-download']."</th>\n";
|
||||
echo " <th class=\"listhdrr\">".$text['label-play']."</th>\n";
|
||||
echo " <th class=\"listhdr\">".$text['label-file_name']."</th>\n";
|
||||
echo " <th class=\"listhdr\">".$text['label-tools']."</th>\n";
|
||||
echo " <th class=\"listhdr\">".$text['label-uploaded']."</th>\n";
|
||||
echo " <th class=\"listhdr\" nowrap=\"nowrap\">".$text['label-file-size']."</th>\n";
|
||||
echo " <th class=\"listhdr\" nowrap=\"nowrap\">".$text['label-sampling']."</th>\n";
|
||||
|
|
@ -345,17 +345,15 @@ if ($_GET['act'] == "del" && permission_exists('music_on_hold_delete')) {
|
|||
$file_size = byte_convert($file_size);
|
||||
|
||||
echo "<tr>\n";
|
||||
echo " <td class='".$row_style[$c]."'><a href=\"music_on_hold.php?a=download&sampling_rate=".$sampling_rate_dir."&type=moh&t=bin&file_name=".base64_encode($file)."\">".$file."</a></td>\n";
|
||||
echo " <td class='".$row_style[$c]."'>".$file."</td>\n";
|
||||
echo " <td class='".$row_style[$c]."'>\n";
|
||||
echo " <a href=\"javascript:void(0);\" onclick=\"window.open('music_on_hold_play.php?a=download&sampling_rate=".$sampling_rate_dir."&type=moh&file_name=".base64_encode($file)."', 'play',' width=420,height=40,menubar=no,status=no,toolbar=no')\">\n";
|
||||
$tmp_file_array = explode("\.",$file);
|
||||
echo " ".$tmp_file_array[0];
|
||||
echo " </a>";
|
||||
echo " <a href=\"javascript:void(0);\" onclick=\"window.open('music_on_hold_play.php?a=download&sampling_rate=".$sampling_rate_dir."&type=moh&file_name=".base64_encode($file)."', 'play',' width=420,height=40,menubar=no,status=no,toolbar=no')\">".$text['label-play']."</a> ";
|
||||
echo " <a href=\"music_on_hold.php?a=download&sampling_rate=".$sampling_rate_dir."&type=moh&t=bin&file_name=".base64_encode($file)."\">".$text['label-download']."</a>";
|
||||
echo " </td>\n";
|
||||
echo " <td class='".$row_style[$c]."'>".date ("F d Y H:i:s", filemtime($music_on_hold_dir."/".$sampling_rate_dir."/".$file))."</td>\n";
|
||||
echo " <td class='".$row_style[$c]."'>".$file_size."</td>\n";
|
||||
echo " <td class='".$row_style[$c]."'>".($sampling_rate_dir / 1000)." kHz</td>\n";
|
||||
echo " <td class='list_control_icons'>\n";
|
||||
echo " <td class='list_control_icon'>\n";
|
||||
if (permission_exists('music_on_hold_default_delete')) {
|
||||
echo "<a href=\"music_on_hold.php?type=moh&act=del&sampling_rate=".$sampling_rate_dir."&file_name=".base64_encode($file)."\" onclick=\"return confirm('Do you really want to delete this file?')\">$v_link_label_delete</a>";
|
||||
}
|
||||
|
|
@ -383,8 +381,8 @@ if ($_GET['act'] == "del" && permission_exists('music_on_hold_delete')) {
|
|||
echo "<br><br>\n";
|
||||
echo "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"margin-bottom: 3px;\">\n";
|
||||
echo " <tr>\n";
|
||||
echo " <th class=\"listhdrr\">".$text['label-download']."</th>\n";
|
||||
echo " <th class=\"listhdrr\">".$text['label-play']."</th>\n";
|
||||
echo " <th class=\"listhdr\">".$text['label-file_name']."</th>\n";
|
||||
echo " <th class=\"listhdr\">".$text['label-tools']."</th>\n";
|
||||
echo " <th class=\"listhdr\">".$text['label-uploaded']."</th>\n";
|
||||
echo " <th class=\"listhdr\" nowrap=\"nowrap\">".$text['label-file-size']."</th>\n";
|
||||
echo " <th class=\"listhdr\" nowrap=\"nowrap\">".$text['label-sampling']."</th>\n";
|
||||
|
|
@ -402,17 +400,15 @@ if ($_GET['act'] == "del" && permission_exists('music_on_hold_delete')) {
|
|||
$file_size = byte_convert($file_size);
|
||||
|
||||
echo "<tr>\n";
|
||||
echo " <td class='".$row_style[$c]."'><a href=\"music_on_hold.php?a=download&category=".$category_dir."&sampling_rate=".$sampling_rate_dir."&type=moh&t=bin&file_name=".base64_encode($file)."\">".$file."</a></td>\n";
|
||||
echo " <td class='".$row_style[$c]."'>".$file."</td>\n";
|
||||
echo " <td class='".$row_style[$c]."'>\n";
|
||||
echo " <a href=\"javascript:void(0);\" onclick=\"window.open('music_on_hold_play.php?a=download&category=".$category_dir."&sampling_rate=".$sampling_rate_dir."&type=moh&file_name=".base64_encode($file)."', 'play',' width=420,height=40,menubar=no,status=no,toolbar=no')\">\n";
|
||||
$tmp_file_array = explode("\.",$file);
|
||||
echo " ".$tmp_file_array[0];
|
||||
echo " </a>";
|
||||
echo " <a href=\"javascript:void(0);\" onclick=\"window.open('music_on_hold_play.php?a=download&sampling_rate=".$sampling_rate_dir."&type=moh&file_name=".base64_encode($file)."', 'play',' width=420,height=40,menubar=no,status=no,toolbar=no')\">".$text['label-play']."</a> ";
|
||||
echo " <a href=\"music_on_hold.php?a=download&sampling_rate=".$sampling_rate_dir."&type=moh&t=bin&file_name=".base64_encode($file)."\">".$text['label-download']."</a>";
|
||||
echo " </td>\n";
|
||||
echo " <td class='".$row_style[$c]."'>".date ("F d Y H:i:s", filemtime($music_on_hold_category_parent_dir."/".$category_dir."/".$sampling_rate_dir."/".$file))."</td>\n";
|
||||
echo " <td class='".$row_style[$c]."'>".$file_size."</td>\n";
|
||||
echo " <td class='".$row_style[$c]."'>".($sampling_rate_dir / 1000)." kHz</td>\n";
|
||||
echo " <td class='list_control_icons'>";
|
||||
echo " <td class='list_control_icon'>";
|
||||
if (permission_exists('music_on_hold_delete')) {
|
||||
echo "<a href=\"music_on_hold.php?type=moh&act=del&category=".$category_dir."&sampling_rate=".$sampling_rate_dir."&file_name=".base64_encode($file)."\" onclick=\"return confirm('".$text['message-delete']."')\">$v_link_label_delete</a>";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,10 +61,40 @@
|
|||
$text['description-file']['pt-pt'] = "Nome do ficheiro. exemplo.wav";
|
||||
$text['description-file']['fr-fr'] = "Nom du fichier. exemple.wav";
|
||||
|
||||
$text['label-recording']['en-us'] = "Recording Name (Play)";
|
||||
$text['label-recording']['es-cl'] = "Nombre de la grabación (Reproducir)";
|
||||
$text['label-recording']['pt-pt'] = "Nome da gravação (Tocar)";
|
||||
$text['label-recording']['fr-fr'] = "Nom de l'enregistrement (Jouer)";
|
||||
$text['label-recording_name']['en-us'] = "Recording Name";
|
||||
$text['label-recording_name']['es-cl'] = "Nombre de la grabación";
|
||||
$text['label-recording_name']['pt-pt'] = "Nome da gravação";
|
||||
$text['label-recording_name']['fr-fr'] = "Nom de l'enregistrement";
|
||||
|
||||
$text['label-file_name']['en-us'] = "File Name";
|
||||
$text['label-file_name']['es-cl'] = "Nombre del Archivo";
|
||||
$text['label-file_name']['pt-pt'] = "Nome do Arquivo";
|
||||
$text['label-file_name']['fr-fr'] = "Nom du Fichier";
|
||||
|
||||
$text['label-file-size']['en-us'] = "File Size";
|
||||
$text['label-file-size']['es-cl'] = "Tamaño del archivo";
|
||||
$text['label-file-size']['pt-pt'] = "Tamanho do Ficheiro";
|
||||
$text['label-file-size']['fr-fr'] = "Taille de Fichier";
|
||||
|
||||
$text['label-tools']['en-us'] = "Tools";
|
||||
$text['label-tools']['es-cl'] = "Instrumentos";
|
||||
$text['label-tools']['pt-pt'] = "Ferramentas";
|
||||
$text['label-tools']['fr-fr'] = "Outils";
|
||||
|
||||
$text['label-download']['en-us'] = "Download";
|
||||
$text['label-download']['es-cl'] = "Descargar";
|
||||
$text['label-download']['pt-pt'] = "Descarregar";
|
||||
$text['label-download']['fr-fr'] = "Télécharger";
|
||||
|
||||
$text['label-play']['en-us'] = "Play";
|
||||
$text['label-play']['es-cl'] = "Reproducir";
|
||||
$text['label-play']['pt-pt'] = "Tocar";
|
||||
$text['label-play']['fr-fr'] = "Jouer";
|
||||
|
||||
$text['label-description']['en-us'] = "Size";
|
||||
$text['label-description']['es-cl'] = "Descripción";
|
||||
$text['label-description']['pt-pt'] = "Descrição";
|
||||
$text['label-description']['fr-fr'] = "Description";
|
||||
|
||||
$text['description-recording']['en-us'] = "Recording Name. example: recording_x";
|
||||
$text['description-recording']['es-cl'] = "Nombre de la grabación. ejemplo: grabacion_x";
|
||||
|
|
|
|||
|
|
@ -209,18 +209,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " ".$text['label-file']."\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='recording_filename' maxlength='255' value=\"$recording_filename\">\n";
|
||||
echo "<br />\n";
|
||||
echo $text['message-file']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " ".$text['label-recording']."\n";
|
||||
echo " ".$text['label-recording_name']."\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='recording_name' maxlength='255' value=\"$recording_name\">\n";
|
||||
|
|
@ -229,6 +218,17 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " ".$text['label-file_name']."\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='recording_filename' maxlength='255' value=\"$recording_filename\">\n";
|
||||
echo "<br />\n";
|
||||
echo $text['message-file']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
//echo "<tr>\n";
|
||||
//echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
//echo " recording_uuid:\n";
|
||||
|
|
|
|||
|
|
@ -217,15 +217,14 @@ require_once "resources/paging.php";
|
|||
$row_style["0"] = "row_style0";
|
||||
$row_style["1"] = "row_style1";
|
||||
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo th_order_by('recording_filename', $text['label-file'], $order_by, $order);
|
||||
echo th_order_by('recording_name', $text['label-recording'], $order_by, $order);
|
||||
echo "<th width=\"10%\" class=\"listhdr\" nowrap>Size</th>\n";
|
||||
echo th_order_by('recording_name', $text['label-recording_name'], $order_by, $order);
|
||||
echo th_order_by('recording_filename', $text['label-file_name'], $order_by, $order);
|
||||
echo "<th class=\"listhdr\" nowrap>".$text['label-tools']."</th>\n";
|
||||
echo "<th class=\"listhdr\" nowrap>".$text['label-file-size']."</th>\n";
|
||||
echo th_order_by('recording_description', $text['label-description'], $order_by, $order);
|
||||
echo "<td align='right' width='42'>\n";
|
||||
echo " ";
|
||||
echo "</td>\n";
|
||||
echo "<td class='list_control_icons'> </td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
if ($result_count > 0) {
|
||||
|
|
@ -233,17 +232,20 @@ require_once "resources/paging.php";
|
|||
$tmp_filesize = filesize($_SESSION['switch']['recordings']['dir'].'/'.$row['recording_filename']);
|
||||
$tmp_filesize = byte_convert($tmp_filesize);
|
||||
|
||||
echo "<tr >\n";
|
||||
$tr_link = (permission_exists('recording_edit')) ? "href='recording_edit.php?id=".$row['recording_uuid']."'" : null;
|
||||
echo "<tr ".$tr_link.">\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>";
|
||||
echo " <a href=\"recordings.php?a=download&type=rec&t=bin&filename=".base64_encode($row['recording_filename'])."\">\n";
|
||||
echo $row['recording_name'];
|
||||
echo "</td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>";
|
||||
echo " \n";
|
||||
echo $row['recording_filename'];
|
||||
echo " </a>";
|
||||
echo " </td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>";
|
||||
echo " <a href=\"javascript:void(0);\" onclick=\"window.open('recording_play.php?a=download&type=rec&filename=".base64_encode($row['recording_filename'])."', 'play',' width=420,height=40,menubar=no,status=no,toolbar=no')\">\n";
|
||||
echo $row['recording_name'];
|
||||
echo " </a>";
|
||||
echo "</td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]." tr_link_void'>";
|
||||
echo " <a href=\"javascript:void(0);\" onclick=\"window.open('recording_play.php?a=download&type=rec&filename=".base64_encode($row['recording_filename'])."', 'play',' width=420,height=40,menubar=no,status=no,toolbar=no')\">".$text['label-play']."</a> ";
|
||||
echo " <a href=\"recordings.php?a=download&type=rec&t=bin&filename=".base64_encode($row['recording_filename'])."\">".$text['label-download']."</a>";
|
||||
echo " </td>\n";
|
||||
echo " <td class='".$row_style[$c]."'>\n";
|
||||
echo " ".$tmp_filesize;
|
||||
echo " </td>\n";
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ require_once "resources/paging.php";
|
|||
$row_style["1"] = "row_style1";
|
||||
|
||||
echo "<div align='center'>\n";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo th_order_by('ring_group_name', $text['label-name'], $order_by, $order);
|
||||
echo th_order_by('ring_group_extension', $text['label-extension'], $order_by, $order);
|
||||
|
|
@ -133,11 +133,12 @@ require_once "resources/paging.php";
|
|||
echo "<a href='ring_group_edit.php' alt='add'>$v_link_label_add</a>";
|
||||
}
|
||||
echo "</td>\n";
|
||||
echo "<tr>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
if ($result_count > 0) {
|
||||
foreach($result as $row) {
|
||||
echo "<tr >\n";
|
||||
$tr_link = (permission_exists('ring_group_edit')) ? "href='ring_group_edit.php?id=".$row['ring_group_uuid']."'" : null;
|
||||
echo "<tr ".$tr_link.">\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>";
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ $order = $_GET["order"];
|
|||
$row_style["1"] = "row_style1";
|
||||
|
||||
echo "<div align='center'>\n";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo th_order_by('field_label', $text['label-field_label'], $order_by, $order);
|
||||
echo th_order_by('field_name', $text['label-field_name'], $order_by, $order);
|
||||
|
|
@ -96,11 +96,12 @@ $order = $_GET["order"];
|
|||
echo "<a href='schema_field_edit.php?schema_uuid=".$schema_uuid."' alt='".$text['button-add']."'>$v_link_label_add</a>";
|
||||
}
|
||||
echo "</td>\n";
|
||||
echo "<tr>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
if ($result_count > 0) {
|
||||
foreach($result as $row) {
|
||||
echo "<tr >\n";
|
||||
$tr_link = (permission_exists('schema_edit')) ? "href='schema_field_edit.php?schema_uuid=".$row['schema_uuid']."&id=".$row['schema_field_uuid']."'" : null;
|
||||
echo "<tr ".$tr_link.">\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['field_label']." </td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>";
|
||||
if (permission_exists('schema_edit')) {
|
||||
|
|
@ -160,7 +161,7 @@ $order = $_GET["order"];
|
|||
echo " </td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['field_order']."</td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['field_order_tab']."</td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['field_description']." </td>\n";
|
||||
echo " <td valign='top' class='row_stylebg'>".$row['field_description']." </td>\n";
|
||||
echo " <td class='list_control_icons'>";
|
||||
if (permission_exists('schema_edit')) {
|
||||
echo "<a href='schema_field_edit.php?schema_uuid=".$row['schema_uuid']."&id=".$row['schema_field_uuid']."' alt='".$text['button-edit']."'>$v_link_label_edit</a>";
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ require_once "resources/paging.php";
|
|||
$row_style["1"] = "row_style1";
|
||||
|
||||
echo "<div align='center'>\n";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo th_order_by('schema_label', $text['label-label'], $order_by, $order);
|
||||
echo th_order_by('schema_name', $text['label-schema_name'], $order_by, $order);
|
||||
|
|
@ -111,14 +111,15 @@ require_once "resources/paging.php";
|
|||
echo "<a href='schema_edit.php' alt='".$text['button-add']."'>$v_link_label_add</a>";
|
||||
}
|
||||
echo "</td>\n";
|
||||
echo "<tr>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
if ($result_count == 0) {
|
||||
//no results
|
||||
}
|
||||
else { //received results
|
||||
foreach($result as $row) {
|
||||
echo "<tr >\n";
|
||||
$tr_link = (permission_exists('schema_edit')) ? "href='schema_edit.php?id=".$row['schema_uuid']."'" : null;
|
||||
echo "<tr ".$tr_link.">\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['schema_label']." </td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>";
|
||||
if (permission_exists('schema_edit')) {
|
||||
|
|
@ -139,7 +140,7 @@ require_once "resources/paging.php";
|
|||
echo " ";
|
||||
}
|
||||
echo " </td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['schema_description']." </td>\n";
|
||||
echo " <td valign='top' class='row_stylebg'>".$row['schema_description']." </td>\n";
|
||||
echo " <td class='list_control_icons'>";
|
||||
if (permission_exists('schema_edit')) {
|
||||
echo "<a href='schema_edit.php?id=".$row['schema_uuid']."' alt='".$text['button-edit']."'>$v_link_label_edit</a>";
|
||||
|
|
|
|||
|
|
@ -51,6 +51,10 @@
|
|||
$text['button-save']['pt-pt'] = "Guardar";
|
||||
$text['button-save']['fr-fr'] = "Sauvegarder";
|
||||
|
||||
$text['label-tools']['en-us'] = "Tools";
|
||||
$text['label-tools']['es-cl'] = "Instrumentos";
|
||||
$text['label-tools']['pt-pt'] = "Ferramentas";
|
||||
$text['label-tools']['fr-fr'] = "Outils";
|
||||
|
||||
//voicemail_greeting_edit
|
||||
$text['confirm-name']['en-us'] = "Please provide: Greeting Name (play)";
|
||||
|
|
|
|||
|
|
@ -292,11 +292,11 @@ else {
|
|||
$row_style["0"] = "row_style0";
|
||||
$row_style["1"] = "row_style1";
|
||||
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<th>".$text['table-choose']."</th>\n";
|
||||
echo th_order_by('greeting_name', $text['table-name'], $order_by, $order);
|
||||
echo "<th align='right'>".$text['table-download']."</th>\n";
|
||||
echo "<th align='right'>".$text['label-tools']."</th>\n";
|
||||
echo "<th width=\"50px\" class=\"listhdr\" nowrap=\"nowrap\">".$text['table-size']."</th>\n";
|
||||
echo th_order_by('greeting_description', $text['table-description'], $order_by, $order);
|
||||
echo "<td align='right' width='21'>\n";
|
||||
|
|
@ -310,8 +310,9 @@ else {
|
|||
foreach($result as $row) {
|
||||
$tmp_filesize = filesize($v_greeting_dir.'/'.$row['greeting_name']);
|
||||
$tmp_filesize = byte_convert($tmp_filesize);
|
||||
echo "<tr >\n";
|
||||
echo " <td class='".$row_style[$c]."' width='30px;' valign='top'>\n";
|
||||
$tr_link = (permission_exists('voicemail_greeting_edit')) ? "href='voicemail_greeting_edit.php?id=".$row['voicemail_greeting_uuid']."&voicemail_id=".$voicemail_id."'" : null;
|
||||
echo "<tr ".$tr_link.">\n";
|
||||
echo " <td class='".$row_style[$c]." tr_link_void' width='30px;' valign='top'>\n";
|
||||
if (preg_replace('{\D}', '', $row['greeting_name']) == $greeting_id) {
|
||||
echo " <input type=\"radio\" name=\"greeting_id\" value=\"".preg_replace('{\D}', '', $row['greeting_name'])."\" checked=\"checked\">\n";
|
||||
}
|
||||
|
|
@ -333,7 +334,7 @@ else {
|
|||
echo " </td>\n";
|
||||
echo " <td class='".$row_style[$c]."' nowrap>".$tmp_filesize."</td>\n";
|
||||
echo " <td valign='top' class='row_stylebg'>".$row['greeting_description']." </td>\n";
|
||||
echo " <td valign='top' align='right' nowrap>\n";
|
||||
echo " <td class='list_control_icons'>\n";
|
||||
if (permission_exists('voicemail_greeting_edit')) {
|
||||
echo "<a href='voicemail_greeting_edit.php?id=".$row['voicemail_greeting_uuid']."&voicemail_id=".$voicemail_id."' alt='edit'>$v_link_label_edit</a>";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -267,7 +267,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-voicemail_id'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
|
|
@ -278,7 +278,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-voicemail_password'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ else {
|
|||
$table_header .= "<td align='right' width='21'>\n";
|
||||
$table_header .= " \n";
|
||||
$table_header .= "</td>\n";
|
||||
$table_header .= "<tr>\n";
|
||||
$table_header .= "</tr>\n";
|
||||
|
||||
//loop through the voicemail messages
|
||||
if (count($voicemails) > 0) {
|
||||
|
|
@ -126,8 +126,8 @@ else {
|
|||
if ($previous_voicemail_id != $field['voicemail_id']) {
|
||||
echo "<tr>\n";
|
||||
echo " <td colspan='3' align='left'>\n";
|
||||
echo " <br /><br />\n";
|
||||
echo " <b>".$text['label-mailbox'].": ".$field['voicemail_id']." </b> \n";
|
||||
echo " <br /><br /><br /><br />\n";
|
||||
echo " <b>".$text['label-mailbox'].": ".$field['voicemail_id']." </b><br /> \n";
|
||||
echo " </td>\n";
|
||||
echo " <td colspan='3' valign='bottom' align='right'>\n";
|
||||
if (permission_exists('voicemail_greeting_view')) {
|
||||
|
|
@ -136,7 +136,7 @@ else {
|
|||
if (permission_exists('voicemail_view')) {
|
||||
echo " <input type='button' class='btn' name='' alt='settings' onclick=\"window.location='".PROJECT_PATH."/app/voicemails/voicemail_edit.php?id=".$field['voicemail_uuid']."'\" value='".$text['button-settings']."'>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
echo " <br /><br /></td>\n";
|
||||
echo " <td> </td>\n";
|
||||
echo "</tr>\n";
|
||||
echo $table_header;
|
||||
|
|
@ -163,7 +163,7 @@ else {
|
|||
echo " </a>\n";
|
||||
echo " </td>\n";
|
||||
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['message_priority']." </td>\n";
|
||||
echo " <td valign='top' align='right'>\n";
|
||||
echo " <td class='list_control_icon'>\n";
|
||||
if (permission_exists('voicemail_message_delete')) {
|
||||
echo " <a href='voicemail_message_delete.php?voicemail_uuid=".$row['voicemail_uuid']."&id=".$row['voicemail_message_uuid']."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>\n";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -176,7 +176,7 @@ else {
|
|||
$row_style["1"] = "row_style1";
|
||||
|
||||
echo "<div align='center'>\n";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo th_order_by('voicemail_id', $text['label-voicemail_id'], $order_by, $order);
|
||||
//echo th_order_by('voicemail_password', $text['label-voicemail_password'], $order_by, $order);
|
||||
|
|
@ -193,11 +193,12 @@ else {
|
|||
echo "<a href='voicemail_edit.php' alt='".$text['button-add']."'>$v_link_label_add</a>";
|
||||
}
|
||||
echo "</td>\n";
|
||||
echo "<tr>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
if ($result_count > 0) {
|
||||
foreach($result as $row) {
|
||||
echo "<tr >\n";
|
||||
$tr_link = (permission_exists('voicemail_edit')) ? "href='voicemail_edit.php?id=".$row['voicemail_uuid']."'" : null;
|
||||
echo "<tr ".$tr_link.">\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>";
|
||||
|
|
|
|||
Loading…
Reference in New Issue