?
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_batch.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"> $(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> <!-- 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 Batch</div> <div class="tools"> <a href="#" onclick="viewdata('master','viewinmastersearch','search_batch','view_batch','<?= $_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_batch/view_batch/1', $attributes); $course = $this->mastermodel->getdatas('course', 'course_id'); $teacher = $this->mastermodel->get_data('employee', '1', 'employee_teacher'); ?> <h3 class="form-section">Batch Details </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="required chosen span12" 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" id="detail1"> <label class="control-label">Course Code</label> <div class="controls"> <span id="course_code" class="text bold"></span> <!-- <input name="course_code" id="course_code" type="text" class=" m-wrap span12" readonly />--> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group" id="detail1"> <label class="control-label">Batch Code</label> <div class="controls"> <input name="batch_no" id="batch_no" type="text" readonly class="span12" /> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Start date</label> <div class="controls"> <input type="text" value="<?= date("d-m-Y"); ?>" class="calfocus span12" name="start_date" id="date1"/> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Class Start Time</label> <div class="controls"> <?php echo createHours('start_time_hour', date("H")); ?> <?php echo createMinutes('start_time_minute', date("i")); ?> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Class End Time</label> <div class="controls"> <?php echo createHours('end_time_hour', date("H")); ?> <?php echo createMinutes('end_time_minute', date("i")); ?> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Classroom</label> <div class="controls"> <select name="batch_class_id" id="batch_class_id" class="required chosen span12"> <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> <h3 class="form-section">Teacher Details </h3> <div class="row-fluid"> <div class="span12"> <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>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="required chosen span12" > <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/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="batch"/> <input type="hidden" name="resfunction" value="search_batch"/> <button type="submit" onclick="addformdata('validateform')" class="btn blue"><i class="icon-ok"></i> Save</button> <button type="button" onclick="viewdata('master','viewinmastersearch','search_batch','view_batch','<?= $_SESSION['pagenum']; ?>')" class="btn">Cancel</button> </div> <?php echo form_close(); ?> <!-- END FORM--> </div> </div> </div> </div>