?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec_old/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_old/application/views/master/add_exammaster.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $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> <div class="icons_main"> <div class="icons"> <img src="<?=base_url()?>assets/images/back.png" title="Back" class="clickimage" onclick="viewdata('master','viewinmastersearch','search_exammaster','view_exammaster','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>Creating new Exam </h4> </div> </div> <?php $attributes=array('id'=>'validateform','class'=>'validate'); echo form_open('master/addinmaster/insert_exammaster/view_exammaster/1',$attributes); $course=$this->mastermodel->getdatas('course','course_id'); ?> <div class="grid_6"> <div class="box"> <div class="header"> <span></span> </div> <div class="content no-padding"> <div class="section _100"> <label> Course</label> <div> <label> <select name="course_id" id="course_id" class="required chzn-done" 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> </label> </div> </div> <div style="display: none" id="detail1"> <div class="section _100" > <label> Course Code</label> <div id="course_code" class="single_page"> </div> </div> </div> <div class="section _100"> <label>Exam Name</label> <div> <input name="exammaster_name" id="exammaster_name" class="required" /> </div> </div> <div class="section _100"> <label> Start date</label> <div> <input name="start_date" id="date1" type="text" class="calfocus"/> </div> </div> <div class="section _100"> <label>End Date</label> <div> <input name="end_date" id="date" type="text" class="calfocus"/> </div> </div> </div> <?php // // $this->load->view('unique_form'); ?> <div class="actions"> <div class="actions-left"> <input type="reset" /> <input type="hidden" name="resfunction" value="search_exammaster"/> </div> <div class="actions-right"> <button type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </div> </div> </div> </div> <?php echo form_close();?>