?
Current Path : /home1/savoy/public_html/savoyglobal.net/rms/application/views/master/ |
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/rms/application/views/master/edit_agent.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $location=$this->mastermodel->getdatas('location','location_id','asc','location_id'); $status=$this->mastermodel->getenumvalues('agent', 'status'); ?> <div class="icons_main"> <div class="icons"> <img src="<?=base_url()?>assets/images/back.png" title="Back" class="clickimage" onclick="viewdata('master','viewinmastersearch','search_agent','view_agent','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>Updating Agent Details</h4> </div> </div> <?php $attributes=array('id'=>'validateform','class'=>'validate'); echo form_open('master/addinmaster/update_agent/view_agent/1',$attributes); ?> <div class="grid_6"> <div class="box"> <div class="header"> <span></span> </div> <div class="content no-padding"> <div class="section _100"> <label>Agent Name </label> <div> <input name="agent_name" id="agent_name" class="required" value="<?=$viewinfo->agent_name?>"> </div> </div> <div class="section _100"> <label> Code </label> <div> <input name="agent_code" id="agent_code" readonly="readonly" value="<?=$viewinfo->agent_code?>"> </div> </div> <div class="section _100"> <label> Contact Number </label> <div> <input name="contact_no" id="contact_no" class="required" value="<?=$viewinfo->contact_no?>"> </div> </div> <div class="section _100"> <label> E Mail </label> <div> <input name="e_mail" id="e_mail" class="mail" value="<?=$viewinfo->e_mail?>"> </div> </div> </div> </div> </div> <div class="grid_6"> <div class="box"> <div class="header"> </div> <div class="content no-padding"> <div class="section _100"> <label> Status </label> <div> <select name="status" id="status" class="required chzn-done" style="margin-top: 6px;"> <option value="">Select</option> <?php foreach($status['val'] as $row) { ?> <option value="<?=$row?>" <?php if($viewinfo->status==$row){ echo 'selected'; } ?>><?=$row?></option> <?php } ?> </select> </div> </div> <div class="section _100"> <label> Location </label> <div style="margin-top: 6px;"> <select name="location" class="required" id="location"> <option value="">Select</option> <?php foreach ($location as $list) { ?> <!-- <option value="<?=$list['location_id']?>"><?=$list['location_name']?></option>--> <option value="<?=$list['location_id'];?>"<?php if($list['location_id']==$viewinfo->location){echo "selected";} ?>><?=$list['location_name'];?></option> <?php } ?> </select> </div> </div> <div class="section _100"> <label>Address</label> <div> <textarea name="address" id="address"><?=$viewinfo->address?></textarea> </div> </div> <div class="section _100"> <label>Comments</label> <div> <textarea name="comments" id="comments"><?=$viewinfo->comments?></textarea> </div> </div> <div class="actions"> <div class="actions-left"> <input type="reset"> <input type="hidden" name="resfunction" id="resfunction" value="search_agent"/> <input type="hidden" name="agent_id" id="agent_id" value="<?=$viewinfo->agent_id?>"/> </div> <div class="actions-right"> <button type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">Update</button> </div> </div> </div> <?php echo form_close();?> </div> </div>