?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec_old/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_old/application/views/master/single_batch.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <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>Batch Details</h4> </div> </div> <?php $teacher=$this->mastermodel->get_data('employee','1','employee_teacher'); $course=$this->mastermodel->get_data_srow('course',$viewinfo->course_id,'course_id'); $attributes=array('id'=>'validateform','class'=>'validate'); echo form_open('master/addinmaster/update_batch/view_batch/1',$attributes); $start_time = explode(":", $viewinfo->start_time); $end_time = explode(":", $viewinfo->end_time); ?> <div class="grid_6"> <div class="box"> <div class="header"> <span></span> </div> <div class="content no-padding"> <div class="section _100"> <label>Batch Code </label> <div> <label> <?= $viewinfo->batch_no?> </label> </div> </div> <div class="section _100"> <label> Course Code</label> <div class="single_page"> <label> <?=$course->course_code?> </label> </div> </div> <div class="section _100"> <label> Course Name</label> <div class="single_page"> <label> <?=$course->course_name?> </label> </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']?>"<?php if($viewinfo->teacher_id==$list['employee_id']) { echo 'selected'; } ?>><?=$list['employee_name']?></option> <?php } ?> </select> </label> </div> </div--> <div class="section _100"> <label> Start date</label> <div> <?=$this->mastermodel->convertdatenormalformat($viewinfo->start_date)?> </div> </div> <div class="section _100"> <label>Start Time</label> <div> <?php echo $start_time[0].":".$start_time[1]; ?> </div> </div> <div class="section _100"> <label>End Time</label> <div> <?php echo $end_time[0].":".$end_time[1]; ?> </div> </div> <div class="section _100"> <label>Classroom</label> <div> <select disabled 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'];?>" <?php if($viewinfo->batch_class_id==$list['class_id']){echo "selected";}?>><?=$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> </tr> <?php $batch_teacher=$this->mastermodel->get_data('batch_teacher',$viewinfo->batch_id,'batch_id'); foreach($batch_teacher as $row) { ?> <tr> <td> <select disabled name="teacher_id" id="teacher_id" class="chzn-done" > <option value=''>Select</option> <?php foreach ($teacher as $list) { ?> <option value="<?= $list['employee_id'] ?>"<?php if($list['employee_id']==$row['teacher_id']){echo "selected";}?>><?= $list['employee_name'] ?></option> <?php } ?> </select> </td> <td> <?=$this->mastermodel->convertdatenormalformat($row['teacher_date']);?> </td> </tr> <?php } ?> </table> </div> </div> </div> <?php echo form_close();?>