Code cleanup.

This commit is contained in:
Nate Jones 2015-02-15 08:46:20 +00:00
parent 2a6e9dfbff
commit d96f016ea5
27 changed files with 230 additions and 450 deletions

View File

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

View File

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

View File

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

View File

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

View File

@ -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'>&nbsp; &nbsp;\n";
//echo "<input type='button' class='btn' name='' onclick=\"window.location='rssadd.php'\" value='Add $module_title'>&nbsp; &nbsp;\n";
echo "</div>";
echo "<br><br>";
require_once "resources/footer.php";
unset ($result_count);

View File

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

View File

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

View File

@ -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,7 +106,7 @@ 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>";
@ -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);
@ -186,14 +168,7 @@ if (count($_POST)>0) {
}
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>";
require_once "resources/header.php";
echo "<form method='post' action=''>";
echo "<table>";
@ -251,13 +226,6 @@ if (count($_POST)>0) {
echo "</table>";
echo "</form>";
echo " </td>";
echo " </tr>";
echo "</table>";
echo "</div>";
require_once "resources/footer.php";
} //end if not post

View File

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

View File

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

View File

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

View File

@ -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'>&nbsp;</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>";
?>

View File

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

View File

@ -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,7 +155,6 @@ 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";
@ -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' ";
@ -283,16 +277,7 @@ require_once "resources/check_auth.php";
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 "<br><br>\n";
//include the footer
require_once "resources/footer.php";

View File

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

View File

@ -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'>&nbsp;</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

View File

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

View File

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

View File

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

View File

@ -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'>&nbsp;</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";

View File

@ -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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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";
?>

View File

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

View File

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

View File

@ -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']?>
@ -69,4 +67,3 @@ if ($c==0) { $c=1; } else { $c=0; }
</td>
</tr>
</table>
</div>

View File

@ -179,12 +179,6 @@ 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";
echo "<tr class='border'>\n";
echo " <td align=\"left\">\n";
$sql = "select * from v_menu_items ";
$sql .= "where menu_uuid = '".$menu_uuid."' ";
$sql .= "and menu_item_parent_uuid is null ";
@ -203,7 +197,6 @@ $order = $_GET["order"];
$row_style["0"] = "row_style0";
$row_style["1"] = "row_style0";
echo "<div align='left'>\n";
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
if ($result_count == 0) {
@ -347,15 +340,7 @@ $order = $_GET["order"];
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</div>\n";
echo "<br><br>";
echo " </td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</div>";
echo "<br><br>";
require_once "resources/footer.php";
?>

View File

@ -43,7 +43,6 @@ 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%'>";
@ -54,7 +53,6 @@ else {
echo " </td>";
echo " </tr>";
echo " </table>";
echo "</div>";
//include the footer
include "resources/footer.php";

View File

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