print '<td rowspan='.$rows.'>'.$time[$list->lec].'</td>'; print '<td rowspan='.$rows.'>'.SubjectMaster::model()->findByPk($list->subject_id)->subject_master_name.'</td>'; print '<td rowspan='.$rows.'>'.EmployeeInfo::model()->findByAttributes(array('employee_info_transaction_id'=>$list->faculty_emp_id))->employee_first_name.'</td>'; if($list->batch_id != 0) print '<td rowspan='.$rows.'>'.Batch::model()->findByPk($list->batch_id)->batch_code.'</td>'; else print '<td rowspan='.$rows.'>-</td>'; print '<td rowspan='.$rows.'>'.RoomDetailsMaster::model()->findByPk($list->room_id)->room_name.'</td></tr>'; } print '</table>'; $sy_date = date('Y-m-d',strtotime($date)); $substr = implode(',',$sub_array); $syll = SubjectSyllabus::model()->findAll(array('condition'=>'sub_id in ('.$substr.') and start_date<="'.$sy_date.'" and end_date >="'.$sy_date.'"')); print '<div> </div>'; print '<table class="gradienttable" id="time-table-struc" style="font-size:15px;margin-top:50px;">'; print '<tr>'; print '<tr><td colspan=4 style="background:white"><b>Topics to be taught on '.$date.'</b></td></tr>'; print '<th>SI No.</th>'; print '<th>Subject Name</th>'; print '<th>Topic</th>'; print '<th>Description</th></tr>'; $t = 0; foreach($syll as $listdata) { echo "<tr>"; echo "<td>".++$t."</td>"; echo "<td>".SubjectMaster::model()->findByPk($listdata['sub_id'])->subject_master_name."</td>"; echo "<td>".$listdata['topic_name']."</td>";
if($result) { foreach($result as $list) { if($list['lect_hour']>1) $count[$j] = $list['lect_hour']-1; echo "<td class='oncol' rowspan=".$list['lect_hour']." align=center 'style=width:100px;' onMouseOver=show('ravi".$i.$j."') onMouseOut=hide('ravi".$i.$j."')>" ; break; } foreach($result as $check) { $sy_date = date('Y-m-d',strtotime($alldate[$j-1])); $syll = SubjectSyllabus::model()->findAll(array('condition'=>'sub_id='.$check->subject_id.' and start_date<="'.$sy_date.'" and end_date >="'.$sy_date.'"')); $top_str = ''; $top = $top_desc = ''; foreach($syll as $lst) { $top_str .= "<h3>".$lst['topic_name'].'</h3>'.$lst['topic_description']; $top = $lst['topic_name']; $top_desc = $lst['topic_description']; } if($check->batch_id != 0 && $check->batch_id !=$stud_model->student_transaction_batch_id) { continue; } if($check->batch_id != 0) $batch="(".Batch::model()->findByPk($check->batch_id)->batch_code.")";