实验三-电子公文传输系统1-个人贡献

发布时间 2023-12-16 23:47:17作者: 20211108俞振阳

实验三-电子公文传输系统1-个人贡献

任务详情

  • 1 简述你完成的工作
  • 2 你们小组总共的代码行数,你贡献的代码行数?相关代码链接?
  • 3 你们小组总共的文档数?你贡献的文档数?相关链接?

主要完成的工作

个人主要完成的工作是扮演了项目经理和产品经理的角色,具体工作如下:

  1. 项目经理:

根据项目需求,制定项目计划,安排项目时间表,确定项目成本预算和资源需求;

组织项目团队,协调团队成员的合作,保证项目开发进程顺利进行;

监督项目开发进度和开发质量,及时发现和解决项目中出现的问题;

及时调整需求,调整项目计划。

  1. 产品经理:

根据需求,制定电子公文传输系统的功能和特性规划;

编写产品需求文档,确保开发的产品满足需求;

一同进行产品的测试和评估,发现和解决产品中存在的问题;

  1. 代码部分:

主要完成上传页面的html编写和非法访问页的提示。

  1. 文档部分:
    见下

个人代码

Document write.php:

<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">

    <title>欢迎!</title>
    <!-- 引入字体图标 -->
    <link href="https://cdn.bootcdn.net/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <link rel="stylesheet" href="style.css">
</head>

<body>
    <div class="navbar">
        <input type="checkbox" id="checkbox">
        <label for="checkbox">
            <i class="fa fa-bars" aria-hidden="true"></i>
        </label>
        <ul>
            <li>
                <img src="login.jpg" alt="">
                <span>欢迎您!<?php
					session_start(); 
if (isset($_SESSION['realname'])) {
    $realname = $_SESSION['realname'];
	$role=$_SESSION['role'];
    echo  $realname;
} else {
    echo "请先登录";
}
	?></span>
            </li>
            <li>
                <a href="welcome.php">
                    <i class="fa fa-home" aria-hidden="true"></i>
                    <span>后台首页</span>
                </a>
            </li>
            <li>
                <a href="Department_management.php">
                    <i class="fa fa-sitemap" aria-hidden="true"></i>
                    <span>部门管理</span>
                </a>
            </li>
            <li>
                <a href="user_management.php">
                    <i class="fa fa-user-circle-o" aria-hidden="true"></i>
                    <span>用户管理</span>
                </a>
            </li>
            <li>
                <a href="Document_mine.php">
                    <i class="fa fa-shopping-bag" aria-hidden="true"></i>
                    <span>公文处理</span>
                </a>
            </li>
            <li>
                <a href="index.php">
                    <i class="fa fa-shopping-bag" aria-hidden="true"></i>
                    <span>退出登录</span>
                </a>
            </li>
        </ul>
        <div class="main">
           <nav class="horizontal-nav">
			<a href="Document_mine.php" class="nav-link">我的&nbsp&nbsp&nbsp&nbsp</a>
			<a href="Document_exam.php" class="nav-link">审批&nbsp&nbsp&nbsp&nbsp</a>
			<a href="Document_write.php" class="nav-link">草拟&nbsp&nbsp&nbsp&nbsp</a>
			<a href="#" class="nav-link">归档</a>
		</nav>
        </div>
    </div>
	<nav class="under-horizontal-nav">
			<form action="upload.php" method="post" enctype="multipart/form-data">
    <label for="to">发送给:</label>
    <select name="to" id="to">
        <?php
        // Establish a database connection (Replace these variables with your actual database credentials)
        $servername = "localhost";
        $username = "root";
        $password = "liu12345";
        $dbname = "csv_db";

        $conn = new mysqli($servername, $username, $password, $dbname);

        // Check connection
        if ($conn->connect_error) {
            die("Connection failed: " . $conn->connect_error);
        }

        // Fetch realname values from t_user
        $sql = "SELECT realname FROM t_user";
        $result = $conn->query($sql);
		session_start(); 
if (isset($_SESSION['realname'])) {
    $realname = $_SESSION['realname'];
	$role=$_SESSION['role'];
} 
		
        // Populate options for the "to" field
        while ($row = $result->fetch_assoc()) {
			if($row["realname"]<>$realname){
            echo "<option value='" . $row["realname"] . "'>" . $row["realname"] . "</option>";
			}
        }

        // Close the database connection
        $conn->close();
        ?>
    </select>
    <br>

    <label for="file">选择文件:</label>
    <input type="file" name="file" id="file">
    <br>

    <label for="level">选择文件密级:</label>
    <select name="level" id="level">
        <option value="绝密">绝密</option>
        <option value="机密">机密</option>
        <option value="秘密">秘密</option>
        <option value="普通">普通</option>
    </select><br>

    <input type="submit" value="发送">

		
</form>
		</nav>
</body>

</html>

close.html:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>权限提示</title>
    <style>
        body {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100vh;
            margin: 0;
        }

        h1 {
            text-align: center;
            font-size: 24px;
        }
    </style>
</head>
<body>
    <h1>你没有权限访问该页面</h1>
</body>
</html>

小组代码总行数1081行,个人代码总行数158行,占比14.62%

GitHub代码链接

个人文档

小组代码文档(26)

C:.
|   mycert.crt
|   mycert.pem
|   mycsr.csr
|   mykey.key
|
+---数据库
|       csv_db.sql
|
+---网站
|   \---JR
|       |   compare.php
|       |   Department_management.php
|       |   Document_exam.php
|       |   Document_mine.php
|       |   Document_write.php
|       |   index.php
|       |   login.jpg
|       |   lose.html
|       |   style.css
|       |   update_status.php
|       |   upload.php
|       |   user_management.php
|       |   welcome.php
|       |
|       \---upload
|               20211120刘钟徽函.docx
|               20231027.pdf
|               twofish-analysis-shiho.pdf
|               vulkan-1.dll
|
\---证书
        mycert.crt
        mycert.pem
        mycsr.csr
        mykey.key

我的代码文档:
Document_write.php
lose.html


小组前期设计文档:(10)
gitee
image
我的文档:
规格需求说明书(1)、(2)


小组博客总数:11篇
image
image
我的博客:5篇
https://www.cnblogs.com/bjdzkjxy/articles/17780783.html
https://www.cnblogs.com/bjdzkjxy/articles/17794542.html
https://www.cnblogs.com/bjdzkjxy/articles/17827393.html
https://www.cnblogs.com/bjdzkjxy/articles/17848263.html
https://www.cnblogs.com/bjdzkjxy/articles/17851216.html


小组文档类总计:47篇,我的贡献:14