投诉管理系统
此项目是PHP中的投诉管理系统。表达了如何运行投诉管理系统(CMS)项目8点:1.下载压缩文件;2.解压缩文件并复制cms文件夹;3.在根目录下粘贴(用于xampp xampp / htdocs,用于wamp wamp / www,用于灯var / www / html);4.打开PHPMyAdmin(http:// localhost / phpmyadmin))........等等。本人只展示了一分部代码,如想了解更详细请下载附件。
应用介绍
此项目是PHP中的投诉管理系统。用户界面设计使用有HTML,AJAX,JQUERY,JAVASCRIPT。使用的网络浏览器有Mozilla,谷歌浏览器,IE8,OPERA。此项目的系统模块有管理员和用户数两种。表达了如何运行投诉管理系统(CMS)项目:1.下载压缩文件;2.解压缩文件并复制cms文件夹;3.在根目录下粘贴(用于xampp xampp / htdocs,用于wamp wamp / www,用于灯var / www / html);4.打开PHPMyAdmin(http:// localhost / phpmyadmin);5.创建一个名称为cms的数据库;6.导入cms.sql文件(在SQL文件夹的zip包中提供);7.运行脚本http:// localhost / cms(前端);8.对于管理面板http:// localhost / cms / admin(管理面板)。本人只展示了一分部代码,如想了解更详细请下载附件。
<?php
session_start();
include('include/config.php');
if(strlen($_SESSION['alogin'])==0)
{
header('location:index.php');
}
else{
date_default_timezone_set('Asia/Kolkata');// change according timezone
$currentTime = date( 'd-m-Y h:i:s A', time () );
if(isset($_POST['submit']))
{
$sql=mysqli_query($con,"SELECT password FROM admin where password='".md5($_POST['password'])."' && username='".$_SESSION['alogin']."'");
$num=mysqli_fetch_array($sql);
if($num>0)
{
$con=mysqli_query($con,"update admin set password='".md5($_POST['newpassword'])."', updationDate='$currentTime' where username='".$_SESSION['alogin']."'");
$_SESSION['msg']="Password Changed Successfully !!";
}
else
{
$_SESSION['msg']="Old Password not match !!";
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin| Change Password</title>
<link type="text/css" href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link type="text/css" href="bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet">
<link type="text/css" href="css/theme.css" rel="stylesheet">
<link type="text/css" href="images/icons/css/font-awesome.css" rel="stylesheet">
<link type="text/css" href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,400,600' rel='stylesheet'>
<script type="text/javascript">
function valid()
{
if(document.chngpwd.password.value=="")
{
alert("Current Password Filed is Empty !!");
document.chngpwd.password.focus();
return false;
}
else if(document.chngpwd.newpassword.value=="")
{
alert("New Password Filed is Empty !!");
document.chngpwd.newpassword.focus();
return false;
}
else if(document.chngpwd.confirmpassword.value=="")
{
alert("Confirm Password Filed is Empty !!");
document.chngpwd.confirmpassword.focus();
return false;
}
else if(document.chngpwd.newpassword.value!= document.chngpwd.confirmpassword.value)
{
alert("Password and Confirm Password Field do not match !!");
document.chngpwd.confirmpassword.focus();
return false;
}
return true;
}
</script>
</head>
<body>
<?php include('include/header.php');?>
<div class="wrapper">
<div class="container">
<div class="row">
<?php include('include/sidebar.php');?>
<div class="span9">
<div class="content">
<div class="module">
<div class="module-head">
<h3>Admin Change Password</h3>
</div>
<div class="module-body">
<?php if(isset($_POST['submit']))
{?>
<div class="alert alert-success">
<button type="button" class="close" data-dismiss="alert">×</button>
<?php echo htmlentities($_SESSION['msg']);?><?php echo htmlentities($_SESSION['msg']="");?>
</div>
<?php } ?>
<br />
<form class="form-horizontal row-fluid" name="chngpwd" method="post" onSubmit="return valid();">
<div class="control-group">
<label class="control-label" for="basicinput">Current Password</label>
<div class="controls">
<input type="password" placeholder="Enter your current Password" name="password" class="span8 tip" required>
</div>
</div>
<div class="control-group">
<label class="control-label" for="basicinput">New Password</label>
<div class="controls">
<input type="password" placeholder="Enter your new current Password" name="newpassword" class="span8 tip" required>
</div>
</div>
<div class="control-group">
<label class="control-label" for="basicinput">Current Password</label>
<div class="controls">
<input type="password" placeholder="Enter your new Password again" name="confirmpassword" class="span8 tip" required>
</div>
</div>
<div class="control-group">
<div class="controls">
<button type="submit" name="submit" class="btn">Submit</button>
</div>
</div>
</form>
</div>
</div>
</div><!--/.content-->
</div><!--/.span9-->
</div>
</div><!--/.container-->
</div><!--/.wrapper-->
<?php include('include/footer.php');?>
<script src="scripts/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="scripts/jquery-ui-1.10.1.custom.min.js" type="text/javascript"></script>
<script src="bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="scripts/flot/jquery.flot.js" type="text/javascript"></script>
</body>
<?php } ?>
©版权声明:本文内容由互联网用户自发贡献,版权归原创作者所有,本站不拥有所有权,也不承担相关法律责任。如果您发现本站中有涉嫌抄袭的内容,欢迎发送邮件至: www_apollocode_net@163.com 进行举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。
转载请注明出处: apollocode » 投诉管理系统
文件列表(部分)
名称 | 大小 | 修改日期 |
---|---|---|
投诉管理系统 | 0.00 KB | 2019-06-28 |
cms | 0.00 KB | 2019-06-46 |
admin | 0.00 KB | 2019-06-46 |
assets | 0.00 KB | 2019-06-28 |
css | 0.00 KB | 2019-06-28 |
main-responsive.css | 11.59 KB | 2013-12-54 |
main.css | 122.95 KB | 2014-01-42 |
print.css | 0.36 KB | 2013-12-12 |
rtl-version.css | 21.62 KB | 2013-11-58 |
theme_black_and_white.css | 3.86 KB | 2013-11-20 |
theme_dark.css | 3.86 KB | 2013-11-34 |
theme_green.css | 3.75 KB | 2013-11-20 |
theme_light.css | 4.12 KB | 2013-11-26 |
theme_navy.css | 4.03 KB | 2013-11-54 |
fonts | 0.00 KB | 2019-06-28 |
fonts | 0.00 KB | 2019-06-28 |
clip-font.eot | 107.26 KB | 2013-11-50 |
clip-font.svg | 278.59 KB | 2013-11-50 |
clip-font.ttf | 107.09 KB | 2013-11-50 |
clip-font.woff | 107.17 KB | 2013-11-50 |
lte-ie7.js | 13.20 KB | 2013-10-18 |
style.css | 24.34 KB | 2013-11-02 |
images | 0.00 KB | 2017-04-38 |
js | 0.00 KB | 2019-06-28 |
charts.js | 22.40 KB | 2013-10-28 |
form-calendar.js | 7.08 KB | 2013-10-28 |
form-dropzone.js | 0.51 KB | 2013-10-48 |
form-elements.js | 3.52 KB | 2013-11-12 |
form-image-cropping.js | 6.79 KB | 2013-10-38 |
form-validation.js | 9.50 KB | 2013-11-54 |
form-wizard.js | 7.87 KB | 2014-01-36 |
index.js | 18.14 KB | 2013-10-20 |
发表评论 取消回复