0% found this document useful (0 votes)
27 views

Table of Contents With Templates

Uploaded by

joshuabianzon012
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Table of Contents With Templates

Uploaded by

joshuabianzon012
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 240

DR. YANGA’S COLLEGES, INC.

Optimizing School Processes through DYCIQ System

APPENDIX F: Scripts and Codes $new_staff = "Added Succesfully";

add_user.php echo "<script

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>

$dept = <meta charset="UTF-8">

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">

"'.$password.'", "'.$dept.'"," 1 ")'; <style>


mysqli_query($conn,$insert_sql);
body{ font: 14px sans-serif;

}
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

.wrapper{ width: 360px; padding: </head>


20px; }
<body>
th, td, table { padding-top: 10px;
padding-bottom: 20px; padding-left: <!-- <div class="header">
30px; padding-right: 40px; border:
none; <marquee><h1 class="my-5">Hi,

text-align: center; <b><?php echo $login_session;


?></b>!
}

.button {
</div> -->
background-color: purple; color: white;
<?php <!--

include 'session.php'; <div class="navbar">

<a
href="welcome_admin.php">Home</a
>

padding: 15px 32px; text-align: center; <a


text-decoration: none; display: inline- href="dashboard.php">Dashboard</a>
block; font-size: 16px; border-radius:
12px; font-size: 24px; <a href="#">Account Management</a>

} <a href="#">Reports</a>

table.center { margin-left: auto; margin- <a href="logout.php"


right: auto;
class="right">Logout</a>
}
</div> -->
</style>

<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

<body> <span class="invalid-


feedback"></span>
<div class="header">
</div>
<marquee><h1 class="my-5">Hi,
<div class="form-group">
<b><?php echo $login_session;
?></b>! Welcome to <label>User Name</label>
DYCIQ.</h1></marquee>
<input type="text"
</div>

<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> <span class="invalid-


feedback"></span>

</div>
<div class="wrapper">
<div class="form-group">
<h2>Add Account</h2>
<label
<form action="" method="post"> for="accslvl">Department</label>

<div class="form-group"> <select name="dept" id="dept"


class="form-control">
<label>Name</label>
<option
<input type="text" name="name" value="Cashier">Cashier</option>
class="form-control">
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<option add_window.php
value="Frontline">Frontline</option>

<option
value="Registrar">Registrar</option> <?php

<option include 'session.php';


value="Scholarship">Scholarship</opti
on>

</select> if
($_SERVER['REQUEST_METHO
</div> D']

<div class="form-group"> === 'POST'){

<input type="submit" class="btn btn- if(isset($_POST['addwindow'])){


primary" value="Submit">
$dept =
<div>
mysqli_real_escape_string($conn,$_PO
</form> ST[' dept']);

$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>

$insert_sql = 'INSERT INTO '.$dept.'


VALUES("'.$id.'","'.$window_no.'",
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

"'.$status.'", "'.$loggedin.'")'; //echo "<script>location.href


mysqli_query($conn,$insert_sql);
='add_user.php'</script>";

<link rel="stylesheet"
href="header.css"> }

<style> }

body{ font: 14px sans-serif;

} ?>

.wrapper{ width: 360px; padding: <!DOCTYPE html>


20px; }
<html lang="en">
th, td, table { padding-top: 10px;
padding-bottom: 20px; padding-left: <head>
30px; padding-right: 40px; border:
none; <meta charset="UTF-8">

text-align: center; <title>Create Account</title>

} <link rel="stylesheet"

.button { href="https://stackpath.bootstrapcdn.co
m/bo
background-color: purple; color: white;

padding: 15px 32px; text-align: center;


text-decoration: none; display: inline- }
block; font-size: 16px; border-radius:
12px; font-size: 24px; table.center { margin-left: auto; margin-
right: auto;

}
$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

<meta name="viewport" </head>


content="width=device-width,
initial- scale=1">

</head> <body>

<body>

<!-- <div class="header">

<marquee><h1 class="my-5">Hi, <div class="header">

<b><?php echo $login_session; <marquee><h1 class="my-5">Hi,


?></b>! Welcome to our
System.</h1></marquee> <b><?php echo $login_session;
?></b>! Welcome to
</div> --> DYCIQ.</h1></marquee>

<!-- </div>

<div class="navbar">

<a <a href="adminpage.php">Home</a>


href="welcome_admin.php">Home</a
> <a
href="dashboard.php">Dashboard</a>
<a
href="dashboard.php">Dashboard</a> <a href="#">Account Management</a>

<a href="#">Account Management</a> <a href="#">Reports</a>

<a href="#">Reports</a> <a href="logout.php"

<a href="logout.php" class="right">Logout</a>

class="right">Logout</a> </div>

</div> --> <div class="wrapper">

<h2>Add Window</h2>

</style> <form action="" method="post">


DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<div class="form-group"> id="window_no" class="form-


control">
<label>Department</label>
<span class="invalid-
<Select class="form-control" feedback"></span>
id="dept" name="dept">
</div>
<option value=""
<!-- <div class="form-group">
readonly>Department</option>
<label>Password</label>
<option
value="Cashier">Cashier</option> <input type="password"

<option name="password" id="bet_amount"


value="frontline_window_status">Fron class="form-control">
tline
<span class="invalid-
</option> feedback"></span>

<option </div>

<div class="form-group">

<option <label for="accslvl">Acess


value="Scholarship">Scholarship</opti Level</label>
on>
<select name="accslvl" id="accslvl"
class="form-control">

</select> <option value="1">1</option>

<span class="invalid- <option value="2">2</option>


feedback"></span>
</select>
</div>
</div> -->
<div class="form-group">
<div class="form-group">
<label>Window Number</label>
<input type="submit"
<input type="number" id="addwindow"
name="window_no"
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

name="addwindow" class="btn btn- <meta charset="UTF-8">


primary" value="Submit">
<title>Admin Page</title>
<div>
<link rel="stylesheet"
</form>
href="https://stackpath.bootstrapcdn.co
m/bo
otstrap/4.5.2/css/bootstrap.min.css">

<link rel="stylesheet"
</div> href="header.css">

<style>

body{ font: 14px sans-serif;


background-color:skyblue;
</form>
}
</body>
.wrapper{ width: 360px; padding:
</html> 20px; }

th, td, table { padding-top: 10px;


padding-bottom: 20px; padding-left:
adminpage.php 30px; padding-right: 40px; border:
none;

text-align: center;
<?php include('session.php');

border-radius: 12px; font-size: 24px;


?> width: 35%;

<!DOCTYPE html> table.center { margin-left: auto; margin-


right: auto;
<html lang="en">
}
<head>
</style>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<meta charset="UTF-8"> </style>

<meta name="viewport" </head>


content="width=device-width,
initial- scale=1">

</head> <body>

<body>

<!-- <div class="header"> }

<marquee><h1 class="my-5">Hi, .button {

<b><?php echo $login_session; background-color: purple; color: white;


?></b>! Welcome to our
System.</h1></marquee> padding: 15px 32px; text-align: center;
text-decoration: none;
</div> -->
display: inline-block;
<!--

<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,

<a href="#">Account Management</a> <b><?php echo $login_session;


?></b>! Welcome to
<a href="#">Reports</a> DYCIQ.</h1></marquee>

<a href="logout.php" </div>

class="right">Logout</a> <div class="navbar">

</div> -->

<!-- <a
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

href="dashboard.php">Dashboard</a> <td><a href ="add_user.php


--> "class="button">Add
User/Staff</a></td>
<!-- <a href="#">Account
Management</a> --> </tr>

<a
href="view_reports_main_menu.php">
Repo rts</a> <tr>

<a href="logout.php" <td><a href ="add_window.php


"class="button" hidden>Add
class="right">Logout</a> Window</a></td>

</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

// // $result_reports = ment. '", "'.$ticket_last.'",


mysqli_query($conn,$sql_getwindow); "'.$Window.'", "'.$date.'", "'.$status.'")';

// // $row = $result_reports-> // mysqli_query($conn,$insert_sql);


fetch_assoc();

// $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 =

mysqli_query($conn,$sql_getlast); // $new_staff = "Queue successfully


registered";
// $last = $result_last-> fetch_assoc();
// echo "<script
// $ticket_no = $last['ticket_no'];
type='text/javascript'>alert('$new_staff'
// $ticket_formula = $ticket_no + 1; );</s cript>";

// echo "<script>location.href

// $Name = $login_session; ='welcome_admin.php'</script>";

// $ticket_last = $ticket_formula;

// $Department = 'Frontline'; // }

// $date = date('Y/m/d H:i:s');

// $status= 'New'; // else if(isset($_POST['registrar1'])){

// $Window = '';

// $insert_sql = 'INSERT INTO


dashboard
VALUES("null","'.$Name.'","'.$Depart // $sql_getlast = "Select ticket_no from
dashboard where Department
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

='Registrar' Order by ticket_no DESC // echo "<script


limit 1;";
type='text/javascript'>alert('$new_staff'
// $result_last = );</s cript>";

mysqli_query($conn,$sql_getlast); // echo "<script>location.href

// $last = $result_last-> fetch_assoc(); ='welcome_admin.php'</script>";

// $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';

// $insert_sql = 'INSERT INTO


// $insert_sql = 'INSERT INTO dashboard
dashboard VALUES("'.$Name.'","'.$Department.'
VALUES("null","'.$Name.'","'.$Depart ", "'.$Window.'", "'.$date.'",
ment. '", "'.$ticket_last.'", "'.$status.'")';
"'.$Window.'", "'.$date.'", "'.$status.'")';
// mysqli_query($conn,$insert_sql);
// mysqli_query($conn,$insert_sql);

// $new_staff = "Queue successfully


// $new_staff = "Queue successfully registered";
registered";
// echo "<script
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>";

// echo "<script>location.href // echo "<script>location.href

='welcome_admin.php'</script>"; ='welcome_admin.php'</script>";

// } // }

// }

// else

if(isset($_POST['scholarship1'])){ </body>

// $Name = $login_session; </html>

// $Window = 1;

// $Department = 'Scholarship'; config.php

// $date = date('Y/m/d H:i:s');

// $status= 'New'; <?php

/* Database credentials. Assuming you


are running MySQL
// $insert_sql = 'INSERT INTO
dashboard server with default setting (user 'root'
VALUES("'.$Name.'","'.$Department.' with no password) */
", "'.$Window.'", "'.$date.'",
"'.$status.'")'; define('DB_SERVER', '127.0.0.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

/* Attempt to connect to MySQL <script src="sounds.js"


database */ type="text/javascript"></script>

$conn = <title>WIN 1 DASHBOARD</title>


mysqli_connect(DB_SERVER,
DB_USERNAME, DB_PASSWORD, <meta charset="utf-8">
DB_NAME);

<meta name="viewport"
// Check connection if($conn === content="width=device-width,
false){ initial- scale=1">

die("ERROR: Could not connect. " . <link rel="stylesheet"


mysqli_connect_error());
href="https://maxcdn.bootstrapcdn.com
} /boot
strap/3.3.7/css/bootstrap.min.css">
?>
<script
src="https://ajax.googleapis.com/ajax/li
bs/jq
dash_win1_cashier.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"); >

?> <link rel="stylesheet"


href="header.css">
<!DOCTYPE html>
<link rel="stylesheet"
<html lang="en"> href="buttons.css">

<head> <style>

<meta charset="UTF-8"> body{ font: 14px sans-serif; }

.wrapper{ width: 360px; padding:


20px; }
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

$sql_view_current= "Select ticket_no


from dashboard where trans_status ='In
</style> Transaction' and Department ='Cashier'
and Window_no = 1 Order by id DESC
<meta charset="UTF-8"> limit 1;";

<meta name="viewport" $result_current =


content="width=device-width,
initial- scale=1"> mysqli_query($conn,$sql_view_current
);
</head>

<body>
if(null!==$total_current =
<div class="header"> $result_current -> fetch_assoc()){

<marquee><h1 class="my-5">Hi, $current_ticket =

<b><?php echo $login_session; $total_current['ticket_no'];


?></b>! Welcome to
DYCIQ.</h1></marquee> }else{

</div> $sql_view_current= "Select ticket_no


from dashboard where trans_status
='New' and Department ='Cashier'
Order by id ASC limit 1;";
<div class="navbar">
$result_current =
<a href="logout.php"
mysqli_query($conn,$sql_view_current
class="right">Logout</a> ); if(null!==$total_current =
$result_current
</div>
-> 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;

}else{ echo '<script>alert("There is no ticket in


que")</script>';
$current_ticket = null;
//
mysqli_query($conn,$sql_view_curren
t);
//function to end transaction on 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;

//get ticket next for validation ?> $sql_nextticket= "update dashboard


set
$validate_ticketnext= "Select ticket_no
as ticket1 from dashboard where trans_status ='In Transaction',
ticket_no= '".$current_ticket."';"; window_no =

$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>';

<!-- <center> <h1>


Currently Serving
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

</h1></center> // '</script>';

<center> <h2> CS #: }
<?php //echo 'F00'.$current_ticket
?> </h2></center> -->

else if(isset($_POST['transdept123'])){

1 where ticket_no='".$ticket_next."' $dept =


and department ='Cashier'";
mysqli_real_escape_string($conn,$_PO
$sql_nextticket = ST[' dept']);

mysqli_query($conn,$sql_nextticket); $sql_endticket= "update dashboard set


mysqli_query($conn,$sql_view_curren trans_status ='Finished' , window_no =
t); '',window_no_finish ='1' where

ticket_no='".$current_ticket."' and
window_no= 1 and department
} ='Cashier'";

$result_endticket =

$sql_endticket= "update dashboard set mysqli_query($conn,$sql_endticket);


trans_status ='Finished' , window_no =
'',window_no_finish ='1' where // header("Refresh:0");

ticket_no='".$current_ticket."' and echo '<script>alert("Ticket


window_no=1 and department Updated")</script>';
='Cashier'";
// echo '<script type="text/javascript">',
$result_endticket =
// 'ding1();',
mysqli_query($conn,$sql_endticket);
header("Refresh:0"); // '</script>';

echo '<script>alert("Ticket if($dept == 'Frontline'){


Updated")</script>';
//assigning of window
// echo '<script type="text/javascript">',
// $sql_getwindow = "Select
// 'ding1();', window_no from window_status where
win_status ='Free' limit 1;";
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

// $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()){ }

$ticket_no = $last['ticket_no']; else if($dept == 'Registrar'){

$ticket_formula = $ticket_no + 1; //assigning of window

} $Window = '';

//$Name = $login_session;

$ticket_last = $ticket_formula; $sql_getlast = "Select ticket_no from


dashboard where Department
$Department = 'Frontline'; ='Registrar' and Trans_date =
CURDATE() Order by ticket_no DESC
$date = date('Y-m-d H:i:s'); limit 1;";

$time =date("h:i:sa"); $result_last =

$status= 'New';
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

$last = $result_last-> fetch_assoc(); }

$ticket_no = $last['ticket_no']; else if($dept == 'Scholarship'){

$ticket_formula = $ticket_no + 1; //assigning of window

$Window = '';

//$Name = $login_session;

$ticket_last = $ticket_formula; $sql_getlast = "Select ticket_no from


dashboard where Department
$Department = 'Registrar'; ='Scholarship' and Trans_date =
CURDATE() Order by ticket_no DESC
$date = date('Y-m-d H:i:s'); limit 1;";

$time =date("h:i:sa"); $result_last =

$status= 'New'; mysqli_query($conn,$sql_getlast);

$last = $result_last-> fetch_assoc();

$insert_sql = 'INSERT $ticket_no = $last['ticket_no'];


INTO dashboard
VALUES("null","'.$Department.'", $ticket_formula = $ticket_no + 1;
"'.$ticket_last.'", "'.$Window.'",
"'.$date.'",

"'.$time.'", "'.$status.'","null")'; //$Name = $login_session;


mysqli_query($conn,$insert_sql);
$ticket_last = $ticket_formula;

$Department = 'Scholarship';

$ticketsss = "Your Queue ticket # is


R00" . $ticket_last . ""; $time =date("h:i:sa");

echo $status= 'New';


"<script>alert('".$ticketsss."')</script>"
;
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

$insert_sql = 'INSERT size="20px!important"><input


INTO dashboard type="submit"
VALUES("null","'.$Department.'", class="button1"
"'.$ticket_last.'", "'.$Window.'",
"'.$date.'", id="endtrans"
name="endtrans" value="End">
"'.$time.'", "'.$status.'","null")'; &emsp; <input type="submit"
mysqli_query($conn,$insert_sql); class="button2"

id="nexttrans" name="nexttrans"

value="Next" onclick="beep()">

$ticketsss = "Your Queue ticket # is <br><br></td>


S00" . $ticket_last . "";
</tr>
echo
"<script>alert('".$ticketsss."')</script>" </table>
;
</form>

}
<center> <button class="button3"
id="alertbox"
name="tansfer1">Transfer Dept
} </button> <Center>

?> <!-- Transfer of dept -->

<div class="container">

<!-- Modal -->

<center><form method="POST"> <div class="modal fade" id="myModal"


role="dialog">
<table>
<div class="modal-dialog">
<tr>

<td font-
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<!-- Modal content--> <center><div class="form-group">

<div class="modal-content"> <input type="submit" class="btn btn-


primary" value="Submit"
<div class="modal-header"> id='transdept123' name='transdept123'>

<button type="button" class="close" <div></center>


data-
dismiss="modal">&times;</button> </form>

<h4 class="modal- </div>

title">Transfer</h4>

</div> </div>

<div class="modal-body">

</div>

<div class="wrapper"> </div>

<form action="" method="post">

<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

setInterval(function(){ table(); include ("session.php");

},1000); ?>

<!DOCTYPE html>

<html lang="en">

$(document).ready(function(){ <head>

$('#alertbox').click(function(){ <meta charset="UTF-8">

$('#myModal').modal("show"); <script src="sounds.js"


type="text/javascript"></script>
});
<title>WIN 1 DASHBOARD</title>
});
<meta charset="utf-8">

<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

<link rel="stylesheet" //getting the current serving .


href="buttons.css">
//$current_ticket= 0
<style>

body{ font: 14px sans-serif; }


$sql_view_current= "Select ticket_no
.wrapper{ width: 360px; padding: from dashboard where trans_status ='In
20px; } Transaction' and Department
='Frontline' and Window_no = 1 Order
</style> by id DESC limit 1;";

<meta charset="UTF-8"> $result_current =

<meta name="viewport" mysqli_query($conn,$sql_view_current


content="width=device-width, );
initial- scale=1">

</head>
if(null!==$total_current =
<body> $result_current -> fetch_assoc()){

<div class="header"> $current_ticket =

<marquee><h1 class="my-5">Hi, $total_current['ticket_no'];

<b><?php echo $login_session; }else{


?></b>! Welcome to
DYCIQ.</h1></marquee> $sql_view_current= "Select ticket_no
from dashboard where trans_status
</div> ='New' and Department ='Frontline'
Order by id ASC limit 1;";

$result_current =
<a href="logout.php"

class="right">Logout</a>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

mysqli_query($conn,$sql_view_current <center> <h2> CS #:


); if(null!==$total_current = <?php //echo 'F00'.$current_ticket
$result_current ?> </h2></center> -->

-> fetch_assoc()){

$current_ticket =

$total_current['ticket_no']; <?php

//echo //function to end transaction on current


'<script>alert("'.$current_ticket.'")</scr ticket
ipt>';
if($_SERVER['REQUEST_METHOD'
}else{ ]

$current_ticket = null; === 'POST')

} if(isset($_POST['nexttrans'])){

} //echo $ticket_next;

?> //get ticket next for validation

$validate_ticketnext= "Select ticket_no


as ticket1 from dashboard where
<br<br><br><br><br> ticket_no= '".$current_ticket."';";

<center> <h1> Welcome to $validate =


Window
mysqli_query($conn,$validate_ticketne
xt);

<br><br><br> $validate2 = $validate -> fetch_assoc();

//echo
'<script>alert("'.$validate2['ticket1'].'")
<!-- <center> <h1> </scri pt>';
Currently Serving

</h1></center>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

if(empty($validate2['ticket1'])){ } else if(isset($_POST['endtrans'])){

// echo $current_ticket; $sql_endticket= "update dashboard set


trans_status ='Finished' , window_no =
echo '<script>alert("There is no ticket in '', window_no_finish='1' where
que")</script>'; ticket_no='".$current_ticket."'
and window_no=1 and department =
// 'Frontline' ";
mysqli_query($conn,$sql_view_curren
t); $result_endticket =

} mysqli_query($conn,$sql_endticket);
header("Refresh:0");
else{
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 // '</script>';


trans_status ='In Transaction',
window_no = }

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

mysqli_query($conn,$sql_endticket); // $last = $result_last-> fetch_assoc();


if(null!==$last = $result_last
// header("Refresh:0"); ->

echo '<script>alert("Ticket fetch_assoc()){


Updated")</script>';
$ticket_no = $last['ticket_no'];
// echo '<script type="text/javascript">',
$ticket_formula = $ticket_no + 1;
// 'ding1();',
}
// '</script>';
//$Name = $login_session;
if($dept == 'Cashier'){
$ticket_last = $ticket_formula;

$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);

// $row = $result_reports-> $insert_sql = 'INSERT


fetch_assoc(); INTO dashboard
VALUES("null","'.$Department.'",
$Window = ''; "'.$ticket_last.'", "'.$Window.'",
"'.$date.'",

"'.$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.'",

//assigning of window "'.$time.'", "'.$status.'","null")';


mysqli_query($conn,$insert_sql);
$Window = '';

$sql_getlast = "Select ticket_no from


dashboard where Department $ticketsss = "Your Queue ticket # is
='Registrar' and Trans_date = R00" . $ticket_last . "";
CURDATE() Order by ticket_no DESC
limit 1;"; echo
"<script>alert('".$ticketsss."')</script>"
$result_last = ;

mysqli_query($conn,$sql_getlast);

$last = $result_last-> fetch_assoc(); }

$ticket_no = $last['ticket_no']; else if($dept == 'Scholarship'){

$ticket_formula = $ticket_no + 1; //assigning of window

$Window = '';

//$Name = $login_session;

$ticket_last = $ticket_formula; $sql_getlast = "Select ticket_no from


dashboard where Department
$Department = 'Registrar'; ='Scholarship' and Trans_date =
CURDATE() Order by
$date = date('Y/m/d H:i:s');

$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);

$last = $result_last-> fetch_assoc(); }

$ticket_no = $last['ticket_no'];

$ticket_formula = $ticket_no + 1; }

//$Name = $login_session; ?>

$ticket_last = $ticket_formula;

$Department = 'Scholarship';

$date = date('Y/m/d H:i:s');

$time = date('H:i:s');

$status= 'New';

$insert_sql = 'INSERT <center><form method="POST">


INTO dashboard
VALUES("null","'.$Department.'", <table>
"'.$ticket_last.'", "'.$Window.'",
"'.$date.'", <tr>

"'.$time.'", "'.$status.'","null")'; <td font-


mysqli_query($conn,$insert_sql);
size="20px!important"><input
type="submit"
class="button1"

$ticketsss = "Your Queue ticket # is


S00" . $ticket_last . ""; id="endtrans"
name="endtrans" value="End">
echo &emsp; <input type="submit"
"<script>alert('".$ticketsss."')</script>" class="button2"
;
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

id="nexttrans" name="nexttrans" <button type="button" class="close"


data-
value="Next" onclick="beep()"> dismiss="modal">&times;</button>

<br><br></td> <h4 class="modal-

</tr> title">Transfer</h4>

</table> </div>

</form> <div class="modal-body">

</center>

<br> <div class="wrapper">

<center> <button class="button3" <form action="" method="post">


id="alertbox"
name="tansfer1">Transfer Dept <label
</button> <Center> for="accslvl">Department</label>

<select name="dept" id="dept"


class="form-control">
<!-- Transfer of dept -->
<option
<div class="container"> value="Frontline">Frontline</option>

<!-- Modal --> <option


value="Registrar">Registrar</option>
<div class="modal fade" id="myModal"
role="dialog">

<div class="modal-dialog"> <option


value="Scholarship">Scholarship</opti
on>

<!-- Modal content--> </select>

<div class="modal-content"> </div>

<div class="modal-header"> <center><div class="form-group">


DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<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> });

});

