?
Current Path : /home1/savoy/public_html/savoyglobal.net/hr/application/views/Onboarding/ |
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/Onboarding/edit_employee_joining.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('onboarding','viewinonboardingsearch','search_joining','view_joining','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Updating Employee</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open_multipart('onboarding/addinonboarding/update_emp_non_main/view_joining/1',$attributes); $trade_list=$this->mastermodel->getdatas('trade','trade_id'); $visa_type=$this->mastermodel->getdatas('visa_type','visa_type_id'); $sponsor_list=$this->mastermodel->getdatas('sponsor','sponsor_id'); $agency_list=$this->mastermodel->getdatas('agency','agency_id'); $nationality_list=$this->mastermodel->getdatas('nationality','nationality_id'); ?> <ul> <li> <input type="hidden" name="emp_non_id" value="<?=$viewinfo->emp_non_id;?>"/> <label for="data">Date of Joining</label> <div id="multi"> <?php $data = array( 'name' => 'emp_non_date_joining', 'id' => 'emp_non_date_joining', 'class' => 'required', 'value' => $this->mastermodel->convertdatenormalformat($viewinfo->emp_non_date_joining) ); echo form_input($data).form_error($data); ?> <img src="<?=base_url()?>assets/images/icons/calendar.png" alt="Click to popup the clendar!" /> </div> </li> <li> <label for="data">Full name</label> <?php $data = array( 'name' => 'emp_non_full_name', 'id' => 'emp_non_full_name', 'class' => 'required', 'value' => $viewinfo->emp_non_full_name ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">Old Employee No</label> <?php $data = array( 'name' => 'emp_non_no_old', 'id' => 'emp_non_no_old', 'value' => $viewinfo->emp_non_no_old ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">Employee No</label> <input type="text" name="emp_non_no" disabled value="<?=$viewinfo->emp_non_no;?>" id="emp_non_no" class="required" onchange="checkexistence('employee_non_main','emp_non_no',this.value)" /> </li> <li> <label for="data">Nationality</label> <select name="emp_non_nationality_id" id="emp_non_nationality_id" class="required" disabled> <option value="">Select</option> <?php foreach($nationality_list as $nationality) { echo "<option value='". $nationality['nationality_id'] . "'";if($viewinfo->emp_non_nationality_id == $nationality['nationality_id'] ){echo "selected";} echo ">" . $nationality['nationality_name'] . "</option>"; } ?> </select> </li> <li> <label for="data">Trade</label> <select name="emp_non_trade_id" id="emp_non_trade_id" class="required"> <option value="">Select</option> <?php foreach($trade_list as $trade) { echo "<option value='". $trade['trade_id'] . "'";if($viewinfo->emp_non_trade_id == $trade['trade_id'] ){echo "selected";} echo ">" . $trade['trade_name'] . "</option>"; } ?> </select> </li> <li> <label for="data">Sponsor</label> <select name="emp_non_sponsor_id" id="emp_non_sponsor_id" class="required" disabled> <option value="">Select</option> <?php foreach($sponsor_list as $sponsor) { echo "<option value='". $sponsor['sponsor_id'] . "'";if($viewinfo->emp_non_sponsor_id == $sponsor['sponsor_id'] ){echo "selected";} echo ">" . $sponsor['sponsor_name'] . "</option>"; } ?> </select> </li> <li> <label for="data">Recruitment Agency</label> <select name="emp_non_agency_id" id="emp_non_agency_id" class="required"> <option value="">Select</option> <?php foreach($agency_list as $agency) { echo "<option value='". $agency['agency_id'] . "'";if($viewinfo->emp_non_agency_id == $agency['agency_id'] ){echo "selected";} echo ">" . $agency['agency_name'] . "</option>"; } ?> </select> </li> <li> <table class="sort"> <tr> <th align="center">Visa Type</th> <th align="center" style="width:200px;">Issue Date</th> <th align="center" style="width:200px;">Expiry Date</th> <th align="center">Remind Before (in days)</th> <th align="center">Visa No</th> </tr> <tr> <td> <select name="emp_non_visa_type_id" id="emp_non_visa_type_id" class="required" disabled> <option value="">Select</option> <?php foreach($visa_type as $visa) { echo "<option value='". $visa['visa_type_id'] . "'";if($viewinfo->emp_non_visa_type_id == $visa['visa_type_id'] ){echo "selected";} echo ">" . $visa['visa_type_name'] . "</option>"; } ?> </select> </td> <td> <?=$this->mastermodel->convertdatenormalformat($viewinfo->emp_non_date_visa_issue);?> </td> <td> <?=$this->mastermodel->convertdatenormalformat($viewinfo->emp_non_date_visa_expiry);?> </td> <td> <?=$viewinfo->emp_non_visa_remind_before;?> </td> <td> <?=$viewinfo->emp_non_visa_no;?> </td> </tr> </table> </li> <li> <table class="sort"> <tr> <th align="center">Passport No</th> <th align="center">Issue Date</th> <th align="center">Expiry Date</th> <th align="center">Remind Before (in days)</th> </tr> <tr> <td> <?php echo $viewinfo->emp_non_passport_no; ?> </td> <td> <?php echo $this->mastermodel->convertdatenormalformat($viewinfo->emp_non_date_passport_issue); ?> </td> <td> <?php echo $this->mastermodel->convertdatenormalformat($viewinfo->emp_non_date_passport_expiry); ?> </td> <td> <?=$viewinfo->emp_non_passport_remind_before;?> </td> </tr> </table> </li> <li> <label for="data">Agreement (for business Visa)</label> <?php $data = array( 'name' => 'agreement_name', 'id' => 'agreement_name', 'value' => $viewinfo->agreement_name ); $data1 = array( 'name' => 'agreement_doc', 'id' => 'agreement_doc' ); echo form_input($data).form_error($data); echo form_upload($data1).form_error($data1); ?> <?php if($viewinfo->agreement_doc != "") { ?> <a href="<?=base_url()?>assets/uploads/<?=$viewinfo->agreement_doc;?>">Download</a> <?php } ?> <li> <label for="data">Attestation (for RP along with No)</label> <?php $data = array( 'name' => 'attestment_name', 'id' => 'attestment_name', 'value' => $viewinfo->attestment_name ); $data1 = array( 'name' => 'attestment_doc', 'id' => 'attestment_doc' ); echo form_input($data).form_error($data); echo form_upload($data1).form_error($data1); ?> <?php if($viewinfo->attestment_doc != "") { ?> <a href="<?=base_url()?>assets/uploads/<?=$viewinfo->attestment_doc;?>">Download</a> <?php } ?> </li> <li> <input type="hidden" name="attestment_doc_name" value="<?=$viewinfo->attestment_doc;?>"/> <input type="hidden" name="agreement_doc_name" value="<?=$viewinfo->agreement_doc;?>"/> <input type="hidden" name="tab_name" value="emp_non_main"/> <input type="hidden" name="resfunction" value="search_joining"/> </li> <li> <label for="submit"> </label> <button type="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>