Mini Kabibi Habibi
<?php
@include 'include/config.php';
session_start();
if (!isset($_SESSION['username'])) {
header('Location: login.php');
exit();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Quarterly Consolidated and Analyzed Instructional Supervisory Reports</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="images/favicon.ico" type="image/ico" />
<link href="../vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="../vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="../vendors/nprogress/nprogress.css" rel="stylesheet">
<link href="../vendors/iCheck/skins/flat/green.css" rel="stylesheet">
<link href="../vendors/bootstrap-progressbar/css/bootstrap-progressbar-3.3.4.min.css" rel="stylesheet">
<link href="../vendors/jqvmap/dist/jqvmap.min.css" rel="stylesheet"/>
<link href="../vendors/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet">
<link href="../build/css/custom.min.css" rel="stylesheet">
<!-- Custom Style to Prevent Line Breaks in Month -->
<style>
.nowrap-month {
white-space: nowrap;
}
</style>
</head>
<body class="nav-md">
<div class="container body">
<div class="main_container">
<!-- Sidebar -->
<div class="col-md-3 left_col">
<div class="left_col scroll-view">
<div class="navbar nav_title" style="border: 0;">
<a href="admin_index.php" class="site_title"><i class="fa fa-spinner"></i> <span>PROJ. COURSE</span></a>
</div>
<div class="clearfix"></div>
<div class="profile clearfix">
<div class="profile_info">
<span>Welcome,</span>
<h2><?php echo htmlspecialchars($_SESSION['username']); ?></h2>
</div>
</div>
<br />
<!-- Sidebar Menu -->
<div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
<div class="menu_section">
<h3>General</h3>
<ul class="nav side-menu">
<li><a><i class=""></i> Home <span class="fa fa-chevron-down"></span></a>
<ul class="nav child_menu">
<li><a href="admin_index.php">Dashboard</a></li>
</ul>
</li>
<li><a><i class=""></i> Activities <span class="fa fa-chevron-down"></span></a>
<ul class="nav child_menu">
<li><a href="form.php">View Activities</a></li>
</ul>
</li>
<li><a><i class="glyphicon glyphicon"></i> Daily Accomplishments <span class="fa fa-chevron-down"></span></a>
<ul class="nav child_menu">
<li><a href="accomplishments_overview.php">All Accomplishments</a></li>
<li><a href="accomplishments_overview.php?designation=EPS">EPS</a></li>
<li><a href="accomplishments_overview.php?designation=PSDS">PSDS</a></li>
<li><a href="accomplishments_overview.php?designation=ALS">ALS</a></li>
</ul>
</li>
<li><a><i class="glyphicon glyphicon"></i> Monthly Accomplishment Reports <span class="fa fa-chevron-down"></span></a>
<ul class="nav child_menu">
<li><a href="admin_monthly_reports_view.php">View Monthly Reports</a></li>
</ul>
</li>
<li><a><i class="glyphicon glyphicon"></i> MISTA Plans <span class="fa fa-chevron-down"></span></a>
<ul class="nav child_menu">
<li><a href="admin_mistap_view.php">View MISTA Plans</a></li>
</ul>
</li>
<li><a><i class="glyphicon glyphicon"></i> MISTA Reports <span class="fa fa-chevron-down"></span></a>
<ul class="nav child_menu">
<li><a href="admin_mistar_view.php">View MISTA Reports</a></li>
</ul>
</li>
<li><a><i class="glyphicon glyphicon"></i> QCAIS Reports <span class="fa fa-chevron-down"></span></a>
<ul class="nav child_menu">
<li><a href="create_qcais_report.php">Create QCAIS Report</a></li>
<li><a href="view_qcais_reports.php">View QCAIS Reports</a></li>
</ul>
</li>
</div>
</div>
<div class="sidebar-footer hidden-small">
<a title="Settings"><span class="glyphicon glyphicon-cog"></span></a>
<a title="FullScreen"><span class="glyphicon glyphicon-fullscreen"></span></a>
<a title="Lock"><span class="glyphicon glyphicon-eye-close"></span></a>
<a title="Logout" href="logout.php"><span class="glyphicon glyphicon-off"></span></a>
</div>
</div>
</div>
<!-- Top Navigation -->
<div class="top_nav">
<div class="nav_menu">
<div class="nav toggle"><a id="menu_toggle"><i class="fa fa-bars"></i></a></div>
<nav class="nav navbar-nav">
<ul class="navbar-right">
<li class="nav-item dropdown open" style="padding-left: 15px;">
<a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown">
<?php echo htmlspecialchars($_SESSION['username']); ?>
<span class="fa fa-angle-down"></span>
</a>
<div class="dropdown-menu dropdown-usermenu pull-right">
<a class="dropdown-item" href="index.php"><i class="fa fa-sign-out pull-right"></i> Log Out</a>
</div>
</li>
</ul>
</nav>
</div>
</div>
<!-- Page Content -->
<div class="right_col" role="main">
<div class="clearfix"></div>
<div class="row">
<div class="col-md-12 col-sm-12">
<div class="x_panel">
<div class="x_title">
<h2>Quarterly Consolidated and Analyzed Instructional Supervisory Reports</h2>
<div class="clearfix"></div>
</div>
<div class="x_content">
<form method="GET" class="form-inline mb-3">
<?php if (!empty($_GET['designation'])): ?>
<input type="hidden" name="designation" value="<?php echo htmlspecialchars($_GET['designation']); ?>">
<?php endif; ?>
</form>
<div class="table-responsive">
<table class="table table-striped jambo_table bulk_action">
<thead>
<tr class="headings">
<th>Division</th>
<th>Section/Unit</th>
<th>District/Learning Area</th>
<th>Month</th>
<th>School Year</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
$sql = "
SELECT
id,
division,
section,
district,
month,
school_year
FROM admin_mqcais_reports
";
$stmt = $conn->prepare($sql);
if ($stmt === false) {
echo "<tr><td colspan='6'>Query error: " . $conn->error . "</td></tr>";
} else {
$stmt->execute();
$result = $stmt->get_result();
if ($result->num_rows > 0) {
while ($row = $result->fetch_assoc()) {
echo "<tr>
<td>" . htmlspecialchars($row['division']) . "</td>
<td>" . htmlspecialchars($row['section']) . "</td>
<td>" . htmlspecialchars($row['district']) . "</td>
<td class='nowrap-month'>" . htmlspecialchars($row['month']) . "</td>
<td>" . htmlspecialchars($row['school_year']) . "</td>
<td>
<a href='generate_mqcais_word.php?report_id=" . urlencode($row['id']) . "' class='btn btn-info btn-xs' title='View Report'>
<i class='fa fa-eye'></i> View
</a>
<a href='delete_qcais_report.php?id=" . urlencode($row['id']) . "' class='btn btn-danger btn-xs' onclick='return confirm(\"Are you sure?\");' title='Delete Report'>
<i class='fa fa-trash'></i> Delete
</a>
</td>
</tr>";
}
} else {
echo "<tr><td colspan='6'>No results found.</td></tr>";
}
$stmt->close();
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<footer>
<div class="pull-right">
SDO BATANGAS CITY - CID PROJECT COURSE
</div>
<div class="clearfix"></div>
</footer>
</div>
</div>
<script src="../vendors/jquery/dist/jquery.min.js"></script>
<script src="../vendors/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<script src="../vendors/fastclick/lib/fastclick.js"></script>
<script src="../vendors/nprogress/nprogress.js"></script>
<script src="../vendors/iCheck/icheck.min.js"></script>
<script src="../build/js/custom.min.js"></script>
</body>
</html>