</div>

<script type="text/javascript"> function </script>


table(){
<div id="table">
const xhttp = new XMLHttpRequest();
xhttp.onload = function(){

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">

?> <link rel="stylesheet"


href="buttons.css">
<!DOCTYPE html>
<style>
<html lang="en">
body{ font: 14px sans-serif; }
<head>
.wrapper{ width: 360px; padding:
<meta charset="UTF-8"> 20px; }

<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

<div class="navbar"> ='New' and Department ='Registrar'


Order by id ASC limit 1;";
<a href="logout.php"
$result_current =
class="right">Logout</a>
mysqli_query($conn,$sql_view_current
</div> );

<?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);

//function to end transaction on current }


ticket
else{
if($_SERVER['REQUEST_METHOD'
]

=== 'POST') $ticket_next_formula = $current_ticket;

if(isset($_POST['nexttrans'])){ $ticket_next = $ticket_next_formula;

$sql_nextticket= "update dashboard set


trans_status ='In Transaction',
//echo $ticket_next; window_no =

//get ticket next for validation 1 where ticket_no='".$ticket_next."'


and department ='Registrar'";
$validate_ticketnext= "Select ticket_no
as ticket1 from dashboard where $sql_nextticket =
ticket_no= '".$current_ticket."';";
mysqli_query($conn,$sql_nextticket);
$validate = mysqli_query($conn,$sql_view_curren
t);
mysqli_query($conn,$validate_ticketne
xt);

$validate2 = $validate -> fetch_assoc();


DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

ticket_no='".$current_ticket."'
and window_no= 1 and department
} ='Registrar'";

} else if(isset($_POST['endtrans'])){ $result_endticket =

$sql_endticket= "update dashboard set mysqli_query($conn,$sql_endticket);


trans_status ='Finished' , window_no =
'' , window_no_finish='1' where // header("Refresh:0");
ticket_no='".$current_ticket."'
and window_no=1 and department echo '<script>alert("Ticket
='Registrar'"; Updated")</script>';

$result_endticket = // echo '<script type="text/javascript">',

mysqli_query($conn,$sql_endticket); // 'ding1();',
header("Refresh:0");
// '</script>';
echo '<script>alert("Ticket
Updated")</script>'; if($dept == 'Frontline'){

// echo '<script type="text/javascript">', //assigning of window

// 'ding1();', // $sql_getwindow = "Select


window_no from window_status where
// '</script>'; win_status ='Free' limit 1;";

} // $result_reports =
mysqli_query($conn,$sql_getwindow);

// $row = $result_reports->
else if(isset($_POST['transdept123'])){ fetch_assoc();

$Window = '';

$dept =

mysqli_real_escape_string($conn,$_PO $sql_getlast = "Select ticket_no from


ST[' dept']); dashboard where Department
='Frontline' and Trans_date =
$sql_endticket= "update dashboard set CURDATE() Order by ticket_no DESC
trans_status ='Finished' , window_no = limit 1;";
'' , window_no_finish='1' where
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

$result_last = $ticketsss = "Your Queue ticket # is


F00".$ticket_last."";
mysqli_query($conn,$sql_getlast);
echo
// $last = $result_last-> fetch_assoc(); "<script>alert('".$ticketsss."')</script>"
if(null!==$last = $result_last ;
->

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;";

$time = date('H:i:s'); $result_last =

$status= 'New'; mysqli_query($conn,$sql_getlast);

$last = $result_last-> fetch_assoc();

$insert_sql = 'INSERT $ticket_no = $last['ticket_no'];


INTO dashboard
VALUES("null","'.$Department.'", $ticket_formula = $ticket_no + 1;
"'.$ticket_last.'", "'.$Window.'",
"'.$date.'",

"'.$time.'", "'.$status.'","null")'; //$Name = $login_session;


mysqli_query($conn,$insert_sql);
$ticket_last = $ticket_formula;

$Department = 'Cashier';

$date = date('Y/m/d H:i:s');


DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

$time = date('H:i:s'); ='Scholarship' and Trans_date =


CURDATE() Order by ticket_no DESC
$status= 'New'; limit 1;";

$result_last =

$insert_sql = 'INSERT mysqli_query($conn,$sql_getlast);


INTO dashboard
VALUES("null","'.$Department.'", $last = $result_last-> fetch_assoc();
"'.$ticket_last.'", "'.$Window.'",
"'.$date.'", $ticket_no = $last['ticket_no'];

"'.$time.'", "'.$status.'","null")'; $ticket_formula = $ticket_no + 1;

mysqli_query($conn,$insert_sql); //$Name = $login_session;

$ticket_last = $ticket_formula;

$Department = 'Scholarship';

$ticketsss = "Your Queue ticket # is $date = date('Y/m/d H:i:s');


C00" . $ticket_last . "";
$time = date('H:i:s');
echo
"<script>alert('".$ticketsss."')</script>" $status= 'New';
;

$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);

$sql_getlast = "Select ticket_no from


dashboard where Department
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

$ticketsss = "Your Queue ticket # is id="endtrans"


S00" . $ticket_last . ""; name="endtrans" value="End">
&emsp; <input type="submit"
echo class="button2"
"<script>alert('".$ticketsss."')</script>"
; id="nexttrans" name="nexttrans"

value="Next" onclick="beep()">

} <h4 class="modal- <br><br></td>

title">Transfer</h4> </tr>

} </div> </table>

<div class="modal-body"> </form>

?> </center>

<div class="wrapper"> <center> <button class="button3"


id="alertbox"
<form action="" method="post"> name="tansfer1">Transfer Dept
</button> <Center>
<label
for="accslvl">Department</label>

<select name="dept" id="dept" <!-- Transfer of dept -->


class="form-control">
<div class="container">

<!-- Modal -->


<center><form method="POST">
<div class="modal fade" id="myModal"
<table> role="dialog">

<tr> <div class="modal-dialog">

<td font-

size="20px!important"><input <!-- Modal content-->


type="submit"
class="button1" <div class="modal-content">
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<div class="modal-header"> </div>

<button type="button" class="close" <script type="text/javascript"> function


table(){

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="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

}); <script src="sounds.js"


type="text/javascript"></script>

<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"); >

?> <link rel="stylesheet"


href="header.css">
<!DOCTYPE html>
<link rel="stylesheet"
<html lang="en"> href="buttons.css">

<head> <style>

<meta charset="UTF-8"> body{ font: 14px sans-serif; }

.wrapper{ width: 360px; padding:


20px; }
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

$sql_view_current= "Select ticket_no


from dashboard where trans_status ='In
</style> Transaction' and Department
='Scholarship' and Window_no = 1
<meta charset="UTF-8"> Order by id DESC limit 1;";

