?
Current Path : /home1/savoy/public_html/savoyglobal.net/sgms/application/views/Timesheet/ |
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/sgms/application/views/Timesheet/edit_manpower_hiring.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('timesheet','viewintimesheetsearch','search_manpower_hiring','view_manpower_hiring','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Updating Company</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('timesheet/addintimesheet/update_manpower_hiring/view_manpower_hiring/1',$attributes); $trade_list=$this->mastermodel->getdatas('trade','trade_name'); ?> <ul> <li> <label for="data">Company Name</label> <?php $data = array( 'name' => 'company_name', 'id' => 'company_name', 'class' =>'required', 'value' => $viewinfo->company_name ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">Address</label> <?php $data = array( 'name' => 'company_address', 'id' => 'company_address', 'value' => $viewinfo->company_address ); echo form_textarea($data).form_error($data); ?> </li> <li> <label for="data">Po Box</label> <?php $data = array( 'name' => 'company_pobox', 'id' => 'company_pobox', 'value' => $viewinfo->company_pobox ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">City</label> <?php $data = array( 'name' => 'company_city', 'id' => 'company_city', 'value' => $viewinfo->company_city ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">Country</label> <?php $data = array( 'name' => 'company_country', 'id' => 'company_country', 'value' => $viewinfo->company_country ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">Email</label> <?php $data = array( 'name' => 'company_email', 'id' => 'company_email', 'value' => $viewinfo->company_email ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">Contact No</label> <?php $data = array( 'name' => 'company_contact_no', 'id' => 'company_contact_no', 'value' => $viewinfo->company_contact_no ); echo form_input($data).form_error($data); ?> <input type="hidden" name="tab_name" value="payroll_manpower_hiring"/> <input type="hidden" name="resfunction" value="search_manpower_hiring"/> <input type="hidden" name="company_id" value="<?=$viewinfo->company_id;?>"/> </li> <li> <table class="sort" cellpadding="0" cellspacing="0" width="200px;"> <tr> <th>Employee No</th> <th>Employee Name</th> <th>Trade</th> <th>Contact No</th> <th>Status</th> </tr> <?php $employee_list=$this->mastermodel->get_data('payroll_manpower_hiring_employee',$viewinfo->company_id,'manpower_hiring_employee_company_id'); $i=1; foreach ($employee_list as $employee) { ?> <tr> <td> <input type="hidden" name="manpower_hiring_employee_id_<?=$i;?>" value="<?=$employee['manpower_hiring_employee_id'];?>"> <input type="text" class="required medium" name="manpower_hiring_employee_no_<?=$i;?>" value="<?=$employee['manpower_hiring_employee_no'];?>"></td> <td><input type="text" class="required medium" name="manpower_hiring_employee_name_<?=$i;?>" value="<?=$employee['manpower_hiring_employee_name'];?>"></td> <td> <select name="manpower_hiring_employee_trade_id_<?=$i;?>" id="manpower_hiring_employee_trade_id_<?=$i;?>" class="required">> <option value="">Select</option> <?php foreach($trade_list as $trade) { echo "<option value='". $trade['trade_id'] . "'";if($employee['manpower_hiring_employee_trade_id']==$trade['trade_id']){echo "selected";} echo ">" . $trade['trade_name'] . "</option>"; } ?> </select> </td> <td><input type="text" class="medium" name="manpower_hiring_employee_contact_no_<?=$i;?>" value="<?=$employee['manpower_hiring_employee_contact_no'];?>" /></td> <td> <select name="manpower_hiring_employee_active_<?=$i;?>" id="manpower_hiring_employee_active_<?=$i;?>" class="required"> <option value='1' <?php if($employee['manpower_hiring_employee_active']=='1'){echo 'selected';}?>>Active</option> <option value='0' <?php if($employee['manpower_hiring_employee_active']=='0'){echo 'selected';}?>>Inactive</option> </select> </td> </tr> <?php $i++; } ?> </table> <table class="sort" cellpadding="0" cellspacing="0" width="200px;"> <tr> <th>Employee No</th> <th>Employee Name</th> <th>Trade</th> <th>Contact No</th> <th>Status</th> <th width="20%"> <input style="width:75px;" type="button" style="width:150px;" id="button2" value="Add More" class="addRow" title="Add Row"/> </th> </tr> <tr> <td><input type="text" class="medium" name="manpower_hiring_employee_no"></td> <td><input type="text" class="medium" name="manpower_hiring_employee_name"></td> <td> <select name="manpower_hiring_employee_trade_id" id="manpower_hiring_employee_trade_id"> <option value="">Select</option> <?php foreach($trade_list as $trade) { echo "<option value='". $trade['trade_id'] . "'>" . $trade['trade_name'] . "</option>"; } ?> </select> </td> <td><input type="text" class="medium" name="manpower_hiring_employee_contact_no" /></td> <td> <select name="manpower_hiring_employee_active" id="manpower_hiring_employee_active" class="required"> <option value='1'>Active</option> <option value='0'>Inactive</option> </select> </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> </table> </li> <li> <label for="submit"> </label> <button type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>