//POST Variables if (isset($_POST['login_user'])) { if ($_POST['login_password'] == "123456") { ?> <form action='dispatchTrack.php' method='post'> <table id='cssTable' align=center style='border: 1px solid gray'> <tr><th colspan=2>Report New Issue</th></tr> <tr> <td> Log-in Date: </td> <td> <?php retrieveMonthListHTML("loginMonth"); retrieveDayListHTML("loginDay"); retrieveYearListHTML("loginYear"); ?> </td> </tr> <tr> <td> Time: </td> <td> <?php retrieveHourListHTML("loginHour"); retrieveMinuteListHTML("loginMinute"); retrieveShiftListHTML("loginamorpm"); ?> </td> </tr>
</select> </td> </tr> <tr> <td>Action Taken:</td> <td> <textarea name='action_taken' cols=70 rows=5></textarea> </td> </tr> <tr> <td>Accomplishment Time:</td> <td> <?php retrieveMonthListHTML("selectMonth"); retrieveDayListHTML("selectDay"); retrieveYearListHTML("documentYear"); retrieveHourListHTML("documentHour"); retrieveMinuteListHTML("documentMinute"); retrieveShiftListHTML("docamorpm"); ?> </td> </tr> <tr> <td> Recommendations: </td> <td> <textarea name='recommendations' cols=70 rows=5></textarea> </td> </tr> <tr>
<option <?php if($_POST['date_filter']=="weekly") { echo "selected=true"; } ?> value='weekly'>Weekly</option> <option <?php if(($_POST['date_filter']=="monthly")||($_POST['date_filter']=="")) { echo "selected=true"; } ?> value='monthly' >Monthly</option> <option <?php if($_POST['date_filter']=="yearly") { echo "selected=true"; } ?> value='yearly'>Annually</option> </select> <b>From:</b> <?php retrieveMonthListHTML("fromMonth"); retrieveDayListHTML("fromDay"); retrieveYearListHTML("fromYear"); ?> <b>To:</b> <?php retrieveMonthListHTML("toMonth"); retrieveDayListHTML("toDay"); retrieveYearListHTML("toYear"); ?> <br> <b>Filter Issue:</b> <select name='issue_filter'> <option value=''>All Issues</option> <?php $db=new mysqli("localhost","root","","helpdesk"); $sql="select * from classification"; $rs=$db->query($sql); $nm=$rs->num_rows; for($i=0;$i<$nm;$i++){ $row=$rs->fetch_assoc(); ?> <option <?php if($_POST['issue_filter']==$row['id']){ echo "selected=true"; } ?> value='<?php echo $row['id']; ?>'><?php echo $row['type']; ?></option>
if ($_SESSION['document_type'] == "OUT") { ?> Sent for Approval: <?php } else { ?> Received: <?php } ?> </td> <td> <?php retrieveMonthListHTML("receiveMonth"); retrieveDayListHTML("receiveDay"); retrieveYearListHTML("receiveYear"); retrieveHourListHTML("receiveHour"); retrieveMinuteListHTML("receiveMinute"); retrieveShiftListHTML("amorpm"); ?> </td> </tr> <tr> <td>Originating Office:</td> <!-- <td><input type=text name='origInput' /></td> </tr> <tr> <td align=right>-or- Select from the list<input type=checkbox name='origList' value='on' ></td> --> <td>