<?php require "_header.php";
error_reporting(1); ?>
<script language="javascript" type="text/javascript">
	document.getElementById("main-content").style.display = 'none';
</script></br>
<h3>Time - Table </h3></br>
<style type="text/css">
	.table-report {
		font-family: Verdana, Geneva, sans-serif;
		font-size: 12px;
		text-align: left;
		border-right: 0px none;
		border-bottom: 0px none;
	}

	.table-report-inner {
		font-family: Verdana, Geneva, sans-serif;
		font-size: 12px;
	}

	.table-report tr {
		padding: 2px 2px 2px 2px;
	}

	.table-report td {
		padding: 2px 2px 2px 2px;
		border-top: 0px none;
		border-left: 0px none;
	}

	.table-report th {
		padding: 2px 2px 2px 2px;
		font-weight: bold;
		text-align: left;
		border-top: 0px none;
		border-left: 0px none;
	}

	.college_name {
		font-family: "QTAbbie" !important;
		;
		font-size: 22px;
		font-weight: bold;
		padding: 1px 1px 1px 1px;
		text-align: center;
		color: #3e4095;
	}

	.college_address {
		font-family: Tahoma, Geneva, sans-serif;
		font-size: 11px;
		text-align: center;
		padding: 2px 2px 2px 2px;
		color: #3e4095;
	}
</style>
<?php
ob_start();

/*$sql = "select employee_id from cms_employeemaster where user_id ='" . $_SESSION["VedantnrUserId"] . "'";
$sql_res = dbQuery($sql);*/
$objEmp = new EmployeeMgmt();
$sql_res = $objEmp->getAllRecords($limit,$start,$condition24,$order_field,$order_type);	

$sql_rec = dbArray($sql_res);
$faculty_id = $sql_rec[0];


$branch_id = Escape($_REQUEST['branch_hidden']);


$semester_id = Escape($_REQUEST['semester_hidden']);
$div_id = Escape($_REQUEST['division_id']);
$employee_id = Escape($_REQUEST['employee_id_hid']);
//echo $employee_id; exit;

$shift = Escape($_REQUEST['shift']);
$student_id = Escape($_REQUEST['student_hidden']);
$branch_disp = Escape($_REQUEST['branch_disp']);
$semester_disp = Escape($_REQUEST['semester_disp']);
//$date 		   = Escape($_REQUEST['date']);
//$where .= " AND sm.student_gturegno=".$_POST['student_gturegno'];
/*$qry ="SELECT sa.*,
(Select branch_name from cms_branchmaster where cms_branchmaster.branch_id = sa.branch_id)as branch_name,
(Select lectype_name from cms_lectype where cms_lectype.lectype_id = sa.lectype)as lectype_name,
(Select semester_name from cms_semestermaster where cms_semestermaster.semester_id = sa.semester_id)as semester_name,
(Select year_name from cms_yearmaster where cms_yearmaster.year_id = sa.year_id)as year_name,
(Select branchyear_name from cms_branchyear where cms_branchyear.branchyear_id = sa.branchyear_id)as branchyear_name,
(Select DISTINCT time_start_name from cms_timemaster where cms_timemaster.time_id = sa.time_id)as time_name,
(Select DISTINCT time_end_name from cms_timemaster where cms_timemaster.time_id = sa.time_id)as time_name1,
(Select subject_name from cms_subjectmaster where cms_subjectmaster.subject_id = sa.subject_id)as subject_name,
(Select employee_name from cms_employeemaster where cms_employeemaster.employee_id = sa.employee_id)as employee_name,
(Select room_name from cms_roommaster where cms_roommaster.room_id = sa.room_id)as room_name,
(Select room_no from cms_roommaster where cms_roommaster.room_id = sa.room_id)as room_name1,
(Select subject_code from cms_subjectmaster where cms_subjectmaster.subject_id = sa.subject_id)as subject_name1,
(Select lec_name from cms_lecmaster where cms_lecmaster.lec_id = sa.lec_id)as lec_id
FROM work_allotment_subject as sa where 1=1 ";*/

//echo $qry; exit;

$i = 0;
$objEmp = new EmployeeMgmt();

