?
Current Path : /home1/savoy/public_html/savoyglobal.net/sims/school/application/views/Teacher/ |
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/sims/school/application/views/Teacher/singleteacher.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $school=$this->mastermodel->getdatas('schoolsetup'); foreach ($school as $row) { $no_periods=$row['no_periods']; $holiday=$row['holidays']; } $holidays = explode(',', $holiday); $weeday = 'Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday'; $weekdays=explode(',', $weeday); $teachertimetablelist = $this->settingsmodel->get_teacher_timetable_by_id($teacher->teacher_id); //var_dump($teachertimetablelist); ?> <span class="section_content_top"></span> <div class="section_content_inner"> <?php $attributes=array('class'=>'search_form','id'=>'validateform'); echo form_open('',$attributes); ?> <!--[if !IE]>start forms<![endif]--> <div class="forms"> <div class="backicon"> <a href="#" onclick="viewdata('teacher','viewinteachersearch','searchteacher','viewteacher','<?=$_SESSION['pagenum'];?>')"> <img src="<?=base_url()?>assets/images/backicon.png" alt="back-icon" title="Back"/> </a> </div> <div class="table_wrapper"> <div class="table_wrapper_inner"> <table cellpadding="0" cellspacing="0" width="100%"> <tr><th colspan="2" >Teacher Details</th></tr> <tr> <td width="35%">Teacher No</td> <td><?=$teacher->teacher_no;?></td> </tr> <tr> <td width="35%">First Name</td> <td><?=$teacher->first_name;?></td> </tr> <tr> <td width="35%">Last Name</td> <td><?=$teacher->last_name;?></td> </tr> <tr> <td width="35%">Gender</td> <td><?=($teacher->gender) ?></td> </tr> <tr> <td width="35%">Email</td> <td><?=$teacher->email;?></td> </tr> <tr> <td width="35%">Contact No</td> <td><?=$teacher->contact_no;?></td> </tr> <tr> <td width="35%">Mobile No</td> <td><?=$teacher->mobile_no;?></td> </tr> <tr> <td width="35%">Passport No</td> <td><?=$teacher->passport_no;?></td> </tr> </table> </div> </div> <br/><br/> <div class="table_wrapper"> <div class="table_wrapper_inner"> <table cellpadding="0" cellspacing="0" width="100%"> <tr><th colspan="2" >Subject Details</th></tr> <tr> <th><span>Subject Name</span></th> <th><span>Class</span></th> </tr> <?php foreach ($teacher_subject as $row) { ?> <tr> <td><?=$row['subject_name'];?></td> <td><?=$row['classlevel_code'];?></td> </tr> <?php } ?> </table> </div> </div> <br/><br/> <div class="table_wrapper"> <div class="table_wrapper_inner"> <table cellpadding="0" cellspacing="0" width="100%"> <tr><th colspan="3" >Qualification</th></tr> <tr> <th><span>Course</span></th> <th><span>University</span></th> <th><span>Passing Year</span></th> </tr> <?php foreach ($teacher_qualification as $row) { ?> <tr> <td><?=$row['course'];?></td> <td><?=$row['university'];?></td> <td><?=$row['passing_year'];?></td> </tr> <?php } ?> </table> </div> </div> <br/><br/> <div class="table_wrapper"> <div class="table_wrapper_inner"> <table cellpadding="0" cellspacing="0" width="100%"> <tr><th colspan="3" >Work Experience</th></tr> <tr> <th><span>Employer</span></th> <th><span>Designation</span></th> <th><span>Period</span></th> </tr> <?php foreach ($teacher_work_experience as $row) { ?> <tr> <td><?=$row['employer'];?></td> <td><?=$row['designation'];?></td> <td><?=$row['period'];?></td> </tr> <?php } ?> </table> </div> </div> <br/><br/> <div class="table_wrapper"> <div class="table_wrapper_inner"> <table cellpadding="0" cellspacing="0" width="100%"> <tr><th colspan="2" >Teacher Address</th></tr> <tr> <td width="35%">Permanent Address</td> <td><?=$address->address_permanent;?></td> </tr> <tr> <td width="35%">Permanent Country</td> <td><?=$address->country_permanent;?></td> </tr> <tr> <td width="35%">Present Address</td> <td><?=$address->address_present;?></td> </tr> <tr> <td width="35%">Present Country</td> <td><?=$address->country_present;?></td> </tr> </table> </div> </div> </div> <br/><br/><br/><br/> <!-- teacher time table --> <div class="row"> <div class="table_wrapper"> <div class="table_wrapper_inner"> <table cellpadding="0" cellspacing="0" width="100%"> <tbody> <input type="hidden" name="no_periods" value="<?=$no_periods;?>" <tr> <th>Day</th> <?php for($i=1;$i<=$no_periods;$i++) { ?> <th id="period_no" name="period_no">Period <?=$i?></th> <?php } ?> </tr> <?php $j=1; foreach ($weekdays as $days) { if(!in_array($days, $holidays)) { ?> <tr> <td id="days" name="days"> <?= $days ?> </td> <?php for($i=1;$i<=$no_periods;$i++) { ?> <td> <?php foreach ($teachertimetablelist as $teachersub) { if($teachersub['period_no']==$i && $teachersub['day']==$days) echo $teachersub['classlevel_code'] . '-' . $teachersub['subject_code']; } ?> </td> <?php } ?> </tr> <?php $j++; } } $j--; ?> </tbody></table> <input type="hidden" value="<?=$j;?>" name="no_days"/> </div> </div> </div> <fieldset> <div class="forms"> <h3>Teacher Files</h3> <?php $teacher_file=$this->mastermodel->get_data('files',$teacher->teacher_id,'record_id'); foreach ($teacher_file as $file) { ?> <div class="gal_dir_div"> <a href="<?=base_url().$file['file_location']?>"> <img src="<?=base_url();?>assets/images/download.jpg"/> <br/> <?=$file['file_name'];?> </a> </div> <?php } ?> </div> </fieldset> <?php echo form_close(); ?> </div> <span class="section_content_bottom"></span>