?
Current Path : /home1/savoy/public_html/savoyglobal.net/oscardraft/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/oscardraft/application/views/master/add_course.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <script type="text/javascript"> function checkcodeexistence(code) { $.ajax({ type: "POST", url: "<?=site_url()?>/master/checkcodeexistence/"+code, success: function(msg) { if(msg!=0) { alert("Course code already exists"); $("#course_code").val(''); } }}); } </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_course','view_course','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>Creating new course </h4> </div> </div> <?php $attributes=array('id'=>'validateform','class'=>'validate'); echo form_open('master/addinmaster/insert_course/view_course/1',$attributes); $subject=$this->mastermodel->getdatas('subject','subject_id'); $main_course=$this->mastermodel->getdatas('main_course','main_course_id'); ?> <div class="grid_6"> <div class="box"> <div class="header main"> Course Details</div> </div> <div class="content no-padding"> <div class="section _100"> <label>Main Course Name </label> <div> <select name="main_course_id" id="main_course_id" class=" required chzn-done" > <option value=''>Select</option> <?php foreach($main_course as $list) { ?> <option value="<?=$list['main_course_id']?>"><?=$list['main_course_name']?></option> <?php } ?> </select> </div> </div> <div class="section _100"> <label>Course Code </label> <div> <input name="course_code" id="course_code" class="required" onchange="checkcodeexistence(this.value)" /> </div> </div> <div class="section _100"> <label>Course Name </label> <div> <input name="course_name" id="course_name" class="required" /> </div> </div> <div class="section _100"> <label> Duration of Course </label> <div> <input name="duration" id="duration" type="text" /> </div> </div> <div class="section _100"> <label>Registration Fee</label> <div> <input name="fee" id="fee" type="text"/> </div> </div> <div class="section _100"> <label>Course Fee</label> <div> <input name="course_fee" id="course_fee" type="text" class="number required" /> </div> </div> <div class="section _100"> <label>Books Fee</label> <div> <input name="books_fee" id="books_fee" type="text" class="number required" /> </div> </div> </div> </div> </div> <div class="grid_6"> <div class="box"> <div class="content no-padding"> <div class="header main"> Subjects</div> <table class="table"> <tr> <th>Subjects</th> <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:75px;"/></th> </tr> <tr> <td> <select name="subject_id" id="subject_id" class="chzn-done" > <option value=''>Select</option> <?php foreach($subject as $list) { ?> <option value="<?=$list['subject_id']?>"><?=$list['subject_name']?></option> <?php } ?> </select> </td> <td> <img style="float: right; vertical-align: top;"src="<?=base_url()?>assets/images/icons/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> </table> </div> </div> </div> <div class="grid_6"> <div class="box"> <div class="content no-padding"> <div class="header main"> Fees structure</div> <table class="table"> <tr> <th>No of sessions</th> <th>Monthly Fee</th> <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:75px;"/></th> </tr> <tr> <td> <select name="no_sessions" id="no_sessions" class="chzn-done" style="width: 61;height: 19;"> <option value="">Select</option> <?php $sessions=$this->mastermodel->getdatas('no_sessions','no_sessions'); foreach($sessions as $list) { ?> <option value="<?=$list['no_sessions_id'];?>"><?=$list['no_sessions'];?></option> <?php } ?> </select> </td> <td> <input name="monthly_fee" id="monthly_fee" type="text" class="number" /> </td> <td> <img style="float: right; vertical-align: top;"src="<?=base_url()?>assets/images/icons/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> </table> </div> </div> </div> <?php ?> <div class="grid_12"> <div class="box"> <div class="actions"> <div class="actions-left"> <input type="reset"> <input type="hidden" name="resfunction" value="search_course"/> </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();?>