目录管理系统(DMS)
预览截图
应用介绍
此项目是使用PHP和MySQL的目录管理系统。项目分为两个模块:用户模块和管理模块。用户模块可以通过姓名和电话号码搜索记录。管理模块:管理员可以创建目录、管理目录(更新记录,将记录设为公开和私有)、管理控制台、管理员搜索、按状态(公共和私人)记录、管理员可以管理自己的个人资料。从下面几点操作运行目录管理系统(DMS)项目:1.下载压缩文件。2.解压缩文件并复制dms文件夹。3.粘贴到根目录中(对于xampp xampp / htdocs,wamp wamp / www,lamp var / www / HTML)。4.打开PHPMyAdmin(http:// localhost / phpmyadmin)。5.创建一个名称为dmsdb的数据库。6.导入dmsdb.sql文件(在SQL文件夹的zip包中提供)。7.运行脚本http:// localhost / dms(frontend)。 8.对于管理面板http:// localhost / dms / admin(管理面板)。本人只展示了一小段代码,同时也展示了界面截图;如想了解更详细请下载附加。
<?php
session_start();
error_reporting(0);
include('include/dbconnection.php');
if (strlen($_SESSION['pdaid']==0)) {
header('location:logout.php');
} else{
if(isset($_POST['submit']))
{
$adminid=$_SESSION['pdaid'];
$adname=$_POST['adminname'];
$query=mysqli_query($con, "update tbladmin set AdminName='$adname' where ID='$adminid'");
if ($query) {
$msg="Admin profile has been updated.";
}
else
{
$msg="Something Went Wrong. Please try again.";
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>DMS</title>
<!-- Custom fonts for this template-->
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<!-- Page level plugin CSS-->
<link href="vendor/datatables/dataTables.bootstrap4.css" rel="stylesheet">
<!-- Custom styles for this template-->
<link href="css/sb-admin.css" rel="stylesheet">
</head>
<body id="page-top">
<!-- Navbar -->
<?php include('include/header.php');?>
<div id="wrapper">
<!-- Sidebar -->
<?php include('include/sidebar.php');?>
<div id="content-wrapper">
<div class="container-fluid">
<!-- Breadcrumbs-->
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="#">Dashboard</a>
</li>
<li class="breadcrumb-item active">Admin Profile</li>
</ol>
<p style="font-size:16px; color:red" align="center"> <?php if($msg){
echo $msg;
} ?> </p>
<!-- Icon Cards-->
<!-- Area Chart Example-->
<form name="directory" method="post">
<?php
$adminid=$_SESSION['pdaid'];
$ret=mysqli_query($con,"select * from tbladmin where ID='$adminid'");
$cnt=1;
while ($row=mysqli_fetch_array($ret)) {
?>
<!-- DataTables Example -->
<div class="form-group">
<div class="form-row">
<div class="col-md-6">
<div class="form-label-group">
<input type="text" id="adminname" name="adminname" class="form-control" required="required" autofocus="autofocus" value="<?php echo $row['AdminName'];?>">
<label for="firstName">Admin Name</label>
</div>
</div>
<div class="col-md-6">
<div class="form-label-group">
<input type="text" id="mobilenumber" name="mobilenumber" class="form-control" required="required" maxlength="10" readonly="true" value="<?php echo $row['MobileNumber'];?>">
<label for="lastName">Mobile Number</label>
</div>
</div>
</div>
</div>
<div class="form-group">
<div class="form-label-group">
<input type="email" id="email" name="email" class="form-control" readonly="true" required="required" value="<?php echo $row['Email'];?>">
<label for="inputEmail">Email address</label>
</div>
</div>
<div class="form-group">
<div class="form-row">
<div class="col-md-12">
<div class="form-label-group">
<input type="text" id="adminregdate" name="adminregdate" class="form-control" readonly="true" required="required" value="<?php echo $row['AdminRegdate'];?>">
<label for="inputPassword">Admin Registration Date</label>
</div>
</div>
</div>
</div>
<?php } ?>
<p style="text-align: center; "><button type="submit" name="submit" class="btn btn-info btn-min-width mr-1 mb-1">Update</button></p>
</form>
</div>
<!-- /.container-fluid -->
<!-- Sticky Footer -->
<?php include('include/footer.php');?>
</div>
<!-- /.content-wrapper -->
</div>
<!-- /#wrapper -->
<!-- Scroll to Top Button-->
<a class="scroll-to-top rounded" href="#page-top">
<i class="fas fa-angle-up"></i>
</a>
<!-- Logout Modal-->
<div class="modal fade" id="logoutModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Ready to Leave?</h5>
<button class="close" type="button" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">Select "Logout" below if you are ready to end your current session.</div>
<div class="modal-footer">
<button class="btn btn-secondary" type="button" data-dismiss="modal">Cancel</button>
<a class="btn btn-primary" href="logout.php">Logout</a>
</div>
</div>
</div>
</div>
<!-- Bootstrap core JavaScript-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Core plugin JavaScript-->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Page level plugin JavaScript-->
<script src="vendor/chart.js/Chart.min.js"></script>
<script src="vendor/datatables/jquery.dataTables.js"></script>
<script src="vendor/datatables/dataTables.bootstrap4.js"></script>
<!-- Custom scripts for all pages-->
<script src="js/sb-admin.min.js"></script>
<!-- Demo scripts for this page-->
<script src="js/demo/datatables-demo.js"></script>
<script src="js/demo/chart-area-demo.js"></script>
</body>
</html>
<?php } ?>
©版权声明:本文内容由互联网用户自发贡献,版权归原创作者所有,本站不拥有所有权,也不承担相关法律责任。如果您发现本站中有涉嫌抄袭的内容,欢迎发送邮件至: www_apollocode_net@163.com 进行举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。
转载请注明出处: apollocode » 目录管理系统(DMS)
文件列表(部分)
名称 | 大小 | 修改日期 |
---|---|---|
Directory Management System | 0.00 KB | 2019-03-04 |
dms | 0.00 KB | 2019-03-52 |
admin | 0.00 KB | 2019-03-42 |
add-directory.php | 6.34 KB | 2019-03-58 |
admin-profile.php | 5.93 KB | 2019-03-38 |
allrecords.php | 4.12 KB | 2019-03-58 |
changepassword.php | 6.12 KB | 2019-03-24 |
css | 0.00 KB | 2019-03-42 |
sb-admin.css | 209.75 KB | 2019-02-12 |
sb-admin.min.css | 170.69 KB | 2019-02-12 |
dashboard.php | 5.69 KB | 2019-03-42 |
edit-directory.php | 7.32 KB | 2019-03-18 |
forget-password.php | 2.66 KB | 2019-03-36 |
include | 0.00 KB | 2019-03-42 |
dbconnection.php | 0.15 KB | 2019-03-10 |
footer.php | 0.28 KB | 2019-03-56 |
header.php | 1.43 KB | 2019-03-06 |
sidebar.php | 1.66 KB | 2019-03-22 |
index.php | 2.51 KB | 2019-03-12 |
js | 0.00 KB | 2019-03-42 |
demo | 0.00 KB | 2019-03-42 |
chart-area-demo.js | 1.49 KB | 2019-02-12 |
chart-bar-demo.js | 1.09 KB | 2019-02-12 |
chart-pie-demo.js | 0.58 KB | 2019-02-12 |
datatables-demo.js | 0.10 KB | 2019-02-12 |
sb-admin.js | 1.18 KB | 2019-02-12 |
sb-admin.min.js | 0.91 KB | 2019-02-12 |
logout.php | 0.09 KB | 2019-03-14 |
manage-directory.php | 4.13 KB | 2019-03-42 |
private.php | 4.14 KB | 2019-03-08 |
public.php | 4.14 KB | 2019-03-32 |
reset-password.php | 3.01 KB | 2019-03-18 |
发表评论 取消回复