Skip to content

Commit

Permalink
Minor Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
omkar2403 committed Nov 21, 2019
1 parent aadb644 commit 2f21e14
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 23 deletions.
2 changes: 1 addition & 1 deletion DB/inout.sql
Expand Up @@ -17,7 +17,7 @@ SET time_zone = "+00:00";
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `inout`
-- Database: `lib`
--

-- --------------------------------------------------------
Expand Down
10 changes: 3 additions & 7 deletions README.md
@@ -1,6 +1,4 @@
Download Stable Version 3 from Release Panel.

Find Readme.pdf For more information.
Download Stable Version 4 from Release Panel.

SUGGESTIONS ARE WELCOME. FEEL FREE TO CONTACT.

Expand All @@ -10,19 +8,17 @@ In out management system is web based application. It is used to track the patro

There are two interfaces, one is for the reading barcodes at the door and another one is for access the reports. This system will generate four types of reports in the form of excel sheet and can be downloaded. There are three user by default for administration of this system. Master user can have eye on every location added in the system. And the other two users for respected locations.

The system uses koha database to fetch the information of patrons and store it another database along with the location, entry time and exit time. These data can be accessed from admin panel in various manner like datewise, timewise, USN wise and many more.
The system uses koha database to fetch the information of patrons and store it another database along with the location, entry time and exit time. These data can be accessed from admin panel in various manner like datewise, timewise, student wise and many more.

Thank You

Locate/Find Readme.pdf For more information.

Find the Guide Here: https://writeride.in/how-to-install-in-out-management-system/

Profile @ https://omkar2403.github.io/its_me/

Mail Me @ omkar.kakeru@gmail.com

Demo Video @ https://www.youtube.com/watch?v=1LqqwKYamHc&t=12s
Demo Video @ https://www.youtube.com/watch?v=1LqqwKYamHc

In Out Management System by Omkar Kakeru is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.

3 changes: 0 additions & 3 deletions functions/dbfunc.php
@@ -1,7 +1,4 @@
<?php

date_default_timezone_set("Asia/Kolkata");

