实验三-电子公文传输系统1-个人贡献
实验三-电子公文传输系统1-个人贡献
任务详情
- 1 简述你完成的工作
- 2 你们小组总共的代码行数,你贡献的代码行数?相关代码链接?
- 3 你们小组总共的文档数?你贡献的文档数?相关链接?
主要完成的工作
个人主要完成的工作是扮演了项目经理和产品经理的角色,具体工作如下:
- 项目经理:
根据项目需求,制定项目计划,安排项目时间表,确定项目成本预算和资源需求;
组织项目团队,协调团队成员的合作,保证项目开发进程顺利进行;
监督项目开发进度和开发质量,及时发现和解决项目中出现的问题;
及时调整需求,调整项目计划。
- 产品经理:
根据需求,制定电子公文传输系统的功能和特性规划;
编写产品需求文档,确保开发的产品满足需求;
一同进行产品的测试和评估,发现和解决产品中存在的问题;
- 代码部分:
主要完成上传页面的html编写和非法访问页的提示;
部分代码的部署与测试。
- 文档部分:
见下。
个人代码
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">我的    </a>
<a href="Document_exam.php" class="nav-link">审批    </a>
<a href="Document_write.php" class="nav-link">草拟    </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>
style.css:
<!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>
style.css:
/* CSS Document */
*{
/* 初始化 取消内外边距 */
margin: 0;
padding: 0;
font-family: sans-serif;
}
body{
/* 溢出隐藏 */
overflow: hidden;
}
.navbar{
/* 相对定位 */
position: relative;
/* 100%窗口宽度 */
width: 100vw;
display: flex;
}
.main{
flex: 1;
height: calc(100vh - 43px);
position: relative;
top: 43px;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
padding: 20px;
}
#checkbox{
/* 隐藏复选框 */
display: none;
}
.navbar label{
position: absolute;
top: 0;
left: 70px;
width: 100%;
height: 43px;
font-size: 30px;
color: #5a738e;
background-color: #ededed;
padding-left: 20px;
border: 1px solid #d9dee4;
cursor: pointer;
/* 加个动画过渡 */
transition: all 0.5s;
}
.navbar ul{
list-style: none;
width: 70px;
/* 100%窗口高度 */
height: 100vh;
background-color: #2a3f54;
transition: all 0.5s;
/* 再加个溢出隐藏 */
overflow: hidden;
}
.navbar ul li{
height: 70px;
margin-bottom: 10px;
}
.navbar ul li:first-child{
display: flex;
justify-content: center;
align-items: center;
padding: 0 10px;
}
.navbar ul li:first-child img{
width: 50px;
height: 50px;
border-radius: 50%;
}
.navbar ul li:first-child span{
color: #fff;
/* 文字禁止换行 */
white-space: nowrap;
padding-left: 10px;
/* 先把文字隐藏 */
display: none;
}
.navbar ul li a{
display: flex;
justify-content: center;
align-items: center;
/* 垂直排列 */
flex-direction: column;
width: 100%;
height: 100%;
color: #d1d1d1;
/* 去掉下划线 */
text-decoration: none;
}
.navbar ul li a i{
font-size: 25px;
margin-bottom: 10px;
}
.navbar ul li a span{
font-size: 12px;
white-space: nowrap;
}
.navbar ul li a:hover{
color: #fff;
background-color: #35495d;
}
/* :checked选择器是判断复选框是否被选中 */
/* +是相邻兄弟选择器,找到input的下一个兄弟label */
.navbar input:checked + label{
left: 200px;
}
/* ~也是兄弟选择器,但它可以找到隔了几代的兄弟 */
.navbar input:checked ~ ul{
width: 200px;
}
.navbar input:checked ~ ul li:first-child{
/* 将居中改为开头对齐 */
justify-content: flex-start;
}
.navbar input:checked ~ ul li:first-child span{
/* 文字显示 */
display: block;
}
.navbar input:checked ~ ul li a{
flex-direction: row;
justify-content: flex-start;
}
.navbar input:checked ~ ul li a i{
font-size: 18px;
margin: 0 15px 0 30px;
}
.navbar input:checked ~ ul li a span{
font-size: 14px;
}
.horizontal-nav {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
height: 50px;
background-color: #d9dee4;
padding: 0 200px;
color: #fff;
transform: translate(-20px, -20px);
}
.under-horizontal-nav{
position: absolute; /* 让元素脱离文档流,可以通过top、bottom、left、right属性控制元素的位置 */
top: 100px; /* 控制上边距为100px */
left: 200px; /* 控制左边距为200px */
bottom: 0; /* 控制底部距离为0 */
right: 0; /* 控制右边距离为0 */
}
小组代码总行数1384行,个人代码总行数310行,占比22%
个人文档
小组代码文档(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
style.css
小组前期设计文档:(10)
gitee
我的文档:
规格需求说明书(1)
LICENSE
README.md
README.en.md
小组博客总数:11篇
我的博客: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