<tr> <td valign="top" nowrap="nowrap" class="label" style="padding-top:13px">Select Items to return :<?php echo $indicator; ?> </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>
echo $indicator; ?> </td> <td nowrap><?php if (!empty($isview)) { echo "<span class='viewtext'>" . $formdata['itemname'] . "</span>"; } else { echo get_required_field_wrap($requiredfields, 'type'); ?> <select name="item" class="textfield" style="height:35px; width:270px;" > <?php if (!empty($formdata['item'])) { write_options_list($this, array('tname' => "librarystock"), $formdata['item'], 'stocktitle'); } else { write_options_list($this, array('tname' => "librarystock"), '', 'stocktitle'); } ?> </select> <?php echo get_required_field_wrap($requiredfields, 'item', 'end'); } ?> </td> </tr> <tr> <td> </td> <td><input type="submit" name="generatereport" id="login" value="Generate Report" class="button"/></td> <td> </td>
echo $indicator; ?> </td> <td nowrap><?php if (!empty($isview)) { echo "<span class='viewtext'>" . $formdata['itemname'] . "</span>"; } else { echo get_required_field_wrap($requiredfields, 'type'); ?> <select name="item" class="textfield" style="height:35px; width:270px;" > <?php if (!empty($formdata['item'])) { write_options_list($this, array('tname' => "items"), $formdata['item'], 'itemname'); } else { write_options_list($this, array('tname' => "items"), '', 'itemname'); } ?> </select> <?php echo get_required_field_wrap($requiredfields, 'item', 'end'); } ?> </td> </tr> <tr> <td> </td> <td><input type="submit" name="generatereport" id="login" value="Generate Report" class="button"/></td> <td> </td>
</td> </tr> <tr> <td valign="top" nowrap="nowrap" class="label" style="padding-top:13px">Item(s) :<?php echo $indicator; ?> </td> <td nowrap><?php echo get_required_field_wrap($requiredfields, 'item'); ?> <select name="items[]" multiple="multiple" class="textfield" style="height:200px; width:270px;" > <?php if (!empty($isview)) { write_options_list($this, array('tname' => "library", 'searchstring' => " WHERE stockid =" . $stockdata['stockid']), '', 'serialnumber'); } else { write_options_list($this, array('tname' => "library", 'searchstring' => " WHERE stockid =" . $stockdata['stockid'] . " AND isavailable=1"), '', 'serialnumber'); } ?> </select> <?php echo get_required_field_wrap($requiredfields, 'item', 'end'); ?> </td> </tr> <?php if (empty($isview)) { ?> <tr> <td> </td> <td><input type="submit" name="saveborrower" id="login" value="Save" class="button"/></td> <td> </td>