+-------------------------------------------------------------------------+ */ require_once "../../include/session.php"; require_once "include/fields.php"; require_once "include/post.php"; require_once "include/post_class.php"; if (!isset($_POST["startdate"])) { $_POST["startdate"] = dateToString(mktime(0, 0, 0, date("m"), 1, date("y"))); } if (!isset($_POST["enddate"])) { $_POST["enddate"] = dateToString(mktime(0, 0, 0)); } $poster = new poster($db, stringToDate($_POST["startdate"]), stringToDate($_POST["enddate"])); $poster->getSections(); if (isset($_POST["cmd"])) { $statusmessage = $poster->process($_POST); } $pageTitle = "Post Records"; $phpbms->cssIncludes[] = "pages/bms/post.css"; $phpbms->jsIncludes[] = "modules/bms/javascript/post.js"; //Form Elements //============================================================== $theform = new phpbmsForm(); $theinput = new inputDatePicker("startdate", dateToString($poster->startdate, "SQL"), "start date"); $theform->addField($theinput); $theinput = new inputDatePicker("enddate", dateToString($poster->enddate, "SQL"), "end date"); $theform->addField($theinput); $theform->jsMerge(); //============================================================== //End Form Elements include "header.php";