网吧管理系统
预览截图
应用介绍
此项目是使用PHP和MySQL的网吧管理系统。在网吧管理系统中,我们使用PHP和Mysql数据库。 该项目保留了网吧日常用户的记录。 网吧管理系统具有一个模块,即admin。在仪表板部分中,管理员可以简要查看计算机的总数以及网吧中的用户总数。在计算机部分中,管理员可以管理计算机(添加/更新)。在用户部分中,管理员可以添加新用户,更新主题,价格和备注以及查看旧用户的详细信息。在搜索部分中,管理员可以根据条目ID搜索用户。在报告部分中,管理员可以查看特定时期进入网吧的用户数量。管理员可以恢复他/她的密码(注意:在本项目中使用了MD5加密方法)。从下面几点运行网吧管理系统(CCMS)项目:1.下载压缩文件。2.解压缩文件并复制ccms文件夹。3.粘贴到根目录中(对于xampp xampp / htdocs,wamp wamp / www,lamp var / www / html)。4.打开PHPMyAdmin(http:// localhost / phpmyadmin)。5.创建一个名称为ccmsdb的数据库。6.导入ccmsdb.sql文件(在SQL文件夹的zip包中提供)。7.运行脚本http:// localhost / ccms(frontend)。本人只展示了一小段代码,在预览区也展示了主页界面、仪表板界面;如想了解的更多请下载附件。
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
if (strlen($_SESSION['ccmsaid']==0)) {
header('location:logout.php');
} else{
if(isset($_POST['submit']))
{
$cmsaid=$_SESSION['ccmsaid'];
$username=$_POST['username'];
$uadd=$_POST['uadd'];
$mobilenumber=$_POST['mobilenumber'];
$email=$_POST['email'];
$cname=$_POST['cname'];
$idproof=$_POST['idproof'];
$entryid=mt_rand(100000000, 999999999);
$query=mysqli_query($con,"insert into tblusers(EntryID,UserName,UserAddress,MobileNumber,Email,ComputerName,IDProof) value('$entryid','$username','$uadd','$mobilenumber','$email','$cname','$idproof')");
if ($query) {
echo '<script>alert("User Detail has been added.")</script>';
echo "<script>window.location.href ='add-users.php'</script>";
}
else
{
echo '<script>alert("Something Went Wrong. Please try again.")</script>';
}
}
?>
<!doctype html>
<html class="no-js" lang="en">
<head>
<title>CCMS User Details</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>
<!-- 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>User Detail</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="add-users.php">User Detail</a></li>
<li class="active">Add</li>
</ol>
</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>User</strong><small> Details</small></div>
<form name="computer" method="post" action="">
<p style="font-size:16px; color:red" align="center"> <?php if($msg){
echo $msg;
} ?> </p>
<div class="card-body card-block">
<div class="form-group"><label for="company" class=" form-control-label">User Name</label><input type="text" name="username" value="" class="form-control" id="username" required="true"></div>
<div class="form-group"><label for="street" class=" form-control-label">User Address</label><textarea type="text" name="uadd" value="" id="uadd" class="form-control" required="true"></textarea></div>
<div class="row form-group">
<div class="col-12">
<div class="form-group"><label for="city" class=" form-control-label">Mobile Number</label><input type="text" name="mobilenumber" id="mobilenumber" value="" class="form-control" required="true" maxlength="10" pattern="[0-9]+"></div>
</div>
<div class="col-12">
<div class="form-group"><label for="city" class=" form-control-label">Email</label><input type="email" name="email" id="email" value="" class="form-control" required="true"></div>
</div>
<div class="col-12">
<div class="form-group"><label for="city" class=" form-control-label">Computer Name</label><select type="text" name="cname" id="cname" value="" class="form-control" required="true">
<option value="">Choose Computer</option>
<?php $query=mysqli_query($con,"select * from tblcomputers");
while($row=mysqli_fetch_array($query))
{
?>
<option value="<?php echo $row['ComputerName'];?>"><?php echo $row['ComputerName'];?></option>
<?php } ?>
</select></div>
</div>
<div class="col-12">
<div class="form-group"><label for="city" class=" form-control-label">ID Proof</label><input type="text" name="idproof" id="idproof" value="" class="form-control" required="true"></div>
</div>
</div>
</div>
<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> Add
</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 } ?>
©版权声明:本文内容由互联网用户自发贡献,版权归原创作者所有,本站不拥有所有权,也不承担相关法律责任。如果您发现本站中有涉嫌抄袭的内容,欢迎发送邮件至: [email protected] 进行举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。
转载请注明出处: apollocode » 网吧管理系统
文件列表(部分)
名称 | 大小 | 修改日期 |
---|---|---|
Cyber Cafe Management System Project | 0.00 KB | 2019-08-26 |
ccms | 0.00 KB | 2019-08-30 |
add-computer.php | 6.09 KB | 2019-08-56 |
add-users.php | 7.88 KB | 2019-08-22 |
adminprofile.php | 6.59 KB | 2019-08-44 |
all-users.php | 4.24 KB | 2019-05-04 |
assets | 0.00 KB | 2019-08-30 |
css | 0.00 KB | 2019-08-30 |
style.css | 134.14 KB | 2018-11-18 |
style.css.map | 63.52 KB | 2018-11-18 |
js | 0.00 KB | 2019-08-30 |
dashboard.js | 3.28 KB | 2018-11-18 |
index.html | 0.00 KB | 2018-11-18 |
init-scripts | 0.00 KB | 2019-08-30 |
chart-js | 0.00 KB | 2019-08-30 |
chartjs-init.js | 12.55 KB | 2018-11-18 |
data-table | 0.00 KB | 2019-08-30 |
datatables-init.js | 1.00 KB | 2018-11-18 |
flot-chart | 0.00 KB | 2019-08-30 |
curvedLines.js | 15.96 KB | 2018-11-18 |
flot-chart-init.js | 8.93 KB | 2018-11-18 |
flot-tooltip | 0.00 KB | 2019-08-30 |
jquery.flot.tooltip.min.js | 8.66 KB | 2018-11-18 |
gmap | 0.00 KB | 2019-08-30 |
gmap.init.js | 5.13 KB | 2018-11-18 |
peitychart | 0.00 KB | 2019-08-30 |
peitychart.init.js | 2.12 KB | 2018-11-18 |
vector-map | 0.00 KB | 2019-08-30 |
vector.init.js | 5.95 KB | 2018-11-18 |
main.js | 0.87 KB | 2018-11-18 |
widgets.js | 6.09 KB | 2018-11-18 |
scss | 0.00 KB | 2019-08-30 |
发表评论 取消回复