目录管理系统(DMS)

此项目是使用PHP和MySQL的目录管理系统。从下面几点操作运行目录管理系统项目:1.下载压缩文件。2.解压缩文件并复制dms文件夹。3.粘贴到根目录中。4.打开PHPMyAdmin。5.创建一个名称为dmsdb的数据库。6.导入dmsdb.sql文件。7.运行脚本http:// localhost / dms。 8.对于管理面板http:// localhost / dms / admin。本人只展示了一小段代码,同时也展示了界面截图;如想了解更详细请下载附加。

预览截图

应用介绍

此项目是使用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 }  ?>

文件列表(部分)

名称 大小 修改日期
Directory Management System0.00 KB2019-03-04
dms0.00 KB2019-03-52
admin0.00 KB2019-03-42
add-directory.php6.34 KB2019-03-58
admin-profile.php5.93 KB2019-03-38
allrecords.php4.12 KB2019-03-58
changepassword.php6.12 KB2019-03-24
css0.00 KB2019-03-42
sb-admin.css209.75 KB2019-02-12
sb-admin.min.css170.69 KB2019-02-12
dashboard.php5.69 KB2019-03-42
edit-directory.php7.32 KB2019-03-18
forget-password.php2.66 KB2019-03-36
include0.00 KB2019-03-42
dbconnection.php0.15 KB2019-03-10
footer.php0.28 KB2019-03-56
header.php1.43 KB2019-03-06
sidebar.php1.66 KB2019-03-22
index.php2.51 KB2019-03-12
js0.00 KB2019-03-42
demo0.00 KB2019-03-42
chart-area-demo.js1.49 KB2019-02-12
chart-bar-demo.js1.09 KB2019-02-12
chart-pie-demo.js0.58 KB2019-02-12
datatables-demo.js0.10 KB2019-02-12
sb-admin.js1.18 KB2019-02-12
sb-admin.min.js0.91 KB2019-02-12
logout.php0.09 KB2019-03-14
manage-directory.php4.13 KB2019-03-42
private.php4.14 KB2019-03-08
public.php4.14 KB2019-03-32
reset-password.php3.01 KB2019-03-18

立即下载

相关下载

[目录管理系统(DMS)] 此项目是使用PHP和MySQL的目录管理系统。从下面几点操作运行目录管理系统项目:1.下载压缩文件。2.解压缩文件并复制dms文件夹。3.粘贴到根目录中。4.打开PHPMyAdmin。5.创建一个名称为dmsdb的数据库。6.导入dmsdb.sql文件。7.运行脚本http:// localhost / dms。 8.对于管理面板http:// localhost / dms / admin。本人只展示了一小段代码,同时也展示了界面截图;如想了解更详细请下载附加。

评论列表 共有 0 条评论

暂无评论

微信捐赠

微信扫一扫体验

立即
上传
发表
评论
返回
顶部