#The full software license can be found here: #http://www.accounting-123.com/a.php?a=153/GPLv3 # # # # # # # # # # # require "settings.php"; # show current stock $OUTPUT = printCallout(); require "template.php"; ## # Functions ## # show callout docs function printCallout() { # Set up table to display in $printCallout = "\n\t\t\t\t\t<h3>Incomplete Call Out Documents</h3>\n\t\t\t\t\t<table " . TMPL_tblDflts . ">\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th>Username</th>\n\t\t\t\t\t\t<th>Call Out Person</th>\n\t\t\t\t\t\t<th>Job No.</th>\n\t\t\t\t\t\t<th>Service Date</th>\n\t\t\t\t\t\t<th>Customer Name</th>\n\t\t\t\t\t\t<th colspan='3'>Options</th>\n\t\t\t\t\t</tr>"; # connect to database db_connect(); # Query server $i = 0; $sql = "SELECT * FROM callout_docs WHERE done = 'n' AND div = '" . USER_DIV . "' ORDER BY calloutid DESC"; $calloutRslt = db_exec($sql) or errDie("Unable to retrieve callout documents from database.");
# # # # # # # # # # # require "settings.php"; if (isset($_POST["key"])) { switch ($_POST["key"]) { case "view": $OUTPUT = printCallout($_POST); break; default: $OUTPUT = slct(); break; } } else { # Display default output $OUTPUT = slct(); } require "template.php"; # Default view function slct() { //layout $slct = "\r\n\t\t\t\t<h3>View Canceled Call Out Documents<h3>\r\n\t\t\t\t<table " . TMPL_tblDflts . " width='580'>\r\n\t\t\t\t<form action='" . SELF . "' method='POST' name='form'>\r\n\t\t\t\t\t<input type='hidden' name='key' value='view'>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<th>By Date Range</th>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr class='" . bg_class() . "'>\r\n\t\t\t\t\t\t<td align='center'>\r\n\t\t\t\t\t\t\t" . mkDateSelect("from", date("Y"), date("m"), "01") . "\r\n\t\t\t\t\t\t\t TO \r\n\t\t\t\t\t\t\t" . mkDateSelect("to") . "\r\n\t\t\t\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td valign='bottom'><input type='submit' value='Search'></td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t</form>\r\n\t\t\t\t</table>\r\n\t\t\t\t<p>\r\n\t\t\t\t<table border=0 cellpadding='2' cellspacing='1'>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<th>Quick Links</th>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr class='datacell'>\r\n\t\t\t\t\t\t<td><a href='callout-unf-view.php'>View Incomplete Call Out Documents</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr class='datacell'>\r\n\t\t\t\t\t\t<td><a href='callout-new.php'>New Call Out Document</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr class='datacell'>\r\n\t\t\t\t\t\t<td><a href='main.php'>Main Menu</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t</table>";