?
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/edit_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>Updating 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> <input name="start_date" id="date1" type="text" class="required calfocus" value="<?=$this->mastermodel->convertdatenormalformat($viewinfo->start_date)?>"/> </div> </div> <div class="section _100"> <label>Start Time</label> <div> <?php echo createHours('start_time_hour',$start_time[0]); ?> <?php echo createMinutes('start_time_minute',$start_time[1]); ?> </div> </div> <div class="section _100"> <label>End Time</label> <div> <?php echo createHours('end_time_hour',$end_time[0]); ?> <?php echo createMinutes('end_time_minute',$end_time[1]); ?> </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'];?>" <?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> <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:75px;"/></th> </tr> <?php $batch_teacher=$this->mastermodel->get_data('batch_teacher',$viewinfo->batch_id,'batch_id'); foreach($batch_teacher as $row) { ?> <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'] ?>"<?php if($list['employee_id']==$row['teacher_id']){echo "selected";}?>><?= $list['employee_name'] ?></option> <?php } ?> </select> </td> <td> <input id="teacher_date" name="teacher_date" value="<?=$this->mastermodel->convertdatenormalformat($row['teacher_date']);?>" 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> <?php } ?> <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"/> <input type="hidden" name="batch_id" value="<?=$viewinfo->batch_id;?>"/> </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();?>