?
Current Path : /home1/savoy/public_html/savoyglobal.net/drafthr/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/public_html/savoyglobal.net/drafthr/system/application/views/Sales/editsalesleads.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'}); $('.two').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) { $salesleadsid=$updata['id']; $staffid=$updata['staffid']; $leadname = $updata['leadname']; $cover_id=$updata['cover_id']; $business=$updata['business']; $rendate=$updata['rendate']; $officeno=$updata['officeno']; $email=$updata['email']; $remarks=$updata['remarks']; $contactperson=$updata['contactperson']; $designation=$updata['designation']; $status=$updata['status']; $mobile=$updata['mobile']; $fax=$updata['fax']; $date=$updata['date']; } $cr=$this->mastermodel->get_data_srow('covers',$cover_id,'id'); $stf=$this->mastermodel->get_data_srow('staffpersonaldetails',$staffid,'id'); $sg=$this->mastermodel->get_data_srow('segment_insurances',$cr->segment_id,'id'); $date=$this->mastermodel->convdatformat($date); $rendate=$this->mastermodel->convdatformat($rendate); ?> <div class="select-bar"> <label> <img src="<?=base_url()?>/assets/images/backbutton.png" title="Back" class="clickimage" onclick="loadsalesleads('<?=$_SESSION['pagenum']?>','<?=$_SESSION['searchoption']?>','<?=$_SESSION['searchtxt']?>')" alt="Back" align = "center" width="25" height="25" /></label> </div> <fieldset> <legend>Update Sales Leads</legend> <?php $attributes = array('id' => 'customForm'); echo form_open_multipart('sales/editsalesleads',$attributes); echo form_hidden('salesleadsid',$salesleadsid); ?> <?php $options = array( 'Active Customer' => 'Active Customer', 'Potential Customer' => 'Potential Customer', ); ?> <ul><li> <fieldset class ="leftone"> <legend>Lead Details</legend> <ul> <li> <label>Date</label> <input class="one" value="<?php echo $date; ?>" name="date" id="date" readonly="true" type="text" style="background-image: url(../../../../assets/images/datefocus.gif);"> </li> <li> <label for="Name">Customer Status</label> <?php echo form_dropdown('status',$options,$status);?> </li> <li> <?php $data = array( 'name' => 'leadname', 'id' => 'leadname', 'value' => $leadname, ); ?> <label for="Name">Lead Name</label> <?php echo form_input($data).form_error($data); ?><span id="leadnameInfo" class="red_bold">*</span> </li> <li> <?php $data3 = array( 'name' => 'business', 'id' => 'business', 'value' => $business, ); ?> <label for="Name">Business</label> <?php echo form_input($data3).form_error($data3); ?> </li> <li> <?php $data2 = array( 'name' => 'contactperson', 'id' => 'contactperson', 'value' => $contactperson, ); ?> <label for="Name">Contact Person</label> <?php echo form_input($data2).form_error($data2); ?> </li> <li> <label for="Name">Designation</label> <?php echo form_input('designation',$designation); ?> </li> <li> <?php $data1 = array( 'name' => 'officeno', 'id' => 'officeno', 'value' => $officeno, ); ?> <label for="Name">Office No.</label> <?php echo form_input($data1).form_error($data1); ?> </li> <li> <label for="Name">Mobile</label> <?php echo form_input('mobile',$mobile); ?> </li> <li> <label for="Name">Fax</label> <?php echo form_input('fax',$fax); ?> </li> <li> <label for="Name">Email</label> <?php echo form_input('email',$email); ?> </li> </ul> </fieldset> <fieldset class="rightone"> <legend>Insurance Details</legend> <ul> <li> <label>Renewal Date</label> <input class="one" value="<?=$rendate?>" name="rendate" id="rendate" readonly="true" type="text" style="background-image: url(../../../../assets/images/datefocus.gif);"> </li> <li> <?php echo " <label for='branch'>Insurance Classification</label><select name='segment_id' id='segment_id' style='width:170px;' onchange=\"showcover();makereadonly()\">"; echo "<option value='".$sg->id."'>".$sg->segment."</option>"; foreach($segment as $seg) { if($seg['segment']!=$sg->segment) echo "<option value='".$seg['id']."'>".$seg['segment']."</option>"; } // echo "<option value='". $list['id'] . "'>" . $list['segment'] . "</option>"; echo "</select>"; ?><span id="segment_idInfo" class="red_bold">*</span> </li> <li id="coverlist"> <?php echo " <label for='branch'>Type Of Cover</label><select name='cover_id' id='cover_id' onchange='makereadonly()' >"; echo "<option value='".$cr->id."'>".$cr->cover."</option>"; foreach($cover as $clist) { if($clist['cover']!=$cr->cover) echo "<option value='".$clist['id']."'>".$clist['cover']."</option>"; } // echo "<option value='". $list['id'] . "'>" . $list['segment'] . "</option>"; echo "</select></li>"; ?> <li >OR</li> <li> <label>Cover Code</label><input type="text" readonly value="<?=$cr->id?>" name="cover_id" id="cover_id_direct" /> </li> <li> <label for="Name">Remarks</label> <?php echo form_textarea('remarks',$remarks); ?> </li> <li> <label>Employee Name</label> <label class="lbl_title"> <?php echo $stf->name; ?></label> <input type="hidden" name="staffid" id="staffid" value="<?=$staffid?>"> </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> </ul> </fieldset> </li> <li></li> <li><label for="submit"> </label> <button type="submit" class="clickimage" id="submit" onclick="return doallthethree();">Update</button> </li> </ul> <?php echo form_close();?> </fieldset>