?
Current Path : /home1/savoy/public_html/savoyglobal.net/eduplus1/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/eduplus1/application/views/master/add_batch.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <script type="text/javascript"> $(document).ready(function() { $('#stud_details').css('display','none'); suggestStudent('#student'); }); function load_details(id) { $("#course_code").empty(); $("#batch_code").empty(); $.ajax({ type: "POST", url: "<?= site_url() ?>"+'/master/load_code/'+id, success: function(msg) { $('#detail1').show(); $("#course_code").append('<label>'+msg+'</label>'); $.ajax({ type: "POST", url: "<?= site_url() ?>"+'/master/get_batch_code/' +id, success: function(cod) { $("#batch_code,#batch_no").val(cod) // $("#course_code").append('<label>'+msg+'</label>'); // $("#batch_code,#batch_no").load("<?= site_url() ?>"+'/master/get_batch_code/' +msg); } }); } }); } </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_batch','view_batch','<?= $_SESSION['pagenum']; ?>')" alt="Back" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>Creating new Batch Details</h4> </div> </div> <?php $course = $this->mastermodel->getdatas('course', 'course_id'); $teacher = $this->mastermodel->get_data('employee', '1', 'employee_teacher'); $attributes = array('id' => 'validateform', 'class' => 'validate'); echo form_open('master/addinmaster/insert_batch/view_batch/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> 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 class="section _100" > <label> Class Code</label> <div> <input name="batch_no" id="batch_no" type="text" readonly /> </div> </div> </div> <!--div class="section _100"> <label> Teacher Name</label> <div> <label> <select name="teacher_id" id="teacher_id" > <option value=''>Select</option> <?php foreach ($teacher as $list) { ?> <option value="<?= $list['employee_id'] ?>"><?= $list['employee_name'] ?></option> <?php } ?> </select> </label> </div> </div--> <div class="section _100"> <label> Start date</label> <div> <input name="start_date" value=<?=date('d-m-Y');?> id="date1" type="text" class="required calfocus"/> </div> </div> <div class="section _100"> <label>Class Start Time</label> <div> <?php echo createHours('start_time_hour', date("H")); ?> <?php echo createMinutes('start_time_minute', date("i")); ?> </div> </div> <div class="section _100"> <label>Class End Time</label> <div> <?php echo createHours('end_time_hour', date("H")); ?> <?php echo createMinutes('end_time_minute', date("i")); ?> </div> </div> <div class="section _100"> <label>Classroom</label> <div> <select name="batch_class_id" id="batch_class_id" class="chzn-done"> <option value="">--Select--</option> <?php $class = $this->mastermodel->getdatas('class', 'class_id'); foreach ($class as $list) { ?> <option value="<?= $list['class_id']; ?>"><?= $list['class_name']; ?></option> <?php } ?> </select> </div> </div> </div> </div> </div> <div class="grid_6"> <div class="box"> <div class="content no-padding"> <div class="header main"> Teacher</div> <table class="table"> <tr> <th>Teacher Name</th> <th>WEF Date</th> <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:75px;"/></th> </tr> <tr> <td> <select name="teacher_id" id="teacher_id" class="chzn-done" > <option value=''>Select</option> <?php foreach ($teacher as $list) { ?> <option value="<?= $list['employee_id'] ?>"><?= $list['employee_name'] ?></option> <?php } ?> </select> </td> <td> <input id="teacher_date" name="teacher_date" value="<?=date('d-m-Y');?>" type="text" class="calfocus medium"/> </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_12"> <div class="box"> <div class="actions"> <div class="actions-left"> <input type="reset"> <input type="hidden" name="resfunction" value="search_batch"/> </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(); ?>