Minor layout mods.

This commit is contained in:
Nate Jones
2014-02-26 06:07:13 +00:00
parent 4c6734aa68
commit 09f4b55819

View File

@@ -78,22 +78,20 @@ 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%'>\n";
echo " <td align=\"left\" valign='middle' width='100%' style='padding-right: 15px;' nowrap>\n";
echo " <b>".$text['label-log-viewer']."</b><br />\n";
echo " </td>\n";
echo " <form action=\"log_viewer.php\" method=\"POST\">\n";
echo " <td align='right' valign='middle' nowrap>\n";
echo " <label for='filter' style='margin-right: 30px;'>".$text['label-filter']." <input type=\"text\" class=\"formfld\" style=\"width: 150px; text-align: center;\" name=\"filter\" value=\"".$_POST['filter']."\" onclick=\"this.select();\"></label>";
echo " <label for='ln' style='margin-right: 30px;'><input type='checkbox' name='ln' id='ln' value='1' ".(($_POST['ln'] == 1) ? 'checked' : null)."> ".$text['label-line-num']."</label>";
echo " <label for='ord' style='margin-right: 30px;'><input type='checkbox' name='ord' id='ord' value='desc' ".(($_POST['ord'] == 'desc') ? 'checked' : null)."> ".$text['label-sort']."</label>";
echo " <form action=\"log_viewer.php\" method=\"POST\">\n";
echo " <label for='filter' style='margin-right: 20px;'>".$text['label-filter']." <input type=\"text\" class=\"formfld\" style=\"width: 150px; text-align: center;\" name=\"filter\" value=\"".$_POST['filter']."\" onclick=\"this.select();\"></label>";
echo " <label for='ln' style='margin-right: 20px;'><input type='checkbox' name='ln' id='ln' value='1' ".(($_POST['ln'] == 1) ? 'checked' : null)."> ".$text['label-line-num']."</label>";
echo " <label for='ord' style='margin-right: 20px;'><input type='checkbox' name='ord' id='ord' value='desc' ".(($_POST['ord'] == 'desc') ? 'checked' : null)."> ".$text['label-sort']."</label>";
echo " Display <input type=\"text\" class=\"formfld\" style=\"width: 50px; text-align: center;\" name=\"fs\" value=\"".$_POST['fs']."\" onclick=\"this.select();\"> ".$text['label-kb']."";
echo " <input type=\"submit\" class=\"btn\" style=\"margin-left: 30px;\" name=\"submit\" value=\"".$text['button-reload']."\">";
echo " </td>\n";
echo " </form>\n";
echo " <td width='125' align='right' valign='middle' nowrap='nowrap'>\n";
echo " <input type=\"submit\" class=\"btn\" style=\"margin-left: 20px;\" name=\"submit\" value=\"".$text['button-reload']."\">";
if (permission_exists('log_download')) {
echo " <input type='button' class='btn' value='".$text['button-download']."' onclick=\"document.location.href='log_viewer.php?a=download&t=logs';\" />\n";
echo " <input type='button' class='btn' value='".$text['button-download']."' onclick=\"document.location.href='log_viewer.php?a=download&t=logs';\" />\n";
}
echo " </form>\n";
echo " </td>\n";
echo " </tr>\n";
echo " <tr>\n";
@@ -156,8 +154,9 @@ if (permission_exists('log_view')) {
*/
echo "<table style=\"width: 100%\;\" width=\"100%\" border=\"0\" cellpadding=\"6\" cellspacing=\"0\">";
echo "<tbody><tr><th colspan=\"2\" style=\"text-alight: left\;\">".$text['label-syntax']."</th></tr>";
echo "<tr><th colspan=\"2\">&nbsp;</th></tr>";
echo "<tr><td style=\"text-align: left;background-color: #000000;\">";
echo "<table cellpadding='0' cellspacing='0' border='0' width='100%'><tr>";
$user_filesize = '32768';
if (isset($_POST['submit'])) {
@@ -170,12 +169,13 @@ if (permission_exists('log_view')) {
}
if (strlen($_REQUEST['filter']) > 0){
$uuid_filter = $_REQUEST['filter'];
echo "<div style=\"text-align: right;color: #FFFFFF;\">".$text['description-filter']." " . $uuid_filter . "</div>";
echo "<td style=\"text-align: left; color: #FFFFFF;\">".$text['description-filter']." " . $uuid_filter . "</td>";
}
}
//echo "Log File Size: " . $file_size . " bytes. <br />";
echo "<div style=\"text-align: right;color: #FFFFFF;\">".$text['label-displaying']." " . number_format($user_filesize,0,'.',',') . " of " . number_format($file_size,0,'.',',') . " ".$text['label-bytes'].". </div><br><hr>";
echo "<td style=\"text-align: right;color: #FFFFFF;\">".$text['label-displaying']." " . number_format($user_filesize,0,'.',',') . " of " . number_format($file_size,0,'.',',') . " ".$text['label-bytes'].". </td>";
echo "</tr></table><hr>";
$file = fopen($log_file, "r") or exit($text['error-open-file']);