Table of Contents With Templates
Table of Contents With Templates
if type='text/javascript'>alert('$new_staff'
($_SERVER['REQUEST_METHO );</s cript>";
D']
echo "<script>location.href
=== 'POST'){
='add_user.php'</script>";
$name =
mysqli_real_escape_string($conn,$_PO
ST[' name']); }
$uname =
mysqli_real_escape_string($conn,$_PO ?>
ST[' user_name']);
<!DOCTYPE html>
$password =
<html lang="en">
mysqli_real_escape_string($conn,$_PO
ST[' password']); <head>
mysqli_real_escape_string($conn,$_PO
ST[' dept']);
<link rel="stylesheet"
$id = 0;
href="https://stackpath.bootstrapcdn.co
m/bo
otstrap/4.5.2/css/bootstrap.min.css">
$insert_sql = 'INSERT INTO accounts
VALUES("'.$id.'","'.$name.'", <link rel="stylesheet"
"'.$uname.'", href="header.css">
}
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
.button {
</div> -->
background-color: purple; color: white;
<?php <!--
<a
href="welcome_admin.php">Home</a
>
} <a href="#">Reports</a>
<meta charset="UTF-8">
</style>
<meta name="viewport"
content="width=device-width, </head>
initial- scale=1">
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<div class="navbar">
<span class="invalid-
<a href="adminpage.php">Home</a> feedback"></span>
<a </div>
href="dashboard.php">Dashboard</a>
<div class="form-group">
<a href="#">Account Management</a>
<label>Password</label>
<a href="#">Reports</a>
<input type="password"
<a href="logout.php"
name="password" id="bet_amount"
class="right">Logout</a> class="form-control">
</div>
<div class="wrapper">
<div class="form-group">
<h2>Add Account</h2>
<label
<form action="" method="post"> for="accslvl">Department</label>
<option add_window.php
value="Frontline">Frontline</option>
<option
value="Registrar">Registrar</option> <?php
</select> if
($_SERVER['REQUEST_METHO
</div> D']
$window_no =
mysqli_real_escape_string($conn,$_PO
ST[' window_no']);
</div>
$status = 'Free';
$id = 0;
$loggedin='none';
//echo "<script
</form>
type='text/javascript'>alert('$dept');</sc
</body> ript> ";
</html>
<link rel="stylesheet"
href="header.css"> }
<style> }
} ?>
} <link rel="stylesheet"
.button { href="https://stackpath.bootstrapcdn.co
m/bo
background-color: purple; color: white;
}
$new_staff = "Added Succesfully";
</style>
echo "<script
<meta charset="UTF-8">
type='text/javascript'>alert('$new_staff'
);</s cript>";
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
</head> <body>
<body>
<!-- </div>
<div class="navbar">
class="right">Logout</a> </div>
<h2>Add Window</h2>
<option </div>
<div class="form-group">
<link rel="stylesheet"
</div> href="header.css">
<style>
text-align: center;
<?php include('session.php');
</head> <body>
<body>
<div class="navbar">
<a
href="welcome_admin.php">Home</a
>
<div class="header">
<a
href="dashboard.php">Dashboard</a> <marquee><h1 class="my-5">Hi,
</div> -->
<!-- <a
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<a
href="view_reports_main_menu.php">
Repo rts</a> <tr>
</div>
</tr>
<Center><h1><img
src="images/asd.png"
alt="IMG"><h1></center> </table>
<br><br><br><br><br><br><br><br> </form>
<br>
<br><br>
<?php
<form method="POST">
// if
<table class="center" ($_SERVER['REQUEST_METHOD']
style="width:100%">
=== 'POST'){
<tr>
// if(isset($_POST['frontline1'])){
// //assigning of window
<td><a href
="view_reports_main_menu.php
"class="button">View // // $sql_getwindow = "Select
Reports</a></td> window_no from window_status where
win_status ='Free' limit 1;";
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
// $Window = '';
// $update_sql = 'update
window_status set win_status=
"Occupied" where window_no
// $sql_getlast = "Select ticket_no from
dashboard where Department ="'.$Window.'"';
='Frontline' Order by ticket_no DESC
limit 1;"; // mysqli_query($conn,$update_sql);
// $result_last =
// echo "<script>location.href
// $ticket_last = $ticket_formula;
// $Department = 'Frontline'; // }
// $Window = '';
// $ticket_no = $last['ticket_no'];
// $ticket_formula = substr($ticket_no, // }
-2)
+ 1;
// else if(isset($_POST['cashier1'])){
// $Name = $login_session;
// $Name = $login_session;
// $Window = 1;
// $ticket_last = 'R00'.$ticket_formula;
// $Department = 'Cashier';
// $Department = 'Registrar';
// $date = date('Y/m/d H:i:s');
// $date = date('Y/m/d H:i:s');
// $status= 'New';
type='text/javascript'>alert('$new_staff' type='text/javascript'>alert('$new_staff'
);</s cript>"; );</s cript>";
='welcome_admin.php'</script>"; ='welcome_admin.php'</script>";
// } // }
// }
// else
if(isset($_POST['scholarship1'])){ </body>
// $Window = 1;
// mysqli_query($conn,$insert_sql); define('DB_USERNAME',
'u814629499_dyciq005');
define('DB_PASSWORD',
'wonderDevs05'); define('DB_NAME',
// $new_staff = "Queue successfully 'u814629499_dyciq');
registered";
// echo "<script
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<meta name="viewport"
// Check connection if($conn === content="width=device-width,
false){ initial- scale=1">
<script
src="https://maxcdn.bootstrapcdn.com/
<?php boots
trap/3.3.7/js/bootstrap.min.js"></script
include ("session.php"); >
<head> <style>
<body>
if(null!==$total_current =
<div class="header"> $result_current -> fetch_assoc()){
$current_ticket =
<?php
$total_current['ticket_no'];
//getting the current serving .
//$current_ticket= 0
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
//echo if(empty($validate2['ticket1'])){
'<script>alert("'.$current_ticket.'")</scr
ipt>'; // echo $current_ticket;
if($_SERVER['REQUEST_METHOD' else{
]
=== 'POST')
}
if(isset($_POST['nexttrans'])){
$ticket_next_formula = $current_ticket;
} $ticket_next =
//echo $ticket_next; $ticket_next_formula;
$validate =
mysqli_query($conn,$validate_ticketne <br<br><br><br><br>
xt);
<center> <h1> Welcome to
$validate2 = $validate -> fetch_assoc(); Window Cashier 1 </h1></center>
//echo <br><br><br>
'<script>alert("'.$validate2['ticket1'].'")
</scri pt>';
</h1></center> // '</script>';
<center> <h2> CS #: }
<?php //echo 'F00'.$current_ticket
?> </h2></center> -->
else if(isset($_POST['transdept123'])){
ticket_no='".$current_ticket."' and
window_no= 1 and department
} ='Cashier'";
$result_endticket =
// $result_reports =
mysqli_query($conn,$sql_getwindow);
$insert_sql = 'INSERT
// $row = $result_reports-> INTO dashboard
fetch_assoc(); VALUES("null","'.$Department.'",
"'.$ticket_last.'", "'.$Window.'",
$Window = ''; "'.$date.'",
"'.$time.'", "'.$status.'","null")';
mysqli_query($conn,$insert_sql);
$sql_getlast = "Select ticket_no from
dashboard where Department
='Frontline' and Trans_date =
CURDATE() Order by ticket_no DESC
limit 1;";
$ticketsss = "Your Queue ticket # is
$result_last = F00".$ticket_last."";
mysqli_query($conn,$sql_getlast); echo
"<script>alert('".$ticketsss."')</script>"
// $last = $result_last-> fetch_assoc(); ;
if(null!==$last = $result_last
->
fetch_assoc()){ }
} $Window = '';
//$Name = $login_session;
$status= 'New';
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
$Window = '';
//$Name = $login_session;
$Department = 'Scholarship';
id="nexttrans" name="nexttrans"
value="Next" onclick="beep()">
}
<center> <button class="button3"
id="alertbox"
name="tansfer1">Transfer Dept
} </button> <Center>
<div class="container">
<td font-
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
title">Transfer</h4>
</div> </div>
<div class="modal-body">
</div>
<label </div>
for="accslvl">Department</label>
<script type="text/javascript"> function
<select name="dept" id="dept" table(){
class="form-control">
const xhttp = new XMLHttpRequest();
<option xhttp.onload = function(){
value="Frontline">Frontline</option>
<option
value="Registrar">Registrar</option> document.getElementById("table").inn
erHT ML = this.responseText;
<option
value="Scholarship">Scholarship</opti }
on>
xhttp.open("GET",
</select> "loadtable_realtime_cashier.php");
</div> xhttp.send();
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
} dash_win1_frontline.php
},1000); ?>
<!DOCTYPE html>
<html lang="en">
$(document).ready(function(){ <head>
<meta name="viewport"
</script> content="width=device-width,
initial- scale=1">
<div id="table">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com
/boot
strap/3.3.7/css/bootstrap.min.css">
</div>
<script
src="https://ajax.googleapis.com/ajax/li
bs/jq
</body> uery/3.2.1/jquery.min.js"></script>
</html> <script
src="https://maxcdn.bootstrapcdn.com/
boots
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
trap/3.3.7/js/bootstrap.min.js"></script </div>
>
<link rel="stylesheet"
href="header.css"> <?php
</head>
if(null!==$total_current =
<body> $result_current -> fetch_assoc()){
$result_current =
<a href="logout.php"
class="right">Logout</a>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
-> fetch_assoc()){
$current_ticket =
$total_current['ticket_no']; <?php
} if(isset($_POST['nexttrans'])){
} //echo $ticket_next;
//echo
'<script>alert("'.$validate2['ticket1'].'")
<!-- <center> <h1> </scri pt>';
Currently Serving
</h1></center>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
} mysqli_query($conn,$sql_endticket);
header("Refresh:0");
else{
echo '<script>alert("Ticket
Updated")</script>';
1 where ticket_no='".$ticket_next."'
and department = 'Frontline'";
else if(isset($_POST['transdept123'])){
$dept =
$sql_nextticket =
mysqli_real_escape_string($conn,$_PO
mysqli_query($conn,$sql_nextticket); ST[' dept']);
mysqli_query($conn,$sql_view_curren
t); $sql_endticket= "update dashboard set
trans_status ='Finished' , window_no =
'' , window_no_finish='1' where
ticket_no='".$current_ticket."'
and window_no= 1 and department =
'Frontline'";
$result_endticket =
}
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
$Department = 'Cashier';
//assigning of window
$date = date('Y/m/d H:i:s');
// $sql_getwindow = "Select
window_no from window_status where $time = date('H:i:s');
win_status ='Free' limit 1;";
$status= 'New';
// $result_reports =
mysqli_query($conn,$sql_getwindow);
"'.$time.'", "'.$status.'","null")';
$sql_getlast = "Select ticket_no from mysqli_query($conn,$insert_sql);
dashboard where Department ='Cashier'
and Trans_date = CURDATE() Order
by ticket_no DESC limit 1;";
$result_last =
$ticketsss = "Your Queue ticket # is
mysqli_query($conn,$sql_getlast); C00".$ticket_last."";
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
echo
"<script>alert('".$ticketsss."')</script>"
; $insert_sql = 'INSERT
INTO dashboard
VALUES("null","'.$Department.'",
"'.$ticket_last.'", "'.$Window.'",
else if($dept == 'Registrar'){ "'.$date.'",
mysqli_query($conn,$sql_getlast);
$Window = '';
//$Name = $login_session;
$time = date('H:i:s');
$result_last =
$status= 'New';
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
mysqli_query($conn,$sql_getlast);
$ticket_no = $last['ticket_no'];
$ticket_formula = $ticket_no + 1; }
$ticket_last = $ticket_formula;
$Department = 'Scholarship';
$time = date('H:i:s');
$status= 'New';
</tr> title">Transfer</h4>
</table> </div>
</center>
<div></center> },1000);
</form>
</div>
$(document).ready(function(){
</div> $('#alertbox').click(function(){
</div> $('#myModal').modal("show");
</div> });
});
</div>
document.getElementById("table").inn </div>
erHT ML = this.responseText;
}
</body>
xhttp.open("GET",
"loadtable_realtime_frontline.php"); </html>
xhttp.send();
} dash_win1_registrar.php
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
trap/3.3.7/js/bootstrap.min.js"></script
>
<?php
<link rel="stylesheet"
include ("session.php"); href="header.css">
<script src="sounds.js"
type="text/javascript"></script>
</style>
<title>WIN 1 DASHBOARD</title>
<meta charset="UTF-8">
<meta charset="utf-8">
<meta name="viewport"
<meta name="viewport" content="width=device-width,
content="width=device-width, initial- scale=1">
initial- scale=1">
</head>
<link rel="stylesheet"
<body>
href="https://maxcdn.bootstrapcdn.com
/boot <div class="header">
strap/3.3.7/css/bootstrap.min.css">
<marquee><h1 class="my-5">Hi,
<script
src="https://ajax.googleapis.com/ajax/li <b><?php echo $login_session;
bs/jq ?></b>! Welcome to
uery/3.2.1/jquery.min.js"></script> DYCIQ.</h1></marquee>
<script </div>
src="https://maxcdn.bootstrapcdn.com/
boots
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<?php if(null!==$total_current =
$result_current
//getting the current serving .
-> fetch_assoc()){
//$current_ticket= 0
$current_ticket =
$total_current['ticket_no'];
$sql_view_current= "Select ticket_no
from dashboard where trans_status ='In //echo
Transaction' and Department '<script>alert("'.$current_ticket.'")</scr
='Registrar' and Window_no = 1 Order ipt>';
by id DESC limit 1;";
}else{
$result_current =
$current_ticket = null;
mysqli_query($conn,$sql_view_current
); }
if(null!==$total_current = }
$result_current -> fetch_assoc()){
?>
$current_ticket =
$total_current['ticket_no'];
<br<br><br><br><br>
}else{
<center> <h1> Welcome to
$sql_view_current= "Select ticket_no Window Registrar 1 </h1></center>
from dashboard where trans_status
<br><br><br>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
//echo
'<script>alert("'.$validate2['ticket1'].'")
<!-- <center> <h1> </scri pt>';
Currently Serving
</h1></center>
if(empty($validate2['ticket1'])){
<center> <h2> CS #:
<?php //echo 'F00'.$current_ticket // echo $current_ticket;
?> </h2></center> -->
echo '<script>alert("There is no ticket in
que")</script>';
//
mysqli_query($conn,$sql_view_curren
<?php t);
ticket_no='".$current_ticket."'
and window_no= 1 and department
} ='Registrar'";
mysqli_query($conn,$sql_endticket); // 'ding1();',
header("Refresh:0");
// '</script>';
echo '<script>alert("Ticket
Updated")</script>'; if($dept == 'Frontline'){
} // $result_reports =
mysqli_query($conn,$sql_getwindow);
// $row = $result_reports->
else if(isset($_POST['transdept123'])){ fetch_assoc();
$Window = '';
$dept =
fetch_assoc()){
}
$ticket_no = $last['ticket_no'];
else if($dept == 'Cashier'){
$ticket_formula = $ticket_no + 1;
//assigning of window
}
$Window = '';
//$Name = $login_session;
$ticket_last = $ticket_formula;
$sql_getlast = "Select ticket_no from
$Department = 'Frontline'; dashboard where Department ='Cashier'
and Trans_date = CURDATE() Order
by ticket_no DESC limit 1;";
$Department = 'Cashier';
$result_last =
$ticket_last = $ticket_formula;
$Department = 'Scholarship';
$insert_sql = 'INSERT
} INTO dashboard
VALUES("null","'.$Department.'",
else if($dept == 'Scholarship'){ "'.$ticket_last.'", "'.$Window.'",
"'.$date.'",
//assigning of window
"'.$time.'", "'.$status.'","null")';
$Window = ''; mysqli_query($conn,$insert_sql);
value="Next" onclick="beep()">
title">Transfer</h4> </tr>
} </div> </table>
?> </center>
<td font-
<option
value="Cashier">Cashier</option> document.getElementById("table").inn
erHT ML = this.responseText;
<option
value="Scholarship">Scholarship</opti }
on>
xhttp.open("GET",
</select>
</div>
xhttp.send();
<center><div class="form-group">
}
<input type="submit" class="btn btn-
primary" value="Submit"
id='transdept123' name='transdept123'>
setInterval(function(){ table();
<div></center>
},1000);
</form>
</div>
$(document).ready(function(){
</div>
$('#alertbox').click(function(){
</div>
$('#myModal').modal("show");
</div>
});
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<title>WIN 1 DASHBOARD</title>
</script>
<meta charset="utf-8">
<div id="table">
<meta name="viewport"
content="width=device-width,
initial- scale=1">
</div>
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com
</body> /boot
strap/3.3.7/css/bootstrap.min.css">
</html>
<script
src="https://ajax.googleapis.com/ajax/li
bs/jq
dash_win1_scholarship.php uery/3.2.1/jquery.min.js"></script>
<script
src="https://maxcdn.bootstrapcdn.com/
<?php boots
trap/3.3.7/js/bootstrap.min.js"></script
include ("session.php"); >
<head> <style>
<meta name="viewport"
content="width=device-width,
initial- scale=1"> $result_current =
</head> mysqli_query($conn,$sql_view_current
);
<body>
<div class="header">
if(null!==$total_current =
<marquee><h1 class="my-5">Hi, $result_current -> fetch_assoc()){
</div> }else{
-> fetch_assoc()){
<?php
$current_ticket =
//getting the current serving .
$total_current['ticket_no'];
//$current_ticket= 0
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
//echo //
'<script>alert("'.$current_ticket.'")</scr mysqli_query($conn,$sql_view_curren
ipt>'; t);
}else{ }
if(isset($_POST['nexttrans'])){ }
$ticket_next_formula = $current_ticket;
mysqli_query($conn,$validate_ticketne
xt); <br<br><br><br><br>
$result_endticket =
mysqli_query($conn,$sql_endticket);
header("Refresh:0");
<?php
echo '<script>alert("Ticket
//function to end transaction on current Updated")</script>';
ticket
// echo '<script type="text/javascript">',
if($_SERVER['REQUEST_METHOD'
] // 'ding1();',
// '</script>';
1 where ticket_no='".$ticket_next."' }
and department ='Scholarship'";
$sql_nextticket =
else if(isset($_POST['transdept123'])){
mysqli_query($conn,$sql_nextticket);
mysqli_query($conn,$sql_view_curren $dept =
t);
mysqli_real_escape_string($conn,$_PO
ST[' dept']);
// header("Refresh:0");
window_no=1 and department
echo '<script>alert("Ticket
='Scholarship'"; Updated")</script>';
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
// '</script>'; }
fetch_assoc()){
}
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
$ticket_no = $last['ticket_no'];
}
$Window = '';
//$Name = $login_session;
$ticket_last = $ticket_formula;
$sql_getlast = "Select ticket_no from
$Department = 'Cashier'; dashboard where Department
='Registrar' and Trans_date =
$date = date('Y/m/d H:i:s'); CURDATE() Order by ticket_no DESC
limit 1;";
$time = date('H:i:s');
$result_last =
$status= 'New';
mysqli_query($conn,$sql_getlast);
$ticket_formula = $ticket_no + 1;
//$Name = $login_session;
$Department = 'Registrar';
$time = date('H:i:s');
$status= 'New';
id="endtrans"
$ticketsss = "Your Queue ticket # is name="endtrans" value="End">
R00" . $ticket_last . "";   <input type="submit"
class="button2"
echo
"<script>alert('".$ticketsss."')</script>" id="nexttrans" name="nexttrans"
;
value="Next" onclick="beep()">
<br><br></td>
}
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
</tr> </div>
</form>
<option
<!-- Transfer of dept --> value="Frontline">Frontline</option>
<center><div class="form-group">
<!-- Modal content-->
<input type="submit" class="btn btn-
<div class="modal-content"> primary" value="Submit"
id='transdept123' name='transdept123'>
<div class="modal-header">
<div></center>
<button type="button" class="close"
data- </form>
dismiss="modal">×</button>
</div>
<h4 class="modal-
title">Transfer</h4>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
</div> $('#alertbox').click(function(){
</div> $('#myModal').modal("show");
</div> });
});
</div>
document.getElementById("table").inn </div>
erHT ML = this.responseText;
}
</body>
xhttp.open("GET",
"loadtable_realtime_scholarship.php"); </html>
xhttp.send();
} dash_win2_cashier.php
},1000);
include ("session.php");
?>
<script src="sounds.js"
type="text/javascript"></script>
href="https://maxcdn.bootstrapcdn.com <body>
/boot
strap/3.3.7/css/bootstrap.min.css"> <div class="header">
<script
src="https://maxcdn.bootstrapcdn.com/
boots </div>
trap/3.3.7/js/bootstrap.min.js"></script
>
<style> </div>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
-> fetch_assoc()){
<?php $current_ticket =
//$current_ticket= 0 //echo
'<script>alert("'.$current_ticket.'")</scr
ipt>';
$result_current =
mysqli_query($conn,$sql_view_current }
);
?>
if(null!==$total_current =
$result_current -> fetch_assoc()){ <center> <h1> Welcome to
Window Cashier 2 </h1></center>
$current_ticket =
<br><br><br>
$total_current['ticket_no'];
}else{
<!-- <center> <h1>
$sql_view_current= "Select ticket_no Currently Serving
from dashboard where trans_status
='New' and Department ='Cashier' </h1></center>
Order by id ASC limit 1;";
<center> <h2> CS #:
$result_current = <?php //echo 'F00'.$current_ticket
?> </h2></center> -->
mysqli_query($conn,$sql_view_current
); if(null!==$total_current =
$result_current
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
$ticket_next_formula = $current_ticket;
//echo $ticket_next;
$ticket_next = $ticket_next_formula;
//get ticket next for validation
$sql_nextticket= "update dashboard set
$validate_ticketnext= "Select ticket_no trans_status ='In Transaction',
as ticket1 from dashboard where window_no =
ticket_no= '".$current_ticket."' and
department
//echo
'<script>alert("'.$validate2['ticket1'].'")
</scri pt>';
if(empty($validate2['ticket1'])){ }
$result_endticket = // 'ding1();',
mysqli_query($conn,$sql_endticket);
header("Refresh:0");
// '</script>';
echo '<script>alert("Ticket
Updated")</script>'; if($dept == 'Frontline'){
} // $result_reports =
mysqli_query($conn,$sql_getwindow);
// $row = $result_reports->
else if(isset($_POST['transdept123'])){ fetch_assoc();
mysqli_real_escape_string($conn,$_PO
ST[' dept']);
$sql_getlast = "Select ticket_no from
$sql_endticket= "update dashboard set dashboard where Department
trans_status ='Finished' , window_no = ='Frontline' and Trans_date =
'',window_no_finish ='2' where CURDATE() Order by ticket_no DESC
limit 1;";
ticket_no='".$current_ticket."' and
window_no= 3 and department $result_last =
='Cashier'";
mysqli_query($conn,$sql_getlast);
$result_endticket =
mysqli_query($conn,$sql_endticket);
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
fetch_assoc()){ }
} $Window = '';
//$Name = $login_session;
$Department = 'Registrar';
mysqli_query($conn,$sql_getlast);
"'.$time.'", "'.$status.'","null")';
mysqli_query($conn,$insert_sql);
//$Name = $login_session;
$ticket_last = $ticket_formula;
$Department = 'Scholarship';
$ticketsss = "Your Queue ticket # is
R00" . $ticket_last . ""; $date = date('Y-m-d H:i:s');
} $insert_sql = 'INSERT
INTO dashboard
else if($dept == 'Scholarship'){ VALUES("null","'.$Department.'",
"'.$ticket_last.'", "'.$Window.'",
//assigning of window "'.$date.'",
value="Next" onclick="beep()">
}
<br><br></td>
</tr>
</table>
?>
</form>
</center>
<div class="modal-dialog">
<td font-
size="20px!important"><input
type="submit" <!-- Modal content-->
class="button1"
<div class="modal-content">
id="endtrans"
name="endtrans" value="End"> <div class="modal-header">
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
title">Transfer</h4> </form>
</div> </div>
<div class="modal-body">
</div>
<div class="wrapper">
<label </div>
for="accslvl">Department</label>
<option document.getElementById("table").inn
value="Scholarship">Scholarship</opti erHT ML = this.responseText;
on>
}
</select>
xhttp.open("GET",
</div> "loadtable_realtime_cashier.php");
}
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
?>
<!DOCTYPE html>
$('#alertbox').click(function(){ <head>
<meta charset="UTF-8">
$('#myModal').modal("show");
<script src="sounds.js"
type="text/javascript"></script>
});
<title>WIN 2 DASHBOARD</title>
<meta charset="utf-8">
</script>
<meta name="viewport"
<div id="table"> content="width=device-width,
initial- scale=1">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com
</div> /boot
strap/3.3.7/css/bootstrap.min.css">
<script
</body> src="https://ajax.googleapis.com/ajax/li
bs/jq
</html> uery/3.2.1/jquery.min.js"></script>
<script
src="https://maxcdn.bootstrapcdn.com/
dash_win2_frontline.php boots
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<style>
<?php
body{ font: 14px sans-serif; }
//getting the current serving .
.wrapper{ width: 360px; padding:
//$current_ticket= 0
<body>
mysqli_query($conn,$sql_view_current </h1></center>
);
<center> <h2> CS #:
<?php //echo 'F00'.$current_ticket
?> </h2></center> -->
if(null!==$total_current =
$result_current
-> fetch_assoc()){
$current_ticket = <?php
//echo $ticket_next;
<br<br><br><br><br> $validate =
//echo
'<script>alert("'.$validate2['ticket1'].'")
</scri pt>'; }
} else if(isset($_POST['endtrans'])){
// $result_endticket =
mysqli_query($conn,$sql_view_curren
t); mysqli_query($conn,$sql_endticket);
header("Refresh:0");
}
echo '<script>alert("Ticket
else{ Updated")</script>';
$sql_nextticket =
$dept =
mysqli_query($conn,$sql_nextticket);
mysqli_query($conn,$sql_view_curren mysqli_real_escape_string($conn,$_PO
t); ST[' dept']);
ticket_no='".$current_ticket."' mysqli_query($conn,$sql_getlast);
and window_no= 2 and department =
'Frontline'"; // $last = $result_last-> fetch_assoc();
if(null!==$last = $result_last
$result_endticket = ->
mysqli_query($conn,$sql_endticket); fetch_assoc()){
//assigning of window
$time = date('H:i:s');
// $sql_getwindow = "Select
window_no from window_status where $status= 'New';
win_status ='Free' limit 1;";
// $result_reports =
mysqli_query($conn,$sql_getwindow); $insert_sql = 'INSERT
INTO dashboard
// $row = $result_reports-> VALUES("null","'.$Department.'",
fetch_assoc(); "'.$ticket_last.'", "'.$Window.'",
"'.$date.'",
$Window = '';
"'.$time.'", "'.$status.'","null")';
mysqli_query($conn,$insert_sql);
$insert_sql = 'INSERT
INTO dashboard
} VALUES("null","'.$Department.'",
"'.$ticket_last.'", "'.$Window.'",
else if($dept == 'Registrar'){ "'.$date.'",
//assigning of window
$Window = '';
//$Name = $login_session;
$ticket_last = $ticket_formula;
$sql_getlast = "Select ticket_no from
$Department = 'Registrar'; dashboard where Department
='Scholarship' and Trans_date =
$date = date('Y/m/d H:i:s'); CURDATE() Order by ticket_no DESC
limit 1;";
$time = date('H:i:s');
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
$result_last = "<script>alert('".$ticketsss."')</script>"
;
mysqli_query($conn,$sql_getlast);
} <h4 class="modal-
$time = date('H:i:s');
$status= 'New';
$insert_sql = 'INSERT
INTO dashboard
VALUES("null","'.$Department.'",
"'.$ticket_last.'", "'.$Window.'",
"'.$date.'", <center><form method="POST">
<td font-
size="20px!important"><input
$ticketsss = "Your Queue ticket # is type="submit"
S00" . $ticket_last . ""; class="button1"
echo
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
id="nexttrans" name="nexttrans"
<div class="wrapper">
value="Next" onclick="beep()">
<form action="" method="post">
<br><br></td>
<label
</tr> for="accslvl">Department</label>
<br> <option
value="Registrar">Registrar</option>
<center> <button class="button3"
id="alertbox" <option
name="tansfer1">Transfer Dept value="Scholarship">Scholarship</opti
</button> <Center> on>
</select>
</div>
<!-- Modal content-->
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
</div> $('#alertbox').click(function(){
</div> $('#myModal').modal("show");
</div> });
});
</div>
document.getElementById("table").inn </div>
erHT ML = this.responseText;
</body>
xhttp.open("GET",
"loadtable_realtime_frontline.php"); </html>
xhttp.send();
} dash_win2_cashier.php
?>
<!DOCTYPE html>
</style>
<script src="sounds.js"
type="text/javascript"></script> <meta charset="UTF-8">
<div class="header">
<script </div>
src="https://ajax.googleapis.com/ajax/li
bs/jq
uery/3.2.1/jquery.min.js"></script>
<div class="navbar">
<script
src="https://maxcdn.bootstrapcdn.com/ <a href="logout.php"
boots
trap/3.3.7/js/bootstrap.min.js"></script class="right">Logout</a>
>
</div>
<link rel="stylesheet"
href="header.css">
//$current_ticket= 0 $total_current['ticket_no'];
//echo
'<script>alert("'.$current_ticket.'")</scr
$sql_view_current= "Select ticket_no ipt>';
from dashboard where trans_status ='In
Transaction' and Department }else{
='Scholarship' and Window_no = 2
Order by id DESC limit 1;"; $current_ticket = null;
$result_current = if(isset($_POST['nexttrans'])){
mysqli_query($conn,$sql_view_current
);
//echo $ticket_next;
$total_current['ticket_no']; $validate =
}else{ mysqli_query($conn,$validate_ticketne
xt);
$sql_view_current= "Select ticket_no
from dashboard where trans_status $validate2 = $validate -> fetch_assoc();
='New' and Department ='Scholarship'
Order by id ASC limit 1;"; //echo
'<script>alert("'.$validate2['ticket1'].'")
$result_current = </scri pt>';
mysqli_query($conn,$sql_view_current
); if(null!==$total_current =
$result_current if(empty($validate2['ticket1'])){
//
mysqli_query($conn,$sql_view_curren
t);
} <?php
if($_SERVER['REQUEST_METHOD'
} ]
} $ticket_next =
$ticket_next_formula;
2 where ticket_no='".$ticket_next."'
?> $sql_nextticket= "update dashboard and department ='Scholarship'";
set
$sql_nextticket =
trans_status ='In Transaction',
window_no = mysqli_query($conn,$sql_nextticket);
mysqli_query($conn,$sql_view_curren
t);
<br<br><br><br><br>
<br><br><br> }
} else if(isset($_POST['endtrans'])){
// $row = $result_reports->
fetch_assoc();
else if(isset($_POST['transdept123'])){
$Window = '';
$dept =
mysqli_real_escape_string($conn,$_PO
ST[' dept']); $sql_getlast = "Select ticket_no from
='Scholarship'"; mysqli_query($conn,$sql_getlast);
// header("Refresh:0"); fetch_assoc()){
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
} $Window = '';
//$Name = $login_session;
$insert_sql = 'INSERT
INTO dashboard $ticket_formula = $ticket_no + 1;
VALUES("null","'.$Department.'",
"'.$ticket_last.'", "'.$Window.'",
"'.$date.'",
//$Name = $login_session;
"'.$time.'", "'.$status.'","null")';
mysqli_query($conn,$insert_sql); $ticket_last = $ticket_formula;
$Department = 'Cashier';
"'.$time.'", "'.$status.'","null")';
mysqli_query($conn,$insert_sql); //$Name = $login_session;
$ticket_last = $ticket_formula;
$Department = 'Registrar';
}
$insert_sql = 'INSERT
else if($dept == 'Registrar'){ INTO dashboard
VALUES("null","'.$Department.'",
//assigning of window "'.$ticket_last.'", "'.$Window.'",
"'.$date.'",
$Window = '';
"'.$time.'", "'.$status.'","null")';
mysqli_query($conn,$insert_sql);
$ticket_no = $last['ticket_no'];
}
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
</tr>
} </table>
</form>
?> </center>
<div class="container">
<center><form method="POST">
<!-- Modal -->
<table>
<div class="modal fade" id="myModal"
<tr> role="dialog">
size="20px!important"><input
type="submit"
class="button1" <!-- Modal content-->
</div> </div>
<div class="modal-body">
</div>
<label </div>
for="accslvl">Department</label>
<script type="text/javascript"> function
<select name="dept" id="dept" table(){
class="form-control">
const xhttp = new XMLHttpRequest();
<option xhttp.onload = function(){
value="Frontline">Frontline</option>
<option
value="Cashier">Cashier</option> document.getElementById("table").inn
erHT ML = this.responseText;
<option
value="Registrar">Registrar</option> }
</select> xhttp.open("GET",
"loadtable_realtime_scholarship.php");
</div>
xhttp.send();
<center><div class="form-group">
}
<input type="submit" class="btn btn-
primary" value="Submit"
id='transdept123' name='transdept123'>
setInterval(function(){ table();
<div></center>
},1000);
</form>
</div>
$(document).ready(function(){
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<head>
});
<title>WIN 3 DASHBOARD</title>
</script>
<meta charset="utf-8">
<div id="table">
<meta name="viewport"
content="width=device-width,
initial- scale=1">
<link rel="stylesheet"
</div>
href="https://maxcdn.bootstrapcdn.com
/boot
strap/3.3.7/css/bootstrap.min.css">
</body>
<script
</html> src="https://ajax.googleapis.com/ajax/li
bs/jq
uery/3.2.1/jquery.min.js"></script>
dash_win3_cashier.php <script
src="https://maxcdn.bootstrapcdn.com/
boots
trap/3.3.7/js/bootstrap.min.js"></script
<?php >
<link rel="stylesheet"
href="header.css">
include ("session.php");
<link rel="stylesheet"
?> href="buttons.css">
//$current_ticket= 0
<body>
}else{
}else{ if(isset($_POST['nexttrans'])){
$current_ticket = null;
} //echo $ticket_next;
$validate =
//echo
'<script>alert("'.$validate2['ticket1'].'")
<!-- <center> <h1> </scri pt>';
Currently Serving
</h1></center>
if(empty($validate2['ticket1'])){
<center> <h2> CS #:
<?php //echo 'F00'.$current_ticket // echo $current_ticket;
?> </h2></center> -->
echo '<script>alert("There is no ticket in
que")</script>';
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
echo '<script>alert("Ticket
Updated")</script>';
$ticket_next_formula = $current_ticket;
// echo '<script type="text/javascript">',
$ticket_next = $ticket_next_formula;
// 'ding1();',
$sql_nextticket= "update dashboard set
trans_status ='In Transaction', // '</script>';
window_no =
}
3 where ticket_no='".$ticket_next."'
and department ='Cashier'"; else if(isset($_POST['transdept123'])){
$sql_nextticket = $dept =
mysqli_query($conn,$sql_nextticket); mysqli_real_escape_string($conn,$_PO
mysqli_query($conn,$sql_view_curren ST[' dept']);
t);
$sql_endticket= "update dashboard set
trans_status ='Finished' , window_no =
'',window_no_finish ='3' where
ticket_no='".$current_ticket."' and
window_no= 3 and department
='Cashier'";
}
$result_endticket =
} else if(isset($_POST['endtrans'])){
mysqli_query($conn,$sql_endticket);
$sql_endticket= "update dashboard set
trans_status ='Finished' , window_no = // header("Refresh:0");
'' , window_no_finish = 3 where
ticket_no='".$current_ticket."'
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
//$Name = $login_session;
// '</script>';
$ticket_last = $ticket_formula;
if($dept == 'Frontline'){
$Department = 'Frontline';
//assigning of window
$date = date('Y-m-d H:i:s');
// $sql_getwindow = "Select
window_no from window_status where $time =date("h:i:sa");
win_status ='Free' limit 1;";
$status= 'New';
// $result_reports =
mysqli_query($conn,$sql_getwindow);
"'.$time.'", "'.$status.'","null")';
$sql_getlast = "Select ticket_no from mysqli_query($conn,$insert_sql);
dashboard where Department
='Frontline' and Trans_date =
CURDATE() Order by ticket_no DESC
limit 1;";
} $insert_sql = 'INSERT
INTO dashboard
else if($dept == 'Registrar'){ VALUES("null","'.$Department.'",
"'.$ticket_last.'", "'.$Window.'",
//assigning of window "'.$date.'",
$result_last = echo
"<script>alert('".$ticketsss."')</script>"
mysqli_query($conn,$sql_getlast); ;
$ticket_no = $last['ticket_no']; }
//assigning of window
$ticket_last = $ticket_formula;
mysqli_query($conn,$sql_getlast);
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
$ticket_no = $last['ticket_no'];
$ticket_formula = $ticket_no + 1; }
$ticket_last = $ticket_formula;
$Department = 'Scholarship';
$time =date("h:i:sa");
$status= 'New';
"'.$time.'", "'.$status.'","null")';
mysqli_query($conn,$insert_sql);
<td font-
size="20px!important"><input
type="submit"
class="button1"
$ticketsss = "Your Queue ticket # is
S00" . $ticket_last . ""; id="endtrans"
name="endtrans" value="End">
echo   <input type="submit"
"<script>alert('".$ticketsss."')</script>" class="button2"
;
id="nexttrans" name="nexttrans"
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<br><br></td> </div>
</table>
<option
<!-- Transfer of dept --> value="Frontline">Frontline</option>
<div class="container">
</select>
</div>
$(document).ready(function(){
</div> $('#alertbox').click(function(){
</div> $('#myModal').modal("show");
</div>
});
</div>
document.getElementById("table").inn </div>
erHT ML = this.responseText;
}
</body>
xhttp.open("GET",
"loadtable_realtime_cashier.php"); </html>
xhttp.send();
} dash_win3_frontline.php
?>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<meta charset="UTF-8">
<script src="sounds.js"
type="text/javascript"></script>
</style>
<title>WIN 3 DASHBOARD</title>
<meta charset="UTF-8">
<meta charset="utf-8">
<meta name="viewport"
<meta name="viewport" content="width=device-width,
content="width=device-width, initial- scale=1">
initial- scale=1">
</head>
<link rel="stylesheet"
<body>
href="https://maxcdn.bootstrapcdn.com
/boot <div class="header">
strap/3.3.7/css/bootstrap.min.css">
<marquee><h1 class="my-5">Hi,
<script
src="https://ajax.googleapis.com/ajax/li <b><?php echo $login_session;
bs/jq ?></b>! Welcome to
uery/3.2.1/jquery.min.js"></script> DYCIQ.</h1></marquee>
<script </div>
src="https://maxcdn.bootstrapcdn.com/
boots
trap/3.3.7/js/bootstrap.min.js"></script
> <div class="navbar">
-> fetch_assoc()){
<?php $current_ticket =
//$current_ticket= 0 //echo
'<script>alert("'.$current_ticket.'")</scr
ipt>';
$result_current =
mysqli_query($conn,$sql_view_current }
);
?>
if(null!==$total_current =
$result_current -> fetch_assoc()){ <br<br><br><br><br>
//
mysqli_query($conn,$sql_view_curren
<?php t);
//echo
'<script>alert("'.$validate2['ticket1'].'")
</scri pt>'; }
} else if(isset($_POST['endtrans'])){
mysqli_query($conn,$sql_endticket); // 'ding1();',
header("Refresh:0");
// '</script>';
echo '<script>alert("Ticket
Updated")</script>'; if($dept == 'Cashier'){
} // $result_reports =
mysqli_query($conn,$sql_getwindow);
// $row = $result_reports->
else if(isset($_POST['transdept123'])){ fetch_assoc();
$Window = '';
$dept =
} $Window = '';
//$Name = $login_session;
$Department = 'Registrar';
$insert_sql = 'INSERT
INTO dashboard
} VALUES("null","'.$Department.'",
"'.$ticket_last.'", "'.$Window.'",
else if($dept == 'Registrar'){ "'.$date.'",
//assigning of window
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
$ticket_last = $ticket_formula;
$Department = 'Scholarship';
$insert_sql = 'INSERT
} INTO dashboard
VALUES("null","'.$Department.'",
else if($dept == 'Scholarship'){ "'.$ticket_last.'", "'.$Window.'",
"'.$date.'",
//assigning of window
"'.$time.'", "'.$status.'","null")';
$Window = ''; mysqli_query($conn,$insert_sql);
} </div>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
?> </center>
<td font-
id="nexttrans" name="nexttrans"
<option
value="Next" onclick="beep()"> value="Frontline">Frontline</option>
<br><br></td> <option
value="Registrar">Registrar</option>
</tr>
<option
</table> value="Scholarship">Scholarship</opti
on>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
</select> xhttp.open("GET",
</div>
</form> },1000);
</div>
</div> $(document).ready(function(){
$('#alertbox').click(function(){
</div>
</div> $('#myModal').modal("show");
});
</div> });
document.getElementById("table").inn
erHT ML = this.responseText;
</div>
}
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
</body> href="https://maxcdn.bootstrapcdn.com
/boot
</html> strap/3.3.7/css/bootstrap.min.css">
<script
src="https://ajax.googleapis.com/ajax/li
dash_win3_registrar.php bs/jq
uery/3.2.1/jquery.min.js"></script>
<script
<?php src="https://maxcdn.bootstrapcdn.com/
boots
include ("session.php"); trap/3.3.7/js/bootstrap.min.js"></script
>
?>
<link rel="stylesheet"
<!DOCTYPE html> href="header.css">
<title>WIN 3 DASHBOARD</title>
<meta charset="utf-8">
</style>
<meta name="viewport"
content="width=device-width, <meta charset="UTF-8">
initial- scale=1">
<meta name="viewport"
content="width=device-width,
initial- scale=1">
<link rel="stylesheet"
</head>
<body>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
</div> $current_ticket =
$total_current['ticket_no'];
mysqli_query($conn,$sql_view_current
<?php ); if(null!==$total_current =
$result_current
//getting the current serving .
-> fetch_assoc()){
//$current_ticket= 0
$current_ticket =
$total_current['ticket_no'];
$sql_view_current= "Select ticket_no
from dashboard where trans_status ='In //echo
Transaction' and Department '<script>alert("'.$current_ticket.'")</scr
='Registrar' ipt>';
}else{
$result_current =
if($_SERVER['REQUEST_METHOD'
]
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
=== 'POST') }
} $ticket_next =
$ticket_next_formula;
//echo $ticket_next;
?> $sql_nextticket= "update dashboard
//get ticket next for validation set
$validate =
<br<br><br><br><br>
mysqli_query($conn,$validate_ticketne
xt); <center> <h1> Welcome to
Window Registrar 3 </h1></center>
$validate2 = $validate -> fetch_assoc();
<br><br><br>
//echo
'<script>alert("'.$validate2['ticket1'].'")
</scri pt>';
<!-- <center> <h1>
Currently Serving
if(empty($validate2['ticket1'])){ </h1></center>
//
mysqli_query($conn,$sql_view_curren
t);
<?php
}
//function to end transaction on current
else{
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
3 where ticket_no='".$ticket_next."'
and department ='Registrar'";
else if(isset($_POST['transdept123'])){
$sql_nextticket =
$dept =
mysqli_query($conn,$sql_nextticket);
mysqli_query($conn,$sql_view_curren mysqli_real_escape_string($conn,$_PO
t); ST[' dept']);
echo '<script>alert("Ticket
window_no_finish = 3 where Updated")</script>';
ticket_no='".$current_ticket."' and
window_no=3 and department // echo '<script type="text/javascript">',
='Registrar'";
// 'ding1();',
$result_endticket =
// '</script>';
mysqli_query($conn,$sql_endticket);
header("Refresh:0"); if($dept == 'Cashier'){
}
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
// $row = $result_reports->
fetch_assoc();
$insert_sql = 'INSERT
$Window = ''; INTO dashboard
VALUES("null","'.$Department.'",
"'.$ticket_last.'", "'.$Window.'",
"'.$date.'",
$sql_getlast = "Select ticket_no from
dashboard where Department ='Cashier' "'.$time.'", "'.$status.'","null")';
and mysqli_query($conn,$insert_sql);
Trans_date = CURDATE()
Order by ticket_no DESC limit 1;";
$ticketsss = "Your Queue ticket # is
$result_last = F00".$ticket_last."";
mysqli_query($conn,$sql_getlast); echo
"<script>alert('".$ticketsss."')</script>"
// $last = $result_last-> fetch_assoc(); ;
if(null!==$last = $result_last
->
fetch_assoc()){ }
} $Window = '';
//$Name = $login_session;
$ticket_no = $last['ticket_no']; }
$Window = '';
//$Name = $login_session;
$Department = 'Scholarship';
id="endtrans"
$ticketsss = "Your Queue ticket # is name="endtrans" value="End">
S00" . $ticket_last . "";   <input type="submit"
class="button2"
echo
"<script>alert('".$ticketsss."')</script>" id="nexttrans" name="nexttrans"
;
value="Next" onclick="beep()">
<br><br></td>
}
</tr>
</table>
}
</form>
</center>
?>
</div>
title">Transfer</h4>
</div> </div>
<div class="modal-body">
</div>
<label </div>
for="accslvl">Department</label>
<script type="text/javascript"> function
<select name="dept" id="dept" table(){
class="form-control">
const xhttp = new XMLHttpRequest();
<option xhttp.onload = function(){
value="Frontline">Frontline</option>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
document.getElementById("table").inn </div>
erHT ML = this.responseText;
}
</body>
xhttp.open("GET",
"loadtable_realtime_registrar.php"); </html>
xhttp.send();
} dash_win3_scholarship.php
},1000);
include ("session.php");
?>
<head>
});
<title>WIN 1 DASHBOARD</title>
</script>
<meta charset="utf-8">
<div id="table">
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
href="https://maxcdn.bootstrapcdn.com <body>
/boot
strap/3.3.7/css/bootstrap.min.css"> <div class="header">
<script
src="https://maxcdn.bootstrapcdn.com/
boots </div>
trap/3.3.7/js/bootstrap.min.js"></script
>
<style> </div>
//$current_ticket= 0
$result_current =
}
mysqli_query($conn,$sql_view_current
); ?>
if(null!==$total_current = <br<br><br><br><br>
$result_current -> fetch_assoc()){
<center> <h1> Welcome to
$current_ticket = Window Scholarship 1
</h1></center>
$total_current['ticket_no'];
<br><br><br>
}else{
-> fetch_assoc()){
$current_ticket =
<?php
$total_current['ticket_no'];
//function to end transaction on current
//echo ticket
'<script>alert("'.$current_ticket.'")</scr
ipt>'; if($_SERVER['REQUEST_METHOD'
]
}else{
=== 'POST')
$current_ticket = null;
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
//echo $ticket_next;
//echo
'<script>alert("'.$validate2['ticket1'].'")
</scri pt>'; }
} else if(isset($_POST['endtrans'])){
// ='Scholarship'";
mysqli_query($conn,$sql_view_curren
t); $result_endticket =
} mysqli_query($conn,$sql_endticket);
header("Refresh:0");
else{
echo '<script>alert("Ticket
Updated")</script>';
} // $result_reports =
mysqli_query($conn,$sql_getwindow);
// $row = $result_reports->
else if(isset($_POST['transdept123'])){ fetch_assoc();
mysqli_real_escape_string($conn,$_PO
ST[' dept']);
$sql_getlast = "Select ticket_no from
$sql_endticket= "update dashboard set dashboard where Department
trans_status ='Finished' , window_no = ='Frontline' and Trans_date =
'' , window_no_fisnih = 3 where CURDATE() Order by ticket_no DESC
ticket_no='".$current_ticket."' limit 1;";
and window_no= 3 and
department $result_last =
='Scholarship'"; mysqli_query($conn,$sql_getlast);
// header("Refresh:0"); fetch_assoc()){
$ticket_formula = $ticket_no + 1;
$Department = 'Cashier';
$status= 'New';
echo
"<script>alert('".$ticketsss."')</script>"
;
$insert_sql = 'INSERT
INTO dashboard
VALUES("null","'.$Department.'",
} "'.$ticket_last.'", "'.$Window.'",
"'.$date.'",
else if($dept == 'Cashier'){
"'.$time.'", "'.$status.'","null")';
//assigning of window mysqli_query($conn,$insert_sql);
$Window = '';
$insert_sql = 'INSERT
INTO dashboard
} VALUES("null","'.$Department.'",
"'.$ticket_last.'", "'.$Window.'",
else if($dept == 'Registrar'){ "'.$date.'",
mysqli_query($conn,$sql_getlast);
$ticket_no = $last['ticket_no'];
$ticket_formula = $ticket_no + 1; }
$ticket_last = $ticket_formula;
$Department = 'Registrar';
$time = date('H:i:s');
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<div class="container">
<div class="modal-dialog">
<tr>
<td font-
<!-- Modal content-->
size="20px!important"><input
type="submit" <div class="modal-content">
class="button1"
<div class="modal-header">
id="endtrans"
name="endtrans" value="End"> <button type="button" class="close"
  <input type="submit" data-
class="button2" dismiss="modal">×</button>
<br><br></td> </div>
</table>
<option
<!-- Transfer of dept -->
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<option document.getElementById("table").inn
value="Cashier">Cashier</option> erHT ML = this.responseText;
<option }
value="Registrar">Registrar</option>
xhttp.open("GET",
</select> "loadtable_realtime_scholarship.php");
</div> xhttp.send();
<center><div class="form-group"> }
<div></center> },1000);
</form>
</div>
$(document).ready(function(){
</div> $('#alertbox').click(function(){
</div> $('#myModal').modal("show");
</div>
});
</div>
<link
href="https://fonts.googleapis.com/css2
</div> ?fam ily=DM+Sans&display=swap"
rel="stylesheet">
<link
</body> href="https://fonts.googleapis.com/css2
?fam
</html> ily=DM+Sans:wght@400;700&display
=swa p" rel="stylesheet">
<style>
default.php
body {
<head>
justify-content: center; width: 100vw;
<title>Default page</title>
height: 100vh;
<link rel="icon" type="image/x-icon"
href="https://hpanel.hostinger.com/favi min-height: 675px; background-color:
cons/ hostinger.png"> #F4F5FF;
<meta charset="utf-8"> }
<meta p{
content="IE=edge,chrome=1" http-
equiv="X-UA-Compatible"> width: 100%; left: 0px;
} margin-bottom: 32px;
a:hover { }
height: 100%; }
background-color: #36344D;
height: 20px !important;
}
}
@media screen and (max-
.link-container { margin-top: 32px; width: 580px) and (min-width: 0px) {
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
650px) and (min-height: 0px) and (max- <a 68.0939 18.6341 67.7216
21.0799123.584 18.4299L66.9277
8.64935 119.8448.60986119.255
13.1335C70.4541 13.0075 70.3005
12.8667 9.04523 68.78579.2934468.389
20.5132 53.4132 19.9672C52.8478
8.60986C118.389 8.60986 117.575 19.422
8.75421 70.1926 12.7108C70.0844
12.5554 70.0299 9.61734C67.992 9.9415 67.6856
10.3338 52.4034 18.7445 52.0785
116.811 9.04215C116.048 9.32984 17.935C51.7539
115.383 12.3632 70.0299
12.1351C70.0299 11.7519
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
11.4518 148.74310.4177147.745
8.95841 139.773
9.75233Z" fill="white"/>
9.07761V21.3613H142.587V16.8108H
143. <path fill-rule="evenodd" clip-
rule="evenodd" d="M0.000188531
976C144.217 17.099 144.458 17.4196
144.7
16.9393L7.0891 21.0683V29.8033L-
14.046V0.000497794L7.0891 64.6472C67.4918 64.6472 69.3971
50.401 604.387 62.8618
<path d="M52.3747
171.744H39V184.277H52.3747V171.7 transform="translate(0 -
44Z" 0.0294456) scale(0.000431034
0.000453478)"/>
fill="#673CE5"/>
</pattern>
<path d="M611.682
88.573H598.307V102.245H611.682V8 <image
8.57
id="image0_793_7454" width="2320"
3Z" fill="#673CE5"/> height="2296"
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
fill-rule="evenodd" clip-
rule="evenodd" d="M16.3333
href="https://cdn.hostinger.com/hosting
er_w elcome/v2/man1.png" 15.8333H4.66667V4.16667H10.5V2.5
H4.6
/>
6667C3.74167 2.5 3
</defs> 3.25 3
<a 2.5V4.16667H15.1583L6.96667
class=link
12.3583L8.14167 13.5333L16.3333
href="https://support.hostinger.com/en/ 5.34167V8.33333H18V2.5H12.1667Z"
articl es/4455931-how-can-i-migrate-
website-to- hostinger" fill="#673DE6"
rel="nofollow" target="_blank"
>
Hostinger? index.php
<svg class="ic-launch"
viewBox="0 0 21 20" fill="none"
xmlns="http://www.w3.org/2000/svg"> />
<path </svg>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
</a> 15.8333V10H16.3333V15.8333ZM12.
1667
<a
2.5V4.16667H15.1583L6.96667
class="link"
12.3583L8.14167 13.5333L16.3333
5.34167V8.33333H18V2.5H12.1667Z"
href="https://support.hostinger.com/en/
articl es/3220304-how-to-install- fill="#673DE6"
wordpress-using- auto-installer"
/>
rel="nofollow" target="_blank"
</svg>
>
</a>
How to install WordPress using Auto
Installer? </div>
<svg class="ic-launch"
viewBox="0 0 21 20" fill="none"
xmlns="http://www.w3.org/2000/svg"> </div>
<path </body>
15.8333H4.66667V4.16667H10.5V2.5
H4.6
<!-- ============================
===
============================
=== ==-->
type="image/png" ============================
href="images/icons/favicon.ico"/> ===
<!--
============================ ============================
=== ===
============================ ==-->
===
<link rel="stylesheet"
============================ type="text/css"
=== href="vendor/animate/animate.css">
==-->
<link rel="stylesheet"
type="text/css"
href="vendor/bootstrap/css/bootstrap.m
in.cs s">
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
data-tilt> <!--
============================
===
============================
<div class="login100-pic js-tilt" ===
============================
===
==-->
<img src="images/1234.png"
<link rel="stylesheet"
type="text/css"
href="vendor/select2/select2.min.css">
<!--
<!--
============================
=== ============================
===
============================
=== ============================
===
============================
=== ============================
===
==-->
==-->
alt="IMG" style="border-radius:
20px;"> <form method="POST"
action="login_process.php"
class="login100-form validate-form">
</div>
<span class="login100-form-
<link rel="stylesheet"
type="text/css" href="vendor/css- title">
hamburgers/hamburgers.min.css">
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<div class="limiter">
User <div
Login
<input
<link rel="stylesheet"
type="text/css" href="css/util.css"> <span
<!--
<i
============================
=== class="fa fa-envelope" aria-
hidden="true"></i>
============================
===
============================ class="container-login100">
===
==-->
</head>
<div
<body>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
</span>
<!-- <i
</a>
136">
</div>
<div class="text-center p-t-
class="focus-input100"></span>
<a
class="txt2" href="#">
class="symbol-input100">
<input
<span
class="input100" type="password"
name="password"
placeholder="Password">
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
</form> <script
src="vendor/jquery/jquery-
<div class="container-login100-
3.2.1.min.js"></script>
</div>
form-btn"><!--
============================
===
<input
==========================
</div> =====
value="Login" class="login100-form-
<i class="fa fa-lock" aria- btn"> ==-->
hidden="true"></i>
<script
</div>
src="vendor/bootstrap/js/popper.js"
></script
</span> <!--
>
============================
===
============================ <script
=== src="vendor/bootstrap/js/bootstrap.min.
js">
</div>
========================== </script>
=====
<!--
==-->
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
==--> ?>
>
<!-- ticket status -->
<!--
<Center><table id="ggwp">
============================
=== <?php
$('.js- $total_trans =
$result_totaltrans ->
tilt').tilt({ fetch_assoc();
scale:
1.1
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
</html>
<!-- loadtable_realtime_cashier.php
<?php
include "session.php";
</script>
$rows =
mysqli_query($conn, "Select
mysqli_query($conn,$sql_view_totalw
============================ ait);
===
$total_wait = $result_totalwait
============================ -> fetch_assoc();
===
============================
=== //getting the current serving.
</body> $result_current =
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<?php echo
$current_ticket =
$total_trans['total_trans'] ?></td>
$total_current['ticket_no'];
<td style="background-color:
}else{ #c8fafd">Waiting In Line <br><br>
<?php echo $total_wait['total_wait']
$current_ticket = 0; ?></td>
} <td style="background-color:
#d9fdc8">Curent Serving <br><br>
// if(isset($total_current['ticket_no'])){ <?php echo 'C00'.$current_ticket
?></td>
// $current_ticket =
</tr>
$total_current['ticket_no'];
</table>
// }
// else{
// $current_ticket
// }
<!-- table realtime -->
<table id="customers">
<tr>
?>
<th>Customer #</th>
<th>Department</th>
<tr>
<th>Window #</th>
<th>Date</th>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<th>Status</th> <?php
include "session.php";
<?php $i = 1; ?>
<td><b><?php echo
<!-- ticket status -->
'C00'.$row["ticket_no"]; ?></b></td>
<Center><table id="ggwp">
<td><?php echo
<?php
$row["Department"]; ?></td>
//getting the total transactions
<td><?php echo
$sql_view_totaltrans= "Select Count(*)
$row["Window_no"]; ?></td> as total_trans from dashboard where
Trans_date = CURDATE() and
<td><?php echo department
loadtable_realtime_cashier_TV.php
//getting the total waiting in line
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
$current_window =
trans_status = 'New' and Trans_date =
CURDATE() and department = $total_current['window_no'];
'Cashier'";
}else{
$result_totalwait =
$current_ticket = 0;
mysqli_query($conn,$sql_view_totalw
ait); $current_window = null;
$total_wait = $result_totalwait }
-> fetch_assoc();
//getting the current serving .
$result_current = if(null!==$total_current2 =
if(null!==$total_current =
$current_window2 =
$result_current -> fetch_assoc()){
$total_current2['window_no'];
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
}else{
$current_ticket2 = 0; // if(isset($total_current['ticket_no'])){
} $total_current['ticket_no'];
$result_current3 =
mysqli_query($conn,$sql_view_current
3);
?>
if(null!==$total_current3 =
$current_ticket3 =
$total_current3['ticket_no']; <Br>
$current_window3 =
$current_window3 = null;
}
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<?php
</tr>
<tr> </table>
</td>
$total_wait = $result_totalwait
<!-- ticket status --> -> fetch_assoc();
<Center><table id="ggwp">
$result_totaltrans = $result_current =
mysqli_query($conn,$sql_view_totaltra mysqli_query($conn,$sql_view_current
ns); ); if(null!==$total_current =
$total_current['ticket_no'];
}else{
// $current_ticket = </table>
$total_current['ticket_no'];
// }
// else{
// }
<table id="customers">
<th>Customer #</th>
?> <th>Department</th>
<th>Window #</th>
<tr> <th>Date</th>
loadtable_realtime_frontline_TV.php
$total_wait = $result_totalwait
<!-- ticket status --> -> fetch_assoc();
<Center><table id="ggwp">
<?php
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
$result_current =
mysqli_query($conn,$sql_view_current if(null!==$total_current2 =
);
$result_current2 -> fetch_assoc()){
$current_ticket2 =
if(null!==$total_current =
$total_current2['ticket_no'];
$result_current -> fetch_assoc()){
$current_window2 =
$current_ticket =
$total_current2['window_no'];
$total_current['ticket_no'];
}else{
$current_window =
$current_ticket2 = 0;
$total_current['window_no'];
$current_window2 = null;
}else{
}
$current_ticket = 0;
//getting the current serving .
$current_window = null;
$sql_view_current3= "Select ticket_no,
} window_no from dashboard where
trans_status ='In Transaction' and
//getting the current serving . department = 'Frontline' and Trans_date
= CURDATE() and window_no = '3'
$sql_view_current2= "Select ticket_no, Order by id DESC limit 1;";
window_no from dashboard where
trans_status ='In Transaction' and $result_current3 =
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
mysqli_query($conn,$sql_view_current
3);
?>
if(null!==$total_current3 =
$current_ticket3 =
<Br>
$total_current3['ticket_no'];
<center><b><h1 style="color:black;
$current_window3 = background-
color:#c8fafd">Frontline</b></h1></c
$total_current3['window_no']; enter
}else{ >
$current_ticket3 = 0; <tr>
$current_window3 = null;
// if(isset($total_current['ticket_no'])){ </td>
</td>
<tr> ?>
<link rel="stylesheet"
href="header.css">
<td style="background-color: #c8fafd;
padding:30px;">Window #
<br><br> 3
<!-- ticket status -->
</td>
<Center><table id="ggwp">
<td style="background-color: #d9fdc8;
padding:30px;" id="td1">Current <?php
Serving
//getting the total transactions
<br><br> <?php echo
'F00'.$current_ticket3 ?></td> $sql_view_totaltrans= "Select Count(*)
as total_trans from dashboard where
</tr> Trans_date = CURDATE() and
department
='Registrar'";
</script>
$result_totaltrans =
loadtable_realtime_registrar.php
mysqli_query($conn,$sql_view_totaltra
ns);
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
$total_trans = $current_ticket =
$result_totaltrans ->
fetch_assoc(); $total_current['ticket_no'];
}else{
$current_ticket = 0;
$result_totalwait = // }
mysqli_query($conn,$sql_view_totalw // else{
ait);
// $current_ticket
$total_wait = $result_totalwait
-> fetch_assoc(); // }
<td><?php echo
$row["trans_status"]; ?></td>
<th>Department</th>
<th>Date</th>
<th>Status</th> <?php
<?php $i = 1; ?>
<td><b><?php echo
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<Center><table id="ggwp">
<?php
$result_totaltrans = $result_current =
mysqli_query($conn,$sql_view_totaltra mysqli_query($conn,$sql_view_current
ns); );
$total_trans =
$result_totaltrans ->
fetch_assoc(); if(null!==$total_current =
$current_ticket =
$result_totalwait = $current_ticket = 0;
mysqli_query($conn,$sql_view_current
CURDATE() and window_no = '2' 3);
Order by id DESC limit 1;";
$result_current2 =
if(null!==$total_current3 =
mysqli_query($conn,$sql_view_current
2); $result_current3 -> fetch_assoc()){
$current_ticket3 =
if(null!==$total_current2 = $total_current3['ticket_no'];
$current_ticket2 = $total_current3['window_no'];
$total_current2['ticket_no']; }else{
$current_window2 = $current_ticket3 = 0;
}else{ }
$current_ticket2 = 0;
} // $current_ticket =
include "session.php";
<tr>
</td>
> <tr>
</td>
</tr>
<?php
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
$total_wait = $result_totalwait
->
<!-- ticket status -->
fetch_assoc();
<Center><table id="ggwp">
<?php
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
// if(isset($total_current['ticket_no'])){
$total_current['ticket_no'];
// } <table id="customers">
// else{ <tr>
// } <th>Department</th>
<th>Window #</th>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<th>Date</th> loadtable_realtime_scholarship_TV.ph
p
<th>Status</th>
</tr>
<?php
<?php $i = 1; ?>
include "session.php";
<?php foreach($rows as $row) : ?>
<tr>
?>
<link rel="stylesheet"
<td><b><?php echo href="header.css">
'R00'.$row["ticket_no"]; ?></b></td>
$row["Department"]; ?></td>
</table> $total_trans =
$result_totaltrans ->
fetch_assoc();
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
$result_totalwait = }else{
mysqli_query($conn,$sql_view_totalw
ait);
$current_window = null;
$total_wait = $result_totalwait
-> fetch_assoc(); }
$result_current =
if(null!==$total_current2 =
mysqli_query($conn,$sql_view_current
); $result_current2 -> fetch_assoc()){
$current_ticket2 =
if(null!==$total_current = $total_current2['ticket_no'];
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
$current_window2 = $current_ticket3 = 0;
}else{ }
$current_ticket2 = 0;
} // $current_ticket =
$result_current3 =
mysqli_query($conn,$sql_view_current
3);
?>
if(null!==$total_current3 =
$current_ticket3 =
$total_current3['ticket_no'];
<Br>
$current_window3 =
<center><b><h1 style="color:black;
$total_current3['window_no']; background-
color:#c8fafd">Scholarship</b></h1>
}else{ </cent er>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
</tr>
<tr> </table>
</td>
<!DOCTYPE html>
<tr>
<html lang="en">
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<meta charset="UTF-8">
href="vendor/bootstrap/css/bootstrap.m
<meta name="viewport" in.cs s">
content="width=device-width,
initial- scale=1"> <!--
<!-- ============================
===
============================
=== ============================
===
============================
=== ============================
===
============================
=== ==-->
<!-- ============================
===
============================
=== ============================
===
============================
=== ============================
===
============================
=== ==-->
<!--
==-->
</div>
<!--
============================ ============================
=== ===
==--> ============================
===
</head>
============================
<body> ===
==-->
class="container-login100"> <!--
<div ============================
===
class="wrap-login100">
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
============================
=== <input
<form method="POST"
action="login_process.php"
class="login100-form validate-form">
class="focus-input100"></span>
<span class="login100-form-
<span
title">
User
class="focus-input100"></span>
Login
<span
</span>
<div class="wrap-input100
validate-input" > class="symbol-input100">
<link rel="stylesheet"
type="text/css" href="css/util.css">
<span
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
input100"> $result =
mysqli_query($conn,$query);
<i
</span>
class="fa fa-envelope" aria-
hidden="true"></i>
</div>
</span>
?>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
</select> <i
mysqli_fetch_array($result))
class="focus-input100"></span> ?>
</select>
<span
<?php
</select>
<input
class="input100" type="password"
name="password" </div>
placeholder="Password">
</div>
<span
class="symbol-input100">
class="focus-input100"></span>
<span
<i class="fa fa-lock" aria-
hidden="true"></i>
</div> </span>
</form> </div>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
============================
===
<div class="container-login100-
==-->
form-btn">
<script src="vendor/jquery/jquery-
3.2.1.min.js"></script>
============================
===
</div>
============================
===
==-->
>
<a <script
src="vendor/bootstrap/js/bootstrap.min.
class="txt2" href="#"> js">
</script>
<!--
<!-- ============================
===
============================
=== ============================
===
============================
=== ============================
===
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
==--> ============================
===
============================
<script ===
src="vendor/select2/select2.min.js"></s
cript ============================
===
>
==-->
<!--
<script src="js/main.js"></script>
============================
===
============================ </body>
===
</html>
============================
===
==--> login_frontline.php
<script
src="vendor/tilt/tilt.jquery.min.js"></sc
ript> <?php
$('.js- ?>
1.1 <head>
}) <title>Login V1</title>
<!--
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
==-->
type="image/png" ============================
href="images/icons/favicon.ico"/> ===
<!-- ============================
===
============================
=== ==-->
==--> ============================
===
<link rel="stylesheet"
type="text/css" ============================
href="vendor/bootstrap/css/bootstrap.m ===
in.cs s">
============================
<!-- ===
============================ ==-->
===
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<link rel="stylesheet"
type="text/css" href="vendor/css-
hamburgers/hamburgers.min.css"> </span>
<!--
============================
===
User
============================
===
============================
===
============================
=== ============================
===
==-->
==-->
<link rel="stylesheet"
type="text/css"
href="vendor/select2/select2.min.css">
<div class="wrap-input100
<!-- validate-input" >
============================
===
<link rel="stylesheet"
type="text/css" href="css/util.css">
<link rel="stylesheet"
type="text/css" href="css/main.css">
<!--
Login
============================
===
============================
===
============================
===
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
==-->
</head>
<body> <div
<div class="limiter">
<div </span>
<input </div>
class="input100" type="username"
name="username"
placeholder="Email">
data-tilt>
<span
<span
<i
<?php
class="container-login100">
class="wrap-login100">
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
alt="IMG"> <?php
while ($row =
mysqli_fetch_array($result))
</div>
{
echo "<option
value='".$row['window_no']."'>".$row[
<form method="POST" 'win dow_no']."</option>";
action="login_process.php"
}
class="login100-form validate-form">
?>
</select>
<span class="login100-form-
<i
$query = "SELECT window_no FROM
frontline_window_status where class="fa fa-envelope" aria-
win_status ='Free'"; hidden="true"></i>
$result =
mysqli_query($conn,$query);
?> </span>
</select>
<select class="input100"
name="window_no" id="window_no">
</div> -->
<option value=""
readonly>Window</option>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
class="focus-input100"></span>
class="input100" type="password"
name="password"
placeholder="Password">
<span
<div class="wrap-input100
validate-input" data-validate =
"Password is
</span>
input100">
</div>
<span class="symbol-
required">
class="focus-input100"></span>
class="symbol-input100">
<input
<span
<i
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
</select>
<span
class="focus-input100"></span>
<option value=""
readonly>Department</option>
form-btn">
</span>
?>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
>
==========================
</div> <script =====
============================ mysqli_real_escape_string($conn,$_PO
=== ST[' password']);
==========================
=====
============================ $adminrow =
=== login_process.php
mysqli_fetch_array($adminresult);
============================
===
============================
=== <?php
$admincount =
$adminrow['accounts_admin'];
session_start();
if(isset($_POST['login'])){
mysqli_fetch_array($adminresult123); // $kioskresult =
mysqli_query($conn,$sql_query_staff);
// $kioskrow =
mysqli_fetch_array($staffresult);
$admincount123 =
$adminrow123['accounts_admin123']; // $kioskcount =
$kioskrow['accounts_user'];
mysqli_query($conn,$sql_query_staff); $window =
$staffrow = mysqli_real_escape_string($conn,$_PO
ST[' window_no']);
mysqli_fetch_array($staffresult);
$staffcount =
$sql_query_deptacc = "select
$staffrow['accounts_user']; department from accounts where
user='".$uname."'";
$resultxd =
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
type='text/javascript'>alert('$dept');</sc
ript> ";
mysqli_query($conn,$sql_query_islogg
ed);
$final_dept =
'frontline_window_status';
elseif($dept == 'registrar'){
mysqli_query($conn,$sql_query_islogg
ed); $final_dept =
'registrar_window_status';
$sql_query_islogged = "Update
".$final_dept." set win_status
header('Location: ='Occupied', logged_in
dash_win'.$window.'_frontline.php'); ='".$uname."' where
window_no=".$window."";
}
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
mysqli_query($conn,$sql_query_islogg
ed);
elseif($admincount123 > 0){
$_SESSION['login_user']= $uname;
echo "<script
header('Location: type='text/javascript'>alert('$staffcount'
dash_win'.$window.'_registrar.php'); );</s cript>";
header('Location: adminpage.php');
elseif($dept == 'scholarship'){ }
$final_dept =
'scholarship_window_status';
type='text/javascript'>alert('$alert_login
mysqli_query($conn,$sql_query_islogg ');</ script>";
ed);
//alert(row_report)
// header("refresh:0 url =
index.html");
header('Location: echo"<script
dash_win'.$window.'_scholarship.php') type='text/javascript'>location.replace('
; login. php')</script>";
} // echo $counter;
}
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<html lang="en">
<head>
} <title>Login V1</title>
type='text/javascript'>alert('$alert_login <!--
');</ script>";
============================
echo"<script ===
type='text/javascript'>location.replace('
login. php')</script>"; ============================
===
//alert(row_report)
============================
} ===
} ==-->
<link rel="icon"
?> type="image/png"
href="images/icons/favicon.ico"/>
<!--
login_registrar.php
============================
===
<?php ============================
===
include 'config.php';
============================
?> ===
<!DOCTYPE html>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<!-- ============================
===
============================
=== ==-->
==--> ============================
===
<link rel="stylesheet"
type="text/css" ============================
href="vendor/animate/animate.css"> ===
<!-- ============================
===
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
==-->
class="symbol-input100">
<link rel="stylesheet"
type="text/css" href="css/main.css">
<i
<!--
class="fa fa-envelope" aria-
============================ hidden="true"></i>
===
============================
=== class="container-login100">
class="wrap-login100">
============================
===
==-->
</head> <div
<body>
<div class="limiter">
<div </span>
class="input100" type="username"
name="username"
placeholder="Email"> data-tilt>
class="focus-input100"></span>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
?>
<img src="images/1234.png"
</div>
alt="IMG">
Login
</div>
<span class="login100-form-
<form method="POST"
action="login_process.php" User
class="login100-form validate-form">
<?php </span>
$result =
mysqli_query($conn,$query);
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<option value=""
readonly>Window</option> <span
<?php
echo "<option
value='".$row['window_no']."'>".$row[
'win input100">
required">
<input
dow_no']."</option>"; <input
?> <i
class="input100" type="password"
name="password"
placeholder="Password">
class="focus-input100"></span> </span>
</div>
class="symbol-input100">
<span
?>
</select>
<span
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
class="focus-input100"></span> <i
<input type="submit"
name="login" id="login"
value="Login" class="login100-form-
btn">
<span
class="fa fa-envelope" aria-
hidden="true"></i>
</div>
form-btn">
</span>
input100"> 136">
scale:
<script
<!-- <i
src="vendor/select2/select2.min.js">
</script <!--
class="fa fa-long-arrow-right m-
l-5" aria- >
1.1
hidden="true"></i> --> <!--
==========================
=====
<!--
</a>
==========================
=====
========================== })
=====
</script>
</div> ==-->
<script
============================
</form> ===
src="vendor/tilt/tilt.jquery.min.js">
</script> ============================
===
</div> <script >
============================
</div> $('.js- ===
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
==-->
==--> ============================
===
============================
============================ ===
===
============================
============================ ===
===
==-->
============================
===
==--> <?php
?>
<head>
<!-- ============================
===
==-->
============================
=== <link rel="stylesheet"
type="text/css" href="fonts/font-
============================ awesome- 4.7.0/css/font-
=== awesome.min.css">
==--> <!--
============================ ============================
=== ===
==--> ==-->
============================ class="wrap-login100">
===
============================
=== <link rel="stylesheet"
type="text/css"
============================ href="vendor/animate/animate.css">
===
<!--
==-->
<link rel="stylesheet"
type="text/css" href="css/util.css">
<!--
<div class="login100-pic js-tilt"
============================
===
============================
===
<img src="images/1234.png"
============================
===
==--> ============================
===
</head>
============================
<body> ===
============================
===
<div class="limiter">
==-->
<div
class="container-login100">
alt="IMG">
<div
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
</div>
<!--
============================ User
===
============================
=== <option value=""
readonly>Window</option>
<?php
while ($row =
<form method="POST" mysqli_fetch_array($result))
action="login_process.php"
{
class="login100-form validate-form">
echo "<option
<span class="login100-form-
<div class="wrap-input100
validate-input" >
<input
value='".$row['window_no']."'>".$row[ class="focus-input100"></span>
'win dow_no']."</option>";
<span class="symbol-
}
input100">
?>
</select>
<i
</span>
class="symbol-input100">
</div>
<span
<div class="wrap-input100
validate-input" >
<span <?php
$result =
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
class="focus-input100"></span>
<span class="symbol-
</span>
<i
<option value=""
readonly>Department</option>
?>
</select>
</span>
</select>
<span
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
</a>
</div>
</div> -->
<input
class="symbol-input100">
class="input100" type="password"
name="password"
placeholder="Password">
<span
<a
class="txt2" href="#">
<span
</form>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
============================
===
============================
</div> ===
==-->
</div>
</div>
form-btn">
</span>
<div class="container-login100-
</div>
<input
<script src="vendor/jquery/jquery-
<!-- 3.2.1.min.js"></script>
============================ <!--
===
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
============================ $resultxd =
===
mysqli_query($conn,$sql_query_depta
============================ cc);
===
$xdrow= $resultxd -> fetch_assoc();
============================
=== $dept = $xdrow['department'];
<script <script
src="vendor/bootstrap/js/popper.js"></ src="vendor/select2/select2.min.js"></s
script cript
> >
<!--
<script ============================
src="vendor/bootstrap/js/bootstrap.min. ===
js">
============================
</script> ===
<!-- ============================
===
============================
=== ==-->
============================ <script
=== src="vendor/tilt/tilt.jquery.min.js"></sc
ript>
============================
=== <script >
==--> $('.js-
tilt').tilt({
<!-- }
============================
===
?>
============================
===
==-->
</body>
</html>
if($dept =='admin'){ session_destroy();
}else{
<?php
session_destroy(); $user_check =
$_SESSION['login_user'];
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
=== 'POST'){
// $sql_getwindow = "Select
window_no from window_status
$row = where win_status
$login_session = $row['user'];
if(!isset($_SESSION['login_user'])){ if(null!== $last =
$result_last-> fetch_assoc()){
header("location:login.php");
$ticket_no = $last['ticket_no'];
die();
$ticket_formula = $ticket_no + 1;
}
}else{
?>
$ticket_no = 0;
$ticket_formula = $ticket_no + 1;
ticket_print_and_submit.php
}
<?php
//$Name = $login_session;
$ticket_last = $ticket_formula;
include "config.php";
date_default_timezone_set("Asia/taipei $Department = 'Frontline';
");
$date = date('Y-m-d H:i:s');
$time =date("h:i:sa");
if
($_SERVER['REQUEST_METHO $status= 'New';
D']
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
// $update_sql =
'update frontline_window_status set Proceed to 1st floor beside guard's
win_status= "Occupied" where office";
window_no
//echo "<script>location.href
="'.$Window.'"';
='frontline_ticket_print.php'</script>";
// mysqli_query($conn,$update_sql);
}
$ticketsss = "<br><b>#F00" .
else if(isset($_POST['cashier1'])){
$ticket_last . "</b><br> <br>
//assigning of window
// $sql_getwindow = "Select
// $result_reports = window_no from window_status
<br> Please where win_status
mysqli_query($conn,$sql_getwindow); // $result_reports =
// $row = $result_reports->
fetch_assoc();
// $row = $result_reports->
$Window = ''; fetch_assoc();
$Window = '';
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
mysqli_query($conn,$sql_getlast);
// $update_sql = 'update
Cashier_window_status
if(null!== $last = set win_status_customer=
$result_last-> fetch_assoc()){ "Occupied" where window_no
="'.$Window.'"';
$ticket_no = $last['ticket_no'];
// mysqli_query($conn,$update_sql);
$ticket_formula = $ticket_no + 1;
}else{
$ticketsss =
$ticket_no = 0; "<br><br><b>#C00" .
//$Name = $login_session;
$time =date("h:i:sa"); }
//assigning of window
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
// $sql_getwindow = "Select
window_no from window_status
where win_status //$Name = $login_session;
mysqli_query($conn,$sql_getlast);
// $update_sql = 'update
Cashier_window_status
set win_status_customer=
if(null!== $last = "Occupied" where window_no
$result_last-> fetch_assoc()){ ="'.$Window.'"';
$ticket_formula = $ticket_no + 1;
// $sql_getwindow = "Select
window_no
='Free' limit 1;";
// $result_reports =
$Department = 'Registrar'; mysqli_query($conn,$sql_getwindow);
$result_last =
$ticket_formula = $ticket_no + 1;
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
} <link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com
/boot
strap/3.4.1/css/bootstrap.min.css">
src="https://ajax.googleapis.com/ajax/li
bs/jq
Proceed to Sofia Bldg. 2nd floor";
//echo "<script>location.href
<script
='frontline_ticket_print.php'</script>"; src="https://maxcdn.bootstrapcdn.com/
boots
trap/3.4.1/js/bootstrap.min.js"></script
>
}
<style>
}
{
?>
font-size: 12px;
}
<!DOCTYPE html>
<html lang="en">
td,
<head>
th,
<meta charset="UTF-8">
tr, table {
<title>KIOSK</title>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
width: 155px;
td.quantity, th.quantity {
max-width: 155px;
width: 40px;
}
max-width: 40px; word-break: break-
all;
img {
} .button {
} }
} td.price, th.price {
width: 40px;
<!--
<a
href="dashboard.php">Dashboard</a>
<meta http-equiv="X-UA-Compatible"
content="ie=edge"> </style>
</head>
</head> <body>
<marquee><h1 class="my-5">Hi,
<p class="centered">DYCIQ <br>
<b><?php echo $login_session;
?></b>! Welcome to our
System.</h1></marquee>
<br>Your Queue Number is
</div> -->
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<thead> <tr>
</tr> <tr>
</tr> ><br>
<tr> <?php
date_default_timezone_set('Asia/Manil
<td class="quantity">2.00</td> a');
</div>
.button {
</center>
background-color: purple; color: white;
<script>
padding: 15px 32px; text-align: center;
text-decoration: none; display: inline-
block; font-size: 16px; border-radius:
document.getElementById("gg123").on 12px; font-size: 24px;
click
}
= function() {
table.center { margin-left: auto; margin-
window.print(); setTimeout(function() { right: auto;
window.location.href = }
'welcome_kiosk.php';
}; ?>
</script>
<head>
<title>TV</title> </head>
<link rel="stylesheet"
href="https://stackpath.bootstrapcdn.co <body>
m/bo
otstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet"
href="header.css">
<style>
<Center><h1><img
body{ font: 14px sans-serif; src="images/asd.png"
background-color:skyblue; alt="IMG"><h1></center>
} <br><br>
</style>
<meta charset="UTF-8">
xhttp.send();
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
} </div>
setInterval(function(){ table();
},1000); </body>
</html>
<link rel="stylesheet"
href="header.css">
TV_frontline.php
<style>
</script> }
<div id="table">
?>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<!DOCTYPE html>
<meta charset="UTF-8">
<Center>
<title>TV</title>
<script type="text/javascript"> function
<link rel="stylesheet" table(){
</style> document.getElementById("table").inn
erHT ML = this.responseText;
<meta charset="UTF-8">
}
<meta name="viewport"
content="width=device-width, xhttp.open("GET",
initial- scale=1"> "loadtable_realtime_frontline_TV.php"
);
</head>
xhttp.send();
<body>
}
</style>
setInterval(function(){ table();
</head>
},1000);
<body>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<!DOCTYPE html>
<script type="text/javascript"
src="ding.js"></script>
<meta charset="UTF-8">
</div>
<title>TV</title>
<link rel="stylesheet"
href="https://stackpath.bootstrapcdn.co
m/bo </body>
otstrap/4.5.2/css/bootstrap.min.css">
</html>
<link rel="stylesheet"
href="header.css">
<style> TV_registrar.php
}
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
document.getElementById("table").inn
<meta name="viewport" erHT ML = this.responseText;
content="width=device-width,
initial- scale=1"> }
</head> xhttp.open("GET",
"loadtable_realtime_registrar_TV.php"
<body> );
xhttp.send();
</style> }
</head>
setInterval(function(){ table();
<body> },1000);
<Center><h1><img </body>
src="images/asd.png"
alt="IMG"><h1></center> </html>
<br><br><br><br><br><br><br><br>
TV_scholarship.php
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
text-align: center;
?>
<!DOCTYPE html>
<html lang="en">
</script>
<head>
<div id="table">
<script type="text/javascript"
src="ding.js"></script>
<meta charset="UTF-8"> }
<title>TV</title> .button {
<link rel="stylesheet"
href="header.css">
display: inline-block; font-size: 16px;
<style> border-radius: 12px; font-size: 24px;
}
</style>
</head>
table();
},1000);
<body>
<Center><h1><img
src="images/asd.png" </script>
alt="IMG"><h1></center>
<div id="table">
<br><br><br><br><br><br><br><br>
<Center>
</div>
<script type="text/javascript"> function
table(){
display: inline-block;
<?php
<!DOCTYPE html>
}
<html lang="en">
.button2{
<head>
background-color: #d9fdc8; color:
<meta charset="UTF-8"> black;
input[type=date],[type=text]{ padding:
.button1{ 10px;
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
} class="right">Logout</a>
</div>
</style> <?php
$result_current =
<marquee><h1 class="my-5">Hi,
mysqli_query($conn,$sql_view_current
<b><?php echo $login_session; );
?></b>! Welcome to
DYCIQ.</h1></marquee> $total_current =
$result_current -> fetch_assoc();
</div>
$current_ticket =
$total_current['ticket_no'];
<div class="navbar">
// if(isset($total_current['ticket_no'])){
<a href="adminpage.php">Home</a>
// $current_ticket =
<!-- <a href="#">Dashboard</a> -->
$total_current['ticket_no'];
<!-- <a href="#">Account
Management</a> --> // }
// $current_ticket $dateval =
// } mysqli_real_escape_string($conn,$_PO
ST[' date2']);
// echo "<script
type='text/javascript'>alert('$dateval');<
/scri pt>";
?>
$sql_endticket= "Select count(*) as
total_trans from dashboard where
department='Frontline' and Trans_date
<br<br><br><br><br> = '".$dateval."'";
$total_trans =
<br><br><br> $result_endticket ->
fetch_assoc();
<center> <h2> CS #:
<?php //echo 'F00'.$current_ticket
?> </h2></center> -->
} else{
<!-- -->
$sql_view_totaltrans= "Select Count(*)
<Center><table id="ggwp"> as total_trans from dashboard where
Department = 'Cashier'";
<?php
$result_totaltrans =
//getting the total transactions
mysqli_query($conn,$sql_view_totaltra
ns);
if(isset($_POST['datexd123'])){
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
$total_trans = id="datexd123"
$result_totaltrans -> name="datexd123" value="Apply
fetch_assoc(); Date"> <input type="Text" class=""
id="search1" name="search1">  
} <input
type="submit" class="button3"
id="search123"
name="search123"
?> value="Search">
    
<form method="POST"> <button class="button3"
id="btnExport"
onclick="fnExcelReport();">
EXPORT
<td style="background-color:
#FEE9E4;">Total </button></td>
Transactions <br><br>
</tr>
<?php echo
</table>
$total_trans['total_trans'] ?></td>
</form>
<Center><table id="customers">
</tr>
<tr> <th hidden> ID </th>
</table>
<th>Customer #</th>
<table>
<th>Department</th>
<tr>
<th>Window #</th>
<td><input type="date"
class="" id="date223" <th>Date</th>
name="date223"> <input
type="date" class="" <th>Time</th>
id="date2"
name="date2"> <input <th>Status</th>
type="submit"
class="button2"
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<?php fetch_assoc()){
type='text/javascript'>alert('".$dateval." _time"]."</td><td>".$row["trans_status
' and '".$dateval2."');</script>"; "]."<
$result_endticket = }
mysqli_query($conn,$sql_endticket);
$result_reports_rowcount =
mysqli_num_rows($result_endticket);
//mysqli_query($conn,$sql_view_curre
nt); if ($result_reports_rowcount > 0){ else if(isset($_POST['search123'])){
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
$searchval = d></b><td>".$row["Department"]."</t
d><td
mysqli_real_escape_string($conn,$_PO
ST[' search1']) ; >".$row["window_no_finish"]."</td><t
d>".
$searchvalfinal = substr($searchval,2);
$row["trans_date"]."</td><td>".$row["
//echo "<script trans
type='text/javascript'>alert('$searchvalf _time"]."</td><td>".$row["trans_status
inal'); "]."<
</script>"; /td></tr>";
$result_endticket =
}
mysqli_query($conn,$sql_endticket);
$result_reports_rowcount =
mysqli_num_rows($result_endticket); }
//mysqli_query($conn,$sql_view_curre
nt); if ($result_reports_rowcount > 0){
$sql_view_reports = "Select id,
while ( $row = $result_endticket-> ticket_no, Department, Window_no,
window_no_finish,
fetch_assoc()){ trans_date,trans_time, trans_status from
dashboard where
department='cashier';";
$result_reports_rowcount = }
mysqli_num_rows($result_reports);
$result_reports_rowcount); }
while ( $row =
$result_reports-> fetch_assoc()){
>".$row["window_no_finish"]."</td><t <script>
d>".
function fnExcelReport() {
$row["trans_date"]."</td><td>".$row["
trans var tab_text = "<table border='2px'><tr
_time"]."</td><td>".$row["trans_status
"]."<
var j = 0;
/td></tr>";
var tab =
} document.getElementById('customers')
; // id of table
echo "</table>";
for (j = 0; j < tab.rows.length; j++) {
tab_text = tab_text +
tab.rows[j].innerHTML + "</tr>";
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
//tab_text=tab_text+"</tr>"; txtArea1.document.write(tab_text);
txtArea1.document.close();
} txtArea1.focus();
tab_text = txtArea1.document.execCommand("Sa
veAs ", true, "Say Thanks to
tab_text.replace(/<A[^>]*>|<\/A>/g, Sumit.xls");
"");//remove if u want links in your table
} else {
tab_text =
// other browser not tested on IE 11
tab_text.replace(/<img[^>]*>/gi, "");
// remove if u want images in your
table
sa =
tab_text =
window.open('data:application/vnd.ms-
tab_text.replace(/<input[^>]*>|<\/input excel,' +
>/gi, ""); // reomves input params encodeURIComponent(tab_text));
var msie =
window.navigator.userAgent.indexOf("
MSI E "); return sa;
|| </html>
!!navigator.userAgent.match(/Trident.*
rv\: 11\./)) {
txtArea1.document.open("txt/html", view_reports_frontline.php
"replace");
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<?php
<meta charset="UTF-8"> }
.button1{
$total_current['ticket_no'];
<div class="navbar">
// if(isset($total_current['ticket_no'])){
<a href="adminpage.php">Home</a>
// $current_ticket =
<!-- <a href="#">Dashboard</a> -->
$total_current['ticket_no'];
<!-- <a href="#">Account
Management</a> --> // }
class="right">Logout</a> // }
</div>
<?php ?>
<br><br><br> mysqli_query($conn,$sql_endticket);
$total_trans =
$result_endticket ->
<!-- <center> <h1> fetch_assoc();
Currently Serving
</h1></center>
//mysqli_query($conn,$sql_view_curre
nt);
<center> <h2> CS #:
<?php //echo 'F00'.$current_ticket
?> </h2></center> -->
mysqli_query($conn,$sql_view_totaltra
ns);
if(isset($_POST['datexd123'])){
$total_trans =
$dateval = $result_totaltrans ->
fetch_assoc();
mysqli_real_escape_string($conn,$_PO
ST[' date2']); }
// echo "<script
type='text/javascript'>alert('$dateval');<
/scri pt>"; ?>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
</table>
</form>
<tr> <th>Department</th>
id="datexd123"
name="datexd123" value="Apply </tr>
Date"> <input type="Text" class=""
id="search1" <?php
name="search1">  
<input
type="submit" class="button3"
$dateval =
id="search123" name="search123"
value="Search"><br><br>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
mysqli_real_escape_string($conn,$_PO </td><td><b>".'F00'.$row["ticket_no"]
ST[' date2']); ."</t
d></b><td>".$row["Department"]."</t
$dateval2 = d><td
mysqli_real_escape_string($conn,$_PO >".$row["window_no_finish"]."</td><t
ST[' date223']); d>".
$result_endticket =
mysqli_query($conn,$sql_endticket);
}
$result_reports_rowcount =
mysqli_num_rows($result_endticket); if(isset($_POST['datexd123'])){
//mysqli_query($conn,$sql_view_curre }
nt); if ($result_reports_rowcount > 0){
fetch_assoc()){
else if(isset($_POST['search123'])){
$searchval =
echo "<tr><td hidden>
".$row["id"]." mysqli_real_escape_string($conn,$_PO
ST[' search1']) ;
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
mysqli_query($conn,$sql_endticket);
}
$result_reports_rowcount =
mysqli_num_rows($result_endticket); else{
//mysqli_query($conn,$sql_view_curre
nt); if ($result_reports_rowcount > 0){
$sql_view_reports = "Select id,
while ( $row = $result_endticket-> ticket_no, Department, Window_no,
window_no_finish,
fetch_assoc()){ trans_date,trans_time, trans_status from
dashboard where
department='Frontline';";
while ( $row =
$result_reports-> fetch_assoc()){
_time"]."</td><td>".$row["trans_status
"]."< var j = 0;
tab.rows[j].innerHTML + "</tr>";
//tab_text=tab_text+"</tr>";
}
}
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
tab_text = txtArea1.document.execCommand("Sa
veAs ", true, "Say Thanks to
tab_text.replace(/<A[^>]*>|<\/A>/g, Sumit.xls");
"");//remove if u want links in your table
} else {
tab_text =
// other browser not tested on IE 11
tab_text.replace(/<img[^>]*>/gi, "");
// remove if u want images in your
table
sa =
tab_text =
window.open('data:application/vnd.ms-
tab_text.replace(/<input[^>]*>|<\/input excel,' +
>/gi, ""); // reomves input params encodeURIComponent(tab_text));
var msie =
window.navigator.userAgent.indexOf("
MSI E "); return sa;
|| </html>
!!navigator.userAgent.match(/Trident.*
rv\: 11\./)) {
txtArea1.document.open("txt/html", view_reports_main_menu.php
"replace");
txtArea1.document.write(tab_text);
txtArea1.document.close(); <?php include('session.php');
txtArea1.focus();
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<meta charset="UTF-8"> }
</div>
</style>
</head> <Center><h1><img
src="images/asd.png"
alt="IMG"><h1></center>
<body> <br><br><br><br><br><br><br><br>
<br>
<br><br>
<div class="header">
<table class="center"
style="width:100%">
// // $row = $result_reports->
fetch_assoc();
<tr>
// $Window = '';
<td><a href
="view_reports_registrar.php"class="b
utton ">Registrar</a></td> // $sql_getlast = "Select ticket_no from
dashboard where Department
<td><a href ='Frontline' Order by ticket_no DESC
limit 1;";
="view_reports_scholarship.php"class=
"butt on">Scholarship</a></td> // $result_last =
mysqli_query($conn,$sql_getlast);
// $ticket_no = $last['ticket_no'];
// $ticket_last = $ticket_formula;
// if // $Department = 'Frontline';
($_SERVER['REQUEST_METHOD']
// $date = date('Y/m/d H:i:s');
=== 'POST'){
// $status= 'New';
// if(isset($_POST['frontline1'])){
// //assigning of window
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
mysqli_query($conn,$sql_getlast);
// $update_sql = 'update
window_status set win_status= // $last = $result_last-> fetch_assoc();
"Occupied" where window_no
// $ticket_no = $last['ticket_no'];
="'.$Window.'"';
// $ticket_formula = substr($ticket_no,
// mysqli_query($conn,$update_sql); -2)
+ 1;
// $ticket_last = 'R00'.$ticket_formula;
// echo "<script
// $Department = 'Registrar';
type='text/javascript'>alert('$new_staff'
);</s cript>"; // $date = date('Y/m/d H:i:s');
='welcome_admin.php'</script>";
// $Window = '';
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
type='text/javascript'>alert('$new_staff' type='text/javascript'>alert('$new_staff'
);</s cript>"; );</s cript>";
='welcome_admin.php'</script>"; ='welcome_admin.php'</script>";
// } // }
// $status= 'New';
// mysqli_query($conn,$insert_sql);
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<html lang="en">
<title>REPORTS registrar</title>
// } <link rel="stylesheet"
// } href="https://stackpath.bootstrapcdn.co
m/bo
otstrap/4.5.2/css/bootstrap.min.css">
.button1{
</style>
<meta name="viewport"
content="width=device-width,
} initial- scale=1">
.button2{ </head>
} <a href="logout.php"
class="right">Logout</a>
</div>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<?php ?>
$result_current =
$total_current = </h1></center>
$result_current -> fetch_assoc();
<center> <h2> CS #:
$current_ticket = <?php //echo 'F00'.$current_ticket
?> </h2></center> -->
$total_current['ticket_no'];
<!-- -->
// if(isset($total_current['ticket_no'])){
<Center><table id="ggwp">
// $current_ticket =
<?php
$total_current['ticket_no'];
//getting the total transactions
// }
// else{
if(isset($_POST['datexd123'])){
// $current_ticket
$dateval =
// }
mysqli_real_escape_string($conn,$_PO
ST[' date2']);
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
// echo "<script
type='text/javascript'>alert('$dateval');<
/scri pt>"; ?>
$result_endticket =
<td style="background-color:
mysqli_query($conn,$sql_endticket); #FEE9E4;">Total
Transactions <br><br>
$total_trans =
$result_endticket -> <?php echo
fetch_assoc();
$total_trans['total_trans'] ?></td>
//mysqli_query($conn,$sql_view_curre
nt);
</tr>
</table>
} else{ <table>
name="search1">  
<input
type="submit" class="button3"
</form> type='text/javascript'>alert('".$dateval."
' and '".$dateval2."');</script>";
//mysqli_query($conn,$sql_view_curre
nt); if ($result_reports_rowcount > 0){
</tr>
while ( $row = $result_endticket->
<?php
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
fetch_assoc()){ $searchval =
mysqli_real_escape_string($conn,$_PO
ST[' search1']) ;
echo "<tr><td hidden>
".$row["id"]." $searchvalfinal = substr($searchval,2);
>".$row["window_no_finish"]."</td><t </script>";
d>".
$sql_endticket= "Select id, ticket_no,
$row["trans_date"]."</td><td>".$row[" Department, Window_no,
trans window_no_finish,
trans_date,trans_time, trans_status from
_time"]."</td><td>".$row["trans_status dashboard where department='registrar'
"]."< and ticket_no = ".$searchvalfinal."";
/td></tr>"; $result_endticket =
} mysqli_query($conn,$sql_endticket);
$result_reports_rowcount =
mysqli_num_rows($result_endticket);
echo "</table>";
//mysqli_query($conn,$sql_view_curre
nt); if ($result_reports_rowcount > 0){
fetch_assoc()){
</td><td><b>".'R00'.$row["ticket_no"]
else if(isset($_POST['search123'])){ ."</t
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
d></b><td>".$row["Department"]."</t mysqli_query($conn,$sql_view_reports
d><td );
>".$row["window_no_finish"]."</td><t $result_reports_rowcount =
d>". mysqli_num_rows($result_reports);
_time"]."</td><td>".$row["trans_status $result_reports_rowcount);
"]."<
if ($result_reports_rowcount > 0){
/td></tr>";
while ( $row =
} $result_reports-> fetch_assoc()){
</td><td><b>".'R00'.$row["ticket_no"]
."</t
} d></b><td>".$row["Department"]."</t
d><td
>".$row["window_no_finish"]."</td><t
} d>".
$row["trans_date"]."</td><td>".$row["
trans
else{
_time"]."</td><td>".$row["trans_status
$sql_view_reports = "Select id, "]."<
ticket_no, Department, Window_no,
window_no_finish, /td></tr>";
trans_date,trans_time, trans_status from
dashboard where }
department='registrar';";
echo "</table>";
$result_reports =
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
var tab =
document.getElementById('customers')
; // id of table
// If Internet Explorer
} if (msie > 0
for (j = 0; j < tab.rows.length; j++) {
tab_text = tab_text + ||
!!navigator.userAgent.match(/Trident.*
tab.rows[j].innerHTML + "</tr>"; rv\: 11\./)) {
//tab_text=tab_text+"</tr>"; } txtArea1.document.open("txt/html",
} "replace");
txtArea1.document.write(tab_text);
txtArea1.document.close();
tab_text = tab_text + "</table>"; txtArea1.focus();
tab_text = ?>
tab_text.replace(/<A[^>]*>|<\/A>/g,
"");//remove if u want links in your table
<iframe id="txtArea1"
tab_text =
style="display:none"></iframe>
tab_text.replace(/<img[^>]*>/gi, "");
// remove if u want images in your <script>
table
function fnExcelReport() {
tab_text =
tab_text.replace(/<input[^>]*>|<\/input
>/gi, ""); // reomves input params sa =
txtArea1.document.execCommand("Sa
veAs ", true, "Say Thanks to
Sumit.xls");
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<link rel="stylesheet"
sa = href="https://stackpath.bootstrapcdn.co
m/bo
window.open('data:application/vnd.ms- otstrap/4.5.2/css/bootstrap.min.css">
excel,' +
encodeURIComponent(tab_text)); <link rel="stylesheet"
href="header.css">
}
<style>
</script>
</body> .button1{
<?php
<meta charset="UTF-8"> }
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
.button3{ </div>
} class="right">Logout</a>
</div>
</style> <?php
$total_current['ticket_no']; <?php
// else{
// $current_ticket if(isset($_POST['datexd123'])){
// } $dateval =
mysqli_real_escape_string($conn,$_PO
ST[' date2']);
// echo "<script
?> type='text/javascript'>alert('$dateval');<
/scri pt>";
$total_trans =
<!-- <center> <h1> $result_endticket ->
Currently Serving fetch_assoc();
</h1></center>
//mysqli_query($conn,$sql_view_curre
nt);
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
</table>
<table>
} else{ <tr>
$total_trans = id="datexd123"
$result_totaltrans -> name="datexd123" value="Apply
fetch_assoc(); Date"> <input type="Text" class=""
id="search1" name="search1">  
} <input
type="submit" class="button3"
id="search123"
name="search123"
?> value="Search">
    
<form method="POST"> <button class="button3"
id="btnExport"
<tr> onclick="fnExcelReport();">
EXPORT
<td style="background-color:
#FEE9E4;">Total </button></td>
Transactions <br><br>
</tr>
<?php echo
</table>
</form>
<Center><table id="customers">
</tr>
<tr> <th hidden> ID </th>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<th>Time</th> $result_endticket =
<th>Status</th> mysqli_query($conn,$sql_endticket);
$result_reports_rowcount =
mysqli_num_rows($result_endticket);
</tr>
//mysqli_query($conn,$sql_view_curre
<?php nt); if ($result_reports_rowcount > 0){
fetch_assoc()){
if(isset($_POST['datexd123'])){
type='text/javascript'>alert('".$dateval." _time"]."</td><td>".$row["trans_status
' and '".$dateval2."');</script>"; "]."<
} $result_endticket =
mysqli_query($conn,$sql_endticket);
//mysqli_query($conn,$sql_view_curre
} nt); if ($result_reports_rowcount > 0){
} fetch_assoc()){
$result_reports =
$searchval =
mysqli_query($conn,$sql_view_reports
mysqli_real_escape_string($conn,$_PO );
ST[' search1']) ;
$result_reports_rowcount =
$searchvalfinal = substr($searchval,2); mysqli_num_rows($result_reports);
</td><td><b>".'S00'.$row["ticket_no"] /td></tr>";
."</t
d></b><td>".$row["Department"]."</t }
d><td
?>
>".$row["window_no_finish"]."</td><t
d>".
_time"]."</td><td>".$row["trans_status
"]."< }
/td></tr>";
} }
else{
$row["trans_date"]."</td><td>".$row[" var j = 0;
trans
_time"]."</td><td>".$row["trans_status
"]."<
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
||
!!navigator.userAgent.match(/Trident.*
for (j = 0; j < tab.rows.length; j++) { rv\: 11\./)) {
tab_text = tab_text +
txtArea1.document.open("txt/html",
tab.rows[j].innerHTML + "</tr>"; "replace");
//tab_text=tab_text+"</tr>"; txtArea1.document.write(tab_text);
txtArea1.document.close();
} txtArea1.focus();
tab_text = txtArea1.document.execCommand("Sa
veAs ", true, "Say Thanks to
tab_text.replace(/<A[^>]*>|<\/A>/g, Sumit.xls");
"");//remove if u want links in your table
} else {
tab_text =
// other browser not tested on IE 11
tab_text.replace(/<img[^>]*>/gi, "");
// remove if u want images in your sa =
table
window.open('data:application/vnd.ms-
tab_text =
tab_text.replace(/<input[^>]*>|<\/input
>/gi, ""); // reomves input params }
</script>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<link rel="stylesheet"
welcome_kiosk.php href="https://maxcdn.bootstrapcdn.com
/boot
strap/3.3.7/css/bootstrap.min.css">
<?php <script
src="https://ajax.googleapis.com/ajax/li
include "config.php"; bs/jq
uery/3.2.1/jquery.min.js"></script>
<script
?> src="https://maxcdn.bootstrapcdn.com/
boots
trap/3.3.7/js/bootstrap.min.js"></script
>
<!DOCTYPE html>
<style>
<html lang="en">
body{
<head>
font: 14px sans-serif; background-color:
<meta charset="UTF-8"> skyblue;
<title>KIOSK</title> }
<link rel="stylesheet"
class="right">Logout</a> </head>
<!--
} <div class="navbar">
.button { <a
href="welcome_admin.php">Home</a
background-color: #BDA812; color: >
white;
<a
padding: 20px 60px; text-align: center; href="dashboard.php">Dashboard</a>
text-decoration: none; display: inline-
block; font-size: 16px; border-radius:
12px; font-size: 24px; width:35%;
}
<Center><h1><img
table.center { margin-left: auto; margin- src="images/asd.png"
right: auto; alt="IMG"><h1></center>
} <br><br><br><br><br>
</style> <center><h1><b>CHOOSE
WHERE TO
<meta charset="UTF-8">
TRANSACT</b></h1></center
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System
<br><br><br><br><br><br> </table>
<table class="center"
style="width:100%">
<tr>
<td><input type="submit"
class="button" id="frontline1"
name="frontline1"
value="Frontline"></td>
<td><input type="submit"
class="button" id="registrar1"
name="registrar1"
value="Registrar"></td>
</tr>
<tr>
<td><input type="submit"
class="button" id="cashier1"
name="cashier1"
value="Cashier"></td>
<td><input type="submit"
class="button" id="scholarship1"
name="scholarship1"
value="Scholarship"></td>
</tr>