?
Current Path : /home1/savoy/www/savoyglobal.net/sgms/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/sgms/application/views/Sales/edit_daily_activity.php |
<script language="javascript" type="text/javascript"> jQuery(document).ready(function() { suggestemployee('employee'); }); </script> <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $this->load->view('commonfunctions'); ?> <div class="select-bar"> <label><img src="<?=base_url()?>assets/images/backbutton.png" title="Back" class="clickimage" onclick="viewdata('sales','viewinsalessearch','search_daily_activity','view_daily_activity','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Update Daily Activity</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('sales/addinsales/update_daily_activity/view_daily_activity/1',$attributes); $daily_activity_details=$this->mastermodel->get_data('daily_activity_details',$viewinfo->daily_activity_id ,'daily_activity_id','daily_activity_id'); ?> <ul> <li> <label for="data">Employee Name</label> <div class="record_entry"> <?=$this->mastermodel->getSingleFieldValue('employee','employee_name','employee_id',$viewinfo->employee_id);?> </div> </li> <li> <label for="data">Date</label> <?php $data = array( 'name' => 'activity_date', 'id' => 'activity_date', 'class' => 'calfocus', 'value' => $this->mastermodel->convertdatenormalformat($viewinfo->activity_date) ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">Remarks</label> <?php $data = array( 'name' => 'remarks', 'id' => 'remarks', 'value' => $viewinfo->remarks ); echo form_textarea($data).form_error($data); ?> </li> <br/><br/> <li> <table class="sort" cellpadding="0" cellspacing="0" width="200px;"> <tr> <th>Customer Name</th> <th>Contact Person Name</th> <th>Time</th> <th>Contact No</th> <th>Remarks</th> <th width="20%"> <input type="button" style="width:150px;" id="button2" value="Add More" class="addRow" title="Add Row"/> </th> </tr> <?php $i=0; foreach($daily_activity_details as $day) { $i++; ?> <tr> <td> <input type="text" style="width:100px;" class="required" name="customer_name<?=$i;?>" value="<?=$day['customer_name'];?>"/> </td> <td><input type="text" style="width:100px;" name="contact_person_name<?=$i;?>" value="<?=$day['contact_person_name'];?>"/></td> <td><input type="text" style="width:80px;" name="time<?=$i;?>" value="<?=$day['time'];?>"/></td> <td><input type="text" style="width:80px;" name="contact_no<?=$i;?>" value="<?=$day['contact_no'];?>"/></td> <td><input type="text" style="width:80px;" name="remarks<?=$i;?>" value="<?=$day['remarks'];?>"/></td> <td> <img style="float: right; vertical-align: top;"src="<?=base_url()?>assets/images/icons/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> <?php } ?> </table> <input type="hidden" name="tab_name" value="employee_educational_qualification"/> <input type="hidden" name="tab_id" value="<?=$id;?>"/> </li> <li> <input type="hidden" name="daily_activity_id" id="daily_activity_id" value="<?=$viewinfo->daily_activity_id;?>" /> <input type="hidden" name="tab_name" value="daily_activity"/> <label for="submit"> </label> <button type="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>