echo "<span class='viewtext'>" . $formdata['isbnnumber'] . "</span>"; } else { echo "<span class='viewtext'><i>No ISBN</i></span>"; } } else { echo get_required_field_wrap($requiredfields, 'isbnnumber'); ?> <input type="text" name="isbnnumber" id="isbnnumber" class="textfield" size="30" value="<?php if (!empty($formdata['isbnnumber'])) { echo $formdata['isbnnumber']; } ?> "/> <?php echo get_required_field_wrap($requiredfields, 'isbnnumber', 'end'); } ?> <br /> <a href="javascript:void(0);" class="tooltip"> <img src="<?php print base_url(); ?> images/info.png" /> <div class="note_box"> To add several books, separate their ISBN numbers<br /> by commas e.g 12345, 54321 </div> </a> </td> </tr>
<td class="field" nowrap> <?php if (!empty($isview)) { echo "<span class='viewtext'>" . $formdata['author'] . "</span>"; } else { echo get_required_field_wrap($requiredfields, 'author'); ?> <input type="text" name="author" id="author" class="textfield" size="30" value="<?php if (!empty($formdata['author'])) { echo $formdata['author']; } ?> "/> <?php echo get_required_field_wrap($requiredfields, 'author', 'end'); } ?> </td> </tr> <?php if (empty($isview)) { ?> <tr> <td> </td> <td>
<td class="field" nowrap> <?php if (!empty($isview)) { echo "<span class='viewtext'>" . $termdetails['rank'] . "</span>"; } else { echo get_required_field_wrap($requiredfields, 'rank'); ?> <input type="text" name="rank" id="rank" class="textfield" size="30" value="<?php if (!empty($classdetails['rank'])) { echo $classdetails['rank']; } ?> "/> <?php echo get_required_field_wrap($requiredfields, 'rank', 'end'); } ?> <i style="font-size:10px">(Indicate position of class in the ascending list of classes)</i></td> </tr> <?php if (empty($isview)) { ?> <tr> <td><?php if (!empty($i) || !empty($editid)) { ?> <input name="editid" type="hidden" id="editid" value="<?php if (!empty($i)) {
<td class="field" nowrap> <?php if (!empty($isview)) { echo "<span class='viewtext'>" . $formdata['quantity'] . "</span>"; } else { echo get_required_field_wrap($requiredfields, 'quantity'); ?> <input type="text" name="quantity" id="quantity" class="textfield" size="30" value="<?php if (!empty($formdata['quantity'])) { echo $formdata['quantity']; } ?> "/> <?php echo get_required_field_wrap($requiredfields, 'quantity', 'end'); } ?> </td> </tr> <?php if (empty($isview)) { ?> <tr> <td> </td> <td><input type="submit" name="saveinventory" id="login" value="Save" class="button"/></td> <td> </td>
<td class="field" valign="top" nowrap> <?php if (!empty($isview)) { echo "<span class='viewtext'>" . $studentdetails['studentno'] . "</span>"; } else { echo get_required_field_wrap($requiredfields, 'studentno'); ?> <input type="text" name="studentno" id="studentno" class="textfield" size="30" value="<?php if (!empty($studentdetails['studentno'])) { echo $studentdetails['studentno']; } ?> "/> <?php echo get_required_field_wrap($requiredfields, 'studentno', 'end'); } ?> <input type="hidden" name="photo" id="photo" value="" /> </td> </tr> <tr style="display:none"> <td nowrap="nowrap"> </td> <td> <?php if (!empty($i) || !empty($editid)) { ?> <input name="editid" type="hidden" id="editid" value="<?php if (!empty($i)) { echo decryptValue($i); } else {
<td class="field" nowrap> <?php if (!empty($isview)) { echo "<span class='viewtext'>" . $studentdetails['lastname'] . "</span>"; } else { echo get_required_field_wrap($requiredfields, 'lastname'); ?> <input type="text" name="lastname" id="lastname" class="textfield" size="30" value="<?php if (!empty($formdata['lastname'])) { echo $formdata['lastname']; } ?> "/> <?php echo get_required_field_wrap($requiredfields, 'lastname', 'end'); } ?> </td> </tr> <tr> <td valign="top" nowrap="nowrap" class="label" style="padding-top:13px">Date of Birth :</td> <td class="field" nowrap> <?php if (!empty($isview)) { echo "<span class='viewtext'>" . $formdata['dob'] . "</span>"; } else { ?> <input type="text" name="dob" id="dob" class="textfield datepicker" size="30" value="<?php
<td class="field" nowrap> <?php if (!empty($isview)) { echo "<span class='viewtext'>" . $transactiondetails['amount'] . "</span>"; } else { echo get_required_field_wrap($requiredfields, 'amount'); ?> <input type="text" name="amount" id="amount" class="textfield" size="30" value="<?php if (!empty($transactiondetails['amount'])) { echo $transactiondetails['amount']; } ?> "/> <?php echo get_required_field_wrap($requiredfields, 'amount', 'end'); } ?> </td> </tr> <?php if (empty($isview)) { ?> <tr> <td><?php if (!empty($i) || !empty($editid)) { ?> <input name="editid" type="hidden" id="editid" value="<?php if (!empty($i)) {
<td class="field" nowrap> <?php if (!empty($isview)) { echo "<span class='viewtext'>" . $studentdetails['dob'] . "</span>"; } else { echo get_required_field_wrap($requiredfields, 'dob'); ?> <input type="text" name="fromdate" id="fromdate" class="textfield datepicker" size="30" value="<?php if (!empty($formdata['fromdate'])) { echo $formdata['fromdate']; } ?> "/> <?php echo get_required_field_wrap($requiredfields, 'dob', 'end'); } ?> </td> </tr> <tr> <td nowrap="nowrap" class="label">End Date :<?php echo $indicator; ?> </td> <td class="field" nowrap> <?php if (!empty($isview)) { echo "<span class='viewtext'>" . $studentdetails['groupname'] . "</span>"; } else {
<td class="field" nowrap> <?php if (!empty($isview)) { echo "<span class='viewtext'>" . $formdata['notes'] . "</span>"; } else { echo get_required_field_wrap($requiredfields, 'notes'); ?> <input type="text" name="notes" id="notes" class="textfield" size="30" value="<?php if (!empty($formdata['notes'])) { echo $formdata['notes']; } ?> "/> <?php echo get_required_field_wrap($requiredfields, 'notes', 'end'); } ?> </td> </tr> <?php if (empty($isview)) { ?> <tr> <td> </td> <td><input type="submit" name="savesupplier" id="login" value="Save" class="button"/></td> <td> </td> </tr>
<tr> <td class='label'>Paragraph Link:</td> <td><input type='text' name='helplink' id='helplink' value='' size='45' class='textfield' style="padding-right:2px;"></td> </tr> <tr> <td class='label' valign='top'>Paragraph Text:</td> <td><textarea name='details' id='details' class='selectfield' cols='36' rows='5'></textarea></td> </tr> <tr> <td class='label' valign='top'> </td> <td><input type="submit" name="addhelp" id="addhelp" value="Add Content" class="bodybutton"/></td> </tr> </table> <?php echo get_required_field_wrap($requiredfields, 'details', 'end'); ?> </td> </tr> </table></td> </tr> </table> </form> </div>
value="suspension">Suspension</option> <option <?php if (!empty($formdata['response']) && $formdata['response'] == 'expulsion') { echo 'selected="selected"'; } ?> value="expulsion">Expulsion</option> <option <?php if (!empty($formdata['response']) && $formdata['response'] == 'other') { echo 'selected="selected"'; } ?> value="other">Other</option> </select> <?php echo get_required_field_wrap($requiredfields, 'response', 'end'); } ?> </td> </tr> <tr> <td valign="top" nowrap="nowrap" class="label" style="padding-top:13px">Upload File</td> <td class="field" valign="top" nowrap> </td> </tr> <tr> <td colspan="3" valign="top" nowrap="nowrap" class="left_label" style="padding-top:13px"> </td> </tr> <tr>
</td> <td class="field" nowrap> <?php if (!empty($isview)) { echo "<span class='viewtext'>" . $formdata['dateborrowed'] . "</span>"; } else { echo get_required_field_wrap($requiredfields, 'dateborrowed'); ?> <input type="text" name="dateborrowed" id="dateborrowed" class="textfield datepicker" size="30" value="<?php if (!empty($formdata['dateborrowed'])) { echo $formdata['dateborrowed']; } ?> "/> <?php echo get_required_field_wrap($requiredfields, 'dateborrowed', 'end'); } ?> </td> </tr> <?php if (empty($isview)) { ?> <tr> <td> </td> <td><input type="button" onclick="saveStock('<?php
<td class="field" nowrap> <?php if (!empty($isview)) { echo "<span class='viewtext'>" . $formdata['reorderlevel'] . "</span>"; } else { echo get_required_field_wrap($requiredfields, 'reorderlevel'); ?> <input type="text" name="reorderlevel" id="reorderlevel" class="textfield" size="30" value="<?php if (!empty($formdata['reorderlevel'])) { echo $formdata['reorderlevel']; } ?> "/> <?php echo get_required_field_wrap($requiredfields, 'reorderlevel', 'end'); } ?> </td> </tr> <?php if (empty($isview)) { ?> <tr> <td> </td> <td><input type="submit" name="saveitem" id="login" value="Save" class="button"/></td> <td> </td> </tr> <?php
<td>Subjects : </td><td> <?php if (!empty($isview)) { echo "<span class='viewtext'>" . $formdata['subjects'] . "</span>"; } else { echo get_required_field_wrap($requiredfields, 'subjects'); ?> <input type="hidden" id="selected-reg-subjects" value="" /> <select multiple="multiple" name="subjects[]" id="update-reg-subjects" class="selectfield"> <?php echo get_select_options($subjects, 'id', 'subject', !empty($formadata['subjects']) ? $formdata['subjects'] : '', 'Y', 'Select Sujects'); ?> </select> <?php echo get_required_field_wrap($requiredfields, 'subjects', 'end'); } ?> </td></tr> <?php if (empty($isview)) { ?> <tr> <td class="label" style="padding-top:13px"> </td> <td> <?php if (!empty($i) || !empty($editid)) { ?> <input name="editid" type="hidden" id="editid" value="<?php
<td class="field" nowrap> <?php if (!empty($isview)) { echo "<span class='viewtext'>" . $termdetails['startdate'] . "</span>"; } else { echo get_required_field_wrap($requiredfields, 'firstname'); ?> <input type="text" name="startdate" id="startdate" class="textfield manyyearsdatefield" size="30" value="<?php if (!empty($termdetails['startdate'])) { echo $termdetails['startdate']; } ?> "/> <?php echo get_required_field_wrap($requiredfields, 'startdate', 'end'); } ?> </td> </tr> <tr> <td class="label" style="padding-top:13px">End Date :<?php echo $indicator; ?> </td><td> <?php if (empty($isview)) { ?> <input type="text" name="enddate" id="enddate" class="textfield manyyearsdatefield" value="<?php
</td> <td colspan="3" nowrap class="field"> <?php if (!empty($isview)) { echo "<span class='viewtext'>" . $formdata['papers'] . "</span>"; } else { echo get_required_field_wrap($requiredfields, 'teacher'); ?> <select name="teacher" id="teacher" class="selectfield"> <?php echo get_select_options($staff, 'id', 'fullname', !empty($formdata['teacher']) ? $studentdetails['teacher'] : '', 'Y', 'Select a teacher'); ?> </select> <?php echo get_required_field_wrap($requiredfields, 'teacher', 'end'); } ?> </td> </tr> <?php if (empty($isview)) { ?> <tr> <td><?php if (!empty($i) || !empty($editid)) { ?> <input name="editid" type="hidden" id="editid" value="<?php
<td class="field" nowrap> <?php if (!empty($isview)) { echo "<span class='viewtext'>" . $schooldetails['emailaddress'] . "</span><input type='hidden' name='emailaddress' id='emailaddress' value='" . $schooldetails['emailaddress'] . "' />"; } else { echo get_required_field_wrap($requiredfields, 'emailaddress'); ?> <input type="text" name="emailaddress" id="emailaddress" class="textfield" size="30" value="<?php if (!empty($schooldetails['emailaddress'])) { echo $schooldetails['emailaddress']; } ?> "/> <?php echo get_required_field_wrap($requiredfields, 'emailaddress', 'end'); } ?> </td> </tr> <tr> <td nowrap="nowrap"> </td> <td> <?php if (!empty($i) || !empty($editid)) { ?> <input name="editid" type="hidden" id="editid" value="<?php if (!empty($i)) { echo decryptValue($i); } else { echo $editid;
?> </td> </tr> <tr> <td class="label" nowrap>Report File :<span class="redtext">*</span></td> <td nowrap><table border="0" cellspacing="0" cellpadding="0"> <tr> <td> <?php echo get_required_field_wrap($requiredfields, 'fileurl'); ?> <input type="file" name="fileurl" id="fileurl" class="textfield" style="height:35px;" tabindex="2" /> <?php echo get_required_field_wrap($requiredfields, 'fileurl', 'end'); ?> </td> <td style="padding-left:10px;"></td> </tr> </table> </td> </tr> <tr> <td nowrap> </td> <td nowrap> </td> </tr> <tr>
$selected_classes = array(); if (!empty($formdata['classes'])) { $selected_classes = remove_empty_indices(explode('|', $formdata['classes'])); } foreach ($classes as $class) { $class_ctr++; echo '<td style="padding-left:0" valign="middle"><input ' . (in_array($class['id'], $selected_classes) ? 'checked="checked"' : '') . ' onchange="update_classes(' . count($classes) . ', \'classes\')" id="class' . $class_ctr . '" type="checkbox" value="' . $class['id'] . '" name="classes[]" /></td><td style="padding-left:0">' . $class['class'] . '</td>'; if ($class_ctr % 3 == 0) { echo '</tr></tr>'; } } if ($class_ctr % 3 > 0) { echo '<td colspan="' . $class_ctr % 3 . '"> </td>'; } echo '</tr></table>'; echo get_required_field_wrap($requiredfields, 'classes', 'end'); } ?> <input type="hidden" value="<?php echo implode('|', $selected_classes); ?> " id="classes" name="classes" /> </td> </tr> <tr> <td valign="top" nowrap="nowrap" class="label" style="padding-top:13px">Grade:<?php echo $indicator; ?> </td>
<td class="field" nowrap> <?php if (!empty($isview)) { echo "<span class='viewtext'>" . $formdata['payer'] . "</span>"; } else { echo get_required_field_wrap($requiredfields, 'payer'); ?> <input type="text" name="payer" id="payer" class="textfield" size="30" value="<?php if (!empty($formdata['payer'])) { echo $formdata['payer']; } ?> "/> <?php echo get_required_field_wrap($requiredfields, 'payer', 'end'); } ?> </td> </tr> <tr> <td nowrap="nowrap"> </td> <td> <?php if (!empty($i) || !empty($editid)) { ?> <input name="editid" type="hidden" id="editid" value="<?php if (!empty($i)) { echo decryptValue($i);
echo get_required_field_wrap($requiredfields, 'acadusername', 'end'); ?> </td> </tr> <tr> <td align="center"> <?php echo get_required_field_wrap($requiredfields, 'acadpassword'); ?> <input type="password" name="acadpassword" id="acadpassword" size="45" placeholder="Password" class="textfield" style="width:220px;" value="" tabindex="2"/><?php echo get_required_field_wrap($requiredfields, 'acadpassword', 'end'); ?> </td> </tr> <tr> <td align="center"> <table width="58%" border="0"> <tr> <td width="10%"><input type="hidden" name="login" value="login" />
<td nowrap><?php if (!empty($isview)) { echo "<span class='viewtext'>" . $formdata['groupname'] . "</span>"; } else { echo get_required_field_wrap($requiredfields, 'groupname'); ?> <input type="text" name="groupname" id="groupname" size="40" class="textfield" value="<?php if (!empty($formdata['groupname'])) { echo $formdata['groupname']; } ?> " tabindex="2" onkeyup="startInstantSearch('groupname', 'searchby', '<?php echo base_url(); ?> search/load_results/type/groupname/layer/groupname_searchresults');ShowContent('groupname_searchresults','');"/><input name="searchby" type="hidden" id="searchby" value="groupname" /><div id='groupname_searchresults' style='max-height: 380px; overflow:hidden; position:absolute;border: 1px solid #98CBFF; background-color: #F7F7F7; display:none;'></div><?php echo get_required_field_wrap($requiredfields, 'groupname', 'end'); } ?> </td> </tr> <tr> <td width="1%" class="label" valign="top" style='padding-top:15px;' nowrap>Email List:<?php echo $indicator; ?> </td> <td width="99%" style="padding:0px;" nowrap><?php echo "<table border='0' cellspacing='0' cellpadding='5'>\r\r\n\t\t\t\t\t<tr><td><div id='addtogroup'></div></td></tr>\r\r\n\t\t\t\t\t<tr><td>\r\r\n\t\t\t\t\t\r\r\n\t\t\t\t\t<table border='0' cellspacing='0' cellpadding='5'>\r\r\n\t\t\t\t\t<tr><td class='lightgreybg'><b>Users in this Group:</b></td>\r\r\n\t\t\t\t\t<td align='right' class='lightgreybg'><a href='javascript:void(0)' onClick=\"updateFieldLayer('" . base_url() . "user/add_user_to_group/layer/addtogroup"; #If the user is editing if (!empty($formdata['groupname'])) { echo "/gn/" . encryptValue($formdata['groupname']) . "',''"; } else {
</td> </tr> <tr> <td width="20%" align="right" nowrap="nowrap"><b>Expected Return Date:</b></td> <td class="field" nowrap> <?php if (!empty($isview)) { echo "<span class='viewtext'>" . $formdata['returndate'] . "</span>"; } else { echo get_required_field_wrap($requiredfields, 'returndate'); ?> <input type="text" name="returndate" id="returndate" class="textfield datepicker" size="30"> <?php echo get_required_field_wrap($requiredfields, 'returndate', 'end'); } ?> </td> </tr> <tr> <td align="right" nowrap="nowrap"><b>Add books:</b></td> <td class="field" nowrap> <input type="text" name="select_book" id="select-book" class="textfield" autocomplete="off" size="30" /> <input name="select_book_searchby" type="hidden" id="select_book_searchby" value="borrower" /> <div id='select_book_results' style='max-height: 380px; overflow:hidden; position:absolute; border: 1px solid #98CBFF; background-color: #F7F7F7; display:none;'></div> </td> </tr> <tr> <td colspan="2"> </td>
<td nowrap><?php echo get_required_field_wrap($requiredfields, 'item'); ?> <input type="hidden" name="borrower" value="<?php echo $rentaldata['borrower']; ?> " /> <select name="item[]" multiple="multiple" class="textfield" style="height:200px; width:270px;" > <?php write_options_list($this, array('tname' => "borroweditems b, library l", 'searchstring' => " WHERE b.borrower =" . $rentaldata['borrower'] . " AND l.isavailable='0' AND b.item=l.id"), '', 'serialnumber', 'item'); ?> </select> <?php echo get_required_field_wrap($requiredfields, 'item', 'end'); ?> </td> </tr> <?php if (empty($isview)) { ?> <tr> <td> </td> <td><input type="submit" name="returnrental" id="login" value="Save" class="button"/></td> <td> </td> </tr> <?php } ?>
<td class="field" nowrap> <?php if (!empty($isview)) { echo "<span class='viewtext'>" . $userdetails['telephone'] . "</span><input type='hidden' name='telephone' id='telephone' value='" . $formdata['telephone'] . "' />"; } else { echo get_required_field_wrap($requiredfields, 'telephone'); ?> <input type="text" name="telephone" id="telephone" class="textfield" size="30" value="<?php if (!empty($formdata['telephone'])) { echo $formdata['telephone']; } ?> "/> <?php echo get_required_field_wrap($requiredfields, 'telephone', 'end'); } ?> </td> </tr> <tr> <td nowrap="nowrap"> </td> <td> <?php if (!empty($i) || !empty($editid)) { ?> <input name="editid" type="hidden" id="editid" value="<?php if (!empty($i)) { echo decryptValue($i); } else { echo $editid;
if (!empty($isview)) { echo "<span class='viewtext'>" . $formdata['message'] . "</span>"; } else { echo get_required_field_wrap($requiredfields, 'message'); ?> <textarea name="message" id="message" class="" cols="31" rows="6"> <?php if (!empty($formdata['message'])) { echo $formdata['message']; } ?> </textarea> <?php echo get_required_field_wrap($requiredfields, 'message', 'end'); } ?> </td> </tr> <?php if (empty($isview)) { ?> <tr> <td> </td> <td><input type="submit" name="savemiscelleneous" id="savemiscelleneous" value="Save" class="button"/></td>