公园票务管理系统项目(PTMS)
预览截图
应用介绍
此项目是公园票务管理系统项目(PTMS)。在这个项目中,有一个模块,即:管理员。管理员有:1.控制板:在此部分中,管理员可以查看今天和昨天生成了多少张外国人票。2.管理门票:在此部分中,管理员可以更新门票的价格和门票类型。3.普通票:管理员可以在此部分中添加成人人数和儿童人数的详细信息,并打印票务及其总费用。4.外国人票:管理员可以在此部分中添加成人人数和儿童人数的详细信息,并打印票务及其总费用。5.搜索:在此部分管理员中,可以按故障单ID搜索故障单。6.报告:在此部分中,管理员可以查看特定时间段内已生成多少票证。管理员还可以更新其个人资料,更改密码并恢复密码。按照下面几点操作运行公园票务管理系统项目(PTMS):1.下载压缩文件。2.解压缩文件并复制ptms文件夹。3.在根目录下粘贴(用于xampp xampp / htdocs,用于wamp wamp / www,用于灯var / www / html)。4.打开PHPMyAdmin(http:// localhost / phpmyadmin)。5.创建一个名称为ptmsdb的数据库。6.导入ptmsdb.sql文件(在SQL文件夹的zip包中提供)。7.运行脚本http:// localhost / ptmms。本人只展示了一小段代码,在预览区展示了管理员登录界面、管理员控制台界面;如想了解更多请下载附件。
<?php
session_start();
include('includes/dbconnection.php');
error_reporting(0);
if (strlen($_SESSION['ptmsaid']==0)) {
header('location:logout.php');
} else{
if(isset($_POST['submit']))
{
$noadult=$_POST['noadult'];
$nochildren=$_POST['nochildren'];
$aprice=$_POST['aprice'];
$cprice=$_POST['cprice'];
$ticketid=mt_rand(100000000, 999999999);
$query=mysqli_query($con, "insert into tblticforeigner(TicketID,NoAdult,NoChildren,AdultUnitprice,ChildUnitprice) value('$ticketid','$noadult','$nochildren','$aprice','$cprice')");
if ($query) {
echo '<script>alert("Ticket information has been added.")</script>';
}
else
{
echo '<script>alert("Something Went Wrong. Please try again.")</script>';
}
}
?>
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Add Foreigner Ticket - Park Ticket Management System</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/png" href="assets/images/icon/favicon.ico">
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/font-awesome.min.css">
<link rel="stylesheet" href="assets/css/themify-icons.css">
<link rel="stylesheet" href="assets/css/metisMenu.css">
<link rel="stylesheet" href="assets/css/owl.carousel.min.css">
<link rel="stylesheet" href="assets/css/slicknav.min.css">
<!-- amchart css -->
<link rel="stylesheet" href="https://www.amcharts.com/lib/3/plugins/export/export.css" type="text/css" media="all" />
<!-- others css -->
<link rel="stylesheet" href="assets/css/typography.css">
<link rel="stylesheet" href="assets/css/default-css.css">
<link rel="stylesheet" href="assets/css/styles.css">
<link rel="stylesheet" href="assets/css/responsive.css">
<!-- modernizr css -->
<script src="assets/js/vendor/modernizr-2.8.3.min.js"></script>
</head>
<body>
<!-- page container area start -->
<div class="page-container">
<!-- sidebar menu area start -->
<?php include_once('includes/sidebar.php');?>
<!-- sidebar menu area end -->
<!-- main content area start -->
<div class="main-content">
<!-- header area start -->
<?php include_once('includes/header.php');?>
<!-- header area end -->
<!-- page title area start -->
<?php include_once('includes/pagetitle.php');?>
<!-- page title area end -->
<div class="main-content-inner">
<div class="row">
<div class="col-lg-6 col-ml-12">
<div class="row">
<!-- basic form start -->
<div class="col-12 mt-5">
<div class="card">
<div class="card-body">
<h4 class="header-title">Add Ticket</h4>
<form method="post" action="" name="">
<div class="form-group">
<label for="exampleInputEmail1">Adult</label>
<input type="text" class="form-control" id="noadult" name="noadult" aria-describedby="emailHelp" placeholder="No. of Adult" value="" required="true">
</div>
<div class="form-group">
<label for="exampleInputEmail1">Children</label>
<input type="text" class="form-control" id="nochildren" name="nochildren" aria-describedby="emailHelp" placeholder="No. of Childrens" value="" required="true">
</div>
<?php
$ret=mysqli_query($con,"select * from tbltickettype where TicketType='Foreigner Adult'");
$cnt=1;
while ($row=mysqli_fetch_array($ret)) {
?>
<input type="hidden" name="aprice" value="<?php echo $row['Price'];?>">
<?php } ?>
<?php
$ret=mysqli_query($con,"select * from tbltickettype where TicketType='Foreigner Child'");
$cnt=1;
while ($row=mysqli_fetch_array($ret)) {
?>
<input type="hidden" name="cprice" value="<?php echo $row['Price'];?>">
<?php } ?>
<button type="submit" class="btn btn-primary mt-4 pr-4 pl-4" name="submit">Submit</button>
</form>
</div>
</div>
</div>
<!-- basic form end -->
</div>
</div>
</div>
</div>
</div>
<!-- main content area end -->
<!-- footer area start-->
<?php include_once('includes/footer.php');?>
<!-- footer area end-->
</div>
<!-- page container area end -->
<!-- offset area start -->
<!-- jquery latest version -->
<script src="assets/js/vendor/jquery-2.2.4.min.js"></script>
<!-- bootstrap 4 js -->
<script src="assets/js/popper.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/owl.carousel.min.js"></script>
<script src="assets/js/metisMenu.min.js"></script>
<script src="assets/js/jquery.slimscroll.min.js"></script>
<script src="assets/js/jquery.slicknav.min.js"></script>
<!-- others plugins -->
<script src="assets/js/plugins.js"></script>
<script src="assets/js/scripts.js"></script>
</body>
</html>
<?php } ?>
©版权声明:本文内容由互联网用户自发贡献,版权归原创作者所有,本站不拥有所有权,也不承担相关法律责任。如果您发现本站中有涉嫌抄袭的内容,欢迎发送邮件至: [email protected] 进行举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。
转载请注明出处: apollocode » 公园票务管理系统项目(PTMS)
文件列表(部分)
名称 | 大小 | 修改日期 |
---|---|---|
Park Ticketing Management System Project | 0.00 KB | 2019-12-04 |
ptms | 0.00 KB | 2019-12-20 |
add-foreigners-ticket.php | 6.23 KB | 2019-12-16 |
add-normal-ticket.php | 6.23 KB | 2019-12-12 |
assets | 0.00 KB | 2019-12-20 |
css | 0.00 KB | 2019-12-20 |
bootstrap.min.css | 141.48 KB | 2018-12-54 |
default-css.css | 5.70 KB | 2018-12-54 |
font-awesome.min.css | 28.38 KB | 2018-12-54 |
metisMenu.css | 3.05 KB | 2018-12-54 |
owl.carousel.min.css | 2.87 KB | 2018-12-54 |
responsive.css | 17.25 KB | 2018-12-54 |
slicknav.min.css | 2.45 KB | 2018-12-54 |
styles.css | 52.03 KB | 2018-12-54 |
themify-icons.css | 16.06 KB | 2018-12-54 |
typography.css | 2.05 KB | 2018-12-54 |
fonts | 0.00 KB | 2019-12-20 |
fontawesome-webfont.eot | 74.72 KB | 2018-12-54 |
fontawesome-webfont.svg | 382.44 KB | 2018-12-54 |
fontawesome-webfont.ttf | 149.21 KB | 2018-12-54 |
fontawesome-webfont.woff | 88.29 KB | 2018-12-54 |
fontawesome-webfont.woff2 | 70.21 KB | 2018-12-54 |
FontAwesome.otf | 122.06 KB | 2018-12-54 |
themify.eot | 76.90 KB | 2018-12-54 |
themify.svg | 228.78 KB | 2018-12-54 |
themify.ttf | 76.74 KB | 2018-12-54 |
themify.woff | 54.79 KB | 2018-12-54 |
images | 0.00 KB | 2019-12-20 |
author | 0.00 KB | 2019-12-20 |
author-img1.jpg | 0.77 KB | 2018-12-54 |
author-img2.jpg | 0.77 KB | 2018-12-54 |
author-img3.jpg | 0.77 KB | 2018-12-54 |
发表评论 取消回复