?
Current Path : /home1/savoy/www/savoyglobal.net/eldertree/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/www/savoyglobal.net/eldertree/application/views/master/add_class_name.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <script> $(document).ready(function() { suggestclassroom('class_room_name'); suggestclasssession('class_session'); suggestterm('class_term'); }); </script> <div class="row-fluid"> <div class="tab-pane " id="tab_2"> <div class="portlet box yellow"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i>Creating New Class Classification</div> <div class="tools"> <a href="#" onclick="viewdata('master','viewinmastersearch','search_class_name','view_class_name','<?= $_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_class_name/view_class_name/1', $attributes); $accademic_year = $this->mastermodel->search_academic_year(); $session = $this->mastermodel->search_session(); $term = $this->mastermodel->search_term(); ?> <h3 class="form-section"></h3> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Class Code</label> <div class="controls"> <input type="text" name="class_name_code" id="class_name_code" class="span12 required" /> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Section</label> <div class="controls"> <input type="text" name="class_section" id="class_section" class="span12" /> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Class Room Name </label> <div class="controls"> <input type="text" name="class_room_name" id="class_room_name" class="span12 required" /> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Session</label> <div class="controls"> <select class="chosen span12 required" name="class_session" id="class_session"> <option value="">Select</option> <?php foreach ($session['results']->result_array() as $list) { ?> <option value="<?= $list['session_id'] ?>"><?= $list['session_name'] ?></option> <?php } ?> </select> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Academic Year </label> <div class="controls"> <select class="chosen span12 required" name="class_name_academic_year_id" id="class_name_academic_year_id"> <option value="">Select</option> <?php foreach ($accademic_year['results']->result_array() as $list) { ?> <option <?= ($list['current'] == 1) ? "selected" : "" ?> value="<?= $list['academic_year_id'] ?>"><?= $list['display_name'] ?></option> <?php } ?> </select> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Term </label> <div class="controls"> <select class="chosen span12 required" name="class_term" id="class_term"> <option value="">Select</option> <?php foreach ($term['results']->result_array() as $list) { ?> <option value="<?= $list['term_id'] ?>"><?= $list['term_name'] ?></option> <?php } ?> </select> </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="span12 "> <div class="control-group"> <label class="control-label">Days Of the week</label> <div class="controls"> <br/> <input type="checkbox" name="class_days[]" value="0"/>Sunday <input type="checkbox" name="class_days[]" value="1"/>Monday <input type="checkbox" name="class_days[]" value="2"/>Tuesday <input type="checkbox" name="class_days[]" value="3"/>Wednesday<br/><br/> <input type="checkbox" name="class_days[]" value="4"/>Thursday <input type="checkbox" name="class_days[]" value="5"/>Friday <input type="checkbox" name="class_days[]" value="6"/>Saturday <br/><br/> </div> </div> </div> </div> <h3 class="form-section">Teacher Details</h3> <?php $teacher = $this->mastermodel->get_data('employee', 1, 'employee_teacher'); ?> <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="student_tb" style="background-color: white;"> <tr> <th>Teacher</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 id="teacher" name="teacher" class="chosen span12"> <option value="">Select</option> <?php foreach ($teacher as $list) { echo '<option value="' . $list['employee_id'] . '">' . $list['employee_name'] . '-' . $list['employee_no'] . '</option>'; } ?> </select> </td> <td> <input type="text" name="teacher_wef_date" id="teacher_wef_date" class="calfocus medium1" /> </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"> <button type="submit" onclick="addformdata('validateform')" class="btn blue"><i class="icon-ok"></i> Save</button> <button type="button" onclick="viewdata('master','viewinmastersearch','search_class_name','view_class_name','<?= $_SESSION['pagenum']; ?>')" class="btn">Cancel</button> </div> <?php echo form_close(); ?> <!-- END FORM--> </div> </div> </div> </div>