Lowry Adventist College (Gopichand)
Lowry Adventist College (Gopichand)
Dooravaninagar, Bangalore-560016
Project report
On
1
Lowry ADVENTIST College
Dooravaninagar, Banaglore-560016
Reg.no…………………………………
Examination centre…………………
University valuers
1.
2.
2
CERTIFICATE OF THE GUIDE
This is to certify that the project work titled “Cyber Cafe Management
Place: Bangalore
Date:
Ms. SUMMAIYA H
Dooravaninagar, Bangalore-560016
3
STUDENT DECLARATION
Mr. Gopichand Kokkiripati hereby declare that project work entitled “Cyber cafe
this project work is submitted in partial fulfilment of the requirements for the award of
degree of Bachelor of Computer Application. The results embodied in this have not
been submitted to any other university or Institute for the award of any degree or
diploma.
By
4
ACKNOWLEDGEMENT
In the present world of the competition there is a race of existence in which those are
having will to come forward succeed. Project is like a bridge between theoretical and
practical working. However, it would not have been possible without the kind support and
help of many individuals.
We would like to express our deepest gratitude to PROF. WG JOHN CALVIN our
Academic dean and Mr. VASANTH WASON HOD of Computer Application
Department for all undergoing the project.
Very special thanks to Ms. SUMMAIYA H for her encouragement and valuable
guidance has been the ones that helped us to patch this project and make it full proof
success her suggestion and her instruction has served as the major contribution towards
the completion of the project.
A debt of gratitude to all my friends who have helped us with their valuable suggestions
and guidance has been helpful in various phases of the completion of the project.
By
Gopichand Kokkiripati
5
CONTENTS
6
SYNOPSIS
Computers have become a way of life for today’s high society. Many aspects of
modern life that we have come to accept as common place would not be possible if
there were no computers. Today computers are used extensively in many areas of
The major advantage of computer is its speed that makes it able to give some useful
information very quickly. This speed also opens new approaches to problem
solving and data processing. Another feature is its accuracy. Though the computers
do only what is instructed at every instant, these instructions are taken into account
and accurate information’s are produced. Computer can hold data and instruction
any time
which can be used in cyber cafés for managing the clients’ computer efficiently.
Now a day’s cyber terrorism, which is mainly undergone through internet cafés,
information of the user who comes for internet access. The system being used, the
time at which the user logs in and logs out should be recorded systematically.
In this modern era, a number of people access the internet frequently by means of
cyber cafes. For such frequent users, a prepaid account shall be maintained and
discounted rates may be charged from them. While walkthrough users, who are less
7
frequent, are charged a fixed rate. By using the LAN connections in the cyber cafes
we can automate this process very easily. This system comprises of the following
modules:
The server module, which is handled by the administrator can create new accounts
for prepaid users and also store the details of walkthrough customers. While in the
client module, which is handled by users themselves, the user should give his/her
user-id and password to start browsing. After they are logged out, the time and
amount will be automatically generated at the server module and the bill is provided
to the user.
This system is developed in PHP language with My SQL as backend. The system is a
menu driven one. User-friendly menus will help the administrator to work on it
8
INTRODUCTION
In this project an attempt is made to design a computer system for the CYBER
CAFÉ that makes the management of recording user details, internet usage and
billing much easier. The objective of this software is to maintain the details of
users, cabins and login history. Through this system we provide facility of prepaid
and post-paid accounts respectively for Account Users and Walkthrough Users.
The Software powered by PHP assures clear and efficient services to the
agency. This easy-to-operate system helps to access and modify user details,
provides efficient billing facility. The software is designed to provide Reliable and
error free information. The database is driven by My SQL thus providing
portability.
9
SOFTWARE AND HARDWARE SPECIFICATIONS
HARDWARE REQUIREMENTS:
RAM : 8GB
SOFTWARE REQUIREMENTS:
Database : MySQL
Server : Apache
Frontend : HTML
IDE : Sublime
Technology : PHP
10
PROJECT OVERVIEW
In Cyber Café Management System we use PHP and MySQL database. This is the
project which keeps records of daily users of cyber cafe. Cyber Café
Management System has one module i.e. admin.
1. HTML
WHAT IS HTML?
11
HTML Gives Authors the Means To
1. Publish online documents with headings, text, tables, list, photos etc.
2. Retrieve online information via hypertext links, at the click of a button
3. Design forms for conducting transactions with remote services, for use in
searching information, making reservation, ordering products etc.;
4. Includes spreadsheets, video clips, sound clips, and other applications directly
in the documents.
12
HTML 4.0
HTML 4.0 extends with mechanisms for style sheets, scripting, frames embedding
objects, improved support for right to left and mixed direction texts, richer tables
and enhancements to form, offering improved accessibilities for people with
disability.
EX: <HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<SCRIPT LANGUAGE=”JavaScript”>
</SCRIPT>
</BODY></HTML>
13
JAVASCRIPTS OBJECTS
1. Document: Corresponds to the current Web page’s body. Using this object,
you have access to the HTML of the page itself, including the all links, images
and anchors in it.
2. Form: Holds information about HTML forms in the current page.
3. Frame: Refers to a frame in the browser’s window.
4. History: Holds the records of sites the Web browser has visited before
reaching the current page.
5. Location: Holds information about the location of the current web page.
6. Navigator: Refers to the browser itself, letting you determine what browser
the user has.
7. Window: Refers to the current browser window.
JAVASCRIPTS EVENTS
14
JAVASCRIPTS FUNCTIONS
Declaration of function
5.RDBMS CONCEPTS
1. DATA ABSTRACTION
2. CLASSIFICATION OF DATABASE
a. Hierarchical Database:
15
In this type of model data is represented in simple tree structured. The
record at the top of three is known as root, the root may have any
number of dependents. Each of these may have any number of low level
dependents and so on up to any number of levels. The disadvantages of
the approach are that no independent record occurrence can exist
without it’s superior.
b. Network Database:
c. Relational Database:
Features of SQL
16
4. SQL is a client/server language.
5. SQL is a distributed database language.
6. SQL is a database gateway language.
PHP
• PHP files can contain text, HTML, CSS, JavaScript, and PHP code
• PHP code are executed on the server, and the result is returned to the
browser as plain HTML
• PHP files have extension ".php"
With PHP you are not limited to output HTML. You can output images, PDF files,
and even Flash movies. You can also output any text, such as XHTML and XML.
17
DESIGN DOCUMENT
• The entire system is projected with a physical diagram which specifics the
actual storage parameters that are physically necessary for any database to
be stored on to the disk. The overall systems existential idea is derived from
this diagram.
• The content level DFD is provided to have an idea of the functional inputs
and outputs that are achieved through the system. The system depicts the
input and output standards at the high level of the systems existence.
A DFD does not show a sequence of steps. A DFD only shows what the different
process in a system is and what data flows between them.
External entities
18
RULES FOR DFD:
19
LEVELS OF DFD:
The complexity of the business system means that it is a responsible to represent the operations of
any system of single data flow diagram. At the top level, an Overview of the different systems in
an organization is shown by the way of context analysis diagram. When exploded into DFD
A level-0 DFD describes the system-wide boundaries, dealing inputs to and outputs from
the system and major processes. This diagram is similar to the combined user-level context
diagram.
A level-1 DFD describes the next level of details within the system, detailing the data flows
between subsystems, which makeup the whole.
All the projects are feasible given unlimited resources and infinite time. It is both necessary and
prudent to evaluate the feasibility of the project at the earliest possible time. Feasibility and the
risk analysis are pertained in many ways. If project risk is great.
20
FIRST LEVEL DTAFLOW DIAGRAM
0.0
1.1
User
DB DB
1.2
Admin
1.1.1.1
Add
User
Computer
Details
Admin Info
21
2. Unified Modeling Language Diagrams(UML):
• A UML system is represented using five different views that describe the
system from distinctly different perspective. Each view is defined by a set of
diagram, which is as follows.
ii. The analysis representation describes a usage scenario from the end-users
perspective.
Structural model view
◆ In this model the data and functionality are arrived from inside the system.
◆ In this the structural and behavioral as parts of the system are represented
as they are to be built.
In this the structural and behavioral aspects of the environment in which the system
is to be implemented are represented.
22
◆ UML Analysis modeling, which focuses on the user model and
structural model views of the system?
Sign in
Dashboard
Manage Computer
(Add / Update)
Manage User
(Add/ Update
details)
Generate Reports
Change Password
Password Recovery
23
ENTITY-RELATIONSHIP Diagrams
Represent attributes.
24
The traditional approach focuses on the cost benefit and feasibility analysis, Project
management, and hardware and software selection a personal considerations.
25
DATABASE DESIGN
The data in the system has to be stored and retrieved from database. Designing the
database is part of system design. Data elements and data structures to be stored have
been identified at analysis stage. They are structured and put together to design the
serve many users quickly and efficiently. The general objective is to make database
access easy, quick, inexpensive and flexible for the user. Relationships are
established between the data items and unnecessary data items are removed.
redundancy and maximum stability. This ensures minimizing data storage required,
Access database has been chosen for developing the relevant databases.
tbluser table Structure : This table store the login and personal details of user.
26
tblcomputers table Structure : This table store the computer and cabin details.
tblusers table Structure : This table store the user personal and computer usage details .
Class Diagram:
The class diagram shows a set of classes, interfaces, collaborations and their
relationships.
27
SYSTEM TESTING
TESTING OBJECTIVES:
2. A good test case design is one that has a probability of finding an as yet
undiscovered error.
Testing cannot show the absence of defects, it can only show that software
1. Unit test
2. Integration test
3. Performance test
28
Unit Testing:
Unit testing focuses verification efforts on the smallest unit of software design
module. The unit test is always white box oriented. The tests that occur as part of
unit testing are testing the module interface, examining the local data structures,
testing the boundary conditions, execution all the independent paths and testing
error-handling paths.
Integration Testing:
Performance Testing:
Timing for both read and update transactions should be gathered to determine
whether system functions are being performed in an acceptable timeframe.
29
OUTPUT SCREENSHOTS
Admin Login
Dashboard
30
Profile
Change Password
31
Add Computer
Manage Computer
32
Update Computer
Add Users
33
Update user
34
User Details
Search data
35
Between Reports
36
Forgot Password
Reset Password
37
SOURCE CODE
Dashboard:
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
if (strlen($_SESSION['ccmsaid']==0)) {
header('location:logout.php');
}
?>
<!doctype html>
<html class="no-js" lang="en">
<head>
<title>CCMS Admin Dashboard</title>
<link rel="apple-touch-icon" href="apple-icon.png">
<link rel="stylesheet" href="vendors/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="vendors/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="vendors/themify-icons/css/themify-icons.css">
<link rel="stylesheet" href="vendors/flag-icon-css/css/flag-icon.min.css">
<link rel="stylesheet" href="vendors/selectFX/css/cs-skin-elastic.css">
<link rel="stylesheet" href="vendors/jqvmap/dist/jqvmap.min.css">
<link rel="stylesheet" href="assets/css/style.css">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800'
rel='stylesheet' type='text/css'>
</head>
<body>
<?php include_once('includes/sidebar.php');?>
38
<div id="right-panel" class="right-panel">
<?php include_once('includes/header.php');?>
<!-- Header-->
<div class="breadcrumbs">
<div class="col-sm-4">
<div class="page-header float-left">
<div class="page-title">
<h1>Dashboard</h1>
</div>
</div>
</div>
<div class="col-sm-8">
<div class="page-header float-right">
<div class="page-title">
<ol class="breadcrumb text-right">
<li class="active">Dashboard</li>
</ol>
</div>
</div>
</div>
</div>
<div class="content mt-3">
<div class="col-sm-6 col-lg-6">
<div class="card text-white bg-flat-color-4">
<div class="card-body pb-0">
<div class="dropdown float-right">
<button class="btn bg-transparent dropdown-toggle theme-toggle text-light"
type="button" id="dropdownMenuButton4" data-toggle="dropdown">
<i class="fa fa-cog"></i>
39
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton4">
<div class="dropdown-menu-content">
<a class="dropdown-item" href="view-allusers.php">Action</a>
</div>
</div>
</div>
<?php $query=mysqli_query($con,"Select * from tblusers");
$usercounts=mysqli_num_rows($query);
?>
<h4 class="mb-0">
<span class="count"><?php echo $usercounts;?></span>
</h4>
<p class="text-light">Total Number of Users</p>
<div class="chart-wrapper px-3" style="height:70px;" height="70">
<canvas id="widgetChart4"></canvas>
</div>
</div>
</div>
</div>
<!--/.col-->
<div class="col-sm-6 col-lg-6">
<div class="card text-white bg-flat-color-2">
<div class="card-body pb-0">
<div class="dropdown float-right">
<button class="btn bg-transparent dropdown-toggle theme-toggle text-light"
type="button" id="dropdownMenuButton2" data-toggle="dropdown">
<i class="fa fa-cog"></i>
</button>
40
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton2">
<div class="dropdown-menu-content">
<a class="dropdown-item" href="manage-computer.php">Action</a
</div>
</div>
</div>
<?php $query1=mysqli_query($con,"Select * from tblcomputers");
$totalcomp=mysqli_num_rows($query1);
?>
<h4 class="mb-0">
<span class="count"><?php echo $totalcomp;?></span>
</h4>
<p class="text-light">Total Computers</p>
<div class="chart-wrapper px-0" style="height:70px;" height="70">
<canvas id="widgetChart2"></canvas>
</div>
</div>
</div>
</div>
</div> <!-- .content -->
</div><!-- /#right-panel -->
<!-- Right Panel -->
<script src="vendors/jquery/dist/jquery.min.js"></script>
<script src="vendors/popper.js/dist/umd/popper.min.js"></script>
<script src="vendors/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="assets/js/main.js"></script>
<script src="vendors/chart.js/dist/Chart.bundle.min.js"></script>
<script src="assets/js/dashboard.js"></script>
<script src="assets/js/widgets.js"></script>
41
<script src="vendors/jqvmap/dist/jquery.vmap.min.js"></script>
<script src="vendors/jqvmap/examples/js/jquery.vmap.sampledata.js"></script>
<script src="vendors/jqvmap/dist/maps/jquery.vmap.world.js"></script>
<script>
(function($) {
"use strict";
jQuery('#vmap').vectorMap({
map: 'world_en',
backgroundColor: null,
color: '#ffffff',
hoverOpacity: 0.7,
selectedColor: '#1de9b6',
enableZoom: true,
showTooltip: true,
values: sample_data,
scaleColors: ['#1de9b6', '#03a9f5'],
normalizeFunction: 'polynomial'
});
})(jQuery);
</script>
</body>
Main:
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
if(isset($_POST['login']))
{
$adminuser=$_POST['username'];
42
$password=md5($_POST['password']);
$query=mysqli_query($con,"select ID from tbladmin where UserName='$adminuser' &&
Password='$password' ");
$ret=mysqli_fetch_array($query);
if($ret>0){
$_SESSION['ccmsaid']=$ret['ID'];
header('location:dashboard.php');
}
else{
$msg="Invalid Details.";
}
}
?>
<!doctype html>
<html class="no-js" lang="en">
<head>
<title>CCMS Admin Login</title>
<link rel="apple-touch-icon" href="apple-icon.png">
<link rel="stylesheet" href="vendors/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="vendors/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="vendors/themify-icons/css/themify-icons.css">
<link rel="stylesheet" href="vendors/flag-icon-css/css/flag-icon.min.css">
<link rel="stylesheet" href="vendors/selectFX/css/cs-skin-elastic.css">
<link rel="stylesheet" href="assets/css/style.css">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800'
rel='stylesheet' type='text/css'>
</head>
<body class="bg-dark" style=" background-image: url('images/bg.jpg');">
<div class="sufee-login d-flex align-content-center flex-wrap" >
<div class="container">
<div class="login-content">
<div class="login-logo">
<h3 style="color: white">Cyber Cafe Management System </h3>
43
<hr color="red"/>
</div>
<div class="login-form">
<form action="" method="post" name="login">
<p style="font-size:16px; color:red" align="center"> <?php if($msg){
echo $msg;
} ?> </p>
<div class="form-group">
<label>User Name</label>
<input type="text" class="form-control" placeholder="User Name"
required="true" name="username">
</div>
<div class="form-group">
<label>Password</label>
<input type="password" class="form-control" placeholder="Password"
name="password" required="true">
</div>
<div class="checkbox">
<label class="pull-right">
<a href="forgot-password.php">Forgot Password?</a>
</label>
</div>
<button type="submit" class="btn btn-success btn-flat m-b-30 m-t-30"
name="login">Sign in</button>
</form>
</div>
</div>
</div>
</div>
<script src="vendors/jquery/dist/jquery.min.js"></script>
<script src="vendors/popper.js/dist/umd/popper.min.js"></script>
<script src="vendors/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="assets/js/main.js"></script>
44
</body>
</html>
Adminprofile :
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
if (strlen($_SESSION['ccmsaid']==0)) {
header('location:logout.php');
} else{
if(isset($_POST['submit']))
{
$adminid=$_SESSION['ccmsaid'];
$AName=$_POST['adminname'];
$mobno=$_POST['mobilenumber'];
$email=$_POST['email'];
$query=mysqli_query($con, "update tbladmin set AdminName='$AName',
MobileNumber ='$mobno', Email= '$email' where ID='$adminid'");
if ($query) {
$msg="Admin profile has been updated.";
}
else
{
$msg="Something Went Wrong. Please try again.";
}
}
?>
<!doctype html>
<html class="no-js" lang="en">
<head>
<title>CCMS Admin Profile</title>
45
<link rel="apple-touch-icon" href="apple-icon.png">
<link rel="stylesheet" href="vendors/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="vendors/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="vendors/themify-icons/css/themify-icons.css">
<link rel="stylesheet" href="vendors/flag-icon-css/css/flag-icon.min.css">
<link rel="stylesheet" href="vendors/selectFX/css/cs-skin-elastic.css">
<link rel="stylesheet" href="assets/css/style.css">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800'
rel='stylesheet' type='text/css'>
</head>
<body>
<!-- Left Panel -->
<?php include_once('includes/sidebar.php');?>
<div id="right-panel" class="right-panel">
<!-- Header-->
<?php include_once('includes/header.php');?>
<div class="breadcrumbs">
<div class="col-sm-4">
<div class="page-header float-left">
<div class="page-title">
<h1>Admin Profile</h1>
</div>
</div>
</div>
<div class="col-sm-8">
<div class="page-header float-right">
<div class="page-title">
<ol class="breadcrumb text-right">
<li><a href="dashboard.php">Dashboard</a></li>
<li><a href="adminprofile.php">Admin Profile</a></li>
<li class="active">Update</li>
</ol>
46
</div>
</div>
</div>
</div>
<div class="content mt-3">
<div class="animated fadeIn">
<div class="row">
<div class="col-lg-6">
<!-- .card -->
</div>
<!--/.col-->
<div class="col-lg-12">
<div class="card">
<div class="card-header"><strong>Admin</strong><small>
Profile</small></div>
<form name="profile" method="post" action="">
<p style="font-size:16px; color:red" align="center"> <?php if($msg){
echo $msg;
} ?> </p>
<div class="card-body card-block">
<?php
$adminid=$_SESSION['ccmsaid'];
$ret=mysqli_query($con,"select * from tbladmin where ID='$adminid'");
$cnt=1;
while ($row=mysqli_fetch_array($ret)) {
?>
<div class="form-group"><label for="company" class=" form-control-
label">Admin Name</label><input type="text" name="adminname" value="<?php echo
$row['AdminName'];?>" class="form-control" required='true'></div>
<div class="form-group"><label for="vat" class=" form-control-
label">User Name</label><input type="text" name="username" value="<?php echo
$row['UserName'];?>" class="form-control" readonly=""></div>
<div class="form-group"><label for="street" class=" form-control-
label">Contact Number</label><input type="text" name="mobilenumber" value="<?php
47
echo $row['MobileNumber'];?>" class="form-control" maxlength='10'
required='true'></div>
<div class="row form-group">
<div class="col-12">
<div class="form-group"><label for="city" class=" form-
control-label">Email</label><input type="email" name="email" value="<?php echo
$row['Email'];?>" class="form-control" required='true'></div>
</div>
<div class="col-12">
<div class="form-group"><label for="postal-code"
class=" form-control-label">Admin Registration Date</label><input type="text" name=""
value="<?php echo $row['AdminRegdate'];?>" readonly="" class="form-control"></div>
</div>
</div>
</div>
<?php } ?>
<div class="card-footer">
<p style="text-align: center;"><button type="submit"
class="btn btn-primary btn-sm" name="submit" id="submit">
<i class="fa fa-dot-circle-o"></i> Update
</button></p>
</div>
</div>
</form>
</div>
</div>
</div><!-- .animated -->
</div><!-- .content -->
</div><!-- /#right-panel -->
<!-- Right Panel -->
<script src="vendors/jquery/dist/jquery.min.js"></script>
<script src="vendors/popper.js/dist/umd/popper.min.js"></script>
<script src="vendors/jquery-
validation/dist/jquery.validate.min.js"></script>
48
<script src="vendors/jquery-validation-
unobtrusive/dist/jquery.validate.unobtrusive.min.js"></script>
<script src="vendors/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>
<?php } ?>
All Users:
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
if (strlen($_SESSION['cdsmsaid']==0)) {
header('location:logout.php');
} else{
?>
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>CDSMS New Users</title>
<meta name="description" content="Sufee Admin - HTML5 Admin Template">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="apple-icon.png">
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="vendors/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="vendors/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="vendors/themify-icons/css/themify-icons.css">
<link rel="stylesheet" href="vendors/flag-icon-css/css/flag-icon.min.css">
49
<link rel="stylesheet" href="vendors/selectFX/css/cs-skin-elastic.css">
<link rel="stylesheet" href="assets/css/style.css">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800'
rel='stylesheet' type='text/css'>
</head>
<body>
<!-- Left Panel -->
<?php include_once('includes/sidebar.php');?>
<div id="right-panel" class="right-panel">
<!-- Header-->
<?php include_once('includes/header.php');?>
<div class="breadcrumbs">
<div class="col-sm-4">
<div class="page-header float-left">
<div class="page-title">
<h1>View Users</h1>
</div>
</div>
</div>
<div class="col-sm-8">
<div class="page-header float-right">
<div class="page-title">
<ol class="breadcrumb text-right">
<li><a href="dashboard.php">Dashboard</a></li>
<li><a href="registered-new-users.php">View New Users</a></li>
<li class="active">Users</li>
</ol>
</div>
</div>
</div>
</div>
50
<div class="content mt-3">
<div class="animated fadeIn">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-header">
<strong class="card-title">View Users</strong>
</div>
<div class="card-body">
<table class="table">
<thead>
<tr>
<tr>
<th>S.NO</th>
<th>Registration Number</th>
<th>Full Name</th>
<th>Action</th>
</tr>
</tr>
</thead>
<?php
$ret=mysqli_query($con,"select *from tbluser");
$cnt=1;
while ($row=mysqli_fetch_array($ret)) {
?>
<tr>
<td><?php echo $cnt;?></td>
<td><?php echo $row['RegNumber'];?></td>
<td><?php echo $row['FullName'];?></td>
<td><a href="view-regnewusers-detail.php?viewid=<?php echo
$row['ID'];?>">View Details</a></td>
</tr>
51
<?php
$cnt=$cnt+1;
}?>
</table>
</div>
</div>
</div>
</div>
</div><!-- .animated -->
</div><!-- .content -->
</div><!-- /#right-panel -->
<!-- Right Panel -->
<script src="vendors/jquery/dist/jquery.min.js"></script>
<script src="vendors/popper.js/dist/umd/popper.min.js"></script>
<script src="vendors/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>
<?php } ?>
Change password:
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
error_reporting(0);
if (strlen($_SESSION['ccmsaid']==0)) {
header('location:logout.php');
} else{
52
if(isset($_POST['submit']))
{
$adminid=$_SESSION['ccmsaid'];
$cpassword=md5($_POST['currentpassword']);
$newpassword=md5($_POST['newpassword']);
$query=mysqli_query($con,"select ID from tbladmin where ID='$adminid' and
Password='$cpassword'");
$row=mysqli_fetch_array($query);
if($row>0){
$ret=mysqli_query($con,"update tbladmin set Password='$newpassword' where
ID='$adminid'");
$msg= "Your password successully changed";
} else {
?>
<!doctype html>
<html class="no-js" lang="en">
<head>
53
<link rel="stylesheet" href="vendors/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="vendors/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="vendors/themify-icons/css/themify-icons.css">
<link rel="stylesheet" href="vendors/flag-icon-css/css/flag-icon.min.css">
<link rel="stylesheet" href="vendors/selectFX/css/cs-skin-elastic.css">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800'
rel='stylesheet' type='text/css'>
<script type="text/javascript">
function checkpass()
{
if(document.changepassword.newpassword.value!=document.changepassword.confirmpassw
ord.value)
{
alert('New Password and Confirm Password field does not match');
document.changepassword.confirmpassword.focus();
return false;
}
return true;
}
</script>
</head>
<body>
<!-- Left Panel -->
54
<?php include_once('includes/sidebar.php');?>
<!-- Header-->
<?php include_once('includes/header.php');?>
<div class="breadcrumbs">
<div class="col-sm-4">
<div class="page-header float-left">
<div class="page-title">
<h1>Change Password</h1>
</div>
</div>
</div>
<div class="col-sm-8">
<div class="page-header float-right">
<div class="page-title">
<ol class="breadcrumb text-right">
<li><a href="dashboard.php">Dashboard</a></li>
<li><a href="change-password.php">Change Password</a></li>
<li class="active">Change</li>
</ol>
</div>
</div>
</div>
</div>
55
<div class="row">
<div class="col-lg-6">
<!-- .card -->
</div>
<!--/.col-->
<div class="col-lg-12">
<div class="card">
<div class="card-header"><strong>Change</strong><small>
Password</small></div>
<form name="changepassword" method="post" onsubmit="return
checkpass();" action="">
<p style="font-size:16px; color:red" align="center"> <?php if($msg){
echo $msg;
} ?> </p>
<div class="card-body card-block">
<?php
$adminid=$_SESSION['ccmsaid'];
$ret=mysqli_query($con,"select * from tbladmin where ID='$adminid'");
$cnt=1;
while ($row=mysqli_fetch_array($ret)) {
?>
<div class="form-group"><label for="company" class=" form-control-
label">Current Password</label><input type="password" name="currentpassword"
id="currentpassword" class="form-control" required=""></div>
<div class="form-group"><label for="vat" class=" form-control-
label">New Password</label><input type="password" name="newpassword" class="form-
control" required=""></div>
<div class="form-group"><label for="street" class=" form-control-
label">Confirm Password</label><input type="password" name="confirmpassword"
id="confirmpassword" value="" class="form-control"></div>
</div>
56
<?php } ?>
<div class="card-footer">
<p style="text-align: center;"><button type="submit"
class="btn btn-primary btn-sm" name="submit" id="submit">
<i class="fa fa-dot-circle-o"></i> Change
</button></p>
</div>
</div>
</form>
</div>
</div>
</div><!-- .animated -->
</div><!-- .content -->
</div><!-- /#right-panel -->
<!-- Right Panel -->
<script src="vendors/jquery/dist/jquery.min.js"></script>
<script src="vendors/popper.js/dist/umd/popper.min.js"></script>
<script src="vendors/jquery-
validation/dist/jquery.validate.min.js"></script>
<script src="vendors/jquery-validation-
unobtrusive/dist/jquery.validate.unobtrusive.min.js"></script>
<script src="vendors/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>
<?php } ?
Logout:
<?php
session_start();
session_unset();
session_destroy();
header('location:index.php');
?>
57
Index:
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
if(isset($_POST['login']))
{
$adminuser=$_POST['username'];
$password=md5($_POST['password']);
$query=mysqli_query($con,"select ID from tbladmin where UserName='$adminuser' &&
Password='$password' ");
$ret=mysqli_fetch_array($query);
if($ret>0){
$_SESSION['ccmsaid']=$ret['ID'];
header('location:dashboard.php');
}
else{
$msg="Invalid Details.";
}
}
?>
<!doctype html>
<html class="no-js" lang="en">
<head>
58
<link rel="stylesheet" href="vendors/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="vendors/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="vendors/themify-icons/css/themify-icons.css">
<link rel="stylesheet" href="vendors/flag-icon-css/css/flag-icon.min.css">
<link rel="stylesheet" href="vendors/selectFX/css/cs-skin-elastic.css">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800'
rel='stylesheet' type='text/css'>
</head>
59
<label>Password</label>
<input type="password" class="form-control" placeholder="Password"
name="password" required="true">
</div>
<div class="checkbox">
<label class="pull-right">
</label>
</div>
<button type="submit" class="btn btn-success btn-flat m-b-30 m-t-30"
name="login">Sign in</button>
</form>
</div>
</div>
</div>
</div>
<script src="vendors/jquery/dist/jquery.min.js"></script>
<script src="vendors/popper.js/dist/umd/popper.min.js"></script>
<script src="vendors/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>
60
CONCLUSION
CCMS has many powerful features and is certainly more than a "simple"
diagramming tool. With its support of MDA (Model Driven Architecture), it is more
aimed at people using UML in an intensive way and with some code generations
using CCMS just as a diagramming tool work fine, especially on Windows as the
tool is built with Delphi and might execute faster than the Java-based tools. Modern
world is computer world where the things have to be done promptly that requires
computerisation of each and every sector in the main stream is must, so that it can
be held itself in the race. Few eye catching features of our project are its simplicity,
accuracy, and its user friendly interface. Our software incorporates all the features
and facilities provided by the Visual Studio software. This project has been
developed to manage the entire working of the Cyber Café. Our software simplifies
and replaces all the manual effort and the paper works done by the owner of the
creation and fulfilment of their needs and customer satisfaction. Hence both the
customer and the owner are at their ease. The customer is serviced at his footsteps
wherein he just types in the request and he is just a click away. We would like to
convey our sincere gratitude and thanks to all, who stood as our backbone, in
61
BIBLIOGRAPHY
For PHP
➢ https://www.w3schools.com/php/default.asp
➢ https://www.sitepoint.com/php/
➢ https://www.php.net/
For MySQL
➢ https://www.mysql.com/
➢ http://www.mysqltutorial.org
For XAMPP
➢ https://www.apachefriends.org/download.html
62