?
Current Path : /home1/savoy/public_html/savoyglobal.net/hr/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/public_html/savoyglobal.net/hr/application/views/Administration/edit_trade_change.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <div class="select-bar"> <label><img src="<?=base_url()?>assets/images/backbutton.png" title="Back" class="clickimage" onclick="viewdata('administration','viewinadministrationsearch','search_trade_change','view_trade_change','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Update Employee Trade Details</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('administration/addinadministration/update_trade_change/view_trade_change/1',$attributes); $employee = $this->administrationmodel->get_emp_info($viewinfo->employee_id); $trade_list=$this->mastermodel->getdatas('trade','trade_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="employee_id" value="<?=$viewinfo->employee_id;?>"/> <input type="hidden" name="current_trade_id" value="<?=$viewinfo->trade_id;?>"/> <input type="hidden" name="trade_change_id" value="<?=$viewinfo->trade_change_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">Trade</label> <select name="trade_id" id="trade_id" class="required" disabled> <option value="">Select</option> <?php foreach($trade_list as $trade) { echo "<option value='". $trade['trade_id'] . "'";if($viewinfo->trade_id == $trade['trade_id'] ){echo "selected";} echo ">" . $trade['trade_name'] . "</option>"; } ?> </select> </li> <li> <label for="data">Trade Alloted Date</label> <div class="record_entry"> <div id="multi"> <input type="text" name="trade_change_date" id="trade_change_date" value="<?=$this->mastermodel->convertdatenormalformat($viewinfo->trade_change_date);?>"/> <img src="<?=base_url()?>assets/images/icons/calendar.png" alt="Click to popup the clendar!" /> </div> </div> </li> <li> <label for="data">Trade Status</label> <select name="trade_status" id="trade_status" class="required"> <option value="0" <?php if($viewinfo->trade_status=="0"){echo 'selected';}?>>Actual</option> <option value="1" <?php if($viewinfo->trade_status=="1"){echo 'selected';}?>>Current</option> </select> </li> <li> <label for="data">Remarks</label> <?php $data = array( 'name' => 'remarks', 'id' => 'remarks', 'value' => $viewinfo->remarks ); echo form_textarea($data).form_error($data); ?> </li> <li> <input type="hidden" name="tab_name" value="trade_change"/> <input type="hidden" name="resfunction" value="search_trade_change"/> </li> <li> <label for="submit"> </label> <button type="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>