?
Current Path : /home1/savoy/www/savoyglobal.net/sgms/application/views/Administration/ |
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/www/savoyglobal.net/sgms/application/views/Administration/edit_item_reissue.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <link href="<?=base_url()?>assets/css/tablesortnew.css" rel="stylesheet" type="text/css"> <div class="select-bar"> <label><img src="<?=base_url()?>assets/images/backbutton.png" title="Back" class="clickimage" onclick="viewdata('administration','viewinadministrationsearch','search_item_reissue','view_item_reissue','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Updating Employee Items</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('administration/addinadministration/update_item_reissue/view_item_reissue/1',$attributes); $employee = $this->administrationmodel->get_emp_info($viewinfo->employee_id); if($employee->emp_non_no[0]==',') { $employee->emp_non_no=substr($employee->emp_non_no, 1); } $emp_non_no = str_replace(',',', ', $employee->emp_non_no); ?> <ul> <li> <label for="data">Employee Name</label> <div class="record_entry"> <?php echo $employee->emp_non_full_name; ?> <input type="hidden" name="allotment_id" value="<?=$viewinfo->allotment_id;?>"/> <input type="hidden" name="employee_id" value="<?=$viewinfo->employee_id;?>"/> </div> </li> <li> <label for="data">Employee No</label> <div class="record_entry"> <?php echo $emp_non_no; ?> </div> </li> <li> <label for="data">Joining Date</label> <div class="record_entry"> <?php echo $this->mastermodel->convertdatenormalformat($employee->emp_non_date_joining); ?> </div> </li> <li> <label for="data">Trade</label> <div class="record_entry"> <?php echo $employee->trade_name; ?> </div> </li> <li> <label for="data">Allotment Date</label> <div id="multi"> <input type="text" name="item_tool_allotment_date" id="item_tool_allotment_date" value="<?=$this->mastermodel->convertdatenormalformat($viewinfo->item_tool_allotment_date);?>" /> <img src="<?=base_url()?>assets/images/icons/calendar.png" alt="Click to popup the clendar!" /> </div> </li> <li> <table class="sort"> <caption>Available Trade Tools</caption> <tr> <th align="center">Select</th> <th align="center">Trade Tools</th> <th align="center">Shelf Life (in Days)</th> <th align="center">Expiry Date</th> <th align="center">Remind before (in Days)</th> </tr> <?php $i=1; //$tool_list = $this->onboardingmodel->get_tool_info($viewinfo->employee_id); $tool_list = $this->administrationmodel->get_tool_list($viewinfo->allotment_id); foreach($tool_list as $tool) { ?> <tr> <td><input style="width:15px;" checked type="checkbox" name="select_tool_<?=$i;?>" onclick="calc_expiry_date('<?=$i;?>','tool',this)"/></td> <td> <input checked type="hidden" name="tool_id_<?=$i;?>" value="<?=$tool['tool_id'];?>"/> <?=$tool['tool_name'];?> </td> <td> <?=$tool['tool_shelf_life'];?> <input type="hidden" value="<?=$tool['tool_shelf_life'];?>" id="tool_shelf_life_<?=$i;?>"/> </td> <td> <div id="multi"> <input style="width:65px;" type="text" value="<?=$this->mastermodel->convertdatenormalformat($tool['tool_allotment_expiry']);?>" name="tool_expiry_date_<?=$i;?>" id="tool_expiry_date_<?=$i;?>"/> <img src="<?=base_url()?>assets/images/icons/calendar.png" alt="Click to popup the clendar!" /> </div> </td> <td> <input style="width:65px;" type="text" value="<?=$tool['tool_allotment_remind_before'];?>" name="tool_remind_before_<?=$i;?>" id="tool_remind_before_<?=$i;?>"/> </td> </tr> <?php $i++; } ?> </table> </li> <li> <label for="data">Tool Remarks</label> <?php $data = array( 'name' => 'tool_remarks', 'id' => 'tool_remarks', 'value' => $viewinfo->tool_remarks ); echo form_textarea($data).form_error($data); ?> </li> <li> <table class="sort"> <caption>Available General Items</caption> <tr> <th align="center">Select</th> <th align="center">General Items</th> <th align="center">Size</th> <th align="center">Shelf Life (in Days)</th> <th align="center">Expiry Date</th> <th align="center">Remind before (in Days)</th> </tr> <?php $i=1; $item_list = $this->administrationmodel->get_item_list($viewinfo->allotment_id); foreach($item_list as $item) { ?> <tr> <td><input style="width:15px;" checked type="checkbox" name="select_item_<?=$i;?>" onclick="calc_expiry_date('<?=$i;?>','item',this)"/></td> <td> <input type="hidden" name="item_id_<?=$i;?>" value="<?=$item['item_id'];?>"/> <?=$item['item_name'];?> </td> <td> <?php $size_list=$this->mastermodel->get_data('general_item_size',$item['item_id'],'item_id'); if(!empty ($size_list)) { ?> <select name="item_size_<?=$i;?>" id="item_size_<?=$i;?>"> <option value="">Select</option> <?php foreach ($size_list as $size) { ?> <option value="<?=$size['size'];?>" <?php if($item['item_size']==$size['size']){echo "selected";}?>><?=$size['size'];?></option> <?php } ?> </select> <?php } ?> </td> <td> <?=$item['item_shelf_life'];?> <input type="hidden" value="<?=$item['item_shelf_life'];?>" id="item_shelf_life_<?=$i;?>"/> </td> <td> <div id="multi"> <input style="width:65px;" value="<?=$this->mastermodel->convertdatenormalformat($item['item_allotment_expiry']);?>" type="text" name="item_expiry_date_<?=$i;?>" id="item_expiry_date_<?=$i;?>"/> <img src="<?=base_url()?>assets/images/icons/calendar.png" alt="Click to popup the clendar!" /> </div> </td> <td> <input style="width:65px;" type="text" value="<?=$item['item_allotment_remind_before'];?>" name="item_remind_before_<?=$i;?>" id="item_remind_before_<?=$i;?>"/> </td> </tr> <?php $i++; } ?> </table> </li> <li> <label for="data">Item Remarks</label> <?php $data = array( 'name' => 'item_remarks', 'id' => 'item_remarks', 'value' => $viewinfo->item_remarks ); echo form_textarea($data).form_error($data); ?> </li> <li> <input type="hidden" name="tab_name" value="item_allotment"/> <input type="hidden" name="resfunction" value="search_item_allotment"/> </li> <li> <label for="submit"> </label> <button type="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>