?
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/editdailyactivity.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) { $dailyactivityid=$updata['id']; $staffid=$updata['staffid']; $date=$updata['date']; } $date=$this->mastermodel->convdatformat($date); ?> <div class="select-bar"> <label> <img src="<?=base_url()?>/assets/images/backbutton.png" title="Back" class="clickimage" onclick="loaddailyactivity('<?=$_SESSION['pagenum']?>','<?=$_SESSION['searchoption']?>','<?=$_SESSION['searchtxt']?>')" alt="Back" align = "center" width="25" height="25" /></label> </div> <fieldset> <legend>Update Daily Activity</legend> <?php $attributes = array('id' => 'customForm'); echo form_open('sales/editdailyactivity',$attributes); echo form_hidden('dailyactivityid',$dailyactivityid); ?> <ul> <li> <label>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> <?php $stf=$this->mastermodel->get_data_srow('staffpersonaldetails',$staffid,'id'); ?> <li> <label>Employee Name:</label> <?php echo $stf->name; ?> <input type="hidden" name="staffid" id="staffid" value="<?php echo $stf->id; ?>"> </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></li> <fieldset> <legend>Customer Details</legend> <li> <input name="addRows" value="Add More" onclick="addRowToTableSales();" title="Add more Customer details." type="button"> <input name="deleteRows" value="Remove" onclick="removeRowFromTableSales();" title="Delete the last Customer details." type="button"> </li> <li></li> <table class="sort" id="addrow" border="0" cellpadding="0" cellspacing="0" width="80%"> <tbody><tr class="red_bold" align="left" valign="top"> <th width="10%">Time</th> <th width="20%">Customer Name</th> <th width="18%">Contact Person</th> <th width="18%">Designation</th> <th width="18%">Tel No</th> <th width="12%">Remarks</th> </tr> <?php $id=1; foreach ($viewactivity as $activity) {?> <tr class="bold_black" align="left" valign="top"> <td><input name="txt_conTime_<?=$id?>" id="txt_conTime__<?=$id?>" value="<?=$activity['time']?>" style="width: 60px;" type="text"> <td><input name="txt_conName_<?=$id?>" id="txt_conName_<?=$id?>" style="width: 150px;" value="<?=$activity['name']?>" type="text"> <input name="hid_conCnt" id="hid_conCnt" value="3" type="hidden"></td> <td><input name="txt_conPers_<?=$id?>" id="txt_conPers_<?=$id?>" style="width: 100px;" value="<?=$activity['contact_person']?>" type="text"></td> <td><input name="txt_conDesg_<?=$id?>" id="txt_conDesg_<?=$id?>" style="width: 100px;" value="<?=$activity['designation']?>" type="text"></td> <td><input name="txt_conTel_<?=$id?>" id="txt_conTel_<?=$id?>" style="width: 80px;" value="<?=$activity['tel_no']?>" type="text"></td> <td><textarea name="txt_conStat_<?=$id?>" id="txt_conStat_<?=$id?>" style="width: 120px;"><?=$activity['remarks']?></textarea></td> </tr> <input name="hidc_<?=$id?>" id="hidc_<?=$id?>" value="<?=$activity['id']?>" type="hidden"> <?php $id++; } ?> </tbody></table> </fieldset> <li></li> <li><label for="submit"> </label> <button type="submit" class="clickimage" id="submit" onclick="return doallthethree();">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>