Fix fax language translation label consistency, tabs, and change $content_fax to the $text array.

This commit is contained in:
Mark Crane
2012-10-24 06:51:28 +00:00
parent 10b035482b
commit c9d37fa0ab
6 changed files with 180 additions and 176 deletions
+8 -8
View File
@@ -40,8 +40,8 @@ require_once "includes/paging.php";
echo "<!--\n";
require_once "app_languages.php";
echo "-->\n";
foreach($content_fax as $key => $value) {
$content_fax[$key] = $value[$_SESSION['domain']['language']['code']];
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
//get the http get values and set them as php variables
@@ -58,7 +58,7 @@ require_once "includes/paging.php";
echo " <tr>\n";
echo " <td align='left'>\n";
echo " <p><span class=\"vexpl\"><span class=\"red\"><strong>FAX<br></strong></span>\n";
echo " ".$content_fax['description']."\n";
echo " ".$text['description']."\n";
echo " </p>\n";
echo " </td>\n";
echo " </tr>\n";
@@ -124,10 +124,10 @@ require_once "includes/paging.php";
echo "<div align='center'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo th_order_by('fax_extension', $content_fax['label-extension'], $order_by, $order);
echo th_order_by('fax_name', $content_fax['label-name'], $order_by, $order);
echo th_order_by('fax_email', $content_fax['label-email'], $order_by, $order);
echo th_order_by('fax_description', $content_fax['label-description'], $order_by, $order);
echo th_order_by('fax_extension', $text['label-extension'], $order_by, $order);
echo th_order_by('fax_name', $text['label-name'], $order_by, $order);
echo th_order_by('fax_email', $text['label-email'], $order_by, $order);
echo th_order_by('fax_description', $text['label-description'], $order_by, $order);
echo "<td align='right' width='42'>\n";
if (permission_exists('fax_extension_add')) {
echo " <a href='fax_edit.php' alt='add'>$v_link_label_add</a>\n";
@@ -147,7 +147,7 @@ require_once "includes/paging.php";
echo " <a href='fax_view.php?id=".$row['fax_uuid']."' alt='edit'>$v_link_label_edit</a>\n";
}
if (permission_exists('fax_extension_delete')) {
echo " <a href='fax_delete.php?id=".$row['fax_uuid']."' alt='delete' onclick=\"return confirm('".$content_fax['confirm-delete']."')\">$v_link_label_delete</a>\n";
echo " <a href='fax_delete.php?id=".$row['fax_uuid']."' alt='delete' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>\n";
}
echo " </td>\n";
echo "</tr>\n";