?
Current Path : /home1/savoy/public_html/savoyglobal.net/hr/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/hr/application/views/Timesheet/add_purchase_order.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"/> <script language="javascript" type="text/javascript"> jQuery(document).ready(function() { suggestcustomer('customer_name'); }); </script> <div class="select-bar"> <label><img src="<?=base_url()?>assets/images/backbutton.png" title="Back" class="clickimage" onclick="viewdata('timesheet','viewintimesheetsearch','search_purchase_order','view_purchase_order','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Creating new Purchase Order</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('timesheet/addintimesheet/insert_purchase_order/view_purchase_order/1',$attributes); $trade_list=$this->mastermodel->getdatas('trade','trade_name'); $site_list=$this->mastermodel->getdatas('site','site_name'); ?> <ul> <li> <table class="sortnew"> <tr> <th colspan="2">Purchase Order Information</th> </tr> <tr> <td>Company Name</td> <td> <select name="purchase_order_company_name" id="purchase_order_company_name" class="required"> <?php $co_list=$this->mastermodel->getenumvalues('payroll_purchase_order','purchase_order_company_name'); foreach($co_list['val'] as $co) { echo "<option value='". $co . "'>" . $co . "</option>"; } ?> </select> </td> </tr> <tr> <td>Customer Name</td> <td> <?php $data = array( 'name' => 'customer_name', 'id' => 'customer_name', 'class' =>'required' ); echo form_input($data).form_error($data); ?> </td> </tr> <tr> <td>Job Code</td> <td> <input type="text" class="required" name="job_code"/> </td> </tr> <tr> <td>Subject</td> <td> <?php $data = array( 'name' => 'purchase_order_subject', 'id' => 'purchase_order_subject', 'class' =>'required' ); echo form_input($data).form_error($data); ?> </td> </tr> <tr> <td>Purchase Order Date</td> <td> <div id="multi"> <?php $data = array( 'name' => 'purchase_order_date', 'id' => 'purchase_order_date', 'class' =>'required medium' ); echo form_input($data).form_error($data); ?> <img src="<?=base_url()?>assets/images/icons/calendar.png" alt="Click to popup the clendar!" /> </div> </td> </tr> <tr> <td>Customer Purchase Order No</td> <td> <?php $data = array( 'name' => 'customer_purchase_order_no', 'id' => 'customer_purchase_order_no', 'class' => 'required' ); echo form_input($data).form_error($data); ?> </td> </tr> <tr> <td>Site</td> <td> <select name="purchase_order_site_id" id="purchase_order_site_id" class="required" style="width:120px;"> <option value="">Select</option> <?php foreach($site_list as $site) { echo "<option value='". $site['site_id'] . "'>" . $site['site_name'] . "</option>"; } ?> </select> </td> </tr> <tr> <td>Payment Terms</td> <td> <?php $data = array( 'name' => 'purchase_order_payment_terms', 'id' => 'purchase_order_payment_terms', 'rows' => '10', 'cols' => '5', 'style' => 'width:80%', ); echo form_textarea($data).form_error($data); ?> </td> </tr> <tr> <td>Upload Document</td> <td> <?php $data = array( 'name' => 'purchase_order_document_name', 'id' => 'purchase_order_document_name' ); $data1 = array( 'name' => 'purchase_order_document_doc', 'id' => 'purchase_order_document_doc' ); echo form_input($data).form_error($data); echo form_upload($data1).form_error($data1); ?> </td> </tr> </table> <table class="sortnew"> <tr> <th colspan="2">Job Information</th> </tr> <tr> <td>Start Date</td> <td> <div id="multi"> <?php $data = array( 'name' => 'purchase_order_start_date', 'id' => 'purchase_order_start_date', 'class' => 'medium' ); echo form_input($data).form_error($data); ?> <img src="<?=base_url()?>assets/images/icons/calendar.png" alt="Click to popup the clendar!" /> </div> </td> </tr> <tr> <td>End Date</td> <td> <div id="multi"> <?php $data = array( 'name' => 'purchase_order_end_date', 'id' => 'purchase_order_end_date', 'class' => 'medium' ); echo form_input($data).form_error($data); ?> <img src="<?=base_url()?>assets/images/icons/calendar.png" alt="Click to popup the clendar!" /> </div> </td> </tr> <tr> <td>Basic Hours</td> <td> <?php $data = array( 'name' => 'purchase_order_hours_basic', 'id' => 'purchase_order_hours_basic', 'class' => 'required' ); echo form_input($data).form_error($data); ?> </td> </tr> <tr> <td>Transportation</td> <td> <select name="purchase_order_transportation" id="purchase_order_transportation" class="required"> <option value="">Select</option> <?php $transportation_list=$this->mastermodel->getenumvalues('payroll_purchase_order','purchase_order_transportation'); foreach($transportation_list['val'] as $transportation) { echo "<option value='". $transportation . "'>" . $transportation . "</option>"; } ?> </select> </td> </tr> <tr> <td>Food Allowance</td> <td> <select name="purchase_order_food_allowance" id="purchase_order_food_allowance" class="required"> <option value="">Select</option> <?php $fa_list=$this->mastermodel->getenumvalues('payroll_purchase_order','purchase_order_food_allowance'); foreach($fa_list['val'] as $fa) { echo "<option value='". $fa . "'>" . $fa . "</option>"; } ?> </select> </td> </tr> <tr> <td>Accommodation</td> <td> <select name="purchase_order_accomodation" id="purchase_order_accomodation" class="required"> <option value="">Select</option> <?php $accom_list=$this->mastermodel->getenumvalues('payroll_purchase_order','purchase_order_accomodation'); foreach($accom_list['val'] as $accomodation) { echo "<option value='". $accomodation . "'>" . $accomodation . "</option>"; } ?> </select> </td> </tr> <tr> <td>Remarks</td> <td> <?php $data = array( 'name' => 'purchase_order_remarks', 'id' => 'purchase_order_remarks', 'rows' => '10', 'cols' => '5', 'style' => 'width:80%', ); echo form_textarea($data).form_error($data); ?> </td> </tr> <tr> <td>Job Status</td> <td> <select name="purchase_order_status" id="purchase_order_status" class="required"> <option value="">Select</option> <?php $status_list=$this->mastermodel->getenumvalues('payroll_purchase_order','purchase_order_status'); foreach($status_list['val'] as $status) { echo "<option value='". $status . "'>" . $status . "</option>"; } ?> </select> </td> </tr> </table> </li> <li> <table class="sort" cellpadding="0" cellspacing="0" width="200px;"> <tr> <th>Trade</th> <th>NOS</th> <th>Rate</th> <th>OT Type</th> <th>OT Rate (%)</th> <th>HOT Rate (%)</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> <select name="purchase_order_trade_id" id="purchase_order_trade_id" class="required"> <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="required small number" name="purchase_order_manpower_no"></td> <td><input type="text" class="required small number" name="purchase_order_rate" id="por"/> <!--onchange="setotrate(this)"--> </td> <td> <select class="small required" name="purchase_order_ot_type" id="pt" onchange="enableot(this)" > <option value="">Select</option> <option value="1">OT</option> <option value="0">Flat</option> </select> </td> <td><input type="text" class="small number" readonly name="purchase_order_ot_rate" id="purchase_order_ot_rate" /></td> <td><input type="text" class="small number" readonly name="purchase_order_hot_rate" id="purchase_order_hot_rate" /></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> <input type="hidden" name="tab_name" value="payroll_purchase_order"/> <input type="hidden" name="resfunction" value="search_purchase_order"/> </li> <li> <label for="submit"> </label> <button type="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>