?
Current Path : /home1/savoy/public_html/savoyglobal.net/rms/application/views/inventory/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/public_html/savoyglobal.net/rms/application/views/inventory/edit_stock_maintenance.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $building=$this->mastermodel->getdatas('building_details','building_id','','building_id'); $inventory=$this->mastermodel->getdatas('inventory','inventory_id','','inventory_id'); $inventory_id=''; $inventory_qty=''; $limit=''; ?> <div class="icons_main"> <div class="icons"> <img src="<?=base_url()?>assets/images/back.png" title="Back" class="clickimage" onclick="viewdata('inventory','viewininventorysearch','search_stock_maintenance','view_stock_maintenance','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>Updating Stock maintenance</h4> </div> </div> <?php $attributes=array('id'=>'validateform','class'=>'validate'); echo form_open('inventory/addininventory/update_stock_maintenance/view_stock_maintenance/1',$attributes); ?> <div class="grid_6"> <div class="box"> <div class="header"> <span></span> </div> <div class="content no-padding"> <div class="section _100"> <label> Subject </label> <div> <input name="stock_maintenance_subject" id="stock_maintenance_subject" type="text" class="required" value="<?=$viewinfo->stock_maintenance_subject?>"> </div> </div> <div class="section _100"> <label> Date </label> <div> <input name="stock_maintenance_date" id="date" type="dateonly" class="required" value="<?=$this->mastermodel->convertdatenormalformat($viewinfo->stock_maintenance_date)?>"> </div> </div> </div> </div> </div> <div class="grid_12"> <div class="box"> <div class="content no-padding"> <div class="header main"> Stock Maintenance Details </div> <table class="table"> <tr> <th style="width: 20%;">Item</th> <th>Quantity</th> <!-- <th>Price</th> <th>Discount</th> --> <th>Remarks</th> <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:75px;"/></th> </tr> <?php if(!empty($details)) { $limit=0; foreach($details as $row) { $inventory_id.=$row['stock_maintenance_inventory_id'].','; $inventory_qty.=$row['stock_maintenance_inventory_qty'].','; ?> <tr> <td> <select style="margin-top: 10;" name="stock_maintenance_inventory_id" id="stock_maintenance_inventory_id" class="required chzn-done" > <option value="">Select</option> <?php foreach ($inventory as $list) { ?> <option value="<?=$list['inventory_id']?>" <?php if($list['inventory_id']==$row['stock_maintenance_inventory_id']){ echo 'selected'; } ?>><?=$list['inventory_type']?></option> <?php } ?> </select> </td> <td><input class="medium required number" type="text" name="stock_maintenance_inventory_qty" id="stock_maintenance_inventory_qty" value="<?=$row['stock_maintenance_inventory_qty']?>"/></td> <td><textarea name="stock_maintenance_remarks" id="stock_maintenance_remarks"><?=$row['stock_maintenance_remarks']?></textarea></td> <td> <img style="float: right; vertical-align: top;"src="<?=base_url()?>assets/images/icons/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> <?php $limit++; } } else { ?> <tr> <td> <select style="margin-top: 10;" name="stock_maintenance_inventory_id" id="stock_maintenance_inventory_id" class="required chzn-done" > <option value="">Select</option> <?php foreach ($inventory as $list) { ?> <option value="<?=$list['inventory_id']?>"><?=$list['inventory_type']?></option> <?php } ?> </select> </td> <td><input class="medium required number" type="text" name="stock_maintenance_inventory_qty" id="stock_maintenance_inventory_qty"/></td> <td><textarea name="stock_maintenance_remarks" id="stock_maintenance_remarks"/></textarea></td> <td> <img style="float: right; vertical-align: top;"src="<?=base_url()?>assets/images/icons/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> <?php } ?> </table> </div> </div> </div> <div class="grid_12"> <div class="box"> <div class="actions"> <div class="actions-left"> <input type="reset"> <input type="hidden" name="inventory_id" value="<?=$inventory_id?>"/> <input type="hidden" name="inventory_qty" value="<?=$inventory_qty?>"/> <input type="hidden" name="limit" value="<?=$limit?>"/> <input type="hidden" name="stock_maintenance_id" value="<?=$viewinfo->stock_maintenance_id?>"/> </div> <div class="actions-right"> <button type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">Update</button> </div> </div> </div> </div> <?php echo form_close();?>