?
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/singlestaffcustomer.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <?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); $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'); ?> <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>Staff - Customer</legend> <ul> <li> <label>Customer Id</label><label class="lbl_column">:</label> <label class="lbl_title"> <?php echo $custom->code; ?></label></li> </li> <li> <label>Customer Name</label><label class="lbl_column">:</label> <label class="lbl_title"> <?php echo $insured->insured; ?></label></li> <?php $stf=$this->mastermodel->get_data_srow('staffpersonaldetails',$staffid,'id'); ?> <li> <label for="type">Date</label><label class="lbl_column">:</label> <label class="lbl_title"> <?php echo $entrydate; ?></label></li> <li> <li> <label>Employee Name:</label><label class="lbl_column">:</label> <label class="lbl_title"> <?php echo $stf->name; ?></label></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> <fieldset><ul><li><label>Employee No</label><label class="lbl_title"> <?=$stfper->employeeid;?></label></li> <li><label>Designation</label><label class="lbl_title"> <?php if(!empty($desg)) { echo $desg->designation; }?></label></li> <li><label>Department</label><label class="lbl_title"> <?php if(!empty($dept)) { echo $dept->departmentname; }?></label></li> </ul> </fieldset> </li> <li> <label for="type">Effective Date</label><label class="lbl_column">:</label> <label class="lbl_title"> <?php echo $date; ?></label></li> <li> <label for="Name">Description</label><label class="lbl_column">:</label> <label class="lbl_title"> <?php echo nl2br($description); ?></label></li> </ul> </fieldset>