function getroles($conn){
$sql = "SELECT * FROM roles";
$result = mysqli_query($conn, $sql);
Expand Down
5 changes: 4 additions & 1 deletion index.php
Expand Up @@ -12,11 +12,14 @@
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
Welcome <?php echo $_SESSION['user_name']; ?>..
Welcome <?php echo $_SESSION['user_name']; ?>..
</div>
</div>
</div>
</div>
<script type="text/javascript">

</script>
<!-- MAIN CONTENT ENDS -->
<?php
if($_GET['msg']=="Evening"){
Expand Down
2 changes: 1 addition & 1 deletion login_verify.php
Expand Up @@ -55,7 +55,7 @@
if($role['rname'] == "Admin"){
$_SESSION["id"] = $role['rname'];
$_SESSION["loc"] = $loc;
$_SESSION["lib"] = $setup['libname'];
$_SESSION["lib"] = $setup['cname'];
header("Location: index.php?msg=".$_SESSION['t']);
}elseif ($role['rname'] == "User") {
$_SESSION["id"] = $role['rname'];
Expand Down
4 changes: 2 additions & 2 deletions register.php
Expand Up @@ -41,9 +41,9 @@
<tbody>
<?php
$date = date('d-m-Y');
echo "<script type='text/javascript'>var printMsg = 'Entry Register for ".$slib." Inout System Data';</script>";
echo "<script type='text/javascript'>var printMsg = '".$_SESSION['lib']." Entry Register for ".$slib." Recent 500 entries Inout System Data'; </script>";
$date = date('Y-m-d');
$sql = "SELECT * FROM `inout` where `loc` = '$slib'";
$sql = "SELECT * FROM `inout` where `loc` = '$slib' ORDER BY sl DESC LIMIT 500";
$result = mysqli_query($conn, $sql) or die("Invalid query: " . mysqli_error($conn));
while ($row = mysqli_fetch_array($result)) {
?>
Expand Down
9 changes: 5 additions & 4 deletions report.php
Expand Up @@ -11,6 +11,7 @@
require "functions/dbfunc.php";
require "functions/general.php";
$slib = $_SESSION['loc'];
$cname = $_SESSION["lib"];
?>
<!-- MAIN CONTENT START -->
<?php
Expand Down Expand Up @@ -145,7 +146,7 @@
</thead>
<tbody>
<?php
echo "<script type='text/javascript'>var printMsg = 'Datewise Inout System Report From ".$fdate." To ".$tdate."';</script>";
echo "<script type='text/javascript'>var printMsg = '".$_SESSION['lib']." Datewise Inout System Report From ".$fdate." To ".$tdate."';</script>";
while ($row = mysqli_fetch_array($result)) {
?>
<tr>
Expand Down Expand Up @@ -211,7 +212,7 @@
</thead>
<tbody>
<?php
echo "<script type='text/javascript'>var printMsg = 'Short Datewise Student Report For ".$usn." From ".$fdate." To ".$tdate."';</script>";
echo "<script type='text/javascript'>var printMsg = '".$_SESSION['lib']." Short Datewise Student Report For ".$usn." From ".$fdate." To ".$tdate."';</script>";
while ($row = mysqli_fetch_array($result)) {
$time = "00:00:00";
$tot = date("H:i", strtotime($time) + $row[2]);
Expand Down Expand Up @@ -264,7 +265,7 @@
</thead>
<tbody>
<?php
echo "<script type='text/javascript'>var printMsg = 'Detailed Inout System Report for ".$usn." From ".$fdate." To ".$tdate."';</script>";
echo "<script type='text/javascript'>var printMsg = '".$_SESSION['lib']." Detailed Inout System Report for ".$usn." From ".$fdate." To ".$tdate."';</script>";
while ($row = mysqli_fetch_array($result)) {
?>
<tr>
Expand Down Expand Up @@ -319,7 +320,7 @@
</thead>
<tbody>
<?php
echo "<script type='text/javascript'>var printMsg = 'Statistical Inout System Report From ".$fdate." To ".$tdate."';</script>";
echo "<script type='text/javascript'>var printMsg = '".$_SESSION['lib']." Statistical Inout System Report From ".$fdate." To ".$tdate."';</script>";

if($slib=="Master"){
$query = "SELECT * FROM `loc`";
Expand Down
1 change: 0 additions & 1 deletion template/header.php
Expand Up @@ -14,7 +14,6 @@
<script src="assets/js/custom.js" type="text/javascript" ></script>
<script src="assets/js/plugins/bootstrap-notify.js"></script>
<?php
date_default_timezone_set("Asia/Kolkata");
if($table){
?>
<link rel="stylesheet" type="text/css" href="assets/DataTables/datatables.min.css"/>
Expand Down
2 changes: 1 addition & 1 deletion today.php
Expand Up @@ -42,7 +42,7 @@
<tbody>
<?php
$date = date('d-m-Y');
echo "<script type='text/javascript'>var printMsg = 'Todays(".$date.") Inout System Data';</script>";
echo "<script type='text/javascript'>var printMsg = '".$_SESSION['lib']." Today (".$date.") Inout System Data';</script>";
$date = date('Y-m-d');
$sql = "SELECT * FROM `inout` WHERE date = '$date' and `loc` = '$slib'";
$result = mysqli_query($conn, $sql) or die("Invalid query: " . mysqli_error());
Expand Down
4 changes: 2 additions & 2 deletions user.php
Expand Up @@ -41,8 +41,8 @@
<img src="img/logo.jpg" height="125" width="125">
</div> -->
<div class="col-xs-12 col-md-12 col-lg-12 text-center main_title" >
<div class="h1 title" style="font-size: 29px;"><b><?php echo $cname[0]; ?></b></div>
<div class="h2 sub_title"><b>Welcome to <?php echo $_SESSION['loc']; ?></b><br><h3>In / Out Management System</h3></div>
<div class="h1 title" style="font-size: 29px;"><b><?php echo $_SESSION['lib']; ?></b></div>
<div class="h2 sub_title"><b>Welcome to <?php echo $_SESSION['loc']; ?></b><br><h4>In / Out Management System</h4></div>

</div>
<!-- <div class="col-xs-2 col-md-2 col-lg-2" >
Expand Down

0 comments on commit 2f21e14

Please sign in to comment.