Code cleanup.
This commit is contained in:
parent
45637ba48a
commit
2b0396063a
|
|
@ -92,7 +92,6 @@ require_once "resources/paging.php";
|
|||
$row_style["0"] = "row_style0";
|
||||
$row_style["1"] = "row_style1";
|
||||
|
||||
echo "<div align='center'>\n";
|
||||
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
|
|
@ -145,6 +144,5 @@ require_once "resources/paging.php";
|
|||
echo "</tr>\n";
|
||||
|
||||
echo "</table>";
|
||||
echo "</div>";
|
||||
|
||||
?>
|
||||
|
|
@ -91,7 +91,6 @@ require_once "resources/paging.php";
|
|||
$row_style["0"] = "row_style0";
|
||||
$row_style["1"] = "row_style1";
|
||||
|
||||
echo "<div align='center'>\n";
|
||||
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
|
|
@ -135,6 +134,5 @@ require_once "resources/paging.php";
|
|||
echo "</tr>\n";
|
||||
|
||||
echo "</table>";
|
||||
echo "</div>";
|
||||
|
||||
?>
|
||||
|
|
@ -114,7 +114,6 @@ require_once "resources/paging.php";
|
|||
$row_style["0"] = "row_style0";
|
||||
$row_style["1"] = "row_style1";
|
||||
|
||||
echo "<div align='center'>\n";
|
||||
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<th>".$text['label-extension']."</th>\n";
|
||||
|
|
@ -169,8 +168,6 @@ require_once "resources/paging.php";
|
|||
echo " </table>\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "</table>";
|
||||
echo "</div>";
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -107,7 +107,6 @@ require_once "resources/paging.php";
|
|||
$row_style["0"] = "row_style0";
|
||||
$row_style["1"] = "row_style1";
|
||||
|
||||
echo "<div align='center'>\n";
|
||||
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<th>".$text['label-phone_label']."</th>\n";
|
||||
|
|
@ -171,6 +170,5 @@ require_once "resources/paging.php";
|
|||
echo "</tr>\n";
|
||||
|
||||
echo "</table>";
|
||||
echo "</div>";
|
||||
|
||||
?>
|
||||
|
|
@ -47,11 +47,6 @@ $order_by = $_GET["order_by"];
|
|||
$order = $_GET["order"];
|
||||
|
||||
|
||||
echo "<div align='center'>";
|
||||
echo "<table border='0' width='100%' cellpadding='0' cellspacing='2'>\n";
|
||||
echo "<tr class='border'>\n";
|
||||
echo " <td align=\"left\">\n";
|
||||
|
||||
echo "<table width='100%'>";
|
||||
echo "<tr>";
|
||||
echo "<td align='left'>";
|
||||
|
|
@ -87,7 +82,6 @@ $order = $_GET["order"];
|
|||
$row_style["0"] = "row_style0";
|
||||
$row_style["1"] = "row_style1";
|
||||
|
||||
echo "<div align='left'>\n";
|
||||
echo "<table class='tr_hover' width='100%' border='0' cellpadding='2' cellspacing='0'>\n";
|
||||
echo "<tr>";
|
||||
echo th_order_by('rss_title', $text['label-title'], $order_by, $order);
|
||||
|
|
@ -179,17 +173,11 @@ $order = $_GET["order"];
|
|||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
echo "</div>\n";
|
||||
echo "<br><br>";
|
||||
|
||||
echo " <br>";
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
//echo "<input type='button' class='btn' name='' onclick=\"window.location='rsssearch.php'\" value='Search'> \n";
|
||||
//echo "<input type='button' class='btn' name='' onclick=\"window.location='rssadd.php'\" value='Add $module_title'> \n";
|
||||
echo "</div>";
|
||||
|
||||
echo "<br><br>";
|
||||
require_once "resources/footer.php";
|
||||
|
||||
unset ($result_count);
|
||||
|
|
|
|||
|
|
@ -77,11 +77,6 @@ if (count($_POST)>0) {
|
|||
}
|
||||
|
||||
require_once "resources/header.php";
|
||||
echo "<div align='center'>";
|
||||
echo "<table border='0' cellpadding='0' cellspacing='2'>\n";
|
||||
echo "<tr class='border'>\n";
|
||||
echo " <td align=\"left\">\n";
|
||||
echo " <br>";
|
||||
|
||||
echo "<form method='post' action=''>";
|
||||
echo "<table>";
|
||||
|
|
@ -111,10 +106,5 @@ echo " </tr>";
|
|||
echo "</table>";
|
||||
echo "</form>";
|
||||
|
||||
echo " </td>";
|
||||
echo " </tr>";
|
||||
echo "</table>";
|
||||
echo "</div>";
|
||||
|
||||
require_once "resources/footer.php";
|
||||
?>
|
||||
|
|
@ -86,13 +86,6 @@ else {
|
|||
}
|
||||
|
||||
require_once "resources/header.php";
|
||||
echo "<div align='center'>";
|
||||
echo "<table border='0' cellpadding='0' cellspacing='2'>\n";
|
||||
|
||||
echo "<tr class='border'>\n";
|
||||
echo " <td align=\"left\">\n";
|
||||
echo " <br>";
|
||||
|
||||
|
||||
echo "<form method='post' action=''>";
|
||||
echo "<table>";
|
||||
|
|
@ -119,18 +112,13 @@ echo " </tr>";
|
|||
echo " <tr>";
|
||||
echo " <td colspan='2' align='right'>";
|
||||
echo " <input type='hidden' name='rss_sub_category_uuid' value='$rss_sub_category_uuid'>";
|
||||
echo " <br><br>";
|
||||
echo " <input type='submit' name='submit' value='".$text['button-update']."'>";
|
||||
echo " </td>";
|
||||
echo " </tr>";
|
||||
echo "</table>";
|
||||
echo "<br><br>";
|
||||
echo "</form>";
|
||||
|
||||
|
||||
echo " </td>";
|
||||
echo " </tr>";
|
||||
echo "</table>";
|
||||
echo "</div>";
|
||||
|
||||
|
||||
require_once "resources/footer.php";
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -57,14 +57,6 @@ if (count($_POST)>0) {
|
|||
|
||||
require_once "resources/header.php";
|
||||
|
||||
echo "<div align='center'>";
|
||||
echo "<table border='0' cellpadding='0' cellspacing='2'>\n";
|
||||
|
||||
echo "<tr class='border'>\n";
|
||||
echo " <td align=\"left\">\n";
|
||||
echo " <br>";
|
||||
|
||||
|
||||
$sql = "";
|
||||
$sql .= "select * from v_rss_sub ";
|
||||
$sql .= "where ";
|
||||
|
|
@ -114,9 +106,9 @@ if (count($_POST)>0) {
|
|||
$row_style["1"] = "background-color: #FFFFFF;";
|
||||
|
||||
echo "<b>".$text['label-search']."</b><br>";
|
||||
echo "<div align='left'>\n";
|
||||
|
||||
echo "<table border='0' cellpadding='1' cellspacing='1'>\n";
|
||||
echo "<tr><td colspan='100%'><img src='/images/spacer.gif' width='100%' height='1' style='background-color: #BBBBBB;'></td></tr>";
|
||||
echo " <tr><td colspan='100%'><img src='/images/spacer.gif' width='100%' height='1' style='background-color: #BBBBBB;'></td></tr>";
|
||||
|
||||
if ($result_count == 0) { //no results
|
||||
echo "<tr><td> </td></tr>";
|
||||
|
|
@ -124,18 +116,18 @@ if (count($_POST)>0) {
|
|||
else { //received results
|
||||
|
||||
echo "<tr>";
|
||||
echo "<th nowrap> ".$text['label-sub-id']." </th>";
|
||||
echo "<th nowrap> ".$text['label-id']." </th>";
|
||||
echo "<th nowrap> ".$text['label-title']." </th>";
|
||||
//echo "<th nowrap> Link </th>";
|
||||
//echo "<th nowrap> rss_sub_description </th>";
|
||||
//echo "<th nowrap> rss_sub_optional_1 </th>";
|
||||
//echo "<th nowrap> rss_sub_optional_2 </th>";
|
||||
//echo "<th nowrap> rss_sub_optional_3 </th>";
|
||||
//echo "<th nowrap> rss_sub_optional_4 </th>";
|
||||
//echo "<th nowrap> rss_sub_optional_5 </th>";
|
||||
//echo "<th nowrap> rss_sub_add_date </th>";
|
||||
//echo "<th nowrap> rss_sub_add_user </th>";
|
||||
echo "<th nowrap> ".$text['label-sub-id']." </th>";
|
||||
echo "<th nowrap> ".$text['label-id']." </th>";
|
||||
echo "<th nowrap> ".$text['label-title']." </th>";
|
||||
//echo "<th nowrap> Link </th>";
|
||||
//echo "<th nowrap> rss_sub_description </th>";
|
||||
//echo "<th nowrap> rss_sub_optional_1 </th>";
|
||||
//echo "<th nowrap> rss_sub_optional_2 </th>";
|
||||
//echo "<th nowrap> rss_sub_optional_3 </th>";
|
||||
//echo "<th nowrap> rss_sub_optional_4 </th>";
|
||||
//echo "<th nowrap> rss_sub_optional_5 </th>";
|
||||
//echo "<th nowrap> rss_sub_add_date </th>";
|
||||
//echo "<th nowrap> rss_sub_add_user </th>";
|
||||
echo "</tr>";
|
||||
echo "<tr><td colspan='100%'><img src='/images/spacer.gif' width='100%' height='1' style='background-color: #BBBBBB;'></td></tr>\n";
|
||||
|
||||
|
|
@ -155,26 +147,16 @@ if (count($_POST)>0) {
|
|||
//echo "<td valign='top'>".$row[rss_sub_add_date]."</td>";
|
||||
//echo "<td valign='top'>".$row[rss_sub_add_user]."</td>";
|
||||
echo "</tr>";
|
||||
|
||||
echo "<tr><td colspan='100%'><img src='/images/spacer.gif' width='100%' height='1' style='background-color: #BBBBBB;'></td></tr>\n";
|
||||
if ($c==0) { $c=1; } else { $c=0; }
|
||||
} //end foreach
|
||||
unset($sql, $result, $row_count);
|
||||
|
||||
echo "</table>\n";
|
||||
echo "</div>\n";
|
||||
|
||||
|
||||
echo " <br><br>";
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
} //end if results
|
||||
|
||||
echo "</table>\n";
|
||||
echo "</div>";
|
||||
|
||||
echo "<br><br>";
|
||||
|
||||
require_once "resources/footer.php";
|
||||
|
||||
unset ($result_count);
|
||||
|
|
@ -183,82 +165,68 @@ if (count($_POST)>0) {
|
|||
unset ($val);
|
||||
unset ($c);
|
||||
|
||||
}
|
||||
else {
|
||||
|
||||
echo "\n"; require_once "resources/header.php";
|
||||
echo "<div align='center'>";
|
||||
echo "<table border='0' cellpadding='0' cellspacing='2'>\n";
|
||||
|
||||
echo "<tr class='border'>\n";
|
||||
echo " <td align=\"left\">\n";
|
||||
echo " <br>";
|
||||
}
|
||||
else {
|
||||
|
||||
require_once "resources/header.php";
|
||||
|
||||
echo "<form method='post' action=''>";
|
||||
echo "<table>";
|
||||
echo " <tr>";
|
||||
echo " <td>".$text['label-sub-id']."</td>";
|
||||
echo " <td><input type='text' class='txt' name='rss_sub_uuid'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td>".$text['label-id']."</td>";
|
||||
echo " <td><input type='text' class='txt' name='rss_uuid'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td>".$text['label-sub-title']."</td>";
|
||||
echo " <td><input type='text' class='txt' name='rss_sub_title'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td>".$text['label-sub-link']."</td>";
|
||||
echo " <td><input type='text' class='txt' name='rss_sub_link'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td>".$text['label-sub-desc']."</td>";
|
||||
echo " <td><input type='text' class='txt' name='rss_sub_description'></td>";
|
||||
echo " </tr>";
|
||||
//echo " <tr>";
|
||||
//echo " <td>rss_sub_optional_1</td>";
|
||||
//echo " <td><input type='text' class='txt' name='rss_sub_optional_1'></td>";
|
||||
//echo " </tr>";
|
||||
//echo " <tr>";
|
||||
//echo " <td>rss_sub_optional_2</td>";
|
||||
//echo " <td><input type='text' class='txt' name='rss_sub_optional_2'></td>";
|
||||
//echo " </tr>";
|
||||
//echo " <tr>";
|
||||
//echo " <td>rss_sub_optional_3</td>";
|
||||
//echo " <td><input type='text' class='txt' name='rss_sub_optional_3'></td>";
|
||||
//echo " </tr>";
|
||||
//echo " <tr>";
|
||||
//echo " <td>rss_sub_optional_4</td>";
|
||||
//echo " <td><input type='text' class='txt' name='rss_sub_optional_4'></td>";
|
||||
//echo " </tr>";
|
||||
//echo " <tr>";
|
||||
//echo " <td>rss_sub_optional_5</td>";
|
||||
//echo " <td><input type='text' class='txt' name='rss_sub_optional_5'></td>";
|
||||
//echo " </tr>";
|
||||
//echo " <tr>";
|
||||
//echo " <td>rss_sub_add_date</td>";
|
||||
//echo " <td><input type='text' class='txt' name='rss_sub_add_date'></td>";
|
||||
//echo " </tr>";
|
||||
//echo " <tr>";
|
||||
//echo " <td>rss_sub_add_user</td>";
|
||||
//echo " <td><input type='text' class='txt' name='rss_sub_add_user'></td>";
|
||||
//echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td>".$text['label-sub-id']."</td>";
|
||||
echo " <td><input type='text' class='txt' name='rss_sub_uuid'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td>".$text['label-id']."</td>";
|
||||
echo " <td><input type='text' class='txt' name='rss_uuid'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td>".$text['label-sub-title']."</td>";
|
||||
echo " <td><input type='text' class='txt' name='rss_sub_title'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td>".$text['label-sub-link']."</td>";
|
||||
echo " <td><input type='text' class='txt' name='rss_sub_link'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td>".$text['label-sub-desc']."</td>";
|
||||
echo " <td><input type='text' class='txt' name='rss_sub_description'></td>";
|
||||
echo " </tr>";
|
||||
//echo " <tr>";
|
||||
//echo " <td>rss_sub_optional_1</td>";
|
||||
//echo " <td><input type='text' class='txt' name='rss_sub_optional_1'></td>";
|
||||
//echo " </tr>";
|
||||
//echo " <tr>";
|
||||
//echo " <td>rss_sub_optional_2</td>";
|
||||
//echo " <td><input type='text' class='txt' name='rss_sub_optional_2'></td>";
|
||||
//echo " </tr>";
|
||||
//echo " <tr>";
|
||||
//echo " <td>rss_sub_optional_3</td>";
|
||||
//echo " <td><input type='text' class='txt' name='rss_sub_optional_3'></td>";
|
||||
//echo " </tr>";
|
||||
//echo " <tr>";
|
||||
//echo " <td>rss_sub_optional_4</td>";
|
||||
//echo " <td><input type='text' class='txt' name='rss_sub_optional_4'></td>";
|
||||
//echo " </tr>";
|
||||
//echo " <tr>";
|
||||
//echo " <td>rss_sub_optional_5</td>";
|
||||
//echo " <td><input type='text' class='txt' name='rss_sub_optional_5'></td>";
|
||||
//echo " </tr>";
|
||||
//echo " <tr>";
|
||||
//echo " <td>rss_sub_add_date</td>";
|
||||
//echo " <td><input type='text' class='txt' name='rss_sub_add_date'></td>";
|
||||
//echo " </tr>";
|
||||
//echo " <tr>";
|
||||
//echo " <td>rss_sub_add_user</td>";
|
||||
//echo " <td><input type='text' class='txt' name='rss_sub_add_user'></td>";
|
||||
//echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td colspan='2' align='right'><input type='submit' name='submit' class='btn' value='".$text['button-search']."'></td>";
|
||||
echo " </tr>";
|
||||
echo "</table>";
|
||||
echo "</form>";
|
||||
|
||||
|
||||
echo " </td>";
|
||||
echo " </tr>";
|
||||
echo "</table>";
|
||||
echo "</div>";
|
||||
|
||||
|
||||
require_once "resources/footer.php";
|
||||
require_once "resources/footer.php";
|
||||
|
||||
} //end if not post
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ if (count($_POST)>0 && $_POST["persistform"] == "0") {
|
|||
if (strlen($msg) > 0) {
|
||||
require_once "resources/persist_form.php";
|
||||
require_once "resources/header.php";
|
||||
echo "<div align='center' style='' >";
|
||||
echo "<div align='center'>";
|
||||
echo "<table>";
|
||||
echo "<tr>";
|
||||
echo "<td>";
|
||||
|
|
|
|||
|
|
@ -94,7 +94,6 @@ function sf() { document.forms[0].savetopath.focus(); }
|
|||
});
|
||||
</script>
|
||||
|
||||
<div align='center'>
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td class="" >
|
||||
|
|
@ -157,7 +156,6 @@ function sf() { document.forms[0].savetopath.focus(); }
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
require_once "resources/footer.php";
|
||||
|
|
|
|||
|
|
@ -94,8 +94,7 @@ else {
|
|||
echo " </script>";
|
||||
|
||||
//show the header
|
||||
echo "<div align='center'>";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='2'>\n";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td colspan='2' align='left' nowrap=\"nowrap\"><b>".$text['label-execute']."</b></td>\n";
|
||||
echo "</tr>\n";
|
||||
|
|
@ -196,7 +195,6 @@ else {
|
|||
echo "</form>";
|
||||
|
||||
echo "</table>";
|
||||
echo "</div>";
|
||||
|
||||
//show the footer
|
||||
require_once "resources/footer.php";
|
||||
|
|
|
|||
|
|
@ -44,13 +44,7 @@ else {
|
|||
}
|
||||
|
||||
//begin content
|
||||
echo "<div align='center'>";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='2'>\n";
|
||||
echo "<tr class='border'>\n";
|
||||
echo " <td align=\"center\">\n";
|
||||
echo " <br>";
|
||||
|
||||
echo "<table width='100%' border='0'>\n";
|
||||
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td width='50%' nowrap='nowrap' align='left'><b>".$text['header-option_list']."</b></td>\n";
|
||||
echo "<td width='50%' align='right'> </td>\n";
|
||||
|
|
@ -162,14 +156,6 @@ else {
|
|||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>";
|
||||
|
||||
echo "<br><br>";
|
||||
echo "<br><br>";
|
||||
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
echo "</div>";
|
||||
echo "<br><br>";
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -71,9 +71,6 @@ if (permission_exists('log_download')) {
|
|||
|
||||
require_once "resources/header.php";
|
||||
|
||||
echo "<br />\n";
|
||||
echo "<div align='center'>\n";
|
||||
|
||||
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0'>\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td align=\"left\" valign='middle' width='100%' style='padding-right: 15px;' nowrap>\n";
|
||||
|
|
@ -281,8 +278,6 @@ if (permission_exists('log_view')) {
|
|||
echo " </td>";
|
||||
echo " </tr>\n";
|
||||
echo "</table>\n";
|
||||
echo "</div>\n";
|
||||
|
||||
require_once "resources/footer.php";
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -147,12 +147,6 @@ require_once "resources/check_auth.php";
|
|||
require_once "resources/header.php";
|
||||
|
||||
//begin the content
|
||||
echo "<div align='center'>";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='2'>\n";
|
||||
echo "<tr class='border'>\n";
|
||||
echo " <td align=\"center\">\n";
|
||||
echo " <br>";
|
||||
|
||||
echo "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td align='left'>\n";
|
||||
|
|
@ -161,10 +155,9 @@ require_once "resources/check_auth.php";
|
|||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
echo "</table>";
|
||||
|
||||
echo "<br />\n";
|
||||
|
||||
echo " <table border='0' width='100%' cellpadding=\"0\" cellspacing=\"0\">\n";
|
||||
echo "<table border='0' width='100%' cellpadding=\"0\" cellspacing=\"0\">\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td align='left' width='50%'>\n";
|
||||
echo " ";
|
||||
|
|
@ -180,7 +173,8 @@ require_once "resources/check_auth.php";
|
|||
echo " </td>\n";
|
||||
}
|
||||
echo " </tr>\n";
|
||||
echo " </table><br><br>\n";
|
||||
echo "</table>";
|
||||
echo "<br><br>\n";
|
||||
|
||||
$sql = "select * from v_recordings ";
|
||||
$sql .= "where domain_uuid = '$domain_uuid' ";
|
||||
|
|
@ -275,24 +269,15 @@ require_once "resources/check_auth.php";
|
|||
} //end if results
|
||||
echo "</table>\n";
|
||||
|
||||
echo " <table width='100%' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<table width='100%' cellpadding='0' cellspacing='0'>\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td width='33.3%' nowrap> </td>\n";
|
||||
echo " <td width='33.3%' align='center' nowrap>$paging_controls</td>\n";
|
||||
echo " <td class='list_control_icons'>";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
echo " </table>\n";
|
||||
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>";
|
||||
echo "</div>";
|
||||
|
||||
echo "<br>\n";
|
||||
echo "<br>\n";
|
||||
echo "<br>\n";
|
||||
echo "<br>\n";
|
||||
echo "</table>\n";
|
||||
echo "<br><br>\n";
|
||||
|
||||
//include the footer
|
||||
require_once "resources/footer.php";
|
||||
|
|
|
|||
|
|
@ -544,8 +544,7 @@ else {
|
|||
echo " </tr>\n";
|
||||
echo "</table>\n";
|
||||
|
||||
//begin the div and table that will hold the html form
|
||||
echo "<div align='center'>";
|
||||
//begin the table that will hold the html form
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='10'>\n";
|
||||
|
||||
//determine if a file should be uploaded
|
||||
|
|
@ -971,7 +970,6 @@ else {
|
|||
}
|
||||
}
|
||||
echo "</table>\n";
|
||||
echo "</div>\n";
|
||||
|
||||
require_once "resources/footer.php";
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -86,13 +86,7 @@ if (strlen($_GET["a"]) > 0) {
|
|||
}
|
||||
}
|
||||
|
||||
echo "<div align='center'>";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='2'>\n";
|
||||
echo "<tr class='border'>\n";
|
||||
echo " <td align=\"center\">\n";
|
||||
echo " <br>";
|
||||
|
||||
echo "<table width='100%' border='0'>\n";
|
||||
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td width='50%' align='left' nowrap='nowrap'><b>Services</b></td>\n";
|
||||
echo "<td width='50%' align='right'> </td>\n";
|
||||
|
|
@ -131,7 +125,6 @@ if (strlen($_GET["a"]) > 0) {
|
|||
$row_style["0"] = "row_style0";
|
||||
$row_style["1"] = "row_style1";
|
||||
|
||||
echo "<div align='center'>\n";
|
||||
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo th_order_by('service_name', 'Name', $order_by, $order);
|
||||
|
|
@ -227,14 +220,6 @@ if (strlen($_GET["a"]) > 0) {
|
|||
echo "</tr>\n";
|
||||
|
||||
echo "</table>";
|
||||
echo "</div>";
|
||||
echo "<br><br>";
|
||||
echo "<br><br>";
|
||||
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
echo "</div>";
|
||||
echo "<br><br>";
|
||||
|
||||
//include the footer
|
||||
|
|
|
|||
|
|
@ -85,7 +85,6 @@ require_once "resources/paging.php";
|
|||
$row_style["0"] = "row_style0";
|
||||
$row_style["1"] = "row_style1";
|
||||
|
||||
echo "<div align='center'>\n";
|
||||
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo th_order_by('sip_profile_setting_name', $text['label-setting_name'], $order_by, $order, null, null, "id=".$sip_profile_uuid);
|
||||
|
|
@ -147,14 +146,6 @@ require_once "resources/paging.php";
|
|||
echo "</tr>\n";
|
||||
|
||||
echo "</table>";
|
||||
echo "</div>";
|
||||
echo "<br /><br />";
|
||||
echo "<br /><br />";
|
||||
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
echo "</div>";
|
||||
echo "<br /><br />";
|
||||
|
||||
//include the footer
|
||||
|
|
|
|||
|
|
@ -65,8 +65,6 @@ else {
|
|||
echo " });\n";
|
||||
echo " </script>";
|
||||
|
||||
echo "<div align='center'>";
|
||||
|
||||
echo "<form method='post' target='frame' action='sql_query_result.php' >";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
|
||||
|
|
@ -159,8 +157,6 @@ else {
|
|||
echo "</table><br>";
|
||||
echo "</form>";
|
||||
|
||||
echo "</div>";
|
||||
|
||||
echo "<iframe id='frame' height='400' FRAMEBORDER='0' name='frame' style='width: 100%; background-color : #FFFFFF; border: 1px solid #c0c0c0;'></iframe>\n";
|
||||
|
||||
//show the footer
|
||||
|
|
|
|||
|
|
@ -91,8 +91,6 @@ if ($_GET['a'] == "default" && permission_exists('var_edit')) {
|
|||
|
||||
?>
|
||||
|
||||
<div align='center'>
|
||||
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
|
|
@ -159,7 +157,6 @@ if ($_GET['a'] == "default" && permission_exists('var_edit')) {
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
require_once "resources/footer.php";
|
||||
|
|
|
|||
|
|
@ -228,12 +228,6 @@ else {
|
|||
echo "</script>";
|
||||
|
||||
echo "<form action=\"\" method=\"POST\" enctype=\"multipart/form-data\" name=\"frm\" onSubmit=\"\">\n";
|
||||
echo "<div align='center'>";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='2'>\n";
|
||||
echo "<tr class='border'>\n";
|
||||
echo " <td align=\"center\">\n";
|
||||
echo " <br>";
|
||||
|
||||
echo "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td align='left' nowrap>\n";
|
||||
|
|
@ -378,19 +372,11 @@ else {
|
|||
echo " <td width='33.3%' align='right'> </td>\n";
|
||||
echo " </tr>\n";
|
||||
echo " </table>\n";
|
||||
echo " <br><br>";
|
||||
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>";
|
||||
echo "</div>";
|
||||
echo "<input type='hidden' name='id' value='$voicemail_id'>\n";
|
||||
echo "</form>";
|
||||
|
||||
echo "<br>\n";
|
||||
echo "<br>\n";
|
||||
echo "<br>\n";
|
||||
echo "<br>\n";
|
||||
|
||||
//include the footer
|
||||
require_once "resources/footer.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -166,7 +166,6 @@ else {
|
|||
$row_style["0"] = "row_style0";
|
||||
$row_style["1"] = "row_style1";
|
||||
|
||||
echo "<div align='center'>\n";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td align='left'><b>".$text['label-summary']."</b> </td>\n";
|
||||
|
|
@ -222,16 +221,12 @@ else {
|
|||
echo " <td valign='top' class='".$row_style[$c]."'>".$duration."</td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$hangup_cause."</td>\n";
|
||||
echo "</table>";
|
||||
echo "</div>";
|
||||
|
||||
//breaking space
|
||||
echo "<br /><br />\n";
|
||||
|
||||
//channel data loop
|
||||
$c = 0;
|
||||
$row_style["0"] = "row_style0";
|
||||
$row_style["1"] = "row_style1";
|
||||
echo "<div align='center'>\n";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td align='left'><b>".$text['label-channel']."</b> </td>\n";
|
||||
|
|
@ -253,16 +248,12 @@ else {
|
|||
if ($c==0) { $c=1; } else { $c=0; }
|
||||
}
|
||||
echo "</table>";
|
||||
echo "</div>";
|
||||
|
||||
//breaking space
|
||||
echo "<br /><br />\n";
|
||||
|
||||
//variable loop
|
||||
$c = 0;
|
||||
$row_style["0"] = "row_style0";
|
||||
$row_style["1"] = "row_style1";
|
||||
echo "<div align='center'>\n";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo " <td align='left'><b>Variables</b> </td>\n";
|
||||
|
|
@ -317,16 +308,12 @@ else {
|
|||
if ($c==0) { $c=1; } else { $c=0; }
|
||||
}
|
||||
echo "</table>";
|
||||
echo "</div>";
|
||||
|
||||
//breaking space
|
||||
echo "<br /><br />\n";
|
||||
|
||||
//app_log
|
||||
$c = 0;
|
||||
$row_style["0"] = "row_style0";
|
||||
$row_style["1"] = "row_style1";
|
||||
echo "<div align='center'>\n";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td align='left'><b>".$text['label-application-log']."</b> </td>\n";
|
||||
|
|
@ -351,9 +338,6 @@ else {
|
|||
if ($c==0) { $c=1; } else { $c=0; }
|
||||
}
|
||||
echo "</table>";
|
||||
echo "</div>";
|
||||
|
||||
//breaking space
|
||||
echo "<br /><br />\n";
|
||||
|
||||
//call flow
|
||||
|
|
@ -525,12 +509,6 @@ else {
|
|||
echo "</table>";
|
||||
}
|
||||
|
||||
//testing
|
||||
//echo "<pre>\n";
|
||||
//echo htmlentities($xml_string);
|
||||
//print_r($xml);
|
||||
//echo "</pre>\n";
|
||||
|
||||
//get the footer
|
||||
require_once "resources/footer.php";
|
||||
?>
|
||||
|
|
@ -43,7 +43,6 @@ else {
|
|||
require_once "resources/header.php";
|
||||
|
||||
//page title and description
|
||||
echo "<div align='center'>";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo " <td width='30%' align='left' valign='top' nowrap='nowrap'><b>".$text['label-call-statistics']."</b></td>\n";
|
||||
|
|
|
|||
|
|
@ -24,8 +24,5 @@
|
|||
Ken Rice <krice@tollfreegateway.com>
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
*/
|
||||
echo "<div align='center'>\n";
|
||||
echo "<table><tr><td>\n";
|
||||
echo $error . "\n";
|
||||
echo "</td></tr></table>\n";
|
||||
echo "<div align='center'>".$error."</div>\n";
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
<div align='center'>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0">
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align='left'><b><?php echo $text['header-xmpp']?></b><br>
|
||||
<?php echo $text['description-xmpp-list']?>
|
||||
|
|
@ -68,5 +66,4 @@ if ($c==0) { $c=1; } else { $c=0; }
|
|||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</table>
|
||||
|
|
@ -179,183 +179,168 @@ require_once "resources/header.php";
|
|||
$order_by = $_GET["order_by"];
|
||||
$order = $_GET["order"];
|
||||
|
||||
echo "<div align='center'>";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
$sql = "select * from v_menu_items ";
|
||||
$sql .= "where menu_uuid = '".$menu_uuid."' ";
|
||||
$sql .= "and menu_item_parent_uuid is null ";
|
||||
if (strlen($order_by)> 0) {
|
||||
$sql .= "order by $order_by $order ";
|
||||
}
|
||||
else {
|
||||
$sql .= "order by menu_item_order asc ";
|
||||
}
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
$prep_statement->execute();
|
||||
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||
$result_count = count($result);
|
||||
|
||||
echo "<tr class='border'>\n";
|
||||
echo " <td align=\"left\">\n";
|
||||
$c = 0;
|
||||
$row_style["0"] = "row_style0";
|
||||
$row_style["1"] = "row_style0";
|
||||
|
||||
$sql = "select * from v_menu_items ";
|
||||
$sql .= "where menu_uuid = '".$menu_uuid."' ";
|
||||
$sql .= "and menu_item_parent_uuid is null ";
|
||||
if (strlen($order_by)> 0) {
|
||||
$sql .= "order by $order_by $order ";
|
||||
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
|
||||
if ($result_count == 0) {
|
||||
//no results
|
||||
echo "<tr><td> </td></tr>";
|
||||
}
|
||||
else {
|
||||
echo "<tr>";
|
||||
echo "<th align='left' nowrap>".$text['label-title']."</th>";
|
||||
echo "<th align='left' nowrap>".$text['label-groups']."</th>";
|
||||
echo "<th align='left'nowrap>".$text['label-category']."</th>";
|
||||
echo "<th nowrap style='text-align: center;'>".$text['label-protected']."</th>";
|
||||
echo "<th nowrap width='70' style='text-align: center;'>".$text['label-menu_order']."</th>";
|
||||
echo "<td class='list_control_icons'>";
|
||||
if (permission_exists('menu_add')) {
|
||||
echo "<a href='menu_item_edit.php?id=".$menu_uuid."' alt='".$text['button-add']."'>$v_link_label_add</a>";
|
||||
}
|
||||
else {
|
||||
$sql .= "order by menu_item_order asc ";
|
||||
}
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
$prep_statement->execute();
|
||||
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||
$result_count = count($result);
|
||||
echo "</td>\n";
|
||||
echo "</tr>";
|
||||
|
||||
$c = 0;
|
||||
$row_style["0"] = "row_style0";
|
||||
$row_style["1"] = "row_style0";
|
||||
foreach($result as $row) {
|
||||
//set the db values as php variables
|
||||
$menu_item_uuid = $row['menu_item_uuid'];
|
||||
$menu_item_category = $row['menu_item_category'];
|
||||
$menu_item_title = $row['menu_item_title'];
|
||||
$menu_item_link = $row['menu_item_link'];
|
||||
$menu_item_protected = $row['menu_item_protected'];
|
||||
|
||||
echo "<div align='left'>\n";
|
||||
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
|
||||
if ($result_count == 0) {
|
||||
//no results
|
||||
echo "<tr><td> </td></tr>";
|
||||
}
|
||||
else {
|
||||
echo "<tr>";
|
||||
echo "<th align='left' nowrap>".$text['label-title']."</th>";
|
||||
echo "<th align='left' nowrap>".$text['label-groups']."</th>";
|
||||
echo "<th align='left'nowrap>".$text['label-category']."</th>";
|
||||
echo "<th nowrap style='text-align: center;'>".$text['label-protected']."</th>";
|
||||
echo "<th nowrap width='70' style='text-align: center;'>".$text['label-menu_order']."</th>";
|
||||
echo "<td class='list_control_icons'>";
|
||||
if (permission_exists('menu_add')) {
|
||||
echo "<a href='menu_item_edit.php?id=".$menu_uuid."' alt='".$text['button-add']."'>$v_link_label_add</a>";
|
||||
}
|
||||
echo "</td>\n";
|
||||
echo "</tr>";
|
||||
|
||||
foreach($result as $row) {
|
||||
//set the db values as php variables
|
||||
$menu_item_uuid = $row['menu_item_uuid'];
|
||||
$menu_item_category = $row['menu_item_category'];
|
||||
$menu_item_title = $row['menu_item_title'];
|
||||
$menu_item_link = $row['menu_item_link'];
|
||||
$menu_item_protected = $row['menu_item_protected'];
|
||||
|
||||
//get the groups that have been assigned to the menu
|
||||
$sql = "select group_name from v_menu_item_groups ";
|
||||
$sql .= "where menu_uuid = '$menu_uuid' ";
|
||||
$sql .= "and menu_item_uuid = '$menu_item_uuid' ";
|
||||
$sub_prep_statement = $db->prepare(check_sql($sql));
|
||||
$sub_prep_statement->execute();
|
||||
$sub_result = $sub_prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||
$group_list = "";
|
||||
$x = 0;
|
||||
foreach ($sub_result as &$sub_row) {
|
||||
if ($x == 0) {
|
||||
$group_list = $sub_row["group_name"];
|
||||
}
|
||||
else {
|
||||
$group_list .= ", ".$sub_row["group_name"];
|
||||
}
|
||||
$x++;
|
||||
}
|
||||
unset ($sub_prep_statement);
|
||||
|
||||
//add the type link based on the typd of the menu
|
||||
switch ($menu_item_category) {
|
||||
case "internal":
|
||||
$menu_item_title = "<a href='".PROJECT_PATH . $menu_item_link."'>$menu_item_title</a>";
|
||||
break;
|
||||
case "external":
|
||||
if (substr($menu_item_link, 0,1) == "/") {
|
||||
$menu_item_link = PROJECT_PATH . $menu_item_link;
|
||||
}
|
||||
$menu_item_title = "<a href='$menu_item_link' target='_blank'>$menu_item_title</a>";
|
||||
break;
|
||||
case "email":
|
||||
$menu_item_title = "<a href='mailto:$menu_item_link'>$menu_item_title</a>";
|
||||
break;
|
||||
}
|
||||
|
||||
//display the content of the list
|
||||
$tr_link = (permission_exists('menu_edit')) ? "href='menu_item_edit.php?id=".$menu_uuid."&menu_item_uuid=".$row['menu_item_uuid']."&menu_uuid=".$menu_uuid."'" : null;
|
||||
echo "<tr style='".$row_style[$c]."' ".$tr_link.">\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>".$menu_item_title." </td>";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>".$group_list." </td>";
|
||||
//echo "<td valign='top' class='".$row_style[$c]."'>".$menu_item_link." </td>";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>".$menu_item_category." </td>";
|
||||
//echo "<td valign='top' class='".$row_style[$c]."'>".$row[menu_item_description]."</td>";
|
||||
//echo "<td valign='top' class='".$row_style[$c]."'>".$row['menu_item_parent_uuid']." </td>";
|
||||
//echo "<td valign='top' class='".$row_style[$c]."'>".$row['menu_item_order']." </td>";
|
||||
|
||||
if ($menu_item_protected == "true") {
|
||||
echo "<td valign='top' class='".$row_style[$c]."' style='text-align: center;'><strong>".$text['label-true']."</strong> </td>";
|
||||
//get the groups that have been assigned to the menu
|
||||
$sql = "select group_name from v_menu_item_groups ";
|
||||
$sql .= "where menu_uuid = '$menu_uuid' ";
|
||||
$sql .= "and menu_item_uuid = '$menu_item_uuid' ";
|
||||
$sub_prep_statement = $db->prepare(check_sql($sql));
|
||||
$sub_prep_statement->execute();
|
||||
$sub_result = $sub_prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||
$group_list = "";
|
||||
$x = 0;
|
||||
foreach ($sub_result as &$sub_row) {
|
||||
if ($x == 0) {
|
||||
$group_list = $sub_row["group_name"];
|
||||
}
|
||||
else {
|
||||
echo "<td valign='top' class='".$row_style[$c]."' style='text-align: center;'>".$text['label-false']." </td>";
|
||||
$group_list .= ", ".$sub_row["group_name"];
|
||||
}
|
||||
$x++;
|
||||
}
|
||||
unset ($sub_prep_statement);
|
||||
|
||||
echo "<td valign='top' nowrap class='".$row_style[$c]."' style='text-align: center;'>";
|
||||
echo " ".$row[menu_item_order]." ";
|
||||
echo "</td>";
|
||||
//add the type link based on the typd of the menu
|
||||
switch ($menu_item_category) {
|
||||
case "internal":
|
||||
$menu_item_title = "<a href='".PROJECT_PATH . $menu_item_link."'>$menu_item_title</a>";
|
||||
break;
|
||||
case "external":
|
||||
if (substr($menu_item_link, 0,1) == "/") {
|
||||
$menu_item_link = PROJECT_PATH . $menu_item_link;
|
||||
}
|
||||
$menu_item_title = "<a href='$menu_item_link' target='_blank'>$menu_item_title</a>";
|
||||
break;
|
||||
case "email":
|
||||
$menu_item_title = "<a href='mailto:$menu_item_link'>$menu_item_title</a>";
|
||||
break;
|
||||
}
|
||||
|
||||
//echo "<td valign='top' align='center' nowrap class='".$row_style[$c]."'>";
|
||||
//if (permission_exists('menu_edit')) {
|
||||
// echo " <input type='button' class='btn' name='' onclick=\"window.location='menu_item_move_up.php?menu_uuid=".$menu_uuid."&menu_item_parent_uuid=".$row['menu_item_parent_uuid']."&menu_item_uuid=".$row['menu_item_uuid']."&menu_item_order=".$row['menu_item_order']."'\" value='<' title='".$row['menu_item_order'].". ".$text['button-move_up']."'>";
|
||||
// echo " <input type='button' class='btn' name='' onclick=\"window.location='menu_item_move_down.php?menu_uuid=".$menu_uuid."&menu_item_parent_uuid=".$row['menu_item_parent_uuid']."&menu_item_uuid=".$row['menu_item_uuid']."&menu_item_order=".$row['menu_item_order']."'\" value='>' title='".$row['menu_item_order'].". ".$text['button-move_down']."'>";
|
||||
//}
|
||||
//echo "</td>";
|
||||
//display the content of the list
|
||||
$tr_link = (permission_exists('menu_edit')) ? "href='menu_item_edit.php?id=".$menu_uuid."&menu_item_uuid=".$row['menu_item_uuid']."&menu_uuid=".$menu_uuid."'" : null;
|
||||
echo "<tr style='".$row_style[$c]."' ".$tr_link.">\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>".$menu_item_title." </td>";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>".$group_list." </td>";
|
||||
//echo "<td valign='top' class='".$row_style[$c]."'>".$menu_item_link." </td>";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>".$menu_item_category." </td>";
|
||||
//echo "<td valign='top' class='".$row_style[$c]."'>".$row[menu_item_description]."</td>";
|
||||
//echo "<td valign='top' class='".$row_style[$c]."'>".$row['menu_item_parent_uuid']." </td>";
|
||||
//echo "<td valign='top' class='".$row_style[$c]."'>".$row['menu_item_order']." </td>";
|
||||
|
||||
echo " <td class='list_control_icons'>";
|
||||
if (permission_exists('menu_edit')) {
|
||||
echo "<a href='menu_item_edit.php?id=".$menu_uuid."&menu_item_uuid=".$row['menu_item_uuid']."&menu_uuid=".$menu_uuid."' alt='".$text['button-edit']."'>$v_link_label_edit</a>";
|
||||
}
|
||||
if (permission_exists('menu_delete')) {
|
||||
echo "<a href='menu_item_delete.php?id=".$menu_uuid."&menu_item_uuid=".$row['menu_item_uuid']."&menu_uuid=".$menu_uuid."' onclick=\"return confirm('".$text['confirm-delete']."')\" alt='".$text['button-delete']."'>$v_link_label_delete</a>";
|
||||
}
|
||||
echo " </td>\n";
|
||||
echo "</tr>";
|
||||
if ($menu_item_protected == "true") {
|
||||
echo "<td valign='top' class='".$row_style[$c]."' style='text-align: center;'><strong>".$text['label-true']."</strong> </td>";
|
||||
}
|
||||
else {
|
||||
echo "<td valign='top' class='".$row_style[$c]."' style='text-align: center;'>".$text['label-false']." </td>";
|
||||
}
|
||||
|
||||
//update the menu order
|
||||
if ($row[menu_item_order] != $tmp_menu_item_order) {
|
||||
$sql = "update v_menu_items set ";
|
||||
$sql .= "menu_item_title = '".$row['menu_item_title']."', ";
|
||||
$sql .= "menu_item_order = '".$tmp_menu_item_order."' ";
|
||||
$sql .= "where menu_uuid = '".$menu_uuid."' ";
|
||||
$sql .= "and menu_item_uuid = '".$row[menu_item_uuid]."' ";
|
||||
//$db->exec(check_sql($sql));
|
||||
}
|
||||
$tmp_menu_item_order++;
|
||||
echo "<td valign='top' nowrap class='".$row_style[$c]."' style='text-align: center;'>";
|
||||
echo " ".$row[menu_item_order]." ";
|
||||
echo "</td>";
|
||||
|
||||
//check for sub menus
|
||||
$menu_item_level = 0;
|
||||
if (strlen($row['menu_item_uuid']) > 0) {
|
||||
$c = build_db_child_menu_list($db, $menu_item_level, $row['menu_item_uuid'], $c);
|
||||
}
|
||||
//echo "<td valign='top' align='center' nowrap class='".$row_style[$c]."'>";
|
||||
//if (permission_exists('menu_edit')) {
|
||||
// echo " <input type='button' class='btn' name='' onclick=\"window.location='menu_item_move_up.php?menu_uuid=".$menu_uuid."&menu_item_parent_uuid=".$row['menu_item_parent_uuid']."&menu_item_uuid=".$row['menu_item_uuid']."&menu_item_order=".$row['menu_item_order']."'\" value='<' title='".$row['menu_item_order'].". ".$text['button-move_up']."'>";
|
||||
// echo " <input type='button' class='btn' name='' onclick=\"window.location='menu_item_move_down.php?menu_uuid=".$menu_uuid."&menu_item_parent_uuid=".$row['menu_item_parent_uuid']."&menu_item_uuid=".$row['menu_item_uuid']."&menu_item_order=".$row['menu_item_order']."'\" value='>' title='".$row['menu_item_order'].". ".$text['button-move_down']."'>";
|
||||
//}
|
||||
//echo "</td>";
|
||||
|
||||
if ($c==0) { $c=1; } else { $c=0; }
|
||||
} //end foreach
|
||||
unset($sql, $result, $row_count);
|
||||
echo " <td class='list_control_icons'>";
|
||||
if (permission_exists('menu_edit')) {
|
||||
echo "<a href='menu_item_edit.php?id=".$menu_uuid."&menu_item_uuid=".$row['menu_item_uuid']."&menu_uuid=".$menu_uuid."' alt='".$text['button-edit']."'>$v_link_label_edit</a>";
|
||||
}
|
||||
if (permission_exists('menu_delete')) {
|
||||
echo "<a href='menu_item_delete.php?id=".$menu_uuid."&menu_item_uuid=".$row['menu_item_uuid']."&menu_uuid=".$menu_uuid."' onclick=\"return confirm('".$text['confirm-delete']."')\" alt='".$text['button-delete']."'>$v_link_label_delete</a>";
|
||||
}
|
||||
echo " </td>\n";
|
||||
echo "</tr>";
|
||||
|
||||
} //end if results
|
||||
//update the menu order
|
||||
if ($row[menu_item_order] != $tmp_menu_item_order) {
|
||||
$sql = "update v_menu_items set ";
|
||||
$sql .= "menu_item_title = '".$row['menu_item_title']."', ";
|
||||
$sql .= "menu_item_order = '".$tmp_menu_item_order."' ";
|
||||
$sql .= "where menu_uuid = '".$menu_uuid."' ";
|
||||
$sql .= "and menu_item_uuid = '".$row[menu_item_uuid]."' ";
|
||||
//$db->exec(check_sql($sql));
|
||||
}
|
||||
$tmp_menu_item_order++;
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td colspan='6' align='left'>\n";
|
||||
echo " <table border='0' width='100%' cellpadding='0' cellspacing='0'>\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td width='33.3%' nowrap> </td>\n";
|
||||
echo " <td width='33.3%' align='center' nowrap> </td>\n";
|
||||
echo " <td width='33.3%' align='right'>\n";
|
||||
if (permission_exists('menu_add') && $action == "update") {
|
||||
echo " <a href='menu_item_edit.php?id=".$menu_uuid."' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
echo " </table>\n";
|
||||
//check for sub menus
|
||||
$menu_item_level = 0;
|
||||
if (strlen($row['menu_item_uuid']) > 0) {
|
||||
$c = build_db_child_menu_list($db, $menu_item_level, $row['menu_item_uuid'], $c);
|
||||
}
|
||||
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
echo "</div>\n";
|
||||
echo "<br><br>";
|
||||
if ($c==0) { $c=1; } else { $c=0; }
|
||||
} //end foreach
|
||||
unset($sql, $result, $row_count);
|
||||
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
echo "</div>";
|
||||
} //end if results
|
||||
|
||||
echo "<br><br>";
|
||||
require_once "resources/footer.php";
|
||||
echo "<tr>\n";
|
||||
echo "<td colspan='6' align='left'>\n";
|
||||
echo " <table border='0' width='100%' cellpadding='0' cellspacing='0'>\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td width='33.3%' nowrap> </td>\n";
|
||||
echo " <td width='33.3%' align='center' nowrap> </td>\n";
|
||||
echo " <td width='33.3%' align='right'>\n";
|
||||
if (permission_exists('menu_add') && $action == "update") {
|
||||
echo " <a href='menu_item_edit.php?id=".$menu_uuid."' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
echo " </table>\n";
|
||||
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
echo "<br><br>";
|
||||
|
||||
require_once "resources/footer.php";
|
||||
?>
|
||||
|
|
@ -43,10 +43,9 @@ else {
|
|||
$document['title'] = $text['title-user_manager'];
|
||||
|
||||
//show the user list
|
||||
echo "<div align='center'>";
|
||||
echo " <table width='100%' border='0'>";
|
||||
echo " <tr>";
|
||||
echo " <td align='left' width='100%'>";
|
||||
echo " <td align='left' width='100%'>";
|
||||
require_once "users.php";
|
||||
echo " <br />";
|
||||
echo " <br />";
|
||||
|
|
@ -54,7 +53,6 @@ else {
|
|||
echo " </td>";
|
||||
echo " </tr>";
|
||||
echo " </table>";
|
||||
echo "</div>";
|
||||
|
||||
//include the footer
|
||||
include "resources/footer.php";
|
||||
|
|
|
|||
|
|
@ -42,11 +42,6 @@ $order = $_GET["order"];
|
|||
$field_name = $_REQUEST["field_name"];
|
||||
$field_value = $_REQUEST["field_value"];
|
||||
|
||||
echo "<div align='center'>";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='2'>\n";
|
||||
echo "<tr class='border'>\n";
|
||||
echo " <td align=\"center\">\n";
|
||||
|
||||
//page title and description
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<form method='post' action=''>";
|
||||
|
|
@ -145,7 +140,6 @@ echo " <td align=\"center\">\n";
|
|||
$row_style["1"] = "row_style1";
|
||||
|
||||
//show the data
|
||||
echo "<div align='center'>\n";
|
||||
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
|
|
@ -224,14 +218,6 @@ echo " <td align=\"center\">\n";
|
|||
echo "</tr>\n";
|
||||
|
||||
echo "</table>";
|
||||
echo "</div>";
|
||||
echo "<br><br>";
|
||||
echo "<br><br>";
|
||||
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
echo "</div>";
|
||||
echo "<br><br>";
|
||||
|
||||
?>
|
||||
Loading…
Reference in New Issue