$condition = "";
$condition .= " AND sa.employee_id='" . $employee_id . "' ";
$condition .= " AND sa.time_id='1' ";
$condition .= " AND sa.lec_id='1' ";
$condition .= " AND day_name='Monday' ";

$rs = $objEmp->gettimetable($condition);

$condition1 = "";
$condition1 .= " AND sa.employee_id='" . $employee_id . "' ";
$condition1 .= " AND sa.time_id='1' ";
$condition1 .= " AND (sa.lec_id='1'||sa.lec_id='2' || sa.lec_id='3'|| sa.lec_id='4'|| sa.lec_id='5'|| sa.lec_id='6') ";
$condition1 .= " AND day_name='Tuesday' ";

$rs1 = $objEmp->gettimetable($condition1);

$condition2 = "";
$condition2 .= " AND sa.employee_id='" . $employee_id . "' ";
$condition2 .= " AND sa.time_id='1' ";
$condition2 .= " AND (sa.lec_id='1'||sa.lec_id='2' || sa.lec_id='3'|| sa.lec_id='4'|| sa.lec_id='5'|| sa.lec_id='6') ";
$condition2 .= " AND day_name='Wednesday' ";

$rs2 = $objEmp->gettimetable($condition2);

$condition3 = "";
$condition3 .= " AND sa.employee_id='" . $employee_id . "' ";
$condition3 .= " AND sa.time_id='1' ";
$condition3 .= " AND (sa.lec_id='1'||sa.lec_id='2' || sa.lec_id='3'|| sa.lec_id='4'|| sa.lec_id='5'|| sa.lec_id='6') ";
$condition3 .= " AND day_name='Thursday' ";

$rs3 = $objEmp->gettimetable($condition3);

$condition4 = "";
$condition4 .= " AND sa.employee_id='" . $employee_id . "' ";
$condition4 .= " AND sa.time_id='1' ";
$condition4 .= " AND (sa.lec_id='1'||sa.lec_id='2' || sa.lec_id='3'|| sa.lec_id='4'|| sa.lec_id='5'|| sa.lec_id='6') ";
$condition4 .= " AND day_name='Friday' ";

$rs4 = $objEmp->gettimetable($condition4);

$condition5 = "";
$condition5 .= " AND sa.employee_id='" . $employee_id . "' ";
$condition5 .= " AND sa.time_id='1' ";
$condition5 .= " AND (sa.lec_id='1'||sa.lec_id='2' || sa.lec_id='3'|| sa.lec_id='4'|| sa.lec_id='5'|| sa.lec_id='6') ";
$condition5 .= " AND day_name='Saturday' ";

$rs5 = $objEmp->gettimetable($condition5);

$condition6 = "";
$condition6 .= " AND sa.employee_id='" . $employee_id . "' ";
$condition6 .= " AND sa.time_id='1' ";
$condition6 .= " AND (sa.lec_id='1'||sa.lec_id='2' || sa.lec_id='3'|| sa.lec_id='4'|| sa.lec_id='5'|| sa.lec_id='6') ";
$condition6 .= " AND day_name='Monday' ";

$rs6 = $objEmp->gettimetable($condition6);

$condition7 = "";
$condition7 .= " AND sa.employee_id='" . $employee_id . "' ";
$condition7 .= " AND sa.time_id='1' ";
$condition7 .= " AND (sa.lec_id='1'||sa.lec_id='2' || sa.lec_id='3'|| sa.lec_id='4'|| sa.lec_id='5'|| sa.lec_id='6') ";
$condition7 .= " AND day_name='Tuesday' ";

$rs7 = $objEmp->gettimetable($condition7);

$condition8 = "";
$condition8 .= " AND sa.employee_id='" . $employee_id . "' ";
$condition8 .= " AND sa.time_id='1' ";
$condition8 .= " AND (sa.lec_id='1'||sa.lec_id='2' || sa.lec_id='3'|| sa.lec_id='4'|| sa.lec_id='5'|| sa.lec_id='6') ";
$condition8 .= " AND day_name='Wednesday' ";

$rs8 = $objEmp->gettimetable($condition8);

