?
Current Path : /home1/savoy/public_html/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/public_html/savoyglobal.net/sgms/application/views/Sales/edit_sales_lead.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <div class="select-bar"> <label><img src="<?=base_url()?>assets/images/backbutton.png" title="Back" class="clickimage" onclick="viewdata('sales','viewinsalessearch','search_sales_lead','view_sales_lead','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Updating Sales Lead</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('sales/addinsales/update_sales_lead/view_sales_lead/1',$attributes); $activity=$this->mastermodel->getdatas('activity','activity_category_id'); $status=$this->mastermodel->getenumvalues('sales_lead', 'status') ?> <ul> <li> <label for="data">Lead Name</label> <input type="text" name="lead_name" id="lead_name" class="required" value="<?=$viewinfo->lead_name;?>" /> </li> <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' => 'date', 'id' => 'date', 'class' =>'required calfocus', 'value' => $this->mastermodel->convertdatenormalformat($viewinfo->date) ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">Email</label> <input type="text" name="email" id="email" value="<?=$viewinfo->email;?>" /> </li> <li> <label for="data">Contact No</label> <input type="text" name="contact_no" id="contact_no" value="<?=$viewinfo->contact_no;?>" /> </li> <li> <label for="data">Project</label> <select name="activity_id" id="activity_id" class="required" > <option value="">Select</option> <?php foreach($activity as $list) { ?> <option value="<?=$list['activity_id'];?>" <?php if($list['activity_id']==$viewinfo->activity_id){echo 'selected';}?>><?=$list['activity_name'];?></option> <?php } ?> </select> </li> <li> <label for="data">Remarks</label> <?php $data = array( 'name' => 'remarks', 'id' => 'remarks', 'value' => $viewinfo->remarks ); echo form_textarea($data).form_error($data); ?> <input type="hidden" name="tab_name" value="sales_lead"/> <input type="hidden" name="resfunction" value="search_sales_lead"/> <input type="hidden" name="sales_lead_id" value="<?=$viewinfo->sales_lead_id;?>"/> </li> <li> <label for="data">Status</label> <select name="status" id="status" class="required" > <?php if(count($status['val'])>0) { foreach ($status['val'] as $method) { echo "<option value='".$method."'";if($method==$viewinfo->status){echo "selected";} echo ">" . $method . "</option>"; } } ?> </select> </li> <li> <label for="submit"> </label> <button type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>