?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec/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/sec/application/views/master/add_exammaster.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?> <!--<script type="text/javascript" src="<?= base_url() ?>assets/scripts/jquery-1.4.4.min.js"></script> --> <?php $this->load->view('documentreadyfunctions'); ?> <script type="text/javascript"> function load_details(id) { $("#course_code").empty(); $.ajax({ type: "POST", url: "<?= site_url() ?>"+'/master/load_code/'+id, success: function(msg) { $('#detail1').show(); $("#course_code").append('<label>'+msg+'</label>'); } }); } </script> <!-- BEGIN PAGE LEVEL STYLES --> <!-- END PAGE LEVEL STYLES --> <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>Add New Exam </div> <div class="tools"> <a href="#" onclick="viewdata('master','viewinmastersearch','search_exammaster','view_exammaster','<?= $_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('master/addinmaster/insert_exammaster/view_exammaster/1', $attributes); $course = $this->mastermodel->getdatas('course', 'course_id'); ?> <h3 class="form-section"></h3> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Course</label> <div class="controls"> <select name="course_id" id="course_id" class="m-wrap span12 required chosen" onchange="load_details(this.value)" > <option value=''>Select</option> <?php foreach ($course as $list) { ?> <option value="<?= $list['course_id'] ?>"><?= $list['course_name'] ?></option> <?php } ?> </select> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Course Code</label> <div class="controls" id="course_code"> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Exam Name</label> <div class="controls"> <input name="exammaster_name" id="exammaster_name" class="m-wrap span12 required" /> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Start date</label> <div class="controls" id="course_code"> <input name="start_date" id="date1" type="text" class="calfocus m-wrap span12 "/> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">End Date</label> <div class="controls"> <input name="end_date" id="date" type="text" class="calfocus m-wrap span12 "/> </div> </div> </div> </div> <div class="form-actions"> <input type="hidden" name="tab_name" value="exammaster"/> <input type="hidden" name="resfunction" value="search_exammaster"/> <button type="submit" onclick="addformdata('validateform')" class="btn blue"><i class="icon-ok"></i> Save</button> <button type="button" onclick="viewdata('master','viewinmastersearch','search_exammaster','view_exammaster','<?= $_SESSION['pagenum']; ?>')" class="btn">Cancel</button> </div> <?php echo form_close(); ?> <!-- END FORM--> </div> </div> </div> </div>