<td colspan=2> <input type="text" style="width:60px" id="revision" readonly name="revision"> <input type="hidden" id="item_serial" name="item_serial" /> </td> </tr> <tr valign="center"> <td>Order Date</td> <td colspan=2> <input type="text" class="datepicker" id="orderdate" name="orderdate"> </td> </tr> <tr valign="center"> <td>Taken By</td> <td colspan=2> <?php createUserCombo("takenbyid"); ?> </td> </tr> <tr valign="center"> <td>Delivery Charge</td> <td colspan=2> <input type="text" style="width:70px" id="deliverycharge" name="deliverycharge" onchange="total_onchange()" value="0.00"> </td> </tr> <tr valign="center"> <td>Discount %</td> <td colspan=2> <input type="text" style="width:70px" id="discount" name="discount" onchange="total_onchange()" value="0.00"> </td> </tr>
?> <style> thead td { font-weight:bold; } td { font-size:10px; height:19px; } </style> <?php if (isUserInRole("ADMIN")) { ?> <label>Staff Member</label> <?php createUserCombo("memberid"); } ?> <table width='100%' cellspacing=5> <thead> <tr> <td>Client</td> <td width='46px' align='center'>Due Start</td> <td width='46px' align='center'>Due End</td> <td width='52px' align='center'>Clock In</td> <td width='52px' align='center'>Clock Out</td> </tr> </thead> <?php if (isset($_GET['id'])) { $memberid = $_GET['id'];
</tr> <tr> <td> Date To </td> <td> <input class="datepicker" id="dateto" name="dateto" /> </td> </tr> <tr> <td> User </td> <td> <?php createUserCombo("userid", "", false); ?> </td> </tr> <tr> <td> Mode </td> <td> <SELECT id="mode" name="mode"> <OPTION value="PDF">PDF</OPTION> <OPTION value="Excel">Excel</OPTION> </SELECT> </td> </tr> <tr>
public function createFilterScreen() { ?> <iframe style="display:none" id="submitframe" name="submitframe"> </iframe> <div class="modal" id="filtersavedialog"> <label>Filter name</label> <input type="text" id="filtername" name="filtername" size=60 /> </div> <div class="modal" id="filterdialog"> <div id="filterpanel"> <?php $filterformaction = $_SERVER['PHP_SELF'] . "?filtering=true"; foreach ($_GET as $key => $value) { if (strpos($key, "filtering") != 0 && strpos($key, "filter_") != 0) { $filterformaction .= "&" . $key . "=" . $value; } } ?> <form id="filterform" method="POST" enctype="multipart/form-data" action="<?php echo $filterformaction; ?> " > <input type="hidden" id="triggerrefresh" name="triggerrefresh" value="" /> <input type="hidden" id="crudcmd" name="crudcmd" value="" /> <input type="hidden" id="savefiltername" name="savefiltername" value="" /> <table width='100%' cellpadding=0 cellspacing=4> <?php foreach ($this->columns as $col) { if ($col['filter']) { if ($col['type'] == "DERIVED" || $col['type'] == "PASSWORD" || $col['type'] == "IMAGE" || $col['type'] == "BASICTEXTAREA" || $col['type'] == "TEXTAREA" || $col['hidden'] == true) { continue; } echo "<tr valign=center>\n"; echo "<td valign=center nowrap>" . $col['label'] . "</td>\n"; echo "<td nowrap>"; $filterValue = ""; if (isset($_GET['filter_' . $col['name']])) { $filterValue = base64_decode($_GET['filter_' . $col['name']]); } if (isset($_POST['filter_' . $col['name']])) { $filterValue = $_POST['filter_' . $col['name']]; } if ($col['type'] == "TEXTBOX") { if ($col['datatype'] == "timestamp" || $col['datatype'] == "datetime") { echo "<input class='datepicker' type='text' id='filter_" . $col['name'] . "' name='filter_" . $col['name'] . "' value='{$filterValue}' />\n"; } else { if ($col['datatype'] == "date") { echo "<input class='datepicker' type='text' id='filter_" . $col['name'] . "' name='filter_" . $col['name'] . "' value='{$filterValue}' />\n"; } else { if ($col['datatype'] == "time") { echo "<input class='timepicker' type='text' id='filter_" . $col['name'] . "' name='filter_" . $col['name'] . "' value='{$filterValue}' />\n"; } else { if ($col['datatype'] == "contact") { createContactCombo("filter_" . $col['name']); } else { if ($col['datatype'] == "typist") { createTypistCombo("filter_" . $col['name']); } else { if ($col['datatype'] == "user") { createUserCombo("filter_" . $col['name']); } else { echo "<input type='text' style='width:" . $col['length'] * 6 . "px' id='filter_" . $col['name'] . "' name='filter_" . $col['name'] . "' value='{$filterValue}' />\n"; } } } } } } } else { if ($col['type'] == "GEOLOCATION") { echo "<input type='text' style='width:" . $col['length'] * 6 . "px' id='filter_" . $col['name'] . "' name='filter_" . $col['name'] . "' value='{$filterValue}' />\n"; } else { if ($col['type'] == "CHECKBOX") { echo "<input type='checkbox' id='filter_" . $col['name'] . "' name='filter_" . $col['name'] . "' value='{$filterValue}' />\n"; } else { if ($col['type'] == "BASICTEXTAREA") { echo "<div style='width:600px; height: 150px; overflow:auto' id='filter_" . $col['name'] . "' name='filter_" . $col['name'] . "'>{$filterValue}</div>\n"; } else { if ($col['type'] == "TEXTAREA") { echo "<div style='width:400px; height: 150px; overflow:auto' id='filter_" . $col['name'] . "' name='filter_" . $col['name'] . "'>{$filterValue}</div>\n"; } else { if ($col['type'] == "DATACOMBO") { createCombo("filter_" . $col['name'], $col['table_id'], $col['table_name'], $_SESSION['DB_PREFIX'] . $col['table'], $col['where']); } else { if ($col['type'] == "LAZYDATACOMBO") { createLazyCombo("filter_" . $col['name'], $col['table_id'], $col['table_name'], $_SESSION['DB_PREFIX'] . $col['table'], $col['where'], false, $col['length']); } else { if ($col['type'] == "MULTIDATACOMBO") { createCombo("filter_" . $col['name'], $col['table_id'], $col['table_name'], $_SESSION['DB_PREFIX'] . $col['table']); } else { if ($col['type'] == "COMBO") { echo "<SELECT id='filter_" . $col['name'] . "' name='filter_" . $col['name'] . "'>\n"; echo "<OPTION value=''></OPTION>\n"; foreach ($col['options'] as $opt) { echo "<OPTION value='" . $opt['value'] . "'>" . $opt['text'] . "</OPTION>\n"; } echo "</SELECT>"; } } } } } } } } } echo " " . $col['suffix']; echo "</td>"; echo "</tr>\n"; } } ?> </table> </form> </div> </div> <?php }
</tr> <tr> <td> Date To </td> <td> <input class="datepicker" required="true" id="dateto" name="dateto" /> </td> </tr> <tr> <td> User </td> <td> <?php createUserCombo("userid", "", true); ?> </td> </tr> <tr> <td> Mode </td> <td> <SELECT id="mode" name="mode"> <OPTION value="PDF">PDF</OPTION> <OPTION value="Excel">Excel</OPTION> </SELECT> </td> </tr> <tr>
<a class='rgap2 link1' href="javascript:printSchedule()"><em><b><img src='images/print.png' /> Print</b></em></a> </div> </div> <hr /> <div id='calendar'></div> <div id="detaildialog" class="modal"> <input type="hidden" id="eventid" /> <table cellspacing=5> <tr> <td><b>Name</b></td> <td> <?php if (isUserInRole("ADMIN")) { createUserCombo("userid"); } else { createUserCombo("userid", "WHERE member_id = " . getLoggedOnMemberID()); } ?> </td> </tr> <tr> <td><b>Start Date</b></td> <td> <input class="datepicker" id="startdate" name="startdate" disabled /> </td> </tr> <tr> <td><b>End Date</b></td> <td> <input class="datepicker" id="enddate" name="enddate" disabled /> </td>