<?php
include("common_db.php");
include("functions.php");
dbconnect($host, $username, $password); //from common_db.php
if(isset($_REQUEST['report_id'])) {
$report_id = intval($_REQUEST['report_id']);
} else {
//TODO: panic
die('panic!!!');
}
$strings = loadStrings($lang, 'REPORT5');
headers();
html();
head($strings['R5_TITLE']);
menu();
navpane();
?>
<div id="mainpane">
<?php getReportSteps(5, $report_id); ?>
<form action="saved-reports.php" method="post" class="lblock">
<?php
echo($strings['R5_INTRO']);
?>
<label for="title"><?php echo($strings['R5_LTITLE']); ?><input type="text" name="title" /></label>
<label for="ct"><?php echo($strings['R5_COLORTABLE']); ?></label>
<label for="ct" class="jut"><input type="radio" name="ct" value="column" checked="checked" /><?php echo($strings['R5_COLUMNAR']); ?></label>
<label for="ct" class="jut"><input type="radio" name="ct" value="table" /><?php echo($strings['R5_TABULAR']); ?></label>
<?php echo('<input type="hidden" name="report_id" value="' . $report_id . '" />'); ?>
<input type="submit" value="<?php echo($strings['R5_DONE']); ?>" />
</form>
</div>
<?php
endhtml();
?>