?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec/application/views/franchisee/ |
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/sec/application/views/franchisee/edit_franchisee.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <div class="row-fluid"> <div class="tab-pane " id="tab_2"> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i>Updating Franchisee</div> <div class="tools"> <a href="#" onclick="viewdata('franchisee','viewinfranchiseesearch','search_franchisee','view_franchisee','<?= $_SESSION['pagenum']; ?>')" class="remove"></a> </div> </div> <div class="portlet-body form"> <!-- BEGIN FORM--> <?php $attributes = array('id' => 'validateform', 'class' => 'form-horizontal validate'); echo form_open('franchisee/addinfranchisee/update_franchisee/view_franchisee/1', $attributes); $course = $this->mastermodel->search_course(); ?> <h3 class="form-section">Franchisee Details</h3> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Franchisee Code</label> <div class="controls"> <input name="franchisee_code" id="franchisee_code" class="required span12" type="text" readonly="readonly" value="<?= $viewinfo->franchisee_code ?>"/> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Franchisee Name</label> <div class="controls"> <input name="franchisee_name" id="franchisee_name" class="required span12" type="text" value="<?= $viewinfo->franchisee_name; ?>"/> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Address</label> <div class="controls"> <textarea name="franchisee_address" class="span12" id="franchisee_address" type="text"><?= $viewinfo->franchisee_address; ?></textarea> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Contact No</label> <div class="controls"> <input name="franchisee_contact_no" id="franchisee_contact_no" type="text" value="<?= $viewinfo->franchisee_contact_no; ?>" class="span12"/> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Email</label> <div class="controls"> <input name="franchisee_email" id="franchisee_email" type="text" value="<?= $viewinfo->franchisee_email; ?>" class="span12"/> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Website</label> <div class="controls"> <input name="franchisee_website" id="franchisee_website" type="text" value="<?= $viewinfo->franchisee_website; ?>" class="span12" /> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Remarks </label> <div class="controls"> <textarea name="franchisee_remarks" id="franchisee_remarks" class="span12" type="text"><?= $viewinfo->franchisee_remarks; ?></textarea> </div> </div> </div> </div> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-check"></i> Course Details</div> </div> <div class="portlet-body"> <div class="row-fluid"> <div class="control-group"> <table class="table table-striped table-hover table-bordered" id="sample_3" style="background-color: white;"> <tr> <th>Course</th> <th>Franchisee royalty</th> <th>Remarks</th> <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:75px;"/></th> </tr> <?php $i = 1; foreach ($cours as $row) { ?> <tr> <td> <select name="course_id<?= $i ?>" id="course_id<?= $i ?>" class="chosen span12" onchange ="checkcourseexistence('franchisee_course','course_id',this.value, this.id)" > <option value=''>Select</option> <?php foreach ($course['results']->result_array() as $list) { ?> <option value="<?= $list['course_id'] ?>" <?php if ($list['course_id'] == $row['course_id']) { echo 'selected'; } ?>><?= $list['course_name'] ?></option> <?php } ?> </select> </td> <td> <input name="franchisee_course_royalty<?= $i ?>" id="franchisee_course_royalty<?= $i ?>" value="<?= $row['franchisee_course_royalty'] ?>" class="span12"type="text" /> </td> <td> <textarea name="franchisee_course_remarks<?= $i ?>" id="franchisee_course_remarks<?= $i ?>" class="span12" type="text"><?= $row['franchisee_course_remarks'] ?></textarea> </td> <td> <img style="float: right; vertical-align: top;"src="<?= base_url() ?>assets/img/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> <?php } $i++ ?> <tr> <td> <select name="course_id" id="course_id" class="chosen span12" > <option value=''>Select</option> <?php foreach ($course['results']->result_array() as $list) { ?> <option value="<?= $list['course_id'] ?>"><?= $list['course_name'] ?></option> <?php } ?> </select> </td> <td> <input name="franchisee_course_royalty" id="franchisee_course_royalty" class="span12"type="text" /> </td> <td> <textarea name="franchisee_course_remarks" id="franchisee_course_remarks" type="text" class="span12"></textarea> </td> <td> <img style="float: right; vertical-align: top;"src="<?= base_url() ?>assets/img/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> </table> </div> </div> </div> </div> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-check"></i> Contact Details</div> </div> <div class="portlet-body"> <div class="row-fluid"> <div class="control-group"> <table class="table table-striped table-hover table-bordered" id="sample_3" style="background-color: white;"> <tr> <th>Contact Person Name</th> <th>Designation</th> <th>Contact No</th> <th>Email</th> <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:75px;"/></th> </tr> <?php foreach ($contact as $list) { ?> <tr> <td><input style="width:175px;" type="text" name="franchisee_contact_person_name" id="franchisee_contact_person_name" value="<?=$list['franchisee_contact_person_name']?>" /></td> <td><input style="width:175px;" type="text" name="franchisee_contact_address" id="franchisee_contact_address" value="<?=$list['franchisee_contact_address']?>" /></td> <td><input style="width:175px;" type="text" name="franchisee_contact_no" id="franchisee_contact_no" value="<?=$list['franchisee_contact_no']?>" /></td> <td><input style="width:175px;" type="text" name="franchisee_contact_email" id="franchisee_contact_email" value="<?=$list['franchisee_contact_email']?>" /></td> <td> <img style="float: right; vertical-align: top;"src="<?= base_url() ?>assets/img/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> <?php } ?> <tr> <td><input style="width:175px;" type="text" name="franchisee_contact_person_name" id="franchisee_contact_person_name"/></td> <td><input style="width:175px;" type="text" name="franchisee_contact_address" id="franchisee_contact_address"/></td> <td><input style="width:175px;" type="text" name="franchisee_contact_no" id="franchisee_contact_no"/></td> <td><input style="width:175px;" type="text" name="franchisee_contact_email" id="franchisee_contact_email"/></td> <td> <img style="float: right; vertical-align: top;"src="<?= base_url() ?>assets/img/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> </table> </div> </div> </div> </div> <div class="form-actions"> <input type="hidden" name="tab_name" value="franchisee"/> <input type="hidden" name="resfunction" value="search_franchisee"/> <input type="hidden" name="franchisee_id" id="franchisee_id" value="<?=$viewinfo->franchisee_id?>"/> <button type="submit" onclick="addformdata('validateform')" class="btn blue"><i class="icon-ok"></i> Save</button> <button type="button" onclick="viewdata('franchisee','viewinfranchiseesearch','search_franchisee','view_franchisee','<?= $_SESSION['pagenum']; ?>')" class="btn">Cancel</button> </div> <?php echo form_close(); ?> <!-- END FORM--> </div> </div> </div> </div>