?
Current Path : /home1/savoy/www/savoyglobal.net/sibs_draft/system/application/views/Sales/ |
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/www/savoyglobal.net/sibs_draft/system/application/views/Sales/editstaffcustomer.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <script type="text/javascript"> jQuery(document).ready(function () { $('.one').datepick({dateFormat: 'dd-mm-yyyy'}); }); </script> <?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ foreach($viewinfo as $updata) { $staffcustomerid=$updata['id']; $staffid=$updata['staffid']; $customerid = $updata['customerid']; $description=$updata['description']; $date=$updata['date']; $entrydate=$updata['entrydate']; } $date=$this->mastermodel->convdatformat($date); $entrydate=$this->mastermodel->convdatformat($entrydate); ?> <div class="select-bar"> <label> <img src="<?=base_url()?>/assets/images/backbutton.png" title="Back" class="clickimage" onclick="loadstaffcustomer('<?=$_SESSION['pagenum']?>','<?=$_SESSION['searchoption']?>','<?=$_SESSION['searchtxt']?>')" alt="Back" align = "center" width="25" height="25" /></label> </div> <fieldset> <legend>Update Staff - Customer</legend> <?php $attributes = array('id' => 'customForm'); echo form_open('sales/editstaffcustomer',$attributes); echo form_hidden('staffcustomerid',$staffcustomerid); ?> <ul> <?php $custom=$this->mastermodel->get_data_srow('customers',$customerid,'id'); if($custom->type == "Individual") $insured = $this->mastermodel->get_data_srow('customer_personal_ind',$customerid,'customer_id'); else $insured = $this->mastermodel->get_data_srow('customer_corp_info',$customerid,'customer_id'); ?> <?php $date= $this->customermodel->getSingleFieldValue('staffcustomer','max(date)','customerid',$customerid); $date=$this->mastermodel-> convdatformat($date);?> <li> <input name="entrydate" id="entrydate" value="<?php echo $entrydate;;?>" type="hidden" > <input id="lastdate" type="hidden" value="<?=$date?>" > </li> <li> <label>Customer Name:</label> <input type="text" id="customername" size="35" value="<?php echo $insured->insured; ?>" readonly> </li> <li id="custinfodet"> <fieldset><ul><li><label>Customer Code</label><label><?=$custom->code;?></label></li> <li><label>Customer Name</label><label><?=$insured->insured;?></label></li> </ul> </fieldset> </li> <?php $stf=$this->mastermodel->get_data_srow('staffpersonaldetails',$staffid,'id'); ?> <li> <label>Employee Name:</label> <input type="text" id="staffname" size="35" value="<?php echo $stf->name; ?>" readonly> </li> <?php $stfper=$this->mastermodel->get_data_srow('staffpersonaldetails',$staffid,'id'); $stfemp=$this->mastermodel->get_data_srow('staffemployeedetails',$staffid,'staffid'); $desg = $this->mastermodel->get_data_srow('designation',$stfemp->designationid,'id'); $dept= $this->mastermodel->get_data_srow('department',$stfemp->deptid,'id'); ?> <li id="stfinfodet"> <fieldset><ul><li><label>Employee No</label><label><?=$stfper->employeeid;?></label></li> <li><label>Designation</label><label><?=$desg->designation;?></label></li> <li><label>Department</label><label><?=$dept->departmentname;?></label></li> </ul> </fieldset> </li> <li> <label>Effective Date</label> <input class="one" name="date" id="date" readonly="true" value="<?php echo $date;?>" type="text" style="background-image: url(../../../../assets/images/datefocus.gif);"> <span id="dateInfo" class="red_bold">*</span> </li> <li> <label for="Name">Description</label> <?php echo form_textarea('description',$description); ?> </li> <li><label for="submit"> </label> <button type="submit" id="submit" onclick="return doallthethree();">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>