\n";
// Handle selected date ranges
$start_date = date("Y-m-d 00:00:00",time());
$end_date = date("Y-m-d 23:59:59",time());
if (array_key_exists('start_date',$_POST) && strlen($_POST['start_date']) > 0) $start_date = date("Y-m-d 00:00:00",strtotime($_POST['start_date']));
if (array_key_exists('end_date',$_POST) && strlen($_POST['end_date']) > 0) {
$end_date = $_POST['end_date'];
if ($end_date < substr($start_date,0,10)) {
$end_date = substr($start_date,0,10);
$error_message = getLanguageText('ERRORMSG-INVALID-DATE-RANGE');
}
$end_date = date("Y-m-d 23:59:59",strtotime($end_date));
}
$sdate = substr($start_date,0,10);
$edate = substr($end_date,0,10);
$twhere = "AND transaction_datetime BETWEEN '$start_date' AND '$end_date' ";
$print_cmd = "&start_date=$sdate&end_date=$edate";
$message_width = 400;
include "form.messages.php";
?>
\n- " . $ColumnTitle . " -";
$RowClasses = array("data-odd","data-even");
if (db_num_rows($transactions) > 0) {
?>