From 98d294a757632d93a72201203372fc9f347f0ff0 Mon Sep 17 00:00:00 2001 From: chriskl Date: Mon, 19 May 2003 05:53:42 +0000 Subject: [PATCH] printVal run. xhtml fixes --- reports.php | 42 ++++++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/reports.php b/reports.php index 079a2225..37c38f41 100644 --- a/reports.php +++ b/reports.php @@ -3,7 +3,7 @@ /** * List reports in a database * - * $Id: reports.php,v 1.10 2003/04/18 11:08:26 chriskl Exp $ + * $Id: reports.php,v 1.11 2003/05/19 05:53:42 chriskl Exp $ */ // Include application functions @@ -42,7 +42,7 @@ echo "\n"; echo "\n"; echo "\n"; + htmlspecialchars($_POST['report_name']), "\" />\n"; echo "\n"; echo "\n"; echo "
{$lang['strname']}_maxNameLen}\" value=\"", - htmlspecialchars($_POST['report_name']), "\">
{$lang['strdatabase']}
\n"; echo "

\n"; - echo "

\n"; - echo "f['report_id']}\">\n"; + echo "\n"; + echo "

\n"; + echo "f['report_id']}\" />\n"; echo "\n"; - echo "

{$lang['strshowallreports']}

\n"; + echo "

{$lang['strshowallreports']}

\n"; } /** @@ -107,19 +108,19 @@ if ($report->recordCount() == 1) { echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "
{$lang['strname']}", htmlspecialchars($report->f['report_name']), "
", $misc->printVal($report->f['report_name']), "
{$lang['strdatabase']}", htmlspecialchars($report->f['db_name']), "
", $misc->printVal($report->f['db_name']), "
{$lang['strcomment']}
", nl2br(htmlspecialchars($report->f['descr'])), "
", $misc->printVal($report->f['descr']), "
{$lang['strsql']}
", nl2br(htmlspecialchars($report->f['report_sql'])), "
", $misc->printVal($report->f['report_sql']), "
\n"; } else echo "

{$lang['strinvalidparam']}

\n"; - echo "

{$lang['strshowallreports']} |\n"; - echo "f['report_id']}\">{$lang['stredit']}

\n"; + echo "

{$lang['strshowallreports']} |\n"; + echo "f['report_id']}\">{$lang['stredit']}

\n"; } /** @@ -143,7 +144,7 @@ echo "\n"; echo "\n"; echo "\n"; + htmlspecialchars($_POST['report_name']), "\" />\n"; echo "\n"; echo "\n"; echo "
{$lang['strname']}_maxNameLen}\" value=\"", - htmlspecialchars($_POST['report_name']), "\">
{$lang['strdatabase']}
\n"; - echo "

\n"; - echo "

\n"; + echo "

\n"; + echo "\n"; + echo "

\n"; echo "\n"; - echo "

{$lang['strshowallreports']}

\n"; + echo "

{$lang['strshowallreports']}

\n"; } /** @@ -204,9 +206,9 @@ // Fetch report from the database $report = &$reportsdb->getReport($_REQUEST['report_id']); - echo "

{$lang['strreports']}: ", htmlspecialchars($report->f['report_name']), ": {$lang['strdrop']}

\n"; + echo "

{$lang['strreports']}: ", $misc->printVal($report->f['report_name']), ": {$lang['strdrop']}

\n"; - echo "

", sprintf($lang['strconfdropreport'], htmlspecialchars($report->f['report_name'])), "

\n"; + echo "

", sprintf($lang['strconfdropreport'], $misc->printVal($report->f['report_name'])), "

\n"; echo "
\n"; echo "\n"; @@ -246,9 +248,9 @@ $return_url = urlencode('reports.php'); $return_desc = urlencode($lang['strback']); $id = (($i % 2) == 0 ? '1' : '2'); - echo "", htmlspecialchars($reports->f['report_name']), "\n"; - echo "", htmlspecialchars($reports->f['db_name']), "\n"; - echo "", htmlspecialchars($reports->f['date_created']), "\n"; + echo "", $misc->printVal($reports->f['report_name']), "\n"; + echo "", $misc->printVal($reports->f['db_name']), "\n"; + echo "", $misc->printVal($reports->f['date_created']), "\n"; echo "f['db_name']), "&query={$query}&return_url={$return_url}&return_desc={$return_desc}\">{$lang['strrun']}\n"; echo "