?
Current Path : /home1/savoy/public_html/savoyglobal.net/sgms/draft/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/draft/application/views/Timesheet/add_customer.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('timesheet','viewintimesheetsearch','search_customer','view_customer','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Creating new Customer</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('timesheet/addintimesheet/insert_customer/view_customer/1',$attributes); $status=$this->mastermodel->getenumvalues('payroll_customer', 'customer_status'); $num=$this->mastermodel->get_num_rows('payroll_customer'); $num++; do { $customer_code = "CRP".str_pad($num, 3, "0", STR_PAD_LEFT); $num_rows_customer = $this->mastermodel->number_rows('payroll_customer','customer_code',$customer_code); $num++; }while($num_rows_customer!=0); ?> <ul> <li> <table class="sortnew"> <tr><th colspan='2' style="text-align: center">Customer Details</th></tr> <tr> <td>Customer Code</td> <td style="width:65%"> <?php $data = array( 'name' => 'customer_code', 'id' => 'customer_code', 'class' =>'required', 'readonly' => true, 'value' => $customer_code ); echo form_input($data).form_error($data); ?> </td> </tr> <tr> <td> Customer Name </td> <td style="width:65%"> <?php $data = array( 'name' => 'customer_name', 'id' => 'customer_name', 'class' =>'required' ); echo form_input($data).form_error($data); ?> </td> </tr> <tr> <td> Contact No </td> <td style="width:65%"> <?php $data = array( 'name' => 'customer_contact_no', 'id' => 'customer_acontact_no', 'class' =>'required' ); echo form_input($data).form_error($data); ?> </td> </tr> <tr> <td> Fax </td> <td style="width:65%"> <?php $data = array( 'name' => 'customer_fax', 'id' => 'customer_fax', ); echo form_input($data).form_error($data); ?> </td> </tr> <tr> <td> Email </td> <td style="width:65%"> <?php $data = array( 'name' => 'customer_email', 'id' => 'customer_email', ); echo form_input($data).form_error($data); ?> </td> </tr> <tr> <td>Website:</td> <td> <?php $data = array( 'name' => 'customer_website', 'id' => 'customer_website', ); echo form_input($data).form_error($data); ?> </td> </tr> <tr> <td> Status </td> <td style="width:65%"> <select name="customer_status" id="customer_status" class="required" > <?php if(count($status['val'])>0) { foreach ($status['val'] as $method) { echo "<option value='".$method. "' >" . $method . "</option>"; } } ?> </select> </td> </tr> </table> <table class="sortnew"> <tr><th colspan="2" style="text-align:center;">Address Information</th></tr> <tr> <td> Address </td> <td style="width:65%"> <?php $data = array( 'name' => 'customer_address', 'id' => 'customer_address', 'rows' => '10', 'cols' => '5', 'style' => 'width:80%', ); echo form_textarea($data).form_error($data); ?> </td> </tr> <tr> <td> P.O Box </td> <td style="width:65%"> <?php $data = array( 'name' => 'customer_pobox', 'id' => 'customer_pobox', ); echo form_input($data).form_error($data); ?> </td> </tr> <tr> <td> City </td> <td style="width:65%"> <?php $data = array( 'name' => 'customer_city', 'id' => 'customer_city', ); echo form_input($data).form_error($data); ?> </td> </tr> <tr> <td> State </td> <td style="width:65%"> <?php $data = array( 'name' => 'customer_state', 'id' => 'customer_state', ); echo form_input($data).form_error($data); ?> </td> </tr> <tr> <td> Country </td> <td style="width:65%"> <?php $data = array( 'name' => 'customer_country', 'id' => 'customer_country', ); echo form_input($data).form_error($data); ?> </td> </tr> </table> </li> <li> <table class="sort" cellpadding="0" cellspacing="0" width="200px;" id="corprate_table_2"> <tr> <th>Contact Name</th> <th>Designation</th> <th>Mobile</th> <th>Phone</th> <th>Email</th> <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:75px;"/></th> </tr> <tr> <td><input style="width:100px;" type="text" name="contact_name"/></td> <td><input style="width:100px;" type="text" name="contact_designation"/></td> <td><input style="width:100px;" type="text" name="contact_mobile"/></td> <td><input style="width:100px;" type="text" name="contact_phone"/></td> <td><input style="width:100px;" type="text" name="contact_email"/></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_customer"/> <input type="hidden" name="resfunction" value="search_customer"/> </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>