<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()){

<b><?php echo $login_session; $current_ticket =


?></b>! Welcome to
DYCIQ.</h1></marquee> $total_current['ticket_no'];

</div> }else{

$sql_view_current= "Select ticket_no


from dashboard where trans_status
<div class="navbar"> ='New' and Department ='Scholarship'
Order by id ASC limit 1;";
<a href="logout.php"
$result_current =
class="right">Logout</a>
mysqli_query($conn,$sql_view_current
</div> ); if(null!==$total_current =
$result_current

-> 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{ }

$current_ticket = null; else{

if(isset($_POST['nexttrans'])){ }

$ticket_next_formula = $current_ticket;

//echo $ticket_next; } $ticket_next =


$ticket_next_formula;
//get ticket next for validation
?> $sql_nextticket= "update dashboard
$validate_ticketnext= "Select ticket_no set
as ticket1 from dashboard where
ticket_no= '".$current_ticket."';"; trans_status ='In Transaction',
window_no =
$validate =

mysqli_query($conn,$validate_ticketne
xt); <br<br><br><br><br>

$validate2 = $validate -> fetch_assoc(); <center> <h1> Welcome to


Window Scholarship 1
//echo </h1></center>
'<script>alert("'.$validate2['ticket1'].'")
</scri pt>'; <br><br><br>

if(empty($validate2['ticket1'])){ <!-- <center> <h1>


Currently Serving
// echo $current_ticket;
</h1></center>
echo '<script>alert("There is no ticket in
que")</script>'; <center> <h2> CS #:
<?php //echo 'F00'.$current_ticket
?> </h2></center> -->
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

$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']);

$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
} else if(isset($_POST['endtrans'])){
='Scholarship'";
$sql_endticket= "update dashboard set
trans_status ='Finished' , window_no = $result_endticket =
'' , window_no_finish='1' where
mysqli_query($conn,$sql_endticket);

// 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

// echo '<script type="text/javascript">', $ticket_no = $last['ticket_no'];

// 'ding1();', $ticket_formula = $ticket_no + 1;

// '</script>'; }

if($dept == 'Frontline'){ //$Name = $login_session;

//assigning of window $ticket_last = $ticket_formula;

// $sql_getwindow = "Select $Department = 'Frontline';


window_no from window_status where
win_status ='Free' limit 1;"; $date = date('Y/m/d H:i:s');

// $result_reports = $time = date('H:i:s');


mysqli_query($conn,$sql_getwindow);
$status= 'New';
// $row = $result_reports->
fetch_assoc();

$Window = ''; $insert_sql = 'INSERT


INTO dashboard
VALUES("null","'.$Department.'",
"'.$ticket_last.'", "'.$Window.'",
$sql_getlast = "Select ticket_no from "'.$date.'",
dashboard where Department
='Frontline' "'.$time.'", "'.$status.'","null")';
mysqli_query($conn,$insert_sql);

and Trans_date = CURDATE() Order


by ticket_no DESC limit 1;";

$result_last = $ticketsss = "Your Queue ticket # is


F00".$ticket_last."";
mysqli_query($conn,$sql_getlast);
echo
// $last = $result_last-> fetch_assoc(); "<script>alert('".$ticketsss."')</script>"
if(null!==$last = $result_last ;
->

fetch_assoc()){
}
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

else if($dept == 'Cashier'){ VALUES("null","'.$Department.'",


"'.$ticket_last.'", "'.$Window.'",
//assigning of window "'.$date.'",

$Window = ''; "'.$time.'", "'.$status.'","null")';


mysqli_query($conn,$insert_sql);

$sql_getlast = "Select ticket_no from


dashboard where Department ='Cashier'
and Trans_date = CURDATE() Order
by ticket_no DESC limit 1;"; $ticketsss = "Your Queue ticket # is
C00" . $ticket_last . "";
$result_last =
echo
mysqli_query($conn,$sql_getlast); "<script>alert('".$ticketsss."')</script>"
;
$last = $result_last-> fetch_assoc();

$ticket_no = $last['ticket_no'];
}

else if($dept == 'Registrar'){


$ticket_formula = $ticket_no + 1;
//assigning of window

$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);

$last = $result_last-> fetch_assoc();


$insert_sql = 'INSERT
INTO dashboard $ticket_no = $last['ticket_no'];
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

$ticket_formula = $ticket_no + 1;

//$Name = $login_session;

$ticket_last = $ticket_formula; ?>

$Department = 'Registrar';

$date = date('Y/m/d H:i:s');

$time = date('H:i:s');

$status= 'New';

$insert_sql = 'INSERT <center><form method="POST">


INTO dashboard
VALUES("null","'.$Department.'", <table>
"'.$ticket_last.'", "'.$Window.'",
"'.$date.'", <tr>

"'.$time.'", "'.$status.'","null")'; <td font-


mysqli_query($conn,$insert_sql);
size="20px!important"><input
type="submit"
class="button1"

id="endtrans"
$ticketsss = "Your Queue ticket # is name="endtrans" value="End">
R00" . $ticket_last . ""; &emsp; <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>

</table> <div class="modal-body">

</form>

</center> <div class="wrapper">

<form action="" method="post">

<center> <button class="button3" <label


id="alertbox" for="accslvl">Department</label>
name="tansfer1">Transfer Dept
</button> <Center> <select name="dept" id="dept"
class="form-control">

<option
<!-- Transfer of dept --> value="Frontline">Frontline</option>

<div class="container"> <option


value="Cashier">Cashier</option>
<!-- Modal -->
<option
<div class="modal fade" id="myModal" value="Registrar">Registrar</option>
role="dialog">
</select>
<div class="modal-dialog">
</div>

<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">&times;</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>

<script type="text/javascript"> function </script>


table(){
<div id="table">
const xhttp = new XMLHttpRequest();
xhttp.onload = function(){

document.getElementById("table").inn </div>
erHT ML = this.responseText;

}
</body>
xhttp.open("GET",
"loadtable_realtime_scholarship.php"); </html>

xhttp.send();

} dash_win2_cashier.php

setInterval(function(){ table(); <?php

},1000);

include ("session.php");

?>

$(document).ready(function(){ <!DOCTYPE html>


DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<html lang="en"> body{ font: 14px sans-serif; }

<head> .wrapper{ width: 360px; padding:


20px; }
<meta charset="UTF-8">

<script src="sounds.js"
type="text/javascript"></script>

<title>WIN 2 DASHBOARD</title> </style>

<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">

<link rel="stylesheet" </head>

href="https://maxcdn.bootstrapcdn.com <body>
/boot
strap/3.3.7/css/bootstrap.min.css"> <div class="header">

<script <marquee><h1 class="my-5">Hi,


src="https://ajax.googleapis.com/ajax/li
bs/jq <b><?php echo $login_session;
uery/3.2.1/jquery.min.js"></script> ?></b>!

<script
src="https://maxcdn.bootstrapcdn.com/
boots </div>
trap/3.3.7/js/bootstrap.min.js"></script
>

<link rel="stylesheet" <div class="navbar">


href="header.css">
<a href="logout.php"
<link rel="stylesheet"
href="buttons.css"> class="right">Logout</a>

<style> </div>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

-> fetch_assoc()){

<?php $current_ticket =

//getting the current serving . $total_current['ticket_no'];

//$current_ticket= 0 //echo
'<script>alert("'.$current_ticket.'")</scr
ipt>';

$sql_view_current= "Select ticket_no }else{


from dashboard where trans_status ='In
Transaction' and Department ='Cashier' $current_ticket = null;
and Window_no = 2 Order by id DESC
limit 1;"; }

$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

<?php echo '<script>alert("There is no ticket in


que")</script>';
//function to end transaction on current
ticket //
mysqli_query($conn,$sql_view_curren
if($_SERVER['REQUEST_METHOD' t);
]
}
=== 'POST')
else{
if(isset($_POST['nexttrans'])){

$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

='Cashier'"; 2 where ticket_no='".$ticket_next."'


and department ='Cashier'";
$validate =
$sql_nextticket =
mysqli_query($conn,$validate_ticketne
xt); mysqli_query($conn,$sql_nextticket);
mysqli_query($conn,$sql_view_curren
$validate2 = $validate -> fetch_assoc(); t);

//echo
'<script>alert("'.$validate2['ticket1'].'")
</scri pt>';

if(empty($validate2['ticket1'])){ }

// echo $current_ticket; } else if(isset($_POST['endtrans'])){


DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

$sql_endticket= "update dashboard set // header("Refresh:0");


trans_status ='Finished' , window_no =
'', window_no_finish='2' where echo '<script>alert("Ticket
ticket_no='".$current_ticket."' Updated")</script>';
and window_no=2 and department
='Cashier'"; // echo '<script type="text/javascript">',

$result_endticket = // 'ding1();',

mysqli_query($conn,$sql_endticket);
header("Refresh:0");
// '</script>';
echo '<script>alert("Ticket
Updated")</script>'; if($dept == 'Frontline'){

// echo '<script type="text/javascript">', //assigning of window

// 'ding1();', // $sql_getwindow = "Select


window_no from window_status where
// '</script>'; win_status ='Free' limit 1;";

} // $result_reports =
mysqli_query($conn,$sql_getwindow);

// $row = $result_reports->
else if(isset($_POST['transdept123'])){ fetch_assoc();

$dept = $Window = '';

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

// $last = $result_last-> fetch_assoc();


if(null!==$last = $result_last
->

fetch_assoc()){ }

$ticket_no = $last['ticket_no']; else if($dept == 'Registrar'){

$ticket_formula = $ticket_no + 1; //assigning of window

} $Window = '';

//$Name = $login_session;

$ticket_last = $ticket_formula; $sql_getlast = "Select ticket_no from


dashboard where Department
$Department = 'Frontline'; ='Registrar' and Trans_date =
CURDATE() Order by ticket_no DESC
$date = date('Y-m-d H:i:s'); limit 1;";

$time =date("h:i:sa"); $result_last =

$status= 'New'; mysqli_query($conn,$sql_getlast);

$last = $result_last-> fetch_assoc();

$insert_sql = 'INSERT $ticket_no = $last['ticket_no'];


INTO dashboard
VALUES("null","'.$Department.'", $ticket_formula = $ticket_no + 1;
"'.$ticket_last.'", "'.$Window.'",
"'.$date.'",

"'.$time.'", "'.$status.'","null")'; //$Name = $login_session;


mysqli_query($conn,$insert_sql);
$ticket_last = $ticket_formula;

$Department = 'Registrar';

$date = date('Y-m-d H:i:s');


$ticketsss = "Your Queue ticket # is
F00".$ticket_last.""; $time =date("h:i:sa");

echo $status= 'New';


DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

mysqli_query($conn,$sql_getlast);

$insert_sql = 'INSERT $last = $result_last-> fetch_assoc();


INTO dashboard
VALUES("null","'.$Department.'", $ticket_no = $last['ticket_no'];
"'.$ticket_last.'", "'.$Window.'",
"'.$date.'", $ticket_formula = $ticket_no + 1;

"'.$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');

echo $time =date("h:i:sa");


"<script>alert('".$ticketsss."')</script>"
; $status= 'New';

} $insert_sql = 'INSERT
INTO dashboard
else if($dept == 'Scholarship'){ VALUES("null","'.$Department.'",
"'.$ticket_last.'", "'.$Window.'",
//assigning of window "'.$date.'",

$Window = ''; "'.$time.'", "'.$status.'","null")';


mysqli_query($conn,$insert_sql);

$sql_getlast = "Select ticket_no from

$ticketsss = "Your Queue ticket # is


and Trans_date = CURDATE() Order S00" . $ticket_last . "";
by ticket_no DESC limit 1;";
echo
$result_last = "<script>alert('".$ticketsss."')</script>"
;
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

&emsp; <input type="submit"


class="button2"
}
id="nexttrans" name="nexttrans"

value="Next" onclick="beep()">
}
<br><br></td>

</tr>

</table>
?>
</form>

</center>

<center> <button class="button3"


id="alertbox"
name="tansfer1">Transfer Dept
</button> <Center>

<!-- Transfer of dept -->

<center><form method="POST"> <div class="container">

<table> <!-- Modal -->

<tr> <div class="modal fade" id="myModal"


role="dialog">

<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

<button type="button" class="close" <input type="submit" class="btn btn-


data- primary" value="Submit"
dismiss="modal">&times;</button> id='transdept123' name='transdept123'>

<h4 class="modal- <div></center>

title">Transfer</h4> </form>

</div> </div>

<div class="modal-body">

</div>

<div class="wrapper">

<form action="" method="post"> </div>

<label </div>
for="accslvl">Department</label>

<select name="dept" id="dept"


class="form-control"> </div>

<option <script type="text/javascript"> function


value="Frontline">Frontline</option> table(){

const xhttp = new XMLHttpRequest();


xhttp.onload = function(){
<option
value="Registrar">Registrar</option>

<option document.getElementById("table").inn
value="Scholarship">Scholarship</opti erHT ML = this.responseText;
on>
}
</select>
xhttp.open("GET",
</div> "loadtable_realtime_cashier.php");

<center><div class="form-group"> xhttp.send();

}
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

setInterval(function(){ table(); <?php

},1000); include ("session.php");

?>

<!DOCTYPE html>

$(document).ready(function(){ <html lang="en">

$('#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

trap/3.3.7/js/bootstrap.min.js"></script <div class="navbar">


>
<a href="logout.php"
<link rel="stylesheet"
href="header.css"> class="right">Logout</a>

<link rel="stylesheet" </div>


href="buttons.css">

<style>
<?php
body{ font: 14px sans-serif; }
//getting the current serving .
.wrapper{ width: 360px; padding:
//$current_ticket= 0

$sql_view_current= "Select ticket_no


</style> from dashboard where trans_status ='In
Transaction' and Department
<meta charset="UTF-8"> ='Frontline' and Window_no = 2 Order
by id DESC limit 1;";
<meta name="viewport"
content="width=device-width, $result_current =
initial- scale=1">
mysqli_query($conn,$sql_view_current
</head> );

<body>

<div class="header"> if(null!==$total_current =


$result_current -> fetch_assoc()){
<marquee><h1 class="my-5">Hi,
$current_ticket =
<b><?php echo $login_session;
?></b>! Welcome to $total_current['ticket_no'];
DYCIQ.</h1></marquee>
}else{
</div>
$sql_view_current= "Select ticket_no
from dashboard where trans_status
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

='New' and Department ='Frontline'


Order by id ASC limit 1;";
<!-- <center> <h1>
$result_current = Currently Serving

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

$total_current['ticket_no']; //function to end transaction on current


ticket
//echo
'<script>alert("'.$current_ticket.'")</scr if($_SERVER['REQUEST_METHOD'
ipt>'; ]

}else{ === 'POST')

$current_ticket = null; if(isset($_POST['nexttrans'])){

//echo $ticket_next;

} //get ticket next for validation

?> $validate_ticketnext= "Select ticket_no


as ticket1 from dashboard where
ticket_no= '".$current_ticket."';";

<br<br><br><br><br> $validate =

<center> <h1> Welcome to mysqli_query($conn,$validate_ticketne


Window Frontine 2 </h1></center> xt);

<br><br><br> $validate2 = $validate -> fetch_assoc();


DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

//echo
'<script>alert("'.$validate2['ticket1'].'")
</scri pt>'; }

} else if(isset($_POST['endtrans'])){

if(empty($validate2['ticket1'])){ $sql_endticket= "update dashboard set


trans_status ='Finished' , window_no =
// echo $current_ticket; '' , window_no_finish='2' where
ticket_no='".$current_ticket."'
echo '<script>alert("There is no ticket in and window_no=2 and department =
que")</script>'; 'Frontline' ";

// $result_endticket =
mysqli_query($conn,$sql_view_curren
t); mysqli_query($conn,$sql_endticket);
header("Refresh:0");
}
echo '<script>alert("Ticket
else{ Updated")</script>';

// echo '<script type="text/javascript">',

$ticket_next_formula = $current_ticket; // 'ding1();',

$ticket_next = $ticket_next_formula; // '</script>';

$sql_nextticket= "update dashboard set }


trans_status ='In Transaction',
window_no =

2 where ticket_no='".$ticket_next."' else if(isset($_POST['transdept123'])){


and department = 'Frontline'";

$sql_nextticket =
$dept =
mysqli_query($conn,$sql_nextticket);
mysqli_query($conn,$sql_view_curren mysqli_real_escape_string($conn,$_PO
t); ST[' dept']);

$sql_endticket= "update dashboard set


trans_status ='Finished' , window_no =
'' , window_no_finish='2' where
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

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()){

// header("Refresh:0"); $ticket_no = $last['ticket_no'];

echo '<script>alert("Ticket $ticket_formula = $ticket_no + 1;


Updated")</script>';
}
// echo '<script type="text/javascript">',
//$Name = $login_session;
// 'ding1();',
$ticket_last = $ticket_formula;
// '</script>';
$Department = 'Cashier';
if($dept == 'Cashier'){

//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);

$sql_getlast = "Select ticket_no from


dashboard where Department ='Cashier'
and Trans_date = CURDATE() Order
by ticket_no DESC limit 1;";
$ticketsss = "Your Queue ticket # is
$result_last = C00".$ticket_last."";
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

echo $status= 'New';


"<script>alert('".$ticketsss."')</script>"
;

$insert_sql = 'INSERT
INTO dashboard
} VALUES("null","'.$Department.'",
"'.$ticket_last.'", "'.$Window.'",
else if($dept == 'Registrar'){ "'.$date.'",

//assigning of window

$Window = ''; mysqli_query($conn,$insert_sql);

$sql_getlast = "Select ticket_no from


dashboard where Department
='Registrar' and Trans_date = $ticketsss = "Your Queue ticket # is
CURDATE() Order by ticket_no DESC R00" . $ticket_last . "";
limit 1;";
echo
$result_last = "<script>alert('".$ticketsss."')</script>"
;
mysqli_query($conn,$sql_getlast);

$last = $result_last-> fetch_assoc();


}
$ticket_no = $last['ticket_no'];
else if($dept == 'Scholarship'){
$ticket_formula = $ticket_no + 1;
//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);

$last = $result_last-> fetch_assoc();


} <button type="button" class="close"
$ticket_no = $last['ticket_no'];
data-
$ticket_formula = $ticket_no + 1; dismiss="modal">&times;</button>

} <h4 class="modal-

//$Name = $login_session; title">Transfer</h4>

$ticket_last = $ticket_formula; ?> </div>

$Department = 'Scholarship'; <div class="modal-body">

$date = date('Y/m/d H:i:s');

$time = date('H:i:s');

$status= 'New';

$insert_sql = 'INSERT
INTO dashboard
VALUES("null","'.$Department.'",
"'.$ticket_last.'", "'.$Window.'",
"'.$date.'", <center><form method="POST">

"'.$time.'", "'.$status.'","null")'; <table>


mysqli_query($conn,$insert_sql);
<tr>

<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="endtrans" <div class="modal-content">


name="endtrans" value="End">
&emsp; <input type="submit" <div class="modal-header">
class="button2"

id="nexttrans" name="nexttrans"
<div class="wrapper">
value="Next" onclick="beep()">
<form action="" method="post">
<br><br></td>
<label
</tr> for="accslvl">Department</label>

</table> <select name="dept" id="dept"


class="form-control">
</form>
<option
</center> value="Frontline">Frontline</option>

<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>

<!-- Transfer of dept --> </div>

<div class="container"> <center><div class="form-group">

<!-- Modal --> <input type="submit" class="btn btn-


primary" value="Submit"
<div class="modal fade" id="myModal" id='transdept123' name='transdept123'>
role="dialog">
<div></center>
<div class="modal-dialog">
</form>

</div>
<!-- Modal content-->
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

</div> $('#alertbox').click(function(){

</div> $('#myModal').modal("show");

</div> });

});

</div>

<script type="text/javascript"> function </script>


table(){
<div id="table">
const xhttp = new XMLHttpRequest();
xhttp.onload = function(){

document.getElementById("table").inn </div>
erHT ML = this.responseText;

</body>
xhttp.open("GET",
"loadtable_realtime_frontline.php"); </html>

xhttp.send();

} dash_win2_cashier.php

setInterval(function(){ table(); <?php

},1000); include ("session.php");

?>

<!DOCTYPE html>

$(document).ready(function(){ <html lang="en">


DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<head> body{ font: 14px sans-serif; }

<meta charset="UTF-8"> .wrapper{ width: 360px; padding:


20px; }

</style>
<script src="sounds.js"
type="text/javascript"></script> <meta charset="UTF-8">

<title>WIN 1 DASHBOARD</title> <meta name="viewport"


content="width=device-width,
<meta charset="utf-8"> initial- scale=1">

<meta name="viewport" </head>


content="width=device-width,
initial- <body>

<div class="header">

<link rel="stylesheet" <marquee><h1 class="my-5">Hi,

href="https://maxcdn.bootstrapcdn.com <b><?php echo $login_session;


/boot ?></b>! Welcome to
strap/3.3.7/css/bootstrap.min.css"> DYCIQ.</h1></marquee>

<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">

<link rel="stylesheet" <?php


href="buttons.css">
//getting the current serving .
<style>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

//$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;

//get ticket next for validation


if(null!==$total_current =
$result_current -> fetch_assoc()){ $validate_ticketnext= "Select ticket_no
as ticket1 from dashboard where
$current_ticket = ticket_no= '".$current_ticket."';";

$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'])){

-> fetch_assoc()){ // echo $current_ticket;

$current_ticket = echo '<script>alert("There is no ticket in


que")</script>';
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

//
mysqli_query($conn,$sql_view_curren
t);

} <?php

else{ //function to end transaction on current


ticket

if($_SERVER['REQUEST_METHOD'
} ]

$ticket_next_formula = $current_ticket; === 'POST')

} $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>

<center> <h1> Welcome to


Window Scholarship 1
</h1></center>

<br><br><br> }

} else if(isset($_POST['endtrans'])){

<!-- <center> <h1> $sql_endticket= "update dashboard set


Currently Serving trans_status ='Finished' , window_no =
'', window_no_finish = 2 where
</h1></center> ticket_no='".$current_ticket."'
and
<center> <h2> CS #:
<?php //echo 'F00'.$current_ticket
?> </h2></center> -->
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

window_no=2 and department echo '<script>alert("Ticket


Updated")</script>';
='Scholarship'";
// echo '<script type="text/javascript">',
$result_endticket =
// 'ding1();',
mysqli_query($conn,$sql_endticket);
header("Refresh:0"); // '</script>';

echo '<script>alert("Ticket if($dept == 'Frontline'){


Updated")</script>';
//assigning of window
// echo '<script type="text/javascript">',
// $sql_getwindow = "Select
// 'ding1();', window_no from window_status where
win_status ='Free' limit 1;";
// '</script>';
// $result_reports =
} mysqli_query($conn,$sql_getwindow);

// $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

$sql_endticket= "update dashboard set


trans_status ='Finished' , window_no =
'' , window_no_finish = 2 where and Trans_date = CURDATE() Order
by ticket_no DESC limit 1;";
ticket_no='".$current_ticket."' and
window_no= 2 and department $result_last =

='Scholarship'"; mysqli_query($conn,$sql_getlast);

$result_endticket = // $last = $result_last-> fetch_assoc();


if(null!==$last = $result_last
mysqli_query($conn,$sql_endticket); ->

// header("Refresh:0"); fetch_assoc()){
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

$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


dashboard where Department ='Cashier'
$Department = 'Frontline'; and Trans_date = CURDATE() Order
by ticket_no DESC limit 1;";
$date = date('Y/m/d H:i:s');
$result_last =
$time = date('H:i:s');
mysqli_query($conn,$sql_getlast);
$status= 'New';
$last = $result_last-> fetch_assoc();

$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';

$date = date('Y/m/d H:i:s');

$ticketsss = "Your Queue ticket # is $time = date('H:i:s');


F00".$ticket_last."";
$status= 'New';
echo
"<script>alert('".$ticketsss."')</script>"
;
$insert_sql = 'INSERT
INTO dashboard
VALUES("null","'.$Department.'",
}
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

"'.$ticket_last.'", "'.$Window.'", $ticket_formula = $ticket_no + 1;


"'.$date.'",

"'.$time.'", "'.$status.'","null")';
mysqli_query($conn,$insert_sql); //$Name = $login_session;

$ticket_last = $ticket_formula;

$Department = 'Registrar';

$ticketsss = "Your Queue ticket # is $date = date('Y/m/d H:i:s');


C00" . $ticket_last . "";
$time = date('H:i:s');
echo
"<script>alert('".$ticketsss."')</script>" $status= 'New';
;

}
$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);

$sql_getlast = "Select ticket_no from


dashboard where Department
='Registrar' and Trans_date =
CURDATE() Order by ticket_no DESC
limit 1;"; $ticketsss = "Your Queue ticket # is
R00" . $ticket_last . "";
$result_last =
echo
mysqli_query($conn,$sql_getlast); "<script>alert('".$ticketsss."')</script>"
;
$last = $result_last-> fetch_assoc();

$ticket_no = $last['ticket_no'];
}
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

</tr>

} </table>

</form>

?> </center>

<center> <button class="button3"


id="alertbox"
name="tansfer1">Transfer Dept
</button> <Center>

<!-- Transfer of dept -->

<div class="container">
<center><form method="POST">
<!-- Modal -->
<table>
<div class="modal fade" id="myModal"
<tr> role="dialog">

<td font- <div class="modal-dialog">

size="20px!important"><input
type="submit"
class="button1" <!-- Modal content-->

id="endtrans" <div class="modal-content">


name="endtrans" value="End">
&emsp; <input type="submit" <div class="modal-header">
class="button2"
<button type="button" class="close"
id="nexttrans" name="nexttrans" data-
dismiss="modal">&times;</button>
value="Next" onclick="beep()">
<h4 class="modal-
<br><br></td>
title">Transfer</h4>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

</div> </div>

<div class="modal-body">

</div>

<div class="wrapper"> </div>

<form action="" method="post">

<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

$('#alertbox').click(function(){ <html lang="en">

<head>

$('#myModal').modal("show"); <meta charset="UTF-8">

});

}); <script src="sounds.js"


type="text/javascript"></script>

<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">

<!DOCTYPE html> <style>


DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

body{ font: 14px sans-serif; }

.wrapper{ width: 360px; padding: <?php


20px; }
//getting the current serving .

//$current_ticket= 0

$sql_view_current= "Select ticket_no


</style> from dashboard where trans_status ='In
Transaction' and Department ='Cashier'
<meta charset="UTF-8"> and Window_no = 3 Order by id DESC
limit 1;";
<meta name="viewport"
content="width=device-width, $result_current =
initial- scale=1">
mysqli_query($conn,$sql_view_current
</head> );

<body>

<div class="header"> if(null!==$total_current =


$result_current -> fetch_assoc()){
<marquee><h1 class="my-5">Hi,
$current_ticket =
<b><?php echo $login_session;
?></b>! $total_current['ticket_no'];

}else{

</div> $sql_view_current= "Select ticket_no


from dashboard where trans_status
='New' and Department ='Cashier'
Order by id ASC limit 1;";
<div class="navbar">
$result_current =
<a href="logout.php"
mysqli_query($conn,$sql_view_current
class="right">Logout</a> ); if(null!==$total_current =
$result_current
</div>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

-> fetch_assoc()){ <?php

$current_ticket = //function to end transaction on current


ticket
$total_current['ticket_no'];
if($_SERVER['REQUEST_METHOD'
//echo ]
'<script>alert("'.$current_ticket.'")</scr
ipt>'; === 'POST')

}else{ if(isset($_POST['nexttrans'])){

$current_ticket = null;

} //echo $ticket_next;

//get ticket next for validation

} $validate_ticketnext= "Select ticket_no


as ticket1 from dashboard where
?> ticket_no= '".$current_ticket."';";

$validate =

<center> <h1> Welcome to mysqli_query($conn,$validate_ticketne


Window Cashier 3 </h1></center> xt);

<br><br><br> $validate2 = $validate -> fetch_assoc();

//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

// and window_no=3 and department


mysqli_query($conn,$sql_view_curren ='Cashier'";
t);
$result_endticket =
}
mysqli_query($conn,$sql_endticket);
else{ header("Refresh:0");

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

echo '<script>alert("Ticket fetch_assoc()){


Updated")</script>';
$ticket_no = $last['ticket_no'];
// echo '<script type="text/javascript">',
$ticket_formula = $ticket_no + 1;
// 'ding1();',
}

//$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);

// $row = $result_reports-> $insert_sql = 'INSERT


fetch_assoc(); INTO dashboard
VALUES("null","'.$Department.'",
$Window = ''; "'.$ticket_last.'", "'.$Window.'",
"'.$date.'",

"'.$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;";

$result_last = $ticketsss = "Your Queue ticket # is


F00".$ticket_last."";
mysqli_query($conn,$sql_getlast);
echo
// $last = $result_last-> fetch_assoc();
if(null!==$last = $result_last
->
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

} $insert_sql = 'INSERT
INTO dashboard
else if($dept == 'Registrar'){ VALUES("null","'.$Department.'",
"'.$ticket_last.'", "'.$Window.'",
//assigning of window "'.$date.'",

$Window = ''; "'.$time.'", "'.$status.'","null")';


mysqli_query($conn,$insert_sql);

$sql_getlast = "Select ticket_no from


dashboard where Department
='Registrar' and Trans_date =
CURDATE() Order by ticket_no DESC $ticketsss = "Your Queue ticket # is
limit 1;"; R00" . $ticket_last . "";

$result_last = echo
"<script>alert('".$ticketsss."')</script>"
mysqli_query($conn,$sql_getlast); ;

$last = $result_last-> fetch_assoc();

$ticket_no = $last['ticket_no']; }

$ticket_formula = $ticket_no + 1; else if($dept == 'Scholarship'){

//assigning of window

//$Name = $login_session; $Window = '';

$ticket_last = $ticket_formula;

$Department = 'Registrar'; $sql_getlast = "Select ticket_no from

$date = date('Y-m-d H:i:s');

$time =date("h:i:sa"); and Trans_date = CURDATE() Order


by ticket_no DESC limit 1;";
$status= 'New';
$result_last =

mysqli_query($conn,$sql_getlast);
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

$last = $result_last-> fetch_assoc(); }

$ticket_no = $last['ticket_no'];

$ticket_formula = $ticket_no + 1; }

//$Name = $login_session; ?>

$ticket_last = $ticket_formula;

$Department = 'Scholarship';

$date = date('Y-m-d H:i:s');

$time =date("h:i:sa");

$status= 'New';

$insert_sql = 'INSERT <center><form method="POST">


INTO dashboard
VALUES("null","'.$Department.'", <table>
"'.$ticket_last.'", "'.$Window.'",
"'.$date.'", <tr>

"'.$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 &emsp; <input type="submit"
"<script>alert('".$ticketsss."')</script>" class="button2"
;
id="nexttrans" name="nexttrans"
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

value="Next" onclick="beep()"> title">Transfer</h4>

<br><br></td> </div>

</tr> <div class="modal-body">

</table>

</form> <div class="wrapper">

</center> <form action="" method="post">

<center> <button class="button3" <label


id="alertbox" for="accslvl">Department</label>
name="tansfer1">Transfer Dept
</button> <Center> <select name="dept" id="dept"
class="form-control">

<option
<!-- Transfer of dept --> value="Frontline">Frontline</option>

<div class="container">

<!-- Modal --> <option


value="Registrar">Registrar</option>
<div class="modal fade" id="myModal"
role="dialog"> <option
value="Scholarship">Scholarship</opti
<div class="modal-dialog"> on>

</select>

<!-- Modal content--> </div>

<div class="modal-content"> <center><div class="form-group">

<div class="modal-header"> <input type="submit" class="btn btn-


primary" value="Submit"
<button type="button" class="close" id='transdept123' name='transdept123'>
data-
dismiss="modal">&times;</button> <div></center>

<h4 class="modal- </form>


DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

</div>

$(document).ready(function(){

</div> $('#alertbox').click(function(){

</div> $('#myModal').modal("show");

</div>

});

</div>

<script type="text/javascript"> function </script>


table(){
<div id="table">
const xhttp = new XMLHttpRequest();
xhttp.onload = function(){

document.getElementById("table").inn </div>
erHT ML = this.responseText;

}
</body>
xhttp.open("GET",
"loadtable_realtime_cashier.php"); </html>

xhttp.send();

} dash_win3_frontline.php

setInterval(function(){ table(); <?php

},1000); include ("session.php");

?>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<!DOCTYPE html> <style>

<html lang="en"> body{ font: 14px sans-serif; }

<head> .wrapper{ width: 360px; padding:

<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">

<link rel="stylesheet" <a href="logout.php"


href="header.css">
class="right">Logout</a>
<link rel="stylesheet"
href="buttons.css"> </div>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

-> fetch_assoc()){

<?php $current_ticket =

//getting the current serving . $total_current['ticket_no'];

//$current_ticket= 0 //echo
'<script>alert("'.$current_ticket.'")</scr
ipt>';

$sql_view_current= "Select ticket_no }else{


from dashboard where trans_status ='In
Transaction' and Department $current_ticket = null;
='Frontline' and Window_no = 3 Order
by id DESC limit 1;"; }

$result_current =

mysqli_query($conn,$sql_view_current }
);
?>

if(null!==$total_current =
$result_current -> fetch_assoc()){ <br<br><br><br><br>

$current_ticket = <center> <h1> Welcome to


Window Frontline 3 </h1></center>
$total_current['ticket_no'];
<br><br><br>
}else{

$sql_view_current= "Select ticket_no


from dashboard where trans_status <!-- <center> <h1>
='New' and Department ='Frontline' Currently Serving
Order by id ASC limit 1;";
</h1></center>
$result_current =
<center> <h2> CS #:
<?php //echo 'F00'.$current_ticket
?> </h2></center> -->
if(null!==$total_current =
$result_current
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

//
mysqli_query($conn,$sql_view_curren
<?php t);

//function to end transaction on current }


ticket
else{
if($_SERVER['REQUEST_METHOD'
]

=== 'POST') $ticket_next_formula = $current_ticket;

if(isset($_POST['nexttrans'])){ $ticket_next = $ticket_next_formula;

$sql_nextticket= "update dashboard set


trans_status ='In Transaction',
//echo $ticket_next; window_no =

//get ticket next for validation 3 where ticket_no='".$ticket_next."'


and department ='Frontline'";
$validate_ticketnext= "Select ticket_no
as ticket1 from dashboard where $sql_nextticket =
ticket_no= '".$current_ticket."';";
mysqli_query($conn,$sql_nextticket);
$validate = mysqli_query($conn,$sql_view_curren
t);
mysqli_query($conn,$validate_ticketne
xt);

$validate2 = $validate -> fetch_assoc();

//echo
'<script>alert("'.$validate2['ticket1'].'")
</scri pt>'; }

} else if(isset($_POST['endtrans'])){

if(empty($validate2['ticket1'])){ $sql_endticket= "update dashboard set


trans_status ='Finished' , window_no =
// echo $current_ticket; '', window_no_finish = 3 where
ticket_no='".$current_ticket."'
echo '<script>alert("There is no ticket in and window_no=3 and department
que")</script>'; ='Frontline'";
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

$result_endticket = // echo '<script type="text/javascript">',

mysqli_query($conn,$sql_endticket); // 'ding1();',
header("Refresh:0");
// '</script>';
echo '<script>alert("Ticket
Updated")</script>'; if($dept == 'Cashier'){

// echo '<script type="text/javascript">', //assigning of window

// 'ding1();', // $sql_getwindow = "Select


window_no from window_status where
// '</script>'; win_status ='Free' limit 1;";

} // $result_reports =
mysqli_query($conn,$sql_getwindow);

// $row = $result_reports->
else if(isset($_POST['transdept123'])){ fetch_assoc();

$Window = '';

$dept =

mysqli_real_escape_string($conn,$_PO $sql_getlast = "Select ticket_no from


ST[' dept']); dashboard where Department ='Cashier'
and Trans_date = CURDATE() Order
$sql_endticket= "update dashboard set by ticket_no DESC limit 1;";
trans_status ='Finished' , window_no =
'' , window_no_finish='3' where $result_last =
ticket_no='".$current_ticket."'
and window_no= 3 and department = mysqli_query($conn,$sql_getlast);
'Frontline'";
// $last = $result_last-> fetch_assoc();
$result_endticket = if(null!==$last = $result_last
->
mysqli_query($conn,$sql_endticket);
fetch_assoc()){
// header("Refresh:0");
$ticket_no = $last['ticket_no'];
echo '<script>alert("Ticket
Updated")</script>'; $ticket_formula = $ticket_no + 1;
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

} $Window = '';

//$Name = $login_session;

$ticket_last = $ticket_formula; $sql_getlast = "Select ticket_no from


dashboard where Department
$Department = 'Cashier'; ='Registrar' and Trans_date =
CURDATE() Order by ticket_no DESC
limit 1;";

$time = date('H:i:s'); $result_last =

$status= 'New'; mysqli_query($conn,$sql_getlast);

$last = $result_last-> fetch_assoc();

$insert_sql = 'INSERT $ticket_no = $last['ticket_no'];


INTO dashboard
VALUES("null","'.$Department.'", $ticket_formula = $ticket_no + 1;
"'.$ticket_last.'", "'.$Window.'",
"'.$date.'",

"'.$time.'", "'.$status.'","null")'; //$Name = $login_session;


mysqli_query($conn,$insert_sql);
$ticket_last = $ticket_formula;

$Department = 'Registrar';

$date = date('Y/m/d H:i:s');


$ticketsss = "Your Queue ticket # is
C00".$ticket_last.""; $time = date('H:i:s');

echo $status= 'New';


"<script>alert('".$ticketsss."')</script>"
;

$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

mysqli_query($conn,$insert_sql); //$Name = $login_session;

$ticket_last = $ticket_formula;

$Department = 'Scholarship';

$ticketsss = "Your Queue ticket # is $date = date('Y/m/d H:i:s');


R00" . $ticket_last . "";
$time = date('H:i:s');
echo
"<script>alert('".$ticketsss."')</script>" $status= 'New';
;

$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);

$sql_getlast = "Select ticket_no from


dashboard where Department
='Scholarship' and Trans_date = $ticketsss = "Your Queue ticket # is
CURDATE() Order by ticket_no DESC S00" . $ticket_last . "";
limit 1;";
echo
$result_last =
"<script>alert('".$ticketsss."')</script>"
mysqli_query($conn,$sql_getlast); ;

$last = $result_last-> fetch_assoc();

$ticket_no = $last['ticket_no']; } <h4 class="modal-

$ticket_formula = $ticket_no + 1; title">Transfer</h4>

} </div>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<div class="modal-body"> </form>

?> </center>

<div class="wrapper"> <center> <button class="button3"


id="alertbox"
<form action="" method="post"> name="tansfer1">Transfer Dept
</button> <Center>
<label
for="accslvl">Department</label>

<select name="dept" id="dept" <!-- Transfer of dept -->


class="form-control">
<div class="container">

<!-- Modal -->


<center><form method="POST">
<div class="modal fade" id="myModal"
<table> role="dialog">

<tr> <div class="modal-dialog">

<td font-

size="20px!important"><input <!-- Modal content-->


type="submit"
class="button1" <div class="modal-content">

id="endtrans" <div class="modal-header">


name="endtrans" value="End">
&emsp; <input type="submit" <button type="button" class="close"
class="button2"

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>

<center><div class="form-group"> xhttp.send();

<input type="submit" class="btn btn- }


primary" value="Submit"
id='transdept123' name='transdept123'>

<div></center> setInterval(function(){ table();

</form> },1000);

</div>

</div> $(document).ready(function(){

$('#alertbox').click(function(){

</div>

</div> $('#myModal').modal("show");

});

</div> });

<script type="text/javascript"> function


table(){
</script>
const xhttp = new XMLHttpRequest();
xhttp.onload = function(){ <div id="table">

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">

<html lang="en"> <link rel="stylesheet"


href="buttons.css">
<head>
<style>
<meta charset="UTF-8">
body{ font: 14px sans-serif; }

.wrapper{ width: 360px; padding:


<script src="sounds.js" 20px; }
type="text/javascript"></script>

<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 class="header"> mysqli_query($conn,$sql_view_current


);
<marquee><h1 class="my-5">Hi,

<b><?php echo $login_session;


?></b>! Welcome to if(null!==$total_current =
DYCIQ.</h1></marquee> $result_current -> fetch_assoc()){

</div> $current_ticket =

$total_current['ticket_no'];

<div class="navbar"> }else{

<a href="logout.php" $sql_view_current= "Select ticket_no


from dashboard where trans_status
class="right">Logout</a> ='New' and Department ='Registrar'
Order by id ASC limit 1;";
</div>
$result_current =

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{

and Window_no = 3 Order by id DESC $current_ticket = null;


limit 1;";

$result_current =
if($_SERVER['REQUEST_METHOD'
]
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

=== 'POST') }

if(isset($_POST['nexttrans'])){ $ticket_next_formula = $current_ticket;

} $ticket_next =
$ticket_next_formula;
//echo $ticket_next;
?> $sql_nextticket= "update dashboard
//get ticket next for validation set

$validate_ticketnext= "Select ticket_no trans_status ='In Transaction',


as ticket1 from dashboard where window_no =
ticket_no= '".$current_ticket."';";

$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>

// echo $current_ticket; <center> <h2> CS #:


<?php //echo 'F00'.$current_ticket
echo '<script>alert("There is no ticket in ?> </h2></center> -->
que")</script>';

//
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']);

$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
='Registrar'";
}
$result_endticket =
} else if(isset($_POST['endtrans'])){
mysqli_query($conn,$sql_endticket);
$sql_endticket= "update dashboard set
// header("Refresh:0");

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'){

echo '<script>alert("Ticket //assigning of window


Updated")</script>';
// $sql_getwindow = "Select
// echo '<script type="text/javascript">', window_no from window_status where
win_status ='Free' limit 1;";
// 'ding1();',
// $result_reports =
// '</script>'; mysqli_query($conn,$sql_getwindow);

}
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()){ }

$ticket_no = $last['ticket_no']; else if($dept == 'Frontline'){

$ticket_formula = $ticket_no + 1; //assigning of window

} $Window = '';

//$Name = $login_session;

$ticket_last = $ticket_formula; $sql_getlast = "Select ticket_no from


dashboard where Department
$Department = 'Cashier'; ='Frontline' and Trans_date =
CURDATE() Order by ticket_no DESC
$date = date('Y/m/d H:i:s'); limit 1;";

$time = date('H:i:s'); $result_last =

$status= 'New'; mysqli_query($conn,$sql_getlast);


DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

$last = $result_last-> fetch_assoc();

$ticket_no = $last['ticket_no']; }

else if($dept == 'Scholarship'){

$ticket_formula = $ticket_no + 1; //assigning of window

$Window = '';

//$Name = $login_session;

$ticket_last = $ticket_formula; $sql_getlast = "Select ticket_no from


dashboard where Department
$Department = 'Frontline'; ='Scholarship' and Trans_date =
CURDATE() Order by ticket_no DESC
$date = date('Y/m/d H:i:s'); limit 1;";

$time = date('H:i:s'); $result_last =

$status= 'New'; mysqli_query($conn,$sql_getlast);

$last = $result_last-> fetch_assoc();

$insert_sql = 'INSERT $ticket_no = $last['ticket_no'];


INTO dashboard
VALUES("null","'.$Department.'", $ticket_formula = $ticket_no + 1;
"'.$ticket_last.'", "'.$Window.'",
"'.$date.'",

"'.$time.'", "'.$status.'","null")'; //$Name = $login_session;


mysqli_query($conn,$insert_sql);
$ticket_last = $ticket_formula;

$Department = 'Scholarship';

$date = date('Y/m/d H:i:s');


$ticketsss = "Your Queue ticket # is
R00" . $ticket_last . ""; $time = date('H:i:s');

echo $status= 'New';


"<script>alert('".$ticketsss."')</script>"
;
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

$insert_sql = 'INSERT <center><form method="POST">


INTO dashboard
VALUES("null","'.$Department.'", <table>
"'.$ticket_last.'", "'.$Window.'",
"'.$date.'", <tr>

"'.$time.'", "'.$status.'","null")'; <td font-


mysqli_query($conn,$insert_sql);
size="20px!important"><input
type="submit"
class="button1"

id="endtrans"
$ticketsss = "Your Queue ticket # is name="endtrans" value="End">
S00" . $ticket_last . ""; &emsp; <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>
?>

<center> <button class="button3"


id="alertbox"
name="tansfer1">Transfer Dept
</button> <Center>

<!-- Transfer of dept -->


DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<div class="container"> <option


value="Registrar">Registrar</option>
<!-- Modal -->
<option
<div class="modal fade" id="myModal" value="Scholarship">Scholarship</opti
role="dialog"> on>

<div class="modal-dialog"> </select>

</div>

<!-- Modal content--> <center><div class="form-group">

<div class="modal-content"> <input type="submit" class="btn btn-


primary" value="Submit"
<div class="modal-header"> id='transdept123' name='transdept123'>

<button type="button" class="close" <div></center>


data-
dismiss="modal">&times;</button> </form>

<h4 class="modal- </div>

title">Transfer</h4>

</div> </div>

<div class="modal-body">

</div>

<div class="wrapper"> </div>

<form action="" method="post">

<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

setInterval(function(){ table(); <?php

},1000);

include ("session.php");

?>

$(document).ready(function(){ <!DOCTYPE html>

$('#alertbox').click(function(){ <html lang="en">

<head>

$('#myModal').modal("show"); <meta charset="UTF-8">

});

}); <script src="sounds.js"


type="text/javascript"></script>

<title>WIN 1 DASHBOARD</title>
</script>
<meta charset="utf-8">
<div id="table">
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<meta name="viewport" <meta name="viewport"


content="width=device-width, content="width=device-width,
initial- scale=1"> initial- scale=1">

<link rel="stylesheet" </head>

href="https://maxcdn.bootstrapcdn.com <body>
/boot
strap/3.3.7/css/bootstrap.min.css"> <div class="header">

<script <marquee><h1 class="my-5">Hi,


src="https://ajax.googleapis.com/ajax/li
bs/jq <b><?php echo $login_session;
uery/3.2.1/jquery.min.js"></script> ?></b>!

<script
src="https://maxcdn.bootstrapcdn.com/
boots </div>
trap/3.3.7/js/bootstrap.min.js"></script
>

<link rel="stylesheet" <div class="navbar">


href="header.css">
<a href="logout.php"
<link rel="stylesheet"
href="buttons.css"> class="right">Logout</a>

<style> </div>

body{ font: 14px sans-serif; }

.wrapper{ width: 360px; padding: <?php


20px; }
//getting the current serving .

//$current_ticket= 0

$sql_view_current= "Select ticket_no


</style> from dashboard where trans_status ='In
Transaction' and Department
<meta charset="UTF-8">
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

='Scholarship' and Window_no = 3 }


Order by id DESC limit 1;";

$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{

$sql_view_current= "Select ticket_no


from dashboard where trans_status <!-- <center> <h1>
='New' and Department ='Scholarship' Currently Serving
Order by id ASC limit 1;";
</h1></center>
$result_current =
<center> <h2> CS #:
mysqli_query($conn,$sql_view_current <?php //echo 'F00'.$current_ticket
); if(null!==$total_current = ?> </h2></center> -->
$result_current

-> 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

if(isset($_POST['nexttrans'])){ $ticket_next = $ticket_next_formula;

$sql_nextticket= "update dashboard set

//echo $ticket_next;

//get ticket next for validation 3 where ticket_no='".$ticket_next."'


and department ='Scholarship'";
$validate_ticketnext= "Select ticket_no
as ticket1 from dashboard where $sql_nextticket =
ticket_no= '".$current_ticket."';";
mysqli_query($conn,$sql_nextticket);
$validate = mysqli_query($conn,$sql_view_curren
t);
mysqli_query($conn,$validate_ticketne
xt);

$validate2 = $validate -> fetch_assoc();

//echo
'<script>alert("'.$validate2['ticket1'].'")
</scri pt>'; }

} else if(isset($_POST['endtrans'])){

if(empty($validate2['ticket1'])){ $sql_endticket= "update dashboard set


trans_status ='Finished' , window_no =
// echo $current_ticket; '', window_no_fisnih = 3
where ticket_no='".$current_ticket."'
echo '<script>alert("There is no ticket in and window_no=3
que")</script>'; and department

// ='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>';

$ticket_next_formula = $current_ticket; // echo '<script type="text/javascript">',


DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

// 'ding1();', // $sql_getwindow = "Select


window_no from window_status where
// '</script>'; win_status ='Free' limit 1;";

} // $result_reports =
mysqli_query($conn,$sql_getwindow);

// $row = $result_reports->
else if(isset($_POST['transdept123'])){ fetch_assoc();

$dept = $Window = '';

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);

$result_endticket = // $last = $result_last-> fetch_assoc();


if(null!==$last = $result_last
mysqli_query($conn,$sql_endticket); ->

// header("Refresh:0"); fetch_assoc()){

echo '<script>alert("Ticket $ticket_no = $last['ticket_no'];

$ticket_formula = $ticket_no + 1;

// echo '<script type="text/javascript">', }

// 'ding1();', //$Name = $login_session;

// '</script>'; $ticket_last = $ticket_formula;

if($dept == 'Frontline'){ $Department = 'Frontline';

//assigning of window $date = date('Y/m/d H:i:s');


DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

$time = date('H:i:s'); $result_last =

$status= 'New'; mysqli_query($conn,$sql_getlast);

$last = $result_last-> fetch_assoc();

$insert_sql = 'INSERT $ticket_no = $last['ticket_no'];


INTO dashboard
VALUES("null","'.$Department.'", $ticket_formula = $ticket_no + 1;
"'.$ticket_last.'", "'.$Window.'",
"'.$date.'",

"'.$time.'", "'.$status.'","null")'; //$Name = $login_session;


mysqli_query($conn,$insert_sql);
$ticket_last = $ticket_formula;

$Department = 'Cashier';

$date = date('Y/m/d H:i:s');


$ticketsss = "Your Queue ticket # is
$time = date('H:i:s');

$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 = '';

$sql_getlast = "Select ticket_no from $ticketsss = "Your Queue ticket # is


dashboard where Department ='Cashier' C00" . $ticket_last . "";
and Trans_date = CURDATE() Order
by ticket_no DESC limit 1;";
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

echo $status= 'New';


"<script>alert('".$ticketsss."')</script>"
;

$insert_sql = 'INSERT
INTO dashboard
} VALUES("null","'.$Department.'",
"'.$ticket_last.'", "'.$Window.'",
else if($dept == 'Registrar'){ "'.$date.'",

//assigning of window "'.$time.'", "'.$status.'","null")';


mysqli_query($conn,$insert_sql);
$Window = '';

$sql_getlast = "Select ticket_no from


dashboard where Department $ticketsss = "Your Queue ticket # is
='Registrar' and Trans_date = R00" . $ticket_last . "";
CURDATE() Order by ticket_no DESC
limit 1;"; echo
"<script>alert('".$ticketsss."')</script>"
$result_last = ;

mysqli_query($conn,$sql_getlast);

$last = $result_last-> fetch_assoc(); }

$ticket_no = $last['ticket_no'];

$ticket_formula = $ticket_no + 1; }

//$Name = $login_session; ?>

$ticket_last = $ticket_formula;

$Department = 'Registrar';

$date = date('Y/m/d H:i:s');

$time = date('H:i:s');
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<div class="container">

<!-- Modal -->

<center><form method="POST"> <div class="modal fade" id="myModal"


role="dialog">

<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"
&emsp; <input type="submit" data-
class="button2" dismiss="modal">&times;</button>

id="nexttrans" name="nexttrans" <h4 class="modal-

value="Next" onclick="beep()"> title">Transfer</h4>

<br><br></td> </div>

</tr> <div class="modal-body">

</table>

</form> <div class="wrapper">

</center> <form action="" method="post">

<center> <button class="button3" <label


id="alertbox" for="accslvl">Department</label>
name="tansfer1">Transfer Dept
</button> <Center> <select name="dept" id="dept"
class="form-control">

<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"> }

<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>

});

</div>

<script type="text/javascript"> function </script>


table(){
<div id="table">
const xhttp = new XMLHttpRequest();
xhttp.onload = function(){
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<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 {

margin: 0px; display: flex;


<!DOCTYPE html>
flex-direction: column;
<html lang="en">

<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;

<meta content="Default font-size: 16px;


page" name="description">
font-family: 'DM Sans', sans-serif; font-
<meta content="width=device- weight: 400;
width, initial-scale=1"
name="viewport"> letter-spacing: 0px; text-align: center;
vertical-align: top; max-width: 550px;
<link rel="preconnect" color: #727586; margin: 0px;
href="https://fonts.googleapis.com">
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

} margin-bottom: 32px;

a:hover { }

cursor: pointer; color: #673DE6; .link {

text-decoration: underline; display: flex;

} flex-direction: row; align-items: center;


justify-content: center;
h1 {
font-family: 'DM Sans', sans-serif; font-
font-family: 'DM Sans', sans-serif; font- style: normal;
size: 24px;
font-weight: 700; font-size: 14px; color:
font-weight: 700; letter-spacing: 0px; #673DE6; margin-top: 8px;
text-align: center; margin: 8px;
text-decoration: none;
}
}
.content { display: flex;
.main-image { width: 100%;
flex-direction: column; align-items:
center; justify-content: center; width: max-width: 650px; max-height: 406px;
100%; height: auto;

height: 100%; }

} .navigation { width: 100%; height:


72px; display: flex; margin: 0;
.ic-launch {
padding: 0;
margin-left: 10.5px; width: 21px
!important; flex-direction: row; align-items: center;
justify-content: center;

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

h1, p, .link-container { width: 80%; </style> 12.8699116.793


12.1444ZM72.0952
}
</head> 19.1222C71.8367 19.1886
} 71.5091 19.2213

<body> 71.1124 19.2213C70.3189


19.2213 69.6483
@media screen and (min-width:
121.961 21.3701C122.706 21.2204 <nav class="navigation"> 19.1403
123.247 69.1015 18.9781C68.5539 18.8166

650px) and (min-height: 0px) and (max- <a 68.0939 18.6341 67.7216
21.0799123.584 18.4299L66.9277

height: 750px) { href="https://hpanel.hostinger.com"


20.9478V14.7794H120.77V19.1133 20.6597C67.0962 20.756 67.3035
C120.6 20.8576

.link-container { 02 19.1495 rel="nofollow" target="_blank">


120.40719.1734120.184 67.5499 20.9658C67.7965 21.0736
68.0914
margin-top: 12px; 19.1852C119.962
19.1971 119.694 19.2031 <svg width="150" height="30"
21.1755 68.4339 21.2713C68.7766
} 119.381 19.2031C118.804 19.2031 21.3671
118.299
viewBox="0 0 150 30"
h1 { 19.1043 117.866 fill="none" 69.1703 21.4478
18.9066C117.433 18.7087 69.6152 21.5142C70.0601

margin-top: 0px; 117.073 18.4298 xmlns="http://www.w3.org/2000/svg">


116.784 18.0699C116.496
21.5801 70.559321.613371.1124
margin-bottom: 0px; 17.7101
116.27917.2816116.135 <path fill-rule="evenodd" clip-
21.6133C72.7596 21.6133 73.9921
} 16.7844C115.991 16.287 115.919 21.2924
15.732
rule="evenodd" d="M116.793
} 115.919 15.1211C115.919 13.8617 74.8098 20.6507C75.6275 20.0094
116.21 76.0366
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

12.1444C117.376 11.4191 118.324 9.75233 114.818 10.3099C114.253


11.0565 19.1071 76.0366 10.8671 70.1774 11.467 70.472
17.944C76.0366 17.345 11.2811C70.7666

119.634 11.0565C120.223 11.0565 113.808 11.5481 113.484


120.767 75.9581 16.8357 75.8022 12.3511C113.159 11.095571.2506
16.4158C75.6456 11.002 71.9242

11.1312 121.267 11.2811C121.765 13.1546 112.99714.0777112.997


11.4312 15.996175.408 15.6302 11.002C72.5253 11.002 73.0393
75.0897 11.0714

122.207 11.6077 122.592 15.1211C112.997 16.1522 113.143


11.8114L123.404 15.3186C74.771 17.0696 73.4663 11.2089C73.8928
15.007 74.3709 14.7342 11.347 74.2807

9.56372C123.307 9.50387 123.149 113.438 17.8723C113.733 18.6755


9.41962 73.8902 14.5003C73.409 114.151 11.505974.6297
14.2664 72.8438 11.6857L75.4411

122.926 9.31174C122.703 9.2036 19.3532 114.692 19.9045C115.233


122.421 14.0298 72.1949 20.4562 9.47375C75.0443 9.25798
13.7896C71.8819 13.6817 74.5392 9.05982

9.09874 122.078 8.99714C121.735 115.885 20.8754 116.649


8.89504 71.5961 13.5771 71.3381 21.1636C117.412 73.9263
13.475C71.0793 8.88001C73.3129 8.70046 72.5853

121.326 8.80526 120.851 21.4511 118.26321.5951119.201


8.72705C120.376 13.373470.8508 8.60992 71.7437 8.60992C71.0339
13.259270.6523 8.60992

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

67.4689 10.7955C67.2525 11.257 18.7387 72.7174 18.8521C72.5613


67.1443 17.126351.591216.1878 18.9668 15.121ZM45.1113
51.5912
72.3538 19.056572.0952
11.7755 67.1443 12.3512C67.1443 8.89825H47.9253V21.3612H45.111
12.9268 15.121C51.5912 14.0537 3V16.0
51.7597 13.1155
19.1222ZM54.4948
67.2465 13.4152 67.451 15.121C54.4948
13.8165C67.6553 52.0964 739H40.3856V21.3612H37.5717V8
12.3065C52.4329 11.4969 52.8871 .89825

14.2186 67.920114.560468.2445 15.7321 54.569716.283654.72


10.8164 53.4584 10.265C54.0291 H40.3856V13.6638H45.1113V8.89
9.71347 825ZM8

14.842C68.5691 15.1239 68.9358 16.7752C54.8703 17.2671 55.087


15.3578 54.6907 9.30004 55.4425 17.6896 8.4326
9.02417C56.1936
55.3697 18.0432C55.6517 18.3972
69.3446 15.5434C69.7535 15.729 55.9977
70.1623 8.7480556.98458.60999 8.89838V11.2904H84.6628V21.361
57.8143 3H81.8

15.8942 70.5714 16.0376C71.5091 18.6696 56.4068 18.8612C56.8154


16.3499 8.60999C58.6678 8.60999 19.0536
59.4734 8.74805 491V11.2904H78.079V8.89838H88
.4326Z
72.1704 16.6404 72.5553
16.9104C72.9399 60.2313 57.2843 19.1497 57.8137
9.02417C60.9887 9.30004 61.65 19.1497C58.3304 M94.3715

17.1798 73.132617.519 73.1326 19.1497 58.796519.053659.2117


9.71347 62.2152 10.265C62.7801 21.3616H91.5576V8.89838H94.371
10.8164 5V21.3

17.9264C73.1326 18.1183 73.1026 18.8612C59.626 18.6696 59.9751


18.2923 63.2253 11.4969 63.5499 18.3972 616ZM106.967
12.3065C63.8747 21.3613C106.162 19.9347

73.0423 18.448C72.982 18.6039 60.2573 18.0432C60.5398 17.6896


72.8736 13.115564.036914.0537 60.7567 105.29 18.5262 104.352
64.0369 17.135C103.414
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

17.2671 60.907 16.7752C61.0573 335V13.6998H135.331V16.0021H1


16.2836 15.7441102.41614.4314 30.335
101.358
54.4948 14.5215 54.4948
61.1325 15.7321 61.1325 15.121ZM64.0369
15.121C61.1325 V19.0055H136.378V21.3613H127.
13.1964V21.3613H98.58V8.89838 521ZM1
H100.87
15.121C64.0369 16.1878 63.8772
14.5091 61.057313.954660.907 17.1263 43.046 11.1641C143.209
1C101.267 9.2937 101.706 9.7793 11.1523 143.391
102.187
63.5592 17.935C63.2401 18.7445
13.457C60.7567 12.9595 60.5398 62.8041 11.1463 143.596
12.5343 10.3549C102.668 10.9306 11.1463C144.498 11.1463
103.158 11.5452
19.422 62.2512 19.9672C61.6981
60.2573 12.1802C59.9751 11.8266 20.5132 145.18 11.2753 145.643
59.626 103.657 12.1985C104.156 11.5325C146.106
12.8519 104.652
61.0396 20.9236 60.2762
11.5535 59.2117 11.3622C58.7965 21.1992C59.5127 11.7911146.337
11.1703 13.5293 105.145 12.2251146.337
14.2305C105.638 14.9318
21.4753 58.691821.613157.8143
58.3304 11.0745 57.8137 12.8367C146.337 13.4724 146.109
11.0745C57.2843 106.10115.606 13.9223
106.534
21.6131C56.9603 21.6131 56.155
11.0745 56.815411.173356.4068 21.4753 145.652 14.1856C145.195
16.2536V8.89838H109.33V21.3613 14.4497 144.437
H106.9
55.3974 21.1992C54.6397 20.9236
11.371C55.9977 11.5689 55.6517 53.9782 14.5809143.38
11.844767ZM127.521

55.3697 12.1986C55.087 12.5522


54.8703 14.5809H142.586V11.2001C142.731
21.3613V8.89838H135.963V11.254 <svg
2H130.
11.1885 142.88411.1764143.046
12.9777 54.72 13.4751C54.5697 class="main-image"
13.973
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

11.1641ZM147.745 18.1635 147.96817.7438147.691


9.75233C146.747
width="650" 17.3419C147.415 16.9403 147.151
16.5837
9.08666 145.3118.75421143.435
height="406" 146.898 16.2716C147.655 15.9603
148.236
8.75421C142.917 8.75421 142.331
8.7781 viewBox="0 0 650 406" 15.5313 148.638 14.9861C149.041
14.4406
141.676 8.82639C141.021 8.87391
140.387 fill="none" 149.243 13.7297 149.243
12.8548C149.243

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

17.7737C144.941 18.1273 145.187


18.5015
xmlns="http://www.w3.org/2000/svg"
145.433 18.8973C145.681 19.2931
145.922

19.701 146.158 20.1205C146.392 xmlns:xlink="http://www.w3.org/1999/


20.5402 xlink ">

146.625 20.9536146.854 <path d="M603.171


195.67L445.106
21.3613H150C149.784 20.9059 347.201V44.1392L603.171
149.549
195.67Z" stroke="#C4CCE8"
20.4414 149.297 19.9673C149.044 stroke- miterlimit="10"/>
19.4941
<path d="M445.106
148.783 19.0386 148.512 195.67L287.041
18.6011C148.242 347.201V44.1392L445.106
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

195.67Z" stroke="#C4CCE8" 19.8375C8.94454 19.8793 1.61224


stroke- miterlimit="10"/> 15.8418 43.7717C54.2036
43.262355.602143
<path d="M603.171
195.67H180.043" stroke="#C4CCE8" 1.61224 15.8418L25.6725
57.014543V43Z"
stroke-miterlimit="10"/> stroke="#C5CDE9"

<path d="M57.0145 15.9547V30L18.3924


43H593.668C596.51 43 599.237 26.1177ZM- stroke-
44.0612 miterlimit="10"/>

601.247 45.9501C603.257 47.8391 6.10352e-05


604.387 26.1177L0.000191176 <path
d="M65.1415

16.9393L7.0891 21.0683V29.8033L-
14.046V0.000497794L7.0891 64.6472C67.4918 64.6472 69.3971
50.401 604.387 62.8618

3.78046V10.1086L16.4734 6.10352e-05 26.1177Z" fill="white"/>


53.0724V348.34H57.0145C54.1716 69.3971 60.6595C69.3971 58.4572
348.34 67.4918

10.1132L23.6773 51.4452 347.279 </svg> 56.6719 65.1415


49.435 345.39C47.4248 56.6719C62.7912 56.6719

14.046H0.000188531ZM18.3924 </a> 60.8859 58.4572 60.8859


343.50146.2954340.93946.2954 60.6595C60.8859

8.95058V0L25.6725 </nav> 62.861862.791264.6472


338.268V53.1252C46.288 51.798 65.1415
46.5598
<div class="content">
3.6859V13.1797L18.3924 50.4826
47.0952 49.2544C47.6306 48.0263

8.95058ZM18.3924 48.4189 64.6472Z" stroke="#C5CDE9"


46.9097 49.415 45.9688C50.4111 stroke- miterlimit="10"/>

26.1177V19.8441L8.9357145.0279 <path d="M82.7718


51.595344.281252.8994 65.7865C85.4579 65.7865 87.6354
63.7461
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

87.6354 61.2292C87.6354 58.7123 <path d="M384.311


85.4579 173.864C397.176 197.034 424.878
208.367
56.6719 82.7718 56.6719C80.0858
56.6719 449.522 201.798C470.052 196.291
485.552
77.9083 58.7123 77.9083
61.2292C77.9083 179.079 488.877158.072"

63.7461 80.085865.786582.7718 stroke="#673DE6" stroke-width="18"


stroke-miterlimit="10"/>
65.7865Z" stroke="#C5CDE9"
stroke- miterlimit="10"/> <path d="M569.199

<path d="M100.402 264.276L517.516 232.922L484.055


65.7866C102.752 65.7866 104.658
64.0013 281.351L535.738 312.705L569.199

104.658 61.7989C104.658 59.5966 264.276Z" fill="#673DE6"/>


102.752
<rect x="76" y="55" width="325"
57.8113 100.402 57.8113C98.0519 height="308" fill="url(#pattern0)"/>
57.8113
<defs>
96.1466 59.5966 96.1466
61.7989C96.1466 <pattern id="pattern0"
patternContentUnits="objectBounding
64.0013 98.051965.7866100.402 Box" width="1" height="1">

65.7866Z" stroke="#C5CDE9" <use xlink:href="#image0_793_7454"


stroke- miterlimit="10"/>

<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

</svg> 4.16667V15.8333C3 16.75 3.74167


17.5
<h1>You Are All Set to Go!</h1>
4.66667 17.5H16.3333C17.25 17.5 18
<p>All you have to do now is upload 16.75
your website files and start your
journey. Check out how to do that 18
below:</p>
15.8333V10H16.3333V15.8333ZM12.
<div class="link-container"> 1667

<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"

>

How can I migrate a website to

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>

fill-rule="evenodd" clip- </html>


rule="evenodd" d="M16.3333

15.8333H4.66667V4.16667H10.5V2.5
H4.6

6667C3.74167 2.5 3 <?php


3.25 3
include 'config.php';
4.16667V15.8333C3 16.75 3.74167
17.5 ?>

4.66667 17.5H16.3333C17.25 17.5 18 <!DOCTYPE html>


16.75
<html lang="en">
18
<head>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<title>Login V1</title> <!--

<meta charset="UTF-8"> ============================


===
<meta name="viewport"
content="width=device-width, ============================
initial- scale=1"> ===

<!-- ============================
===
============================
=== ==-->

============================ <link rel="stylesheet"


=== type="text/css" href="fonts/font-
awesome- 4.7.0/css/font-
============================ awesome.min.css">
===
<!--
==-->
============================
<link rel="icon" ===

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

</span> class="input100" type="username"


name="username"
placeholder="Email">

<div class="wrap-input100 <span


validate-input" >
class="focus-input100"></span>

<link rel="stylesheet"
type="text/css" href="css/util.css"> <span

<link rel="stylesheet" class="symbol-input100">


type="text/css" href="css/main.css">

<!--
<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

</div> class="fa fa-long-arrow-right m-l-5"


aria- hidden="true"></i> -->

</a>
136">

</div>
<div class="text-center p-t-

class="focus-input100"></span>
<a

class="txt2" href="#">

class="symbol-input100">

<div class="wrap-input100 validate-


input" data-validate = "Password is <span
required">

<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> =====

</div> type="submit" name="login"


id="login"
==========================
=====

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

============================ trans_date, trans_status from dashboard


=== where department ='Cashier' and
(trans_status='New' or trans_status='In
============================ Transaction') and Trans_date =
=== CURDATE() order by ticket_no
desc;");
============================
===

==--> ?>

<script <link rel="stylesheet"


src="vendor/select2/select2.min.js"></s href="header.css">
cript

>
<!-- ticket status -->
<!--
<Center><table id="ggwp">
============================
=== <?php

============================ //getting the total transactions


===
$sql_view_totaltrans= "Select Count(*)
============================ as total_trans from dashboard where
=== Trans_date = CURDATE() and
department
==-->
='Cashier'";
<script
src="vendor/tilt/tilt.jquery.min.js"></sc $result_totaltrans =
ript>
mysqli_query($conn,$sql_view_totaltra
<script > ns);

$('.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

}) //getting the total waiting in line


trans_status = 'New' and department =
$sql_view_totalwait= "Select Count(*) 'Cashier' and Trans_date =
as total_wait from dashboard CURDATE()";
where
$result_totalwait =

mysqli_query($conn,$sql_view_totalw
============================ ait);
===
$total_wait = $result_totalwait
============================ -> fetch_assoc();
===

============================
=== //getting the current serving.

==--> $sql_view_current= "Select ticket_no


from dashboard where trans_status ='In
<script src="js/main.js"></script> Transaction' and Department ='Cashier'
and Trans_date = CURDATE() Order
by id DESC limit 1;";

</body> $result_current =
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

mysqli_query($conn,$sql_view_current <td style="background-color:


); if(null!==$total_current = #CBC3E3;">Total Transactions
<br><br>

<?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; ?>

<?php foreach($rows as $row) : ?> ?>

<tr> <link rel="stylesheet"


href="header.css">

<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

$row["trans_date"]; ?></td> = 'Cashier'";

<td><?php echo $result_totaltrans =

$row["trans_status"]; ?></td> mysqli_query($conn,$sql_view_totaltra


ns);
</tr>
$total_trans =
<?php endforeach; ?> $result_totaltrans ->
fetch_assoc();
</table>

loadtable_realtime_cashier_TV.php
//getting the total waiting in line
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

$sql_view_totalwait= "Select Count(*) $current_ticket =


as
$total_current['ticket_no'];

$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 .

$sql_view_current2= "Select ticket_no,


window_no from dashboard where
trans_status ='In Transaction' and
department = 'Cashier' and Trans_date =
CURDATE() and window_no = '2'
//getting the current serving . Order by id DESC limit 1;";

$sql_view_current= "Select ticket_no, $result_current2 =


window_no from dashboard where
trans_status ='In Transaction' and mysqli_query($conn,$sql_view_current
department = 'Cashier' and Trans_date = 2);
CURDATE() and window_no = '1'
Order by id DESC limit 1;";

$result_current = if(null!==$total_current2 =

mysqli_query($conn,$sql_view_current $result_current2 -> fetch_assoc()){


);
$current_ticket2 =

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'])){

$current_window2 = null; // $current_ticket =

} $total_current['ticket_no'];

//getting the current serving . // }

$sql_view_current3= "Select ticket_no, // else{


window_no from dashboard where
trans_status ='In Transaction' and // $current_ticket
department = 'Cashier' and Trans_date =
CURDATE() and window_no = '3' // }
Order by id DESC limit 1;";

$result_current3 =

mysqli_query($conn,$sql_view_current
3);

?>

if(null!==$total_current3 =

$result_current3 -> fetch_assoc()){

$current_ticket3 =

$total_current3['ticket_no']; <Br>

$current_window3 =

$total_current3['window_no']; <center><b><h1 style="color:black;


background-
}else{ color:#c8fafd">CASHIER</b></h1></
cente r>
$current_ticket3 = 0;

$current_window3 = null;

}
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<?php

include "session.php"; <tr>

<tr> <td style="background-color: #c8fafd;


padding:30px;">Window #
<br><br> 3

<td style="background-color: #c8fafd; </td>


padding:30px;">Window #
<br><br> 1 <td style="background-color: #d9fdc8;
padding:30px;" id="td1">Current
</td> Serving

<td style="background-color: #d9fdc8; <br><br> <?php echo


padding:30px;" id="td1">Current 'C00'.$current_ticket3 ?></td>
Serving
</tr>
<br><br> <?php echo
'C00'.$current_ticket ?></td>

</tr>

<tr> </table>

<td style="background-color: #c8fafd;


padding:30px;">Window #
<br><br>2 </script>

</td>

<td style="background-color: #d9fdc8; $rows = mysqli_query($conn, "Select


padding:30px;" id="td1">Current ticket_no, Department, Window_no,
Serving trans_date, trans_status from dashboard
where Department ='Frontline' and
<br><br> <?php echo (trans_status='New' or trans_status='In
'C00'.$current_ticket2 ?></td> Transaction') and Trans_date =
CURDATE() order by ticket_no
</tr> desc;");
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

='Frontline' and Trans_date =


CURDATE()";
?>
$result_totalwait =
<link rel="stylesheet"
href="header.css"> mysqli_query($conn,$sql_view_totalw
ait);

$total_wait = $result_totalwait
<!-- ticket status --> -> fetch_assoc();

<Center><table id="ggwp">

<?php //getting the current serving .

//getting the total transactions $sql_view_current= "Select


ticket_no from dashboard where
$sql_view_totaltrans= "Select Count(*) trans_status ='In
as total_trans from dashboard where
Trans_date = CURDATE() and
department
and Trans_date = CURDATE() Order
='Frontline'"; by id DESC limit 1;";

$result_totaltrans = $result_current =

mysqli_query($conn,$sql_view_totaltra mysqli_query($conn,$sql_view_current
ns); ); if(null!==$total_current =

$total_trans = $result_current -> fetch_assoc()){


$result_totaltrans ->
fetch_assoc(); $current_ticket =

$total_current['ticket_no'];

}else{

//getting the total waiting in line $current_ticket = 0;

$sql_view_totalwait= "Select Count(*) }


as total_wait from dashboard where
trans_status = 'New' and department // if(isset($total_current['ticket_no'])){
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

// $current_ticket = </table>

$total_current['ticket_no'];

// }

// else{

// $current_ticket <!-- table realtime -->

// }

<table id="customers">

<th>Customer #</th>

?> <th>Department</th>

<th>Window #</th>

<tr> <th>Date</th>

<td style="background-color: <th>Status</th>


#CBC3E3;">Total Transactions
<br><br> </tr>

<?php echo <?php $i = 1; ?>

$total_trans['total_trans'] ?></td> <?php foreach($rows as $row) : ?>

<td style="background-color: <tr>


#c8fafd">Waiting In Line <br><br>
<?php echo $total_wait['total_wait']
?></td>
<td><b><?php echo
<td style="background-color:
#d9fdc8">Curent Serving <br><br> 'F00'.$row["ticket_no"]; ?></b></td>
<?php echo 'F00'.$current_ticket
?></td> <td><?php echo

</tr> $row["Department"]; ?></td>


DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<td><?php echo //getting the total transactions

$row["Window_no"]; ?></td> $sql_view_totaltrans= "Select Count(*)


as total_trans from dashboard where
<td><?php echo Trans_date = CURDATE() and
department
$row["trans_date"]; ?></td>
= 'Frontline'";
<td><?php echo
$result_totaltrans =
$row["trans_status"]; ?></td>
mysqli_query($conn,$sql_view_totaltra
</tr> ns);

<?php endforeach; ?>

</table> $total_trans = $result_totaltrans ->


fetch_assoc();

loadtable_realtime_frontline_TV.php

//getting the total waiting in line


<?php
$sql_view_totalwait= "Select Count(*)
include "session.php"; as total_wait from dashboard where
trans_status = 'New' and Trans_date =
CURDATE() and department =
'Frontline'";
?>
$result_totalwait =
<link rel="stylesheet"
href="header.css"> mysqli_query($conn,$sql_view_totalw
ait);

$total_wait = $result_totalwait
<!-- ticket status --> -> fetch_assoc();

<Center><table id="ggwp">

<?php
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

department = 'Frontline' and Trans_date


= CURDATE() and window_no = '2'
//getting the current serving . Order by

$sql_view_current= "Select ticket_no,


window_no from dashboard where
trans_status ='In Transaction' and $result_current2 =
department = 'Frontline' and Trans_date
= CURDATE() and window_no = '1' mysqli_query($conn,$sql_view_current
Order by id DESC limit 1;"; 2);

$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 =

$result_current3 -> fetch_assoc()){

$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;

} <td style="background-color: #c8fafd;


padding:30px;">Window #
<br><br> 1

// if(isset($total_current['ticket_no'])){ </td>

// $current_ticket = <td style="background-color: #d9fdc8;


padding:30px;" id="td1">Current
$total_current['ticket_no']; Serving

// } <br><br> <?php echo


'F00'.$current_ticket ?></td>
// else{
</tr>
// $current_ticket
<tr>
// }
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<td style="background-color: #c8fafd; <?php


padding:30px;">Window #
<br><br>2 include "session.php";

</td>

<td style="background-color: #d9fdc8; $rows = mysqli_query($conn, "Select


padding:30px;" id="td1">Current ticket_no, Department, Window_no,
Serving trans_date, trans_status from dashboard
where department ='Registrar' and
<br><br> <?php echo (trans_status='New' or trans_status='In
'F00'.$current_ticket2 ?></td> Transaction') and Trans_date =
CURDATE() order by ticket_no
</tr> desc;");

<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;

//getting the total waiting in line }

$sql_view_totalwait= "Select Count(*) // if(isset($total_current['ticket_no'])){


as total_wait from dashboard where
trans_status = 'New' and department = // $current_ticket =
'Registrar' and Trans_date =
CURDATE()"; $total_current['ticket_no'];

$result_totalwait = // }

mysqli_query($conn,$sql_view_totalw // else{
ait);
// $current_ticket
$total_wait = $result_totalwait
-> fetch_assoc(); // }

//getting the current serving .

$sql_view_current= "Select ticket_no ?>


from dashboard where trans_status ='In
Transaction' and Department
='Registrar' and Trans_date =
CURDATE() Order by id DESC limit <tr>
1;";
<td style="background-color:
$result_current = #CBC3E3;">Total Transactions
<br><br>
mysqli_query($conn,$sql_view_current
); if(null!==$total_current = <?php echo

$result_current -> fetch_assoc()){ $total_trans['total_trans'] ?></td>


DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<td style="background-color: 'R00'.$row["ticket_no"]; ?></b></td>


#c8fafd">Waiting In Line <br><br>
<?php echo $total_wait['total_wait'] <td><?php echo
?></td>
$row["Department"]; ?></td>
<td style="background-color:
#d9fdc8">Curent Serving <br><br> <td><?php echo
<?php echo 'C00'.$current_ticket
?></td> $row["Window_no"]; ?></td>

</tr> <td><?php echo

</table> $row["trans_date"]; ?></td>

<td><?php echo

$row["trans_status"]; ?></td>

<table id="customers"> </tr>

<tr> <?php endforeach; ?>

<th>Customer #</th> </table>

<th>Department</th>

<th>Window #</th> loadtable_realtime_registrar_TV.php

<th>Date</th>

<th>Status</th> <?php

</tr> include "session.php";

<?php $i = 1; ?>

<?php foreach($rows as $row) : ?> ?>

<tr> <link rel="stylesheet"


href="header.css">

<td><b><?php echo
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<!-- ticket status -->

<Center><table id="ggwp">

<?php

//getting the total transactions //getting the current serving .

$sql_view_totaltrans= "Select Count(*) $sql_view_current= "Select ticket_no,


as total_trans from dashboard where window_no from dashboard where
Trans_date = CURDATE() and trans_status ='In Transaction' and
department department = 'Registrar' and Trans_date
= CURDATE() and window_no = '1'
Order by id DESC limit 1;";

$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 =

$result_current -> fetch_assoc()){

$current_ticket =

//getting the total waiting in line $total_current['ticket_no'];

$sql_view_totalwait= "Select Count(*) $current_window =


as total_wait from dashboard where
trans_status = 'New' and Trans_date = $total_current['window_no'];
CURDATE() and department =
'Registrar'"; }else{

$result_totalwait = $current_ticket = 0;

mysqli_query($conn,$sql_view_totalw $current_window = null;


ait);
}
$total_wait = $result_totalwait
-> fetch_assoc(); //getting the current serving .
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

$sql_view_current2= "Select ticket_no, = CURDATE() and window_no = '3'


window_no from dashboard where Order by id DESC limit 1;";
trans_status ='In Transaction' and
$result_current3 =

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'];

$result_current2 -> fetch_assoc()){ $current_window3 =

$current_ticket2 = $total_current3['window_no'];

$total_current2['ticket_no']; }else{

$current_window2 = $current_ticket3 = 0;

$total_current2['window_no']; $current_window3 = null;

}else{ }

$current_ticket2 = 0;

$current_window2 = null; // if(isset($total_current['ticket_no'])){

} // $current_ticket =

//getting the current serving . $total_current['ticket_no'];

$sql_view_current3= "Select ticket_no, // }


window_no from dashboard where
trans_status ='In Transaction' and // else{
department = 'Registrar' and Trans_date
// $current_ticket
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

include "session.php";

<tr>

?> <td style="background-color: #c8fafd;


padding:30px;">Window #
<br><br> 1

</td>

<td style="background-color: #d9fdc8;


padding:30px;" id="td1">Current
<Br> Serving

<center><b><h1 style="color:black; <br><br> <?php echo


background- 'R00'.$current_ticket ?></td>
color:#c8fafd">Registrar</b></h1></c
enter </tr>

> <tr>

</table> <td style="background-color: #c8fafd;


padding:30px;">Window #
<br><br>2

</td>

</script> <td style="background-color: #d9fdc8;


padding:30px;" id="td1">Current
Serving

loadtable_realtime_scholarship.php <br><br> <?php echo


'R00'.$current_ticket2 ?></td>

</tr>
<?php
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<tr> //getting the total transactions

$sql_view_totaltrans= "Select Count(*)


as total_trans from dashboard where
<td style="background-color: #c8fafd; Trans_date = CURDATE() and
padding:30px;">Window # department
<br><br> 3
='Scholarship'";
</td>
$result_totaltrans =
<td style="background-color: #d9fdc8;
padding:30px;" id="td1">Current mysqli_query($conn,$sql_view_totaltra
Serving ns);

<br><br> <?php echo $total_trans =


$result_totaltrans ->
'R00'.$current_ticket3 ?></td> fetch_assoc();

$rows = mysqli_query($conn, "Select


ticket_no, Department, Window_no,
trans_date, trans_status from dashboard //getting the total waiting in line
where department ='Scholarship' and
(trans_status='New' or trans_status='In $sql_view_totalwait= "Select Count(*)
Transaction') and Trans_date = as total_wait from dashboard where
CURDATE() order by ticket_no trans_status = 'New' and department =
desc;"); 'Scholarship' and Trans_date =

?> $result_totalwait = </tr>

<link rel="stylesheet" mysqli_query($conn,$sql_view_totalw


href="header.css"> ait); </table>

$total_wait = $result_totalwait
->
<!-- ticket status -->
fetch_assoc();
<Center><table id="ggwp">

<?php
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

//getting the current serving .

$sql_view_current= "Select ticket_no ?>


from dashboard where trans_status ='In
Transaction' and Department
='Scholarship' and Trans_date =
CURDATE() Order by id DESC limit <tr>
1;";
<td style="background-color:
$result_current = #CBC3E3;">Total Transactions
<br><br>
mysqli_query($conn,$sql_view_current
); if(null!==$total_current = <?php echo

$result_current -> fetch_assoc()){ $total_trans['total_trans'] ?></td>

$current_ticket = <td style="background-color:


#c8fafd">Waiting In Line <br><br>
$total_current['ticket_no']; <?php echo $total_wait['total_wait']
?></td>
}else{
<td style="background-color:
$current_ticket = 0;
#d9fdc8">Curent Serving <br><br>
} <?php

// if(isset($total_current['ticket_no'])){

// $current_ticket = <!-- table realtime -->

$total_current['ticket_no'];

// } <table id="customers">

// else{ <tr>

// $current_ticket <th>Customer #</th>

// } <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>

<td><?php echo <!-- ticket status -->

$row["Department"]; ?></td>

<td><?php echo <?php

$row["Window_no"]; ?></td> //getting the total transactions

<td><?php echo $sql_view_totaltrans= "Select Count(*)


as total_trans from dashboard where
$row["trans_date"]; ?></td> Trans_date = CURDATE() and
department
<td><?php echo
= 'Scholarship'";
$row["trans_status"]; ?></td>
$result_totaltrans =
</tr>
mysqli_query($conn,$sql_view_totaltra
<?php endforeach; ?> ns);

</table> $total_trans =
$result_totaltrans ->
fetch_assoc();
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

$result_current -> fetch_assoc()){

//getting the total waiting in line $current_ticket =

$sql_view_totalwait= "Select Count(*) $total_current['ticket_no'];


as total_wait from dashboard where
trans_status = 'New' and Trans_date = $current_window =
CURDATE() and department =
'Scholarship'"; $total_current['window_no'];

$result_totalwait = }else{

mysqli_query($conn,$sql_view_totalw
ait);
$current_window = null;
$total_wait = $result_totalwait
-> fetch_assoc(); }

//getting the current serving .

$sql_view_current2= "Select ticket_no,


window_no from dashboard where
trans_status ='In Transaction' and
department = 'Scholarship' and
//getting the current serving . Trans_date = CURDATE() and
window_no = '2' Order by id DESC
$sql_view_current= "Select ticket_no, limit 1;";
window_no from dashboard where
trans_status ='In Transaction' and $result_current2 =
department = 'Scholarship' and
Trans_date = CURDATE() and mysqli_query($conn,$sql_view_current
window_no = '1' Order by id DESC 2);
limit 1;";

$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;

$total_current2['window_no']; $current_window3 = null;

}else{ }

$current_ticket2 = 0;

$current_window2 = null; // if(isset($total_current['ticket_no'])){

} // $current_ticket =

//getting the current serving . $total_current['ticket_no'];

$sql_view_current3= "Select ticket_no, // }


window_no from dashboard where
trans_status ='In Transaction' and // else{
department = 'Scholarship' and
Trans_date = CURDATE() and // $current_ticket
window_no = '3' Order by id DESC
limit 1;"; // }

$result_current3 =

mysqli_query($conn,$sql_view_current
3);

?>
if(null!==$total_current3 =

$result_current3 -> fetch_assoc()){

$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> <td style="background-color: #c8fafd;


padding:30px;">Window #
<br><br> 3

<td style="background-color: #c8fafd; </td>


padding:30px;">Window #
<br><br> 1 <td style="background-color: #d9fdc8;
padding:30px;" id="td1">Current
</td> Serving

<td style="background-color: #d9fdc8; <br><br> <?php echo


padding:30px;" id="td1">Current 'S00'.$current_ticket3 ?></td>
Serving
</tr>
<br><br> <?php echo
'S00'.$current_ticket ?></td>

</tr>

<tr> </table>

<td style="background-color: #c8fafd;


padding:30px;">Window #
<br><br>2 </script>

</td>

<td style="background-color: #d9fdc8; login_cashier.php


padding:30px;" id="td1">Current
Serving

<br><br> <?php echo <?php


'S00'.$current_ticket2 ?></td>
include 'config.php';
</tr>
?>

<!DOCTYPE html>
<tr>
<html lang="en">
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<head> <link rel="stylesheet"


type="text/css"
<title>Login V1</title>

<meta charset="UTF-8">
href="vendor/bootstrap/css/bootstrap.m
<meta name="viewport" in.cs s">
content="width=device-width,
initial- scale=1"> <!--

<!-- ============================
===
============================
=== ============================
===
============================
=== ============================
===
============================
=== ==-->

==--> <link rel="stylesheet"


type="text/css" href="fonts/font-
<link rel="icon" awesome- 4.7.0/css/font-
awesome.min.css">
type="image/png"
href="images/icons/favicon.ico"/> <!--

<!-- ============================
===
============================
=== ============================
===
============================
=== ============================
===
============================
=== ==-->

==--> <link rel="stylesheet"


type="text/css"
href="vendor/animate/animate.css">
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<!--

============================ <div class="login100-pic js-tilt"


===
data-tilt>
============================
===

============================ <img src="images/1234.png"


=== alt="IMG">

==-->

</div>

<!--

============================ <link rel="stylesheet"


=== type="text/css" href="vendor/css-
hamburgers/hamburgers.min.css">
============================
=== <!--

============================ ============================
=== ===

==--> ============================
===
</head>
============================
<body> ===

==-->

<div class="limiter"> <link rel="stylesheet"


type="text/css"
<div href="vendor/select2/select2.min.css">

class="container-login100"> <!--

<div ============================
===
class="wrap-login100">
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

============================ <link rel="stylesheet"


===

============================
=== <input

==--> class="input100" type="username"


name="username"
placeholder="Email">

<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

$query = "SELECT window_no FROM


cashier_window_status where
win_status ='Free'";

input100"> $result =

mysqli_query($conn,$query);

<span class="symbol- ?>

class="fa fa-comment" aria-


hidden="true"></i>
<i

<i
</span>
class="fa fa-envelope" aria-
hidden="true"></i>

</div>

</span>

<!-- <div class="wrap-input100


validate-input" >
</div>

<select class="input100" name="dept"


<div class="wrap-input100 id="dept">
validate-input" >
<option value=""
<?php readonly>Department</option>

?>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

</select> <i

mysqli_fetch_array($result))

<select class="input100" echo "<option


name="window_no" id="window_no">
value='".$row['window_no']."'>".$row[
'win dow_no']."</option>";

class="focus-input100"></span> ?>

</select>

<span

class="fa fa-envelope" aria-


hidden="true"></i>
<option value=""
readonly>Window</option>

<?php

while ($row = </span>

</select>

input100"> </div> -->

<span class="symbol- <div class="wrap-input100 validate-


input" data-validate = "Password is
required">
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<!-- <i </div>

class="fa fa-long-arrow-right m-l-5"


aria- hidden="true"></i> -->
</a>

<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>

<input type="submit" <!--


name="login" id="login"
value="Login" class="login100-form- ============================
btn"> ===

============================
===
</div>
============================
===

==-->

<div class="text-center p-t- <script


src="vendor/bootstrap/js/popper.js"></
136"> script

>

<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

<script > include 'config.php';

$('.js- ?>

tilt').tilt({ <!DOCTYPE html>

scale: <html lang="en">

1.1 <head>

}) <title>Login V1</title>

</script> <meta charset="UTF-8">

<!--
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<meta name="viewport" ============================


content="width=device-width, ===
initial- scale=1">
============================
<!-- ===

==-->

============================ <link rel="stylesheet"


=== type="text/css" href="fonts/font-
awesome- 4.7.0/css/font-
============================ awesome.min.css">
===
<!--
==-->
============================
<link rel="icon" ===

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

<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

class="focus-input100"></span> <div class="login100-pic js-tilt"

<span

class="symbol-input100"> <img src="images/1234.png"

<i

class="fa fa-envelope" aria- <div class="wrap-input100


hidden="true"></i> validate-input" >

<?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="fa fa-comment" aria-


hidden="true"></i>

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>

<!-- <div class="wrap-input100


validate-input" >

<select class="input100" name="dept"


id="dept"> <span

<option value=""
readonly>Department</option>

<i class="fa fa-lock" aria-


hidden="true"></i>

form-btn">

</span>

</div> <div class="container-login100-

<span class="symbol- <input

?>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

type="submit" name="login" ==========================


id="login" value="Login" =====
class="login100-form-btn">
<script hidden="true"></i> -->
src="vendor/bootstrap/js/popper.js"></ ==========================
script =====

>
==========================
</div> <script =====

src="vendor/bootstrap/js/bootstrap.min. </a> ==-->


js">
<script
</script>
</div>
<div class="text-center p-t- src="vendor/tilt/tilt.jquery.min.js">
<!-- </script>

136"> <script >


==========================
===== </form> $('.js-

============================ </div> tilt').tilt({


===
</div> scale:
<a
========================== </div> 1.1
=====
})
class="txt2" href="#"> ==-->
</script>
<script
<!--
src="vendor/select2/select2.min.js"></s
cript ============================
===
>
<!--
<!-- <i <!-- ==========================
=====
class="fa fa-long-arrow-right m-
l-5" aria-
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

============================ mysqli_real_escape_string($conn,$_PO
=== ST[' password']);
==========================
=====

============================ if ($uname != "" && $password != ""){


=== ==-->
//getting the user account
============================
=== <script $sql_query_admin = "select count(*) as
accounts_admin from accounts where
==--> src="js/main.js"></script> user='".$uname."' and

<script password='".$password."' and accslvl =


1";
src="vendor/jquery/jquery- </body>
$adminresult =
3.2.1.min.js"></script> </html>
mysqli_query($conn,$sql_query_admin
<!-- );

============================ $adminrow =
=== login_process.php
mysqli_fetch_array($adminresult);
============================
===

============================
=== <?php
$admincount =

$adminrow['accounts_admin'];
session_start();
if(isset($_POST['login'])){

//getting the MAIN admin account

$uname = $sql_query_admin123 = "select


count(*) as accounts_admin123 from
mysqli_real_escape_string($conn,$_PO accounts where user='".$uname."' and
ST[' username']);
password='".$password."' and accslvl =
$password = 2";
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

$adminresult123 = // $sql_query_kiosk= "select count(*) as


kiosk from accounts where
mysqli_query($conn,$sql_query_admin user='".$uname."' and
123);
password='".$password."' and accslvl =
$adminrow123 = 99";

mysqli_fetch_array($adminresult123); // $kioskresult =
mysqli_query($conn,$sql_query_staff);

// $kioskrow =
mysqli_fetch_array($staffresult);

$admincount123 =

$adminrow123['accounts_admin123']; // $kioskcount =

$kioskrow['accounts_user'];

$sql_query_staff = "select count(*) as


accounts_user from accounts where
user='".$uname."' and

$staffresult = if($admincount > 0){

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

mysqli_query($conn,$sql_query_depta elseif($dept == 'cashier'){


cc);
$final_dept =
$xdrow=
mysqli_fetch_array($resultxd); 'cashier_window_status';

$_SESSION['login_user'] = $uname; $sql_query_islogged = "Update


".$final_dept." set win_status
$dept = $xdrow['department']; ='Occupied', logged_in
='".$uname."' where
//echo "<script window_no=".$window."";

type='text/javascript'>alert('$dept');</sc
ript> ";
mysqli_query($conn,$sql_query_islogg
ed);

$final_dept =

'frontline_window_status';

$sql_query_islogged = "Update header('Location:


".$final_dept." set win_status dash_win'.$window.'_cashier.php');
='Occupied', logged_in
='".$uname."' where }
window_no=".$window."";

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';

$sql_query_islogged = "Update else{


".$final_dept." set win_status
='Occupied', logged_in $alert_login = "invalid username or
='".$uname."' where password";
window_no=".$window."";
echo "<script

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>

else{ <meta charset="UTF-8">

$alert_login = "goods"; <meta name="viewport"


content="width=device-width,
echo "<script initial- scale=1">

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/bootstrap/css/bootstrap.m
in.cs s"> ============================
===
<!--
============================
============================ ===
===
==-->
============================
=== <link rel="stylesheet"
type="text/css" href="vendor/css-
============================ hamburgers/hamburgers.min.css">
===
<!--
==-->
============================
<link rel="stylesheet" ===
type="text/css" href="fonts/font-
awesome- 4.7.0/css/font- ============================
awesome.min.css"> ===

<!-- ============================
===
============================
=== ==-->

============================ <link rel="stylesheet"


=== type="text/css"
href="vendor/select2/select2.min.css">
============================
=== <!--

==--> ============================
===
<link rel="stylesheet"
type="text/css" ============================
href="vendor/animate/animate.css"> ===

<!-- ============================
===
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

==-->

<link rel="stylesheet" <span

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>

<span <div class="login100-pic js-tilt"

class="focus-input100"></span>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

?>

<img src="images/1234.png"

</div>

<div class="wrap-input100 title">


validate-input" >

alt="IMG">
Login

</div>
<span class="login100-form-

<form method="POST"
action="login_process.php" User

class="login100-form validate-form">

<?php </span>

$query = "SELECT window_no FROM


registrar_window_status where
win_status ='Free'"; <div class="wrap-input100

$result =

mysqli_query($conn,$query);
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<select class="input100" class="focus-input100"></span>


name="window_no" id="window_no">

<option value=""
readonly>Window</option> <span

<?php

while ($row = <div class="wrap-input100


mysqli_fetch_array($result)) validate-input" data-validate =
"Password is
{

echo "<option

value='".$row['window_no']."'>".$row[
'win input100">

validate-input" > <span class="symbol-

required">

<input

dow_no']."</option>"; <input

?> <i

</select> class="fa fa-comment" aria-


hidden="true"></i>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

class="input100" type="password"
name="password"
placeholder="Password">

<!-- <div class="wrap-input100


validate-input" >

<select class="input100" name="dept"


id="dept">

</span> <option value=""


readonly>Department</option>

<i class="fa fa-lock" aria-


</div> hidden="true"></i>

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>

<div class="container-login100- </select>

input100"> 136">

<span class="symbol- <div class="text-center p-t-


DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<a </div> tilt').tilt({

scale:

</div> --> class="txt2" href="#">

<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

==-->

<script src="vendor/jquery/jquery- <script


3.2.1.min.js"></script> src="vendor/bootstrap/js/popper.js"></
script
<!--
>
============================
=== <script
src="vendor/bootstrap/js/bootstrap.min.
============================ js">
===
</script>
============================
=== <!--

==--> ============================
===

============================
============================ ===
===
============================
============================ ===
===
==-->
============================
===

==--> <?php

<script src="js/main.js"></script> include 'config.php';

?>

</body> <!DOCTYPE html>

</html> <html lang="en">

<head>

login_scholarship.php <title>Login V1</title>


DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<meta charset="UTF-8"> ============================


===
<meta name="viewport"
content="width=device-width, ============================
initial- scale=1"> ===

<!-- ============================
===

==-->
============================
=== <link rel="stylesheet"
type="text/css" href="fonts/font-
============================ awesome- 4.7.0/css/font-
=== awesome.min.css">

==--> <!--

<link rel="icon" ============================


===
type="image/png"
href="images/icons/favicon.ico"/> ============================
===
<!--
============================
============================ ===
===
==-->
============================
===

============================ ============================
=== ===

==--> ==-->

<link rel="stylesheet" <link rel="stylesheet"


type="text/css" type="text/css"
href="vendor/bootstrap/css/bootstrap.m href="vendor/select2/select2.min.css">
in.cs s">
<!--
<!--
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

============================ class="wrap-login100">
===

============================
=== <link rel="stylesheet"
type="text/css"
============================ href="vendor/animate/animate.css">
===
<!--
==-->

<link rel="stylesheet"
type="text/css" href="css/util.css">

<link rel="stylesheet" data-tilt>


type="text/css" href="css/main.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>

<link rel="stylesheet" </span>


type="text/css" href="vendor/css-
hamburgers/hamburgers.min.css">

<!--

============================ 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

Login class="input100" type="username"


name="username"
placeholder="Email">
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

value='".$row['window_no']."'>".$row[ class="focus-input100"></span>
'win dow_no']."</option>";
<span class="symbol-
}
input100">
?>

</select>
<i

class="fa fa-comment" aria-


<span hidden="true"></i>

class="fa fa-envelope" aria-


hidden="true"></i>
class="focus-input100"></span>

</span>
class="symbol-input100">

</div>
<span

<div class="wrap-input100
validate-input" >

<span <?php

$query = "SELECT window_no FROM


scholarship_window_status where
<i win_status ='Free'";

$result =
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

mysqli_query($conn,$query); <select class="input100"


name="window_no" id="window_no">
?>

class="focus-input100"></span>

<span class="symbol-

</span>

<i

class="fa fa-envelope" aria-


</div> hidden="true"></i>

<!-- <div class="wrap-input100 type="submit" name="login"


validate-input" > id="login" value="Login"
class="login100-form-btn">

<select class="input100" name="dept"


id="dept"> </div>

<option value=""
readonly>Department</option>

?>

</select>
</span>

</select>
<span
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

136"> <!-- <i

class="fa fa-long-arrow-right m-l-5"


aria- hidden="true"></i> -->
<div class="text-center p-t-

</a>

</div>
</div> -->

<div class="wrap-input100 validate-


input" data-validate = "Password is class="focus-input100"></span>
required">

<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">

<i class="fa fa-lock" aria-


hidden="true"></i>

</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({

$sql_query_deptacc = "select scale:


department from accounts where
user='".$login_session."'"; 1.1
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

}) // Redirect to login page


header("location:
</script> login_".$dept.".php"); exit;

<!-- }

============================
===
?>
============================
===

============================ <script src="js/main.js"></script>


===

==-->
</body>

</html>
if($dept =='admin'){ session_destroy();

// Redirect to login page


header("location: index.php"); exit; logout.php

}else{

<?php

$sql_query_deptacc123 = "Update include ("session.php");


".$dept."_window_status set
win_status

='Free', logged_in ='' session.php


where
Logged_in='".$login_session."'";

$resultxd123 = <?php include('config.php');


session_start();
mysqli_query($conn,$sql_query_depta
cc12 3);

session_destroy(); $user_check =
$_SESSION['login_user'];
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

=== 'POST'){

$ses_sql = mysqli_query($conn,"select if(isset($_POST['frontline1'])){


user from accounts where user=
'$user_check' "); //assigning of window

// $sql_getwindow = "Select
window_no from window_status
$row = where win_status

mysqli_fetch_array($ses_sql,MYSQLI ='Free' limit 1;";


_ASS OC);

$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

$sql_getlast = "Select ticket_no from


dashboard where Department
$insert_sql = 'INSERT INTO dashboard ='Frontline' and Trans_date =
VALUES("null","'.$Department.'", CURDATE() Order by ticket_no DESC
limit 1;";
"'.$ticket_last.'", "'.$Window.'",
"'.$date.'","'.$time.'","'.$status.'","asd")'; $result_last =
mysqli_query($conn,$insert_sql);
mysqli_query($conn,$sql_getlast);

// $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

='Free' limit 1;";

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

$sql_getlast = "Select ticket_no from $insert_sql = 'INSERT INTO dashboard


dashboard where Department ='Cashier' VALUES("null","'.$Department.'",
and Trans_date = CURDATE() Order
by ticket_no DESC limit 1;"; "'.$ticket_last.'", "'.$Window.'",
"'.$date.'","'.$time.'","'.$status.'","asd")';
$result_last = mysqli_query($conn,$insert_sql);

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" .

$ticket_formula = $ticket_no + 1; $ticket_last . "</b> </b>


<br><br><br>
}
<br> Please Proceed to Sofia
Bldg. 2nd floor";

//$Name = $login_session;

$ticket_last = $ticket_formula; //echo "<script>location.href

$Department = 'Cashier'; ='frontline_ticket_print.php'</script>";

$date = date('Y/m/d H:i:s');

$time =date("h:i:sa"); }

$status= 'New'; else if(isset($_POST['scholarship1'])){

//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;

='Free' limit 1;"; $ticket_last = $ticket_formula;

// $result_reports = $Department = 'Scholarship';


mysqli_query($conn,$sql_getwindow);
$date = date('Y/m/d H:i:s');
// $row = $result_reports->
fetch_assoc(); $time =date("h:i:sa");

$Window = ''; $status= 'New';

$sql_getlast = "Select ticket_no from $insert_sql = 'INSERT INTO dashboard


dashboard where Department VALUES("null","'.$Department.'",
='scholarship' and Trans_date =
CURDATE() Order by ticket_no DESC "'.$ticket_last.'", "'.$Window.'",
limit 1;"; "'.$date.'","'.$time.'","'.$status.'","asd")';
mysqli_query($conn,$insert_sql);
$result_last =

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_no = $last['ticket_no']; // mysqli_query($conn,$update_sql);

$ticket_formula = $ticket_no + 1;

}else{ $ticketsss = "<br><br><b>#S00" .

$ticket_no = 0; $ticket_last . "</b> </b>


<br><br><br>
$ticket_formula = $ticket_no + 1;
<br> Please Proceed to 1st floor Office
} of Student Affairs Near Frontline";
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

//echo "<script>location.href $ticketsss =


"<br><br><b>#R00" .
='frontline_ticket_print.php'</script>";
$ticket_last . "</b> </b>
<br><br><br>

else if(isset($_POST['registrar1'])){ from window_status where


win_status
//assigning of window <br> Please

// $sql_getwindow = "Select
window_no
='Free' limit 1;";

// $result_reports =
$Department = 'Registrar'; mysqli_query($conn,$sql_getwindow);

$date = date('Y/m/d H:i:s'); // $row = $result_reports->


fetch_assoc();
$status= 'New';
$Window = '';

$insert_sql = 'INSERT INTO dashboard


VALUES("null","'.$Department.'", $sql_getlast = "Select ticket_no from
dashboard where Department
"'.$ticket_last.'", "'.$Window.'", ='Registrar' and Trans_date =
"'.$date.'","'.$time.'","'.$status.'","asd")'; CURDATE() Order by ticket_no DESC
mysqli_query($conn,$insert_sql); limit 1;";

$result_last =

// $update_sql = 'update mysqli_query($conn,$sql_getlast);


Cashier_window_status if(null!== $last =
set win_status_customer= $result_last->
"Occupied" where window_no
="'.$Window.'"'; fetch_assoc()){

// mysqli_query($conn,$update_sql); $ticket_no = $last['ticket_no'];

$ticket_formula = $ticket_no + 1;
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

}else{ <meta charset="utf-8">

$ticket_no = 0; <meta name="viewport"


content="width=device-width,
$ticket_formula = $ticket_no + 1; initial- scale=1">

} <link rel="stylesheet"

href="https://maxcdn.bootstrapcdn.com
/boot
strap/3.4.1/css/bootstrap.min.css">

//$Name = $login_session; <script

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;

font-family: 'Times New Roman';

}
<!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

border-top: 1px solid black; border- max-width: 75px;


collapse: collapse;
}

width: 155px;
td.quantity, th.quantity {
max-width: 155px;
width: 40px;
}
max-width: 40px; word-break: break-
all;

img {

max-width: inherit; width: inherit;

} .button {

background-color: #DFFADE; color:


white;
@media print {
padding: 15px 32px; text-align: center;
.hidden-print, text-decoration: none; display: inline-
block; font-size: 16px; border-radius:
.hidden-print * { 12px; font-size: 24px; color: green;

display: none !important; }

} }

} td.price, th.price {

width: 40px;

td.description, th.description { max-width: 40px; word-break: break-


all;
width: 75px;
}
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<!--

.centered { <div class="navbar">

text-align: center; align-content: center; <a


href="welcome_admin.php">Home</a
} >

<a
href="dashboard.php">Dashboard</a>

<a href="#">Account Management</a>


</style>
<a href="#">Reports</a>
<meta charset="UTF-8">
<a href="logout.php"
<meta charset="UTF-8">
class="right">Logout</a>
<meta name="viewport"
content="width=device-width, </div> -->
initial- scale=1.0">

<meta http-equiv="X-UA-Compatible"
content="ie=edge"> </style>

</head>

</head> <body>

<body> <center> <div class="ticket">

<!-- <div class="header"> <img src="images/asd.png"


alt="Logo">

<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

<br><?php echo $ticketsss ?> <td class="price">$10.00</td>

<!-- <table> </tr>

<thead> <tr>

<tr> <td class="quantity">1.00</td>

<th class="quantity">Q.</th> <td class="description">STICKER


PACK</td>
<th
class="description">Description</th> <td class="price">$10.00</td>

<th class="price">$$</th> </tr>

</tr> <tr>

</thead> <td class="quantity"></td>

<tbody> <td class="description">TOTAL</td>

<tr> <td class="price">$55.00</td>

<td class="quantity">1.00</td> </tr>

<td class="description">ARDUINO </tbody>


UNO
</table> -->
R3</td>
<p class="centered">Thanks for
using the DYCIQ!

<td class="price">$25.00</td> <!-- <br>parzibyte.me/blog--

</tr> ><br>

<tr> <?php
date_default_timezone_set('Asia/Manil
<td class="quantity">2.00</td> a');

<td class="description">JAVASCRIPT $date = date('m/d/Y h:i a', time()); echo


BOOK</td> $date;?>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

</p> <?php include('session.php');

</div>

<a href='#' id='gg123' class="hidden- padding-right: 40px; border: none;


print"><button id="btnPrint"
class="hidden- text-align: center;
print">Print</button></a>
}

.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';

}, 15000); // triggers the callback after


15s

}; ?>

</script>

</body> <!DOCTYPE html>

</html> <html lang="en">

<head>

TV_cashier.php <script type="text/javascript"


src="ding.js"></script>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<meta charset="UTF-8"> </style>

<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>

.wrapper{ width: 360px; padding:


20px; }
<Center>
th, td, table { padding-top: 10px;
<script type="text/javascript"> function
padding-bottom: 20px; table(){

const xhttp = new XMLHttpRequest();

</style>

<meta charset="UTF-8">

<meta name="viewport" document.getElementById("table").inn


content="width=device-width, erHT ML = this.responseText;
initial- scale=1">
}
</head>
xhttp.open("GET",
<body> "loadtable_realtime_cashier_TV.php");

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>

body{ font: 14px sans-serif;


background-color:skyblue; <?php include('session.php');

.wrapper{ width: 360px; padding: }


20px; }
.button {
th, td, table { padding-top: 10px;
padding-bottom: 20px; padding-left: background-color: purple; color: white;
30px; padding-right: 40px; border:
none; padding: 15px 32px; text-align: center;
text-decoration: none; display: inline-
text-align: center; block; font-size: 16px; border-radius:
12px; font-size: 24px;

table.center { margin-left: auto; margin-


right: auto;

</script> }

<div id="table">

?>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<!DOCTYPE html>

<html lang="en"> <Center><h1><img


src="images/asd.png"
<head> alt="IMG"><h1></center>

<script type="text/javascript" <br><br><br><br><br><br><br><br>


src="ding.js"></script>

<meta charset="UTF-8">
<Center>
<title>TV</title>
<script type="text/javascript"> function
<link rel="stylesheet" table(){

href="https://stackpath.bootstrapcdn.co const xhttp = new XMLHttpRequest();


m/bo xhttp.onload = function(){

</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>

<html lang="en"> </script>

<head> <div id="table">

<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

body{ font: 14px sans-serif;


background-color:skyblue;
<?php include('session.php');
}

.wrapper{ width: 360px; padding:


20px; } }

th, td, table { padding-top: 10px; .button {


padding-bottom: 20px; padding-left:
30px; padding-right: 40px; border: background-color: purple; color: white;
none;
padding: 15px 32px; text-align: center;
text-align: center; text-decoration: none; display: inline-
block; font-size: 16px; border-radius:
12px; font-size: 24px;

}
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

table.center { margin-left: auto; margin- <Center>


right: auto;
<script type="text/javascript"> function
} table(){

const xhttp = new XMLHttpRequest();


xhttp.onload = function(){
</style>

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

th, td, table { padding-top: 10px;


padding-bottom: 20px; padding-left:
<?php include('session.php'); 30px; padding-right: 40px; border:
none;

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" background-color: purple; color: white;

href="https://stackpath.bootstrapcdn.co padding: 15px 32px;


m/bo
otstrap/4.5.2/css/bootstrap.min.css"> text-align: center;

<link rel="stylesheet"
href="header.css">
display: inline-block; font-size: 16px;
<style> border-radius: 12px; font-size: 24px;

body{ font: 14px sans-serif; }


background-color:skyblue;
table.center { margin-left: auto; margin-
} right: auto;

.wrapper{ width: 360px; padding: }


20px; }
</style>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<meta charset="UTF-8"> document.getElementById("table").inn


erHT ML = this.responseText;
<meta name="viewport"
content="width=device-width, }
initial- scale=1">
xhttp.open("GET",
</head> "loadtable_realtime_scholarship_TV.p
hp");
<body>
xhttp.send();

}
</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(){

const xhttp = new XMLHttpRequest();


xhttp.onload = function(){
</body>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

</html> background-color: #c57b57; color:


black;

padding: 15px 32px; text-align: center;


view_reports_cashier.php text-decoration: none;

display: inline-block;

<?php

include ("session.php"); border-radius: 12px; font-size: 24px;


border: none;
?>

<!DOCTYPE html>
}
<html lang="en">
.button2{
<head>
background-color: #d9fdc8; color:
<meta charset="UTF-8"> black;

<title>REPORTS Cashier</title> padding: 10px 15px; text-align: center;


text-decoration: none; display: inline-
<link rel="stylesheet" block; font-size: 16px; border-radius:
12px; font-size: 24px; border: none;
href="https://stackpath.bootstrapcdn.co
m/bo }
otstrap/4.5.2/css/bootstrap.min.css">
.button3{
<link rel="stylesheet"
href="header.css"> background-color: #76fdeb; color:
black;
<style>
padding: 15px 32px; text-align: center;
body{ font: 14px sans-serif; } text-decoration: none; display: inline-
block; font-size: 16px; border-radius:
.wrapper{ width: 360px; padding: 12px; font-size: 24px; border: none;
20px; }
}

input[type=date],[type=text]{ padding:
.button1{ 10px;
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

border-radius: 10px <a href="logout.php"

} class="right">Logout</a>

</div>

</style> <?php

<meta charset="UTF-8"> //getting the current serving .

<meta name="viewport" $sql_view_current= "Select ticket_no


content="width=device-width, from dashboard where trans_status
initial- scale=1">
='Finished' or trans_status ='In
</head> Transaction' and Department
='Frontline' Order by(case when
<body> trans_status = 'In Transaction' then 2
else 1 end) DESC, id DESC limit 1;";

$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> --> // }

<a href="#">Reports</a> // else{


DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

// $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."'";

<center> <h1> CASHIER REPORTS $result_endticket =


OF
mysqli_query($conn,$sql_endticket);

$total_trans =
<br><br><br> $result_endticket ->
fetch_assoc();

<!-- <center> <h1>


Currently Serving //mysqli_query($conn,$sql_view_curre
nt);
</h1></center>

<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"> &emsp;
} <input
type="submit" class="button3"
id="search123"
name="search123"
?> value="Search">
&emsp;&emsp;&emsp;&emsp;
<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">&emsp;<input
type="date" class="" <th>Time</th>
id="date2"
name="date2">&emsp;<input <th>Status</th>
type="submit"
class="button2"
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

</tr> while ( $row = $result_endticket->

<?php fetch_assoc()){

if(isset($_POST['datexd123'])){ echo "<tr><td hidden>


".$row["id"]."
$dateval =
</td><td><b>".'C00'.$row["ticket_no"]
mysqli_real_escape_string($conn,$_PO ."</t
ST[' date2']); d></b><td>".$row["Department"]."</t
d><td
$dateval2 =
>".$row["window_no_finish"]."</td><t
mysqli_real_escape_string($conn,$_PO d>".
ST[' date223']);
$row["trans_date"]."</td><td>".$row["
echo "<script trans

type='text/javascript'>alert('".$dateval." _time"]."</td><td>".$row["trans_status
' and '".$dateval2."');</script>"; "]."<

$sql_endticket= "Select id, ticket_no, /td></tr>";


Department, Window_no,
window_no_finish, }
trans_date,trans_time, trans_status from
dashboard where trans_date
BETWEEN
echo "</table>";
'".$dateval2."'and'".$dateval."' and
department= 'Cashier'";

$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>";

$sql_endticket= "Select id, ticket_no, }


Department, Window_no,
window_no_finish,
trans_date,trans_time, trans_status from
dashboard where department='Cashier' echo "</table>";
and ticket_no = ".$searchvalfinal."";

$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';";

echo "<tr><td hidden>


".$row["id"]."
$result_reports =
</td><td><b>".'C00'.$row["ticket_no"]
."</t mysqli_query($conn,$sql_view_reports
);
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

$result_reports_rowcount = }
mysqli_num_rows($result_reports);

//printf("Result set has %d


rows.\n",

$result_reports_rowcount); }

if ($result_reports_rowcount > 0){

while ( $row =
$result_reports-> fetch_assoc()){

echo "<tr><td hidden> ".$row["id"]."


?>
</td><td><b>".'C00'.$row["ticket_no"]
."</t <iframe id="txtArea1"
d></b><td>".$row["Department"]."</t
d><td style="display:none"></iframe>

>".$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 = tab_text + "</table>"; sa =

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;

// If Internet Explorer </script>

if (msie > 0 </body>

|| </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

include ("session.php"); .button2{

?> background-color: #d9fdc8; color:


black;
<!DOCTYPE html>
padding: 10px 15px; text-align: center;
<html lang="en"> text-decoration: none; display: inline-
block; font-size: 16px; border-radius:
<head> 12px; font-size: 24px; border: none;

<meta charset="UTF-8"> }

<title>REPORTS Frontline</title> .button3{

<link rel="stylesheet" background-color: #76fdeb; color:


black;
href="https://stackpath.bootstrapcdn.co
m/bo padding: 15px 32px; text-align: center;
otstrap/4.5.2/css/bootstrap.min.css"> text-decoration: none; display: inline-
block; font-size: 16px; border-radius:
<link rel="stylesheet" 12px; font-size: 24px; border: none;
href="header.css">
}
<style>
input[type=date],[type=text]{ padding:
body{ font: 14px sans-serif; } 10px;

.wrapper{ width: 360px; padding: border-radius: 10px


20px; }
}

.button1{

background-color: #c57b57; color:


black; </style>

padding: 15px 32px; text-align: center; <meta charset="UTF-8">


text-decoration: none; display: inline-
block; font-size: 16px; border-radius:
12px; font-size: 24px; border: none;
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<meta name="viewport" $sql_view_current= "Select ticket_no


content="width=device-width, from dashboard where trans_status
initial- scale=1">
='Finished' or trans_status ='In
</head> Transaction' and Department
='Frontline' Order by(case when
<body> trans_status = 'In Transaction' then 2
else 1 end) DESC, id DESC limit 1;";
<div class="header">
$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> --> // }

<a href="#">Reports</a> // else{

<a href="logout.php" // $current_ticket

class="right">Logout</a> // }

</div>

<?php ?>

//getting the current serving .


DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<br<br><br><br><br> $sql_endticket= "Select count(*) as


total_trans from dashboard where
<center> <h1> FRONTLINE department='Frontline' and Trans_date
REPORTS = '".$dateval."'";

OF TRANSACTIONS </h1></center> $result_endticket =

<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> -->

<!-- --> } else{

<Center><table id="ggwp"> $sql_view_totaltrans= "Select Count(*)


as total_trans from dashboard where
<?php Department = 'Frontline'";

//getting the total transactions $result_totaltrans =

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

<form method="POST"> &emsp;&emsp;&emsp;&emsp;


<button class="button3"
<tr> id="btnExport"
onclick="fnExcelReport();">
<td style="background-color: EXPORT
#FEE9E4;">Total
Transactions <br><br> </button></td>

<?php echo </tr>

</table>

</form>

</tr> <Center><table id="customers">

</table> <tr> <th hidden> ID </th>

<table> <th>Customer #</th>

<tr> <th>Department</th>

<td><input type="date" <th>Window #</th>


class="" id="date223"
name="date223">&emsp;<input <th>Date</th>
type="date" class=""
id="date2" <th>Time</th>
name="date2">&emsp;<input
type="submit" <th>Status</th>
class="button2"

id="datexd123"
name="datexd123" value="Apply </tr>
Date"> <input type="Text" class=""
id="search1" <?php
name="search1"> &emsp;
<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>".

echo "<script $row["trans_date"]."</td><td>".$row["


trans
type='text/javascript'>alert('".$dateval."
' and '".$dateval2."');</script>"; _time"]."</td><td>".$row["trans_status
"]."<
$sql_endticket= "Select id, ticket_no,
Department, Window_no, /td></tr>";
window_no_finish,
trans_date,trans_time, trans_status from }
dashboard where trans_date
BETWEEN

'".$dateval2."'and'".$dateval."' and echo "</table>";


department= 'Frontline'";

$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){

while ( $row = $result_endticket->

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

$searchvalfinal = substr($searchval,2); $row["trans_date"]."</td><td>".$row["


trans
//echo "<script
_time"]."</td><td>".$row["trans_status
type='text/javascript'>alert('$searchvalf "]."<
inal');
/td></tr>";
</script>";
}
$sql_endticket= "Select id, ticket_no,
Department, Window_no,
window_no_finish,
trans_date,trans_time, trans_status from echo "</table>";
dashboard where
department='Frontline' and ticket_no =
".$searchvalfinal."";
}
$result_endticket =

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';";

echo "<tr><td hidden>


".$row["id"]."
$result_reports =
</td><td><b>".'F00'.$row["ticket_no"]
."</t mysqli_query($conn,$sql_view_reports
d></b><td>".$row["Department"]."</t );
d><td
$result_reports_rowcount =
>".$row["window_no_finish"]."</td><t mysqli_num_rows($result_reports);
d>".
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

//printf("Result set has %d


rows.\n",
}
$result_reports_rowcount);

if ($result_reports_rowcount > 0){

while ( $row =
$result_reports-> fetch_assoc()){

echo "<tr><td hidden> ".$row["id"]." ?>

</td><td><b>".'F00'.$row["ticket_no"] <iframe id="txtArea1"


."</t
d></b><td>".$row["Department"]."</t style="display:none"></iframe>
d><td
<script>
>".$row["window_no_finish"]."</td><t
d>". function fnExcelReport() {

$row["trans_date"]."</td><td>".$row[" var tab_text = "<table border='2px'><tr


trans

_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>";

//tab_text=tab_text+"</tr>";
}
}
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

tab_text = tab_text + "</table>"; sa =

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;

// If Internet Explorer </script>

if (msie > 0 </body>

|| </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

?> background-color: purple;

<!DOCTYPE html> color: white; padding: 15px 32px; text-


align: center; text-decoration: none;
<html lang="en"> display: inline-block; font-size: 16px;
border-radius: 12px; font-size: 24px;
<head> width: 35%;

<meta charset="UTF-8"> }

<title>Admin Page</title> table.center { margin-left: auto; margin-


right: auto;
<link rel="stylesheet"
}
href="https://stackpath.bootstrapcdn.co
m/bo </style>
otstrap/4.5.2/css/bootstrap.min.css">
<meta charset="UTF-8">
<link rel="stylesheet"
href="header.css"> <meta name="viewport"
content="width=device-width,
<style> initial- scale=1">

body{ font: 14px sans-serif; </head>


background-color:skyblue;
<body>
}
<!-- <div class="header">
.wrapper{ width: 360px; padding:
20px; } <marquee><h1 class="my-5">Hi,

th, td, table { padding-top: 10px; <b><?php echo $login_session;


padding-bottom: 20px; padding-left: ?></b>! Welcome to our
30px; padding-right: 40px; border: System.</h1></marquee>
none;
</div> -->
text-align: center;
<!--
}
<div class="navbar">
.button {
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<a <div class="navbar">


href="welcome_admin.php">Home</a
> <a href="adminpage.php">Home</a>

<a <!-- <a


href="dashboard.php">Dashboard</a>
href="dashboard.php">Dashboard</a>
<a href="#">Account Management</a> -->

<a href="#">Reports</a> <a href="#">Account Management</a>

<a href="logout.php" <a href="#">Reports</a>

class="right">Logout</a> <a href="logout.php"

</div> --> class="right">Logout</a>

</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%">

<marquee><h1 class="my-5">Hi, <tr>

<b><?php echo $login_session; <td><a href


?></b>! Welcome to
DYCIQ.</h1></marquee> ="view_reports_frontline.php"class="b
utton ">Frontline</a></td>
</div>
<td><a href
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

="view_reports_cashier.php"class="but // // $sql_getwindow = "Select


ton" window_no from window_status where
win_status ='Free' limit 1;";
>Cashier</a></td>
// // $result_reports =
</tr> mysqli_query($conn,$sql_getwindow);

// // $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);

</tr> // $last = $result_last-> fetch_assoc();

// $ticket_no = $last['ticket_no'];

</table> // $ticket_formula = $ticket_no + 1;

<?php // $Name = $login_session;

// $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

// $insert_sql = 'INSERT INTO


dashboard
VALUES("null","'.$Name.'","'.$Depart // $sql_getlast = "Select ticket_no from
ment. '", "'.$ticket_last.'", dashboard where Department
"'.$Window.'", "'.$date.'", "'.$status.'")'; ='Registrar' Order by ticket_no DESC
limit 1;";
// mysqli_query($conn,$insert_sql);
// $result_last =

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;

// $new_staff = "Queue successfully


registered";
// $Name = $login_session;

// $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');

// echo "<script>location.href // $status= 'New';

='welcome_admin.php'</script>";

// $insert_sql = 'INSERT INTO


dashboard
// } VALUES("null","'.$Name.'","'.$Depart
ment. '", "'.$ticket_last.'",
"'.$Window.'", "'.$date.'", "'.$status.'")';

// else if(isset($_POST['registrar1'])){ // mysqli_query($conn,$insert_sql);

// $Window = '';
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

// $new_staff = "Queue successfully // $new_staff = "Queue successfully


registered"; registered";

// echo "<script // echo "<script

type='text/javascript'>alert('$new_staff' type='text/javascript'>alert('$new_staff'
);</s cript>"; );</s cript>";

// echo "<script>location.href // echo "<script>location.href

='welcome_admin.php'</script>"; ='welcome_admin.php'</script>";

// } // }

// else if(isset($_POST['cashier1'])){ // else

// $Name = $login_session; if(isset($_POST['scholarship1'])){

// $Window = 1; // $Name = $login_session;

// $Department = 'Cashier'; // $Window = 1;

// $date = date('Y/m/d H:i:s'); // $Department = 'Scholarship';

// $status= 'New'; // $date = date('Y/m/d H:i:s');

// $status= 'New';

// $insert_sql = 'INSERT INTO


dashboard
VALUES("'.$Name.'","'.$Department.' // $insert_sql = 'INSERT INTO
", "'.$Window.'", "'.$date.'", dashboard
"'.$status.'")'; VALUES("'.$Name.'","'.$Department.'
", "'.$Window.'", "'.$date.'",
// mysqli_query($conn,$insert_sql); "'.$status.'")';

// mysqli_query($conn,$insert_sql);
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

// $new_staff = "Queue successfully <?php


registered";
include ("session.php");
// echo "<script
?>
type='text/javascript'>alert('$new_staff'
);</s cript>"; <!DOCTYPE html>

<html lang="en">

// echo "<script>location.href <head>

='welcome_admin.php'</script>"; <meta charset="UTF-8">

<title>REPORTS registrar</title>

// } <link rel="stylesheet"

// } href="https://stackpath.bootstrapcdn.co
m/bo
otstrap/4.5.2/css/bootstrap.min.css">

?> <link rel="stylesheet"


href="header.css">
</body>
<style>
</html>
body{ font: 14px sans-serif; }

.wrapper{ width: 360px; padding:


20px; }

.button1{

background-color: #c57b57; color:


black;

padding: 15px 32px; text-align: center;


view_reports_registrar.php text-decoration: none; display: inline-
block; font-size: 16px; border-radius:
12px;
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

</style>

font-size: 24px; border: none; <meta charset="UTF-8">

<meta name="viewport"
content="width=device-width,
} initial- scale=1">

.button2{ </head>

background-color: #d9fdc8; color: <body>


black;
<div class="header">
padding: 10px 15px; text-align: center;
text-decoration: none; display: inline-
block; font-size: 16px; border-radius:
12px; font-size: 24px; border: none; <marquee><h1 class="my-5">Hi,

} <b><?php echo $login_session;


?></b>! Welcome to
.button3{ DYCIQ.</h1></marquee>

background-color: #76fdeb; color: </div>


black;

padding: 15px 32px; text-align: center;


text-decoration: none; display: inline- <div class="navbar">
block; font-size: 16px; border-radius:
12px; font-size: 24px; border: none; <a href="adminpage.php">Home</a>

} <!-- <a href="#">Dashboard</a> -->

input[type=date],[type=text]{ padding: <!-- <a href="#">Account


10px; Management</a> -->

border-radius: 10px <a href="#">Reports</a>

} <a href="logout.php"

class="right">Logout</a>

</div>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<?php ?>

//getting the current serving .

$sql_view_current= "Select ticket_no <br<br><br><br><br>


from dashboard where trans_status
<center> <h1> registrar REPORTS OF
='Finished' or trans_status ='In TRANSACTIONS </h1></center>
Transaction' and Department
='Frontline' Order by(case when
trans_status = 'In Transaction' then 2
else 1 end) DESC, id DESC limit 1;"; <br><br><br>

$result_current =

mysqli_query($conn,$sql_view_current <!-- <center> <h1>


); Currently Serving

$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>"; ?>

$sql_endticket= "Select count(*) as <form method="POST">


total_trans from dashboard where
department='Frontline' and Trans_date <tr>
= '".$dateval."'";

$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>

$sql_view_totaltrans= "Select Count(*) <tr>


as total_trans from dashboard where
Department = 'registrar'"; <td><input type="date"
class="" id="date223"
$result_totaltrans = name="date223">&emsp;<input
type="date" class=""
mysqli_query($conn,$sql_view_totaltra id="date2"
ns); name="date2">&emsp;<input
type="submit"
$total_trans = class="button2"
$result_totaltrans ->
fetch_assoc(); id="datexd123"
name="datexd123" value="Apply
} Date"> <input type="Text" class=""
id="search1"
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

name="search1"> &emsp;
<input
type="submit" class="button3"

id="search123" name="search123" if(isset($_POST['datexd123'])){


value="Search"><br><br>
&emsp;&emsp;&emsp;&emsp; $dateval =
<button class="button3"
id="btnExport" mysqli_real_escape_string($conn,$_PO
onclick="fnExcelReport();"> ST[' date2']);
EXPORT
$dateval2 =
</button></td>
mysqli_real_escape_string($conn,$_PO
</tr> ST[' date223']);

</table> echo "<script

</form> type='text/javascript'>alert('".$dateval."
' and '".$dateval2."');</script>";

$sql_endticket= "Select id, ticket_no,


<Center><table id="customers"> Department, Window_no,
window_no_finish,
<tr> <th hidden> ID </th> trans_date,trans_time, trans_status from
dashboard where trans_date
<th>Customer #</th> BETWEEN

<th>Department</th> '".$dateval2."'and'".$dateval."' and


department= 'registrar'";
<th>Window #</th>
$result_endticket =
<th>Date</th>
mysqli_query($conn,$sql_endticket);
<th>Time</th>
$result_reports_rowcount =
<th>Status</th> mysqli_num_rows($result_endticket);

//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);

</td><td><b>".'R00'.$row["ticket_no"] //echo "<script


."</t
d></b><td>".$row["Department"]."</t type='text/javascript'>alert('$searchvalf
d><td inal');

>".$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){

} while ( $row = $result_endticket->

fetch_assoc()){

echo "<tr><td hidden>


".$row["id"]."

</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);

$row["trans_date"]."</td><td>".$row[" //printf("Result set has %d


trans rows.\n",

_time"]."</td><td>".$row["trans_status $result_reports_rowcount);
"]."<
if ($result_reports_rowcount > 0){
/td></tr>";
while ( $row =
} $result_reports-> fetch_assoc()){

echo "</table>"; echo "<tr><td hidden> ".$row["id"]."

</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_text = "<table border='2px'><tr var msie =


bgcolor='#87AFC6'>"; window.navigator.userAgent.indexOf("
MSI E ");
var j = 0;

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

} else { <title>REPORTS scholarship</title>

<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>

body{ font: 14px sans-serif; }


return sa;
.wrapper{ width: 360px; padding:
} 20px; }

</script>

</body> .button1{

</html> background-color: #c57b57; color:


black;

padding: 15px 32px; text-align: center;


view_reports_scholarship.php text-decoration: none; display: inline-
block; font-size: 16px; border-radius:
12px; font-size: 24px; border: none;

<?php

include ("session.php"); .button2{

?> background-color: #d9fdc8; color:


black;
<!DOCTYPE html>
padding: 10px 15px; text-align: center;
<html lang="en"> text-decoration: none; display: inline-
block; font-size: 16px; border-radius:
<head> 12px; font-size: 24px; border: none;

<meta charset="UTF-8"> }
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

.button3{ </div>

background-color: #76fdeb; color:


black;
<div class="navbar">
padding: 15px 32px; text-align: center;
text-decoration: none; display: inline- <a href="adminpage.php">Home</a>
block; font-size: 16px; border-radius:
12px; font-size: 24px; border: none; <!-- <a href="#">Dashboard</a> -->

} <!-- <a href="#">Account


Management</a> -->
input[type=date],[type=text]{ padding:
10px; <a href="#">Reports</a>

border-radius: 10px <a href="logout.php"

} class="right">Logout</a>

</div>

</style> <?php

<meta charset="UTF-8"> //getting the current serving .

<meta name="viewport" $sql_view_current= "Select ticket_no


content="width=device-width, from dashboard where trans_status
initial- scale=1">
='Finished' or trans_status ='In
</head> Transaction' and Department
='Frontline' Order by(case when
<body> trans_status = 'In Transaction' then 2
else 1 end) DESC, id DESC limit 1;";
<div class="header">
$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();
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

$current_ticket = <center> <h2> CS #:


<?php //echo 'F00'.$current_ticket
$total_current['ticket_no']; ?> </h2></center> -->

// if(isset($total_current['ticket_no'])){ <!-- -->

// $current_ticket = <Center><table id="ggwp">

$total_current['ticket_no']; <?php

// } //getting the total transactions

// 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>";

$sql_endticket= "Select count(*) as


<br<br><br><br><br> total_trans from dashboard where
department='Frontline' and Trans_date
<center> <h1> scholarship REPORTS = '".$dateval."'";
OF TRANSACTIONS </h1></center>
$result_endticket =
<br><br><br>
mysqli_query($conn,$sql_endticket);

$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>

$sql_view_totaltrans= "Select Count(*) <td><input type="date"


as total_trans from dashboard where class="" id="date223"
Department = 'scholarship'"; name="date223">&emsp;<input
type="date" class=""
$result_totaltrans = id="date2"
name="date2">&emsp;<input
mysqli_query($conn,$sql_view_totaltra type="submit"
ns); class="button2"

$total_trans = id="datexd123"
$result_totaltrans -> name="datexd123" value="Apply
fetch_assoc(); Date"> <input type="Text" class=""
id="search1" name="search1"> &emsp;
} <input
type="submit" class="button3"
id="search123"
name="search123"
?> value="Search">
&emsp;&emsp;&emsp;&emsp;
<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>Customer #</th> window_no_finish,


trans_date,trans_time, trans_status from
<th>Department</th> dashboard where trans_date
BETWEEN
<th>Window #</th>
'".$dateval2."'and'".$dateval."' and
<th>Date</th> department= 'scholarship'";

<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){

while ( $row = $result_endticket->

fetch_assoc()){

if(isset($_POST['datexd123'])){

$dateval = echo "<tr><td hidden>


".$row["id"]."
mysqli_real_escape_string($conn,$_PO
ST[' </td><td><b>".'S00'.$row["ticket_no"]
."</t
d></b><td>".$row["Department"]."</t
d><td
$dateval2 =
>".$row["window_no_finish"]."</td><t
mysqli_real_escape_string($conn,$_PO d>".
ST[' date223']);
$row["trans_date"]."</td><td>".$row["
echo "<script trans

type='text/javascript'>alert('".$dateval." _time"]."</td><td>".$row["trans_status
' and '".$dateval2."');</script>"; "]."<

$sql_endticket= "Select id, ticket_no, /td></tr>";


Department, Window_no,
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

} $result_endticket =

mysqli_query($conn,$sql_endticket);

echo "</table>"; $result_reports_rowcount =


mysqli_num_rows($result_endticket);

//mysqli_query($conn,$sql_view_curre
} nt); if ($result_reports_rowcount > 0){

while ( $row = $result_endticket->

} fetch_assoc()){

trans_status from dashboard


where department='scholarship';";
else if(isset($_POST['search123'])){

$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);

//echo "<script //printf("Result set has %d


rows.\n",
type='text/javascript'>alert('$searchvalf
inal'); $result_reports_rowcount);

</script>"; if ($result_reports_rowcount > 0){

$sql_endticket= "Select id, ticket_no, while ( $row =


Department, Window_no, $result_reports-> fetch_assoc()){
window_no_finish,
trans_date,trans_time, trans_status from
dashboard where
department='scholarship' and ticket_no echo "<tr><td hidden> ".$row["id"]."
= ".$searchvalfinal."";
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

</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>".

$row["trans_date"]."</td><td>".$row[" echo "</table>";


trans

_time"]."</td><td>".$row["trans_status
"]."< }

/td></tr>";

} }

else{

echo "</table>"; $sql_view_reports = "Select id,


ticket_no, Department,
Window_no,

echo "<tr><td hidden> <iframe id="txtArea1"


".$row["id"]." }
style="display:none"></iframe>
</td><td><b>".'S00'.$row["ticket_no"]
."</t <script>
d></b><td>".$row["Department"]."</t
d><td function fnExcelReport() {

>".$row["window_no_finish"]."</td><t var tab_text = "<table border='2px'><tr


d>". } bgcolor='#87AFC6'>";

$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

var tab = // If Internet Explorer


document.getElementById('customers')
; // id of table if (msie > 0

||
!!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 = tab_text + "</table>"; sa =

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 }

var msie = return sa;


window.navigator.userAgent.indexOf("
MSI E "); }

</script>
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

</body> <meta name="viewport"


content="width=device-width,
</html> initial- scale=1">

<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"

href="https://stackpath.bootstrapcdn.co .wrapper{ width: 360px; padding:


m/bo 20px; }
otstrap/4.5.2/css/bootstrap.min.css">
th, td, table { padding-top: 10px;
<link rel="stylesheet" padding-bottom: 20px; padding-left:
href="header.css"> 30px; padding-right: 40px; border:
none;
<meta charset="utf-8">
text-align: center;
DR. YANGA’S COLLEGES, INC.
Optimizing School Processes through DYCIQ System

<a href="#">Reports</a> <meta name="viewport"


content="width=device-width,
<a href="logout.php" initial- scale=1">

class="right">Logout</a> </head>

</div> --> <body>

</style> <!-- <div class="header">

</head> <marquee><h1 class="my-5">Hi,

<body> <b><?php echo $login_session;


?></b>! Welcome to our
System.</h1></marquee>

<Br> </div> -->

<!--

} <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>

<form method="POST" </form>


action="ticket_print_and_submit.php"
id="myForm" > </body>

<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>

You might also like