$condition9 = "";
$condition9 .= " AND sa.employee_id='" . $employee_id . "' ";
$condition9 .= " AND sa.time_id='1' ";
$condition9 .= " AND (sa.lec_id='1'||sa.lec_id='2' || sa.lec_id='3'|| sa.lec_id='4'|| sa.lec_id='5'|| sa.lec_id='6') ";
$condition9 .= " AND day_name='Thursday' ";

$rs9 = $objEmp->gettimetable($condition9);

$condition10 = "";
$condition10 .= " AND sa.employee_id='" . $employee_id . "' ";
$condition10 .= " AND sa.time_id='1' ";
$condition10 .= " AND (sa.lec_id='1'||sa.lec_id='2' || sa.lec_id='3'|| sa.lec_id='4'|| sa.lec_id='5'|| sa.lec_id='6') ";
$condition10 .= " AND day_name='Friday' ";

$rs10 = $objEmp->gettimetable($condition10);

$condition11 = "";
$condition11 .= " AND sa.employee_id='" . $employee_id . "' ";
$condition11 .= " AND sa.time_id='1' ";
$condition11 .= " AND (sa.lec_id='1'||sa.lec_id='2' || sa.lec_id='3'|| sa.lec_id='4'|| sa.lec_id='5'|| sa.lec_id='6') ";
$condition11 .= " AND day_name='Saturday' ";

$rs11 = $objEmp->gettimetable($condition11);

$condition12 = "";
$condition12 .= " AND sa.employee_id='" . $employee_id . "' ";
$condition12 .= " AND sa.time_id='1' ";
$condition12 .= " AND (sa.lec_id='1'||sa.lec_id='2' || sa.lec_id='3'|| sa.lec_id='4'|| sa.lec_id='5'|| sa.lec_id='6') ";
$condition12 .= " AND day_name='Monday' ";

$rs12 = $objEmp->gettimetable($condition12);

$condition13 = "";
$condition13 .= " AND sa.employee_id='" . $employee_id . "' ";
$condition13 .= " AND sa.time_id='1' ";
$condition13 .= " AND (sa.lec_id='1'||sa.lec_id='2' || sa.lec_id='3'|| sa.lec_id='4'|| sa.lec_id='5'|| sa.lec_id='6') ";
$condition13 .= " AND day_name='Tuesday' ";

$rs13 = $objEmp->gettimetable($condition13);

$condition14 = "";
$condition14 .= " AND sa.employee_id='" . $employee_id . "' ";
$condition14 .= " AND sa.time_id='1' ";
$condition14 .= " AND (sa.lec_id='1'||sa.lec_id='2' || sa.lec_id='3'|| sa.lec_id='4'|| sa.lec_id='5'|| sa.lec_id='6') ";
$condition14 .= " AND day_name='Wednesday' ";

$rs14 = $objEmp->gettimetable($condition14);

$condition15 = "";
$condition15 .= " AND sa.employee_id='" . $employee_id . "' ";
$condition15 .= " AND sa.time_id='1' ";
$condition15 .= " AND (sa.lec_id='1'||sa.lec_id='2' || sa.lec_id='3'|| sa.lec_id='4'|| sa.lec_id='5'|| sa.lec_id='6') ";
$condition15 .= " AND day_name='Thursday' ";

$rs15 = $objEmp->gettimetable($condition15);

$condition16 = "";
$condition16 .= " AND sa.employee_id='" . $employee_id . "' ";
$condition16 .= " AND sa.time_id='1' ";
$condition16 .= " AND (sa.lec_id='1'||sa.lec_id='2' || sa.lec_id='3'|| sa.lec_id='4'|| sa.lec_id='5'|| sa.lec_id='6') ";
$condition16 .= " AND day_name='Friday' ";

$rs16 = $objEmp->gettimetable($condition16);

$condition17 = "";
$condition17 .= " AND sa.employee_id='" . $employee_id . "' ";
$condition17 .= " AND sa.time_id='1' ";
$condition17 .= " AND (sa.lec_id='1'||sa.lec_id='2' || sa.lec_id='3'|| sa.lec_id='4'|| sa.lec_id='5'|| sa.lec_id='6') ";
$condition17 .= " AND day_name='Saturday' ";

$rs17 = $objEmp->gettimetable($condition17);

