?
Current Path : /home1/savoy/public_html/savoyglobal.net/horeitia/application/views/Master/ |
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/horeitia/application/views/Master/edit_site.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <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('master','viewinmastersearch','search_site','view_site','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Updating site</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('master/addinmaster/update_site/view_site/1',$attributes);?> <ul> <li> <label for="data">Site Name</label> <?php $data = array( 'name' => 'site_name', 'id' => 'site_name', 'class' =>'required', 'value' => $viewinfo->site_name ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">Customer Name</label> <?php $customer=$this->mastermodel->get_data_srow('payroll_customer',$viewinfo->customer_id,'customer_id'); if(!empty($customer)) $customer_name = $customer->customer_name.'-'.$customer->customer_code; else $customer_name = ''; $data = array( 'name' => 'customer_name', 'id' => 'customer_name', 'class' => 'required', 'value' => $customer_name ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">Site Cordinator</label> <?php $data = array( 'name' => 'site_cordinator', 'id' => 'site_cordinator', 'class' =>'required', 'value' => $viewinfo->site_cordinator ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">Contact No</label> <?php $data = array( 'name' => 'site_contact_no', 'id' => 'site_contact_no', 'value' => $viewinfo->site_contact_no ); echo form_input($data).form_error($data); ?> <input type="hidden" name="tab_name" value="site"/> <input type="hidden" name="site_id" value="<?=$id;?>"/> <input type="hidden" name="resfunction" value="search_site"/> <li> <label for="submit"> </label> <button type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>