?
Current Path : /home1/savoy/public_html/savoyglobal.net/rms/application/views/hr/ |
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/hr/edit_tool_allocation.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $employee1=$this->mastermodel->getdatas('employee','employee_id','asc','employee_id'); $tool_name=$this->mastermodel->get_data_joined('tool_allocation_details','tool_kit_details','tool_allocation_kit_id','id',$viewinfo->tool_allocation_id,'tool_allocation_id'); ?> <script language="javascript" type="text/javascript"> function show_item_box() { $("#item_box_div").load("<?= site_url() ?>/hr/load_items/item_box/"+$('#employee_name').val()); } $(document).ready(function() { $('#table-example').dataTable(); $(window).resize(); }); </script> <script defer src="<?=base_url()?>assets/js/script.js"></script> <div class="icons_main"> <div class="icons"> <img src="<?=base_url()?>assets/images/back.png" title="Back" class="clickimage" onclick="viewdata('hr','viewinhrsearch','search_tool_allocation','view_tool_allocation','<?=$_SESSION['pagenum'];?>')" alt="Back" /> </div> <div class="icons_caption"> <h4>Updating Tool Allocation</h4> </div> </div> <?php $attributes=array('id'=>'validateform','class'=>'validate'); echo form_open('hr/addinhr/update_tool_allocation/view_tool_allocation/1',$attributes); ?> <div class="clean"></div> <div class="grid_6"> <div class="box"> <div class="header"> <span></span> </div> <div class="content no-padding"> <div class="section _100"> <label>Employee Name</label> <div style="margin:10px 1px;"> <div> <select name="employee_id" id="employee_id" class="required"> <option>Select Employee</option> <?php foreach($employee1 as $list) { ?> <option value="<?=$list['employee_id']?>" <?php if($list['employee_id']==$viewinfo->employee_id){ echo 'selected';} ?>><?=$list['employee_name']?></option> <?php } ?> </select> </div> </div> </div> <div class="section _100"> <label>Tool Allocation Date</label> <div> <input id="date" type="dateonly" class="required" name="tool_allocation_date" value="<?=$this->mastermodel->convertdatenormalformat($viewinfo->tool_allocation_date) ?>"> </div> </div> </div> </div> </div> <div class="icons_main"> <div class="icons"> </div> <div class="icons_caption"> <h4></h4> </div> </div> <div class="grid_12"> <div class="box"> <div class="header main">Tool Allocation Details</div> <div class="content no-padding"> <table class="table"> <tr> <th>Tool Name</th> <th>Tool Quantity</th> <th>Remarks</th> </tr> <tr> <?php $i=1; foreach($tool_name as $tool) { ?> <tr> <td> <input type="hidden" name="tool_id<?=$i;?>" value="<?=$tool['id'];?>"/> <?=$tool['tool_name'];?> </td> <?php ?> <td> <input style="width:75px;" type="text" name="tool_allocation_kit_qty<?=$i;?>" class="" value="<?=$tool['tool_allocation_kit_qty'];?>" /> </td> <td> <input type="text" name="tool_allocation_kit_remarks<?=$i;?>" class="" value="<?=$tool['tool_allocation_kit_remarks'];?>" /> </td> </tr> <?php $i++; } ?> </tr> </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="tool_allocation_id" value="<?=$viewinfo->tool_allocation_id?>"/> </div> <div class="actions-right"> <button style="margin-left: 130px;" type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">Update</button> </div> </div> </div> </div> <?php echo form_close();?>