?
Current Path : /home1/savoy/public_html/savoyglobal.net/eduplus2/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/eduplus2/application/views/master/edit_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 blue"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i>Updating 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/update_class_name/view_class_name/1', $attributes); $accademic_year = $academic_year = $this->mastermodel->search_academic_year();; $start_time = explode(":", $viewinfo->class_start_time); $end_time = explode(":", $viewinfo->class_end_time); ?> <h3 class="form-section">Class Details</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" value="<?= $viewinfo->class_name_code ?>"/> </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" value="<?= $viewinfo->class_section ?>" /> </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" value="<?= $this->mastermodel->get_single_field_value('class_room', 'class_room_name', 'class_room_id', $viewinfo->class_room_id) ?>" /> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Session </label> <div class="controls"> <input type="text" name="class_session" id="class_session" class=" span12 required" value="<?= $this->mastermodel->get_single_field_value('session','session_name','session_id',$viewinfo->class_session); ?>" /> </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" 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['academic_year_id'] == $viewinfo->class_name_academic_year_id) ? "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"> <input type="text" name="class_term" id="class_term" class="span12 required" value="<?= $this->mastermodel->get_single_field_value('term', 'term_name', 'term_id', $viewinfo->class_term_id) ?>" /> </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', $start_time[0]); ?> <?php echo createMinutes('start_time_minute', $start_time[1]); ?> </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', $end_time[0]); ?> <?php echo createMinutes('end_time_minute', $end_time[1]); ?> </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"> <?php $week = array(); if ($viewinfo->class_days != "") { $week = explode(',', $viewinfo->class_days); } ?> <input type="checkbox" name="class_days[]" value="0" <?= (in_array(0, $week)) ? "checked" : "" ?>/>Sunday <input type="checkbox" name="class_days[]" value="1" <?= (in_array(1, $week)) ? "checked" : "" ?>/>Monday <input type="checkbox" name="class_days[]" value="2" <?= (in_array(2, $week)) ? "checked" : "" ?>/>Tuesday <input type="checkbox" name="class_days[]" value="3" <?= (in_array(3, $week)) ? "checked" : "" ?>/>Wednesday <input type="checkbox" name="class_days[]" value="4" <?= (in_array(4, $week)) ? "checked" : "" ?>/>Thursday <input type="checkbox" name="class_days[]" value="5" <?= (in_array(5, $week)) ? "checked" : "" ?>/>Friday <input type="checkbox" name="class_days[]" value="6" <?= (in_array(6, $week)) ? "checked" : "" ?>/>Saturday </div> </div> </div> </div> <h3 class="form-section">Teacher Details</h3> <?php $teacher = $this->mastermodel->get_data('employee', 1, 'employee_teacher'); $class_teacher = $this->mastermodel->get_data('class_teacher', $viewinfo->class_name_id, 'class_name_id'); ?> <table class="table table-striped table-hover table-bordered" id="student_tb" style="background-color: white;"> <tr> <th>Teacher</th> <th>Date</th> <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:75px;"/></th> </tr> <tr> <?php foreach ($class_teacher as $value) { ?> <tr> <td> <select id="teacher" name="teacher" class="chosen valid"> <option value="">Select</option> <?php foreach ($teacher as $list) { echo '<option '; if ($list['employee_id'] == $value['teacher_id']) { echo " selected "; } echo ' value="' . $list['employee_id'] . '">' . $list['employee_name'] . '-' . $list['employee_no'] . '</option>'; } ?> </select> </td> <td> <input type="text" value="<?= $this->mastermodel->convertdatenormalformat($value['wef_date']) ?>" 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> <?php } ?> <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 class="form-actions"> <input type="hidden" name="tab_name" value="class_name"/> <input type="hidden" name="resfunction" value="search_class_name"/> <input type="hidden" name="class_name_id" id="class_name_id" value="<?= $viewinfo->class_name_id; ?>"/> <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>