$condition18 = "";
$condition18 .= " AND sa.employee_id='" . $employee_id . "' ";
$condition18 .= " AND sa.time_id='1' ";
$condition18 .= " AND (sa.lec_id='1'||sa.lec_id='2' || sa.lec_id='3'|| sa.lec_id='4'|| sa.lec_id='5'|| sa.lec_id='6') ";
$condition18 .= " AND day_name='Monday' ";

$rs18 = $objEmp->gettimetable($condition18);

$condition19 = "";
$condition19 .= " AND sa.employee_id='" . $employee_id . "' ";
$condition19 .= " AND sa.time_id='1' ";
$condition19 .= " AND (sa.lec_id='1'||sa.lec_id='2' || sa.lec_id='3'|| sa.lec_id='4'|| sa.lec_id='5'|| sa.lec_id='6') ";
$condition19 .= " AND day_name='Tuesday' ";

$rs19 = $objEmp->gettimetable($condition19);

$condition20 = "";
$condition20 .= " AND sa.employee_id='" . $employee_id . "' ";
$condition20 .= " AND sa.time_id='1' ";
$condition20 .= " AND (sa.lec_id='1'||sa.lec_id='2' || sa.lec_id='3'|| sa.lec_id='4'|| sa.lec_id='5'|| sa.lec_id='6') ";
$condition20 .= " AND day_name='Wednesday' ";

$rs20 = $objEmp->gettimetable($condition20);

$condition21 = "";
$condition21 .= " AND sa.employee_id='" . $employee_id . "' ";
$condition21 .= " AND sa.time_id='1' ";
$condition21 .= " AND (sa.lec_id='1'||sa.lec_id='2' || sa.lec_id='3'|| sa.lec_id='4'|| sa.lec_id='5'|| sa.lec_id='6') ";
$condition21 .= " AND day_name='Thursday' ";

$rs21 = $objEmp->gettimetable($condition21);

$condition22 = "";
$condition22 .= " AND sa.employee_id='" . $employee_id . "' ";
$condition22 .= " AND sa.time_id='1' ";
$condition22 .= " AND (sa.lec_id='1'||sa.lec_id='2' || sa.lec_id='3'|| sa.lec_id='4'|| sa.lec_id='5'|| sa.lec_id='6') ";
$condition22 .= " AND day_name='Friday' ";

$rs22 = $objEmp->gettimetable($condition22);

$condition23 = "";
$condition23 .= " AND sa.employee_id='" . $employee_id . "' ";
$condition23 .= " AND sa.time_id='1' ";
$condition23 .= " AND (sa.lec_id='1'||sa.lec_id='2' || sa.lec_id='3'|| sa.lec_id='4'|| sa.lec_id='5'|| sa.lec_id='6') ";
$condition23 .= " AND day_name='Saturday' ";

$rs23 = $objEmp->gettimetable($condition23);

$total = dbRows($rs);
$HeadData = array("count" => $total, "data" => array());

$sr = 1;
?>
<div id="main-report">
	<table border="1" cellpadding="0" cellspacing="0" width="100%">
		<tr>
			<th height="25px"><b>
					<center>Time</center>
				</b></th>
			<th><b>
					<center>Monday</center>
				</b></th>
			<th><b>
					<center>Tuesday</center>
				</b></th>
			<th><b>
					<center>Wednsday</center>
				</b></th>
			<th><b>
					<center>Thrusday</center>
				</b></th>
			<th><b>
					<center>Friday</center>
				</b></th>
			<th><b>
					<center>Saturdy</center>
				</b></th>
		</tr>
		<tr>
			<td><b>9:00 To 10:20</b></td>
			<?php
			$row = array();
			$row = dbArray($rs);
			$row1 = dbArray($rs1);
			$row2 = dbArray($rs2);
			$row3 = dbArray($rs3);
			$row4 = dbArray($rs4);
			$row5 = dbArray($rs5);
			?>
			<?php if ($row['subject_name'] != '') { ?>
				<td style="text-align: center" ; width="15%" height="50px " bgcolor="9f9e9e">
					<?php echo $row['subject_name'] . '</br> ' . $row["room_name1"] . '-' . $row["room_name"] . '</br> ' . $row["semester_name"] . '-' . $row["div_id"] . '</br> (' . $row["branch_name"] . ')'; ?>
				</td>
				<?php
			} else {
				?>
				<td style="text-align: center" ; width="15%" height="50px "> </td>
				<?php
			}
			?>
			<?php if ($row1['subject_name'] != '') { ?>
				<td style="text-align: center" ; width="15%" height="50px " bgcolor="9f9e9e">
					<?php echo $row1['subject_name'] . '</br> ' . $row1["room_name1"] . '-' . $row1["room_name"] . '</br> ' . $row1["semester_name"] . '-' . $row1["div_id"] . '</br> (' . $row1["branch_name"] . ')'; ?>
				</td>
				<?php
			} else {
				?>
				<td style="text-align: center" ; width="15%" height="50px "> </td>
				<?php
			}
			?>
			<?php if ($row2['subject_name'] != '') { ?>
				<td style="text-align: center" ; width="15%" height="50px " bgcolor="9f9e9e">
					<?php echo $row2['subject_name'] . '</br> ' . $row2["room_name1"] . '-' . $row2["room_name"] . '</br> ' . $row2["semester_name"] . '-' . $row2["div_id"] . '</br> (' . $row2["branch_name"] . ')'; ?>
				</td>
				<?php
			} else {
				?>
				<td style="text-align: center" ; width="15%" height="50px "> </td>
				<?php
			}
			?>
			<?php if ($row3['subject_name'] != '') { ?>
				<td style="text-align: center" ; width="15%" height="50px " bgcolor="9f9e9e">
					<?php echo $row3['subject_name'] . '</br> ' . $row3["room_name1"] . '-' . $row3["room_name"] . '</br> ' . $row3["semester_name"] . '-' . $row3["div_id"] . '</br> (' . $row3["branch_name"] . ')'; ?>
				</td>
				<?php
			} else {
				?>
				<td style="text-align: center" ; width="15%" height="50px "> </td>
				<?php
			}
			?>
			<?php if ($row4['subject_name'] != '') { ?>
				<td style="text-align: center" ; width="15%" height="50px " bgcolor="9f9e9e">
					<?php echo $row4['subject_name'] . '</br> ' . $row4["room_name1"] . '-' . $row4["room_name"] . '</br> ' . $row4["semester_name"] . '-' . $row4["div_id"] . '</br> (' . $row4["branch_name"] . ')'; ?>
				</td>
				<?php
			} else {
				?>
				<td style="text-align: center" ; width="15%" height="50px "> </td>
				<?php
			}
			?>
			<?php if ($row5['subject_name'] != '') { ?>
				<td style="text-align: center" ; width="15%" height="50px " bgcolor="9f9e9e">
					<?php echo $row5['subject_name'] . '</br> ' . $row5["room_name1"] . '-' . $row5["room_name"] . '</br> ' . $row5["semester_name"] . '-' . $row5["div_id"] . '</br> (' . $row5["branch_name"] . ')'; ?>
				</td>
				<?php
			} else {
				?>
				<td style="text-align: center" ; width="15%" height="50px "> </td>
				<?php
			}
			?>
		</tr>
		<?php
		$row6 = dbArray($rs6);
		$row7 = dbArray($rs7);
		$row8 = dbArray($rs8);
		$row9 = dbArray($rs9);
		$row10 = dbArray($rs10);
		$row11 = dbArray($rs11);
		?>
		<tr>
			<td height="50px"><b>10:40 To 12:00</b></td>
			<?php if ($row6['subject_name'] != '') { ?>
				<td style="text-align: center" ; width="15%" height="50px " bgcolor="9f9e9e">
					<?php echo $row6['subject_name'] . '</br> ' . $row6["room_name1"] . '-' . $row6["room_name"] . '</br> ' . $row6["semester_name"] . '-' . $row6["div_id"] . '</br> (' . $row6["branch_name"] . ')'; ?>
				</td>
				<?php
			} else {
				?>
				<td style="text-align: center" ; width="15%" height="50px "> </td>
				<?php
			}
			?>
			<?php if ($row7['subject_name'] != '') { ?>
				<td style="text-align: center" ; width="15%" height="50px " bgcolor="9f9e9e">
					<?php echo $row7['subject_name'] . '</br> ' . $row7["room_name1"] . '-' . $row7["room_name"] . '</br> ' . $row7["semester_name"] . '-' . $row7["div_id"] . '</br> (' . $row7["branch_name"] . ')'; ?>
				</td>
			<?php
			} else {
				?>
				<td style="text-align: center" ; width="15%" height="50px "> </td>
				<?php
			}
			?>
			<?php if ($row8['subject_name'] != '') { ?>
				<td style="text-align: center" ; width="15%" height="50px " bgcolor="9f9e9e">
					<?php echo $row8['subject_name'] . '</br> ' . $row8["room_name1"] . '-' . $row8["room_name"] . '</br> ' . $row8["semester_name"] . '-' . $row8["div_id"] . '</br> (' . $row8["branch_name"] . ')'; ?>
				</td>
				<?php
			} else {
				?>
				<td style="text-align: center" ; width="15%" height="50px "> </td>
				<?php
			}
			?>
			<?php if ($row9['subject_name'] != '') { ?>
				<td style="text-align: center" ; width="15%" height="50px " bgcolor="9f9e9e">
					<?php echo $row9['subject_name'] . '</br> ' . $row9["room_name1"] . '-' . $row9["room_name"] . '</br> ' . $row9["semester_name"] . '-' . $row9["div_id"] . '</br> (' . $row9["branch_name"] . ')'; ?>
				</td>
				<?php
			} else {
				?>
				<td style="text-align: center" ; width="15%" height="50px "> </td>
				<?php
			}
			?>
			<?php if ($row10['subject_name'] != '') { ?>
				<td style="text-align: center" ; width="15%" height="50px " bgcolor="9f9e9e">
					<?php echo $row10['subject_name'] . '</br> ' . $row10["room_name1"] . '-' . $row10["room_name"] . '</br> ' . $row10["semester_name"] . '-' . $row10["div_id"] . '</br> (' . $row10["branch_name"] . ')'; ?>
				</td>
				<?php
			} else {
				?>
				<td style="text-align: center" ; width="15%" height="50px "> </td>
				<?php
			}
			?>
			<?php if ($row11['subject_name'] != '') { ?>
				<td style="text-align: center" ; width="15%" height="50px " bgcolor="9f9e9e">
					<?php echo $row11['subject_name'] . '</br> ' . $row11["room_name1"] . '-' . $row11["room_name"] . '</br> ' . $row11["semester_name"] . '-' . $row11["div_id"] . '</br> (' . $row11["branch_name"] . ')'; ?>
				</td>
				<?php
			} else {
				?>
				<td style="text-align: center" ; width="15%" height="50px "> </td>
				<?php
			}
			?>
		</tr>
		<?php
		$row12 = dbArray($rs12);
		$row13 = dbArray($rs13);
		$row14 = dbArray($rs14);
		$row15 = dbArray($rs15);
		$row16 = dbArray($rs16);
		$row17 = dbArray($rs17);
		?>
		<tr>
			<td height="50px"><b>12:30 To 1:50</b></td>
			<?php if ($row12['subject_name'] != '') { ?>
				<td style="text-align: center" ; width="15%" height="50px " bgcolor="9f9e9e">
					<?php echo $row12['subject_name'] . '</br> ' . $row12["room_name1"] . '-' . $row12["room_name"] . '</br> ' . $row12["semester_name"] . '-' . $row12["div_id"] . '</br> (' . $row12["branch_name"] . ')'; ?>
				</td>
				<?php
			} else {
				?>
				<td style="text-align: center" ; width="15%" height="50px "> </td>
				<?php
			}
			?>
			<?php if ($row13['subject_name'] != '') { ?>
				<td style="text-align: center" ; width="15%" height="50px " bgcolor="9f9e9e">
					<?php echo $row13['subject_name'] . '</br> ' . $row13["room_name1"] . '-' . $row13["room_name"] . '</br> ' . $row13["semester_name"] . '-' . $row13["div_id"] . '</br> (' . $row13["branch_name"] . ')'; ?>
				</td>
				<?php
			} else {
				?>
				<td style="text-align: center" ; width="15%" height="50px "> </td>
				<?php
			}
			?>
			<?php if ($row14['subject_name'] != '') { ?>
				<td style="text-align: center" ; width="15%" height="50px " bgcolor="9f9e9e">
					<?php echo $row14['subject_name'] . '</br> ' . $row14["room_name1"] . '-' . $row14["room_name"] . '</br> ' . $row14["semester_name"] . '-' . $row14["div_id"] . '</br> (' . $row14["branch_name"] . ')'; ?>
				</td>
				<?php
			} else {
				?>
				<td style="text-align: center" ; width="15%" height="50px "> </td>
				<?php
			}
			?>
			<?php if ($row15['subject_name'] != '') { ?>
				<td style="text-align: center" ; width="15%" height="50px " bgcolor="9f9e9e">
					<?php echo $row15['subject_name'] . '</br> ' . $row15["room_name1"] . '-' . $row15["room_name"] . '</br> ' . $row15["semester_name"] . '-' . $row15["div_id"] . '</br> (' . $row15["branch_name"] . ')'; ?>
				</td>
				<?php
			} else {
				?>
				<td style="text-align: center" ; width="15%" height="50px "> </td>
				<?php
			}
			?>
			<?php if ($row16['subject_name'] != '') { ?>
				<td style="text-align: center" ; width="15%" height="50px " bgcolor="9f9e9e">
					<?php echo $row16['subject_name'] . '</br> ' . $row16["room_name1"] . '-' . $row16["room_name"] . '</br> ' . $row16["semester_name"] . '-' . $row16["div_id"] . '</br> (' . $row16["branch_name"] . ')'; ?>
				</td>
				<?php
			} else {
				?>
				<td style="text-align: center" ; width="15%" height="50px "> </td>
				<?php
			}
			?>
			<?php if ($row17['subject_name'] != '') { ?>
				<td style="text-align: center" ; width="15%" height="50px " bgcolor="9f9e9e">
					<?php echo $row17['subject_name'] . '</br> ' . $row17["room_name1"] . '-' . $row17["room_name"] . '</br> ' . $row17["semester_name"] . '-' . $row17["div_id"] . '</br> (' . $row17["branch_name"] . ')'; ?>
				</td>
				<?php
			} else {
				?>
				<td style="text-align: center" ; width="15%" height="50px "> </td>
				<?php
			}
			?>
		</tr>
		<?php
		$row18 = dbArray($rs18);
		$row19 = dbArray($rs19);
		$row20 = dbArray($rs20);
		$row21 = dbArray($rs21);
		$row22 = dbArray($rs22);
		$row23 = dbArray($rs23);
		?>
		<tr>
			<td height="50px"><b>2:10 To 3:30</b></td>
			<?php if ($row18['subject_name'] != '') { ?>
				<td style="text-align: center" ; width="15%" height="50px " bgcolor="9f9e9e">
					<?php echo $row18['subject_name'] . '</br> ' . $row18["room_name1"] . '-' . $row18["room_name"] . '</br> ' . $row18["semester_name"] . '-' . $row18["div_id"] . '</br> (' . $row18["branch_name"] . ')'; ?>
				</td>
				<?php
			} else {
				?>
				<td style="text-align: center" ; width="15%" height="50px "> </td>
				<?php
			}
			?>
			<?php if ($row19['subject_name'] != '') { ?>
				<td style="text-align: center" ; width="15%" height="50px " bgcolor="9f9e9e">
					<?php echo $row19['subject_name'] . '</br> ' . $row19["room_name1"] . '-' . $row19["room_name"] . '</br> ' . $row19["semester_name"] . '-' . $row19["div_id"] . '</br> (' . $row19["branch_name"] . ')'; ?>
				</td>
				<?php
			} else {
				?>
				<td style="text-align: center" ; width="15%" height="50px "> </td>
				<?php
			}
			?>
			<?php if ($row20['subject_name'] != '') { ?>
				<td style="text-align: center" ; width="15%" height="50px " bgcolor="9f9e9e">
					<?php echo $row20['subject_name'] . '</br> ' . $row20["room_name1"] . '-' . $row20["room_name"] . '</br> ' . $row20["semester_name"] . '-' . $row20["div_id"] . '</br> (' . $row20["branch_name"] . ')'; ?>
				</td>
				<?php
			} else {
				?>
				<td style="text-align: center" ; width="15%" height="50px "> </td>
				<?php
			}
			?>
			<?php if ($row21['subject_name'] != '') { ?>
				<td style="text-align: center" ; width="15%" height="50px " bgcolor="9f9e9e">
					<?php echo $row21['subject_name'] . '</br> ' . $row21["room_name1"] . '-' . $row21["room_name"] . '</br> ' . $row21["semester_name"] . '-' . $row21["div_id"] . '</br> (' . $row21["branch_name"] . ')'; ?>
				</td>
				<?php
			} else {
				?>
				<td style="text-align: center" ; width="15%" height="50px "> </td>
				<?php
			}
			?>
			<?php if ($row22['subject_name'] != '') { ?>
				<td style="text-align: center" ; width="15%" height="50px " bgcolor="9f9e9e">
					<?php echo $row22['subject_name'] . '</br> ' . $row22["room_name1"] . '-' . $row22["room_name"] . '</br> ' . $row22["semester_name"] . '-' . $row22["div_id"] . '</br> (' . $row22["branch_name"] . ')'; ?>
				</td>
				<?php
			} else {
				?>
				<td style="text-align: center" ; width="15%" height="50px "> </td>
				<?php
			}
			?>
			<?php if ($row23['subject_name'] != '') { ?>
				<td style="text-align: center" ; width="15%" height="50px " bgcolor="9f9e9e">
					<?php echo $row23['subject_name'] . '</br> ' . $row23["room_name1"] . '-' . $row23["room_name"] . '</br> ' . $row23["semester_name"] . '-' . $row23["div_id"] . '</br> (' . $row23["branch_name"] . ')'; ?>
				</td>
				<?php
			} else {
				?>
				<td style="text-align: center" ; width="15%" height="50px "> </td>
				<?php
			}
			?>
		</tr>
</div>
</table>
<?php
$HtmlCode = ob_get_contents();
ob_end_flush();
$header_row_string = "";
$HtmlUrl = "student-marksheet-register.html";
$HtmlPath = "report/" . $HtmlUrl;
createHTMLReportPage($header_row_string, $HtmlUrl, $HtmlPath, $HtmlCode, false);
?>
<br />
<form name="frm" id="frm" action="" method="post">

	<input type="hidden" name="txtFile" id="txtFile" value="<?php echo $HtmlUrl; ?>" />
	<!--input type="button"  name="btnPrint" id="btnPrint" value="Print" onClick="SetPageAction('PRINT');"/-->
	<input type="button" name="btnPdf" id="btnPdf" value="Create PDF" onClick="SetPageAction('PDF');" />
	<input type="button" name="btnHtml" id="btnHtml" value="Create HTML" onClick="SetPageAction('HTML');" />
	<!--    <input type="button" name="btnWord" id="btnWord" value="Create WORD" onClick="SetPageAction('WORD');"/>
	<input type="button" name="btnExcel" id="btnExcel" value="Create EXCEL" onClick="SetPageAction('Excel');"/-->

</form>
<script language="javascript" type="text/javascript">
	function SetPageAction(varAction) {
		if (varAction == "PRINT") {
			document.frm.action = "print/create-print.php";
			document.frm.target = "_blank";
			document.frm.submit();
		}
		else if (varAction == "PDF") {
			document.frm.action = "convertpdf/create-pdf.php";
			document.frm.target = "_blank";
			document.frm.submit();
		}
		else if (varAction == "HTML") {
			document.frm.action = "<?php echo $HtmlPath; ?>";
			document.frm.target = "_blank";
			document.frm.submit();
		}
		else if (varAction == "WORD") {
			document.frm.action = "convertword/create-word.php";
			document.frm.target = "_blank";
			document.frm.submit();
		}
		else if (varAction == "Excel") {
			document.frm.action = "convertword/create-excel.php";
			document.frm.target = "_blank";
			document.frm.submit();
		}
	}
</script>
<?php
require "_footer.php";
?>