当前位置:网站首页>(PHP graduation project) based on PHP user online submission management system
(PHP graduation project) based on PHP user online submission management system
2022-07-28 06:18:00 【BiShe source code library】
be based on php User online submission management system
User online submission management system is based on php programing language ,mysql Database development is based on BS Architecture system , The system is divided into users , Administrators , Reviewers have three roles , The user function is mainly to view topics , Contribute according to the topic , Check the submission review status , Reply to comments, etc ; Reviewers review user submissions and other functions , This design has complete functions , Code comments are clear , For a php Graduation design and curriculum design reference study .
One . Technical environment
php edition : 5.3 above
development tool : notepad++,sublime,phpstorm All right
database : mysql
The server : apache
Integrated environment : phpstudy
The front frame :bootstrap
Detailed technical :HTML+CSS+JS+PHP+MYSQL+PhpStudy
Two . Project documents

3、 ... and . system function
be based on php User online submission management system
The system is mainly divided into users , Auditor , Administrator has three roles :
User functions :
1. Normal user login / register .
2. View the notification information of the system .
3. Check out the topic , You can view the published contribution topics .
4. My topic contribution , Check my published contributions and online contributions
5. Topic comments , Check the reviewers' comments on the topic I submitted , And you can reply to comments
6. Change Password
7. Check the documentation , Download documentation
Reviewer function :
1. Reviewers log into the background of the system
2. Check out the topic : Click to view all topics .
Contributors can click to view all topics under the topic .( Each reviewer will be responsible for one or more topics )
3. Review topics :
Choose the topic you are responsible for : Contributors can click to view and select the topic they are responsible for .
Review topics : Give “ You can make a speech, but you need to revise ”、“ You can speak ” or “ No speaking ” Conclusion .
4. Comment topics :
Reviewers Click to view topics , establish 、 Delete 、 Revise and reply to a comment .
Reviewers can also comment on topics that are not their own topics
5. Revise the topic :
Revise the topic of contributors ( If authorized ).
6. Notice of news
Received the notice of special modification ;( The chairman of the meeting revised the topic , The system should inform the reviewer )
Receive notification of new topics ;( If a new topic is submitted for the topic he is responsible for , The system should notify the reviewer by SMS or email )
Notice of receipt of comment reply ;
Administrator function :
1. The administrator logs in to the system background
2. Project Management , Administrators can add topics submitted by users
3. Reviewer management , add to , modify , Delete the approver's account , You can assign topics to reviewers
4. Announcement management , Add the notification notice of the system
5. Document management , Add document information to provide users with downloads
6. The administrator changes the password
Four . Code example
<?php
// +----------------------------------------------------------------------
// | Login function
// | Design thinking , Get the account and password entered by the user , Verify the data entered by the user , Verification passed ,
// | Save the login information of the user to the database , And generate cookie, Prompt the user to log in successfully
// +----------------------------------------------------------------------
// Reference commonly used functions
require_once('../../../config/config.php');
// Get the login username
$name = $_POST['name'];
// Get the user's login password
$password = $_POST['password'];
// Get the login role
$role = $_POST['role'];
// Judge whether the user name entered by the user is empty
if (!$name) {
// If it is empty , Return to the prompt message
ajaxReturn(0, ' Please enter a user name ');
}
// Judge whether the password entered by the user is empty
if (!$password) {
ajaxReturn(0,' Please input a password ');
}
//sql sentence
$sql = "SELECT * FROM users WHERE name='$name' AND password='$password'";
// Query database user records ,fetchOne Function in mysql.php in
$result = fetchOne($link,$sql);
// If this user is not queried
if(!$result) {
ajaxReturn(0,' I'm sorry , Wrong login and password !');
}else {
// Save the user's session
$user = array(
'id'=>$result['id'],
'name'=>$result['name'],
'avatar' =>$result['avatar'],
'role'=>$result['role']
);
// If the user logs in
if($role == 1) {
if($result['role'] == 1){
// Set up session, Failure time 1 Hours
$_SESSION["user"]=$user;
ajaxReturn(1,' congratulations , Login successful !');
}else{
ajaxReturn(0,' I'm sorry , You are not a user !');
}
}
// If you are an administrator, log in
if($role == 2 ) {
// Determine whether you are an administrator
if($result['is_admin'] == 1) {
// Set up session, Failure time 1 Hours
$_SESSION["admin"]=$user;
// Prompt for successful login
ajaxReturn(2,' congratulations , Login successful !');
}else{
// If it's not the Administrator , Give tips
ajaxReturn(0,' I'm sorry , You're not the administrator !');
}
}
}
<?php
// +----------------------------------------------------------------------
// | Registration function
// | Design thinking , First, judge whether the data entered by the user is correct , In determining whether the user's email has a note
// | too , Meet the conditions , Registered successfully ,ajaxReturn Function in include.php in
// +----------------------------------------------------------------------
// Reference commonly used functions
require_once('../../../config/config.php');
// Get the data sent by the front desk
$name = $_POST['name'];// Get username
$password = $_POST['password'];// Get password
$email = $_POST['email'];// Get games
$password_o = $_POST['password_o'];// Get duplicate password
// Judge user name
if(!$name) {
ajaxReturn(0,' Incorrect user name format , English plus numbers !');
}
// Determine whether the password is entered correctly
if(!is_password($password)) {
ajaxReturn(0,' The password format is incorrect , No less than 6 position !');
}
// Determine whether the mailbox is entered correctly
if(!is_email($email)) {
ajaxReturn(0,' The email format is incorrect !');
}
// Judge whether the two password entries are consistent
if($password != $password_o) {
ajaxReturn(0,' The two passwords are not the same !');
}
// Query whether the database has registered this mailbox
$sql = "SELECT * FROM users WHERE email='$email'";
$result1 = fetchAll($link,$sql);
if($result1) {
ajaxReturn(0,' I'm sorry , This email has been registered !');
}
$data = array(
'name'=>$name,
'password'=>$password,
'email'=> $email,
'addtime'=>date('Y-m-d H:i:s')
);
// Save the user's registration information to users surface , Among them $link stay include.php in
$result2 = insert($link,$data,'users');
// If the registration succeeds or fails , Return to the prompt
if(!$result2) {
ajaxReturn(0,' Registration failed !');
}else{
ajaxReturn(1,' Congratulations on your successful registration ');
}
5、 ... and . Project screenshots









边栏推荐
- ESXi 7.0 Update 1c中加入的systemMediaSize启动选项
- 怎么看SIMULINK直接搭的模块的传递函数
- 弹出消息对话框的方法
- Reading experience of protecting against DNN model steaming attacks
- ESXi on ARM v1.2 (2020年11月更新)
- Reinforcement learning - Multi-Agent Reinforcement Learning
- Why is the kotlin language not popular now? What's your opinion?
- 端接电阻详解 信号完整系列 硬件学习笔记7
- 基于差值扩展的可逆水印方法
- 确保PoE设备成功部署的最佳实践
猜你喜欢

Summary of common WAF interception pages

深度学习(一):走进机器学习与深度学习理论部分

《AdaFace: Quality Adaptive Margin for Face Recognition》用于人脸识别的图像质量自适应边缘损失

Apache log4j arbitrary code execution replication

Reinforcement learning - Multi-Agent Reinforcement Learning

Deep learning (incremental learning) - iccv2022:continuous continuous learning

详解爬电距离和电气间隙

The number of password errors during login is too many, and the user is blocked,

EIGamal cryptosystem description

Boosting unconstrained face recognition with auxiliary unlabeled data to enhance unconstrained face recognition
随机推荐
Overview of unconstrained low resolution face recognition I: data sets for low resolution face recognition
3、 Openvino practice: image classification
Reinforcement learning - proximal policy optimization algorithms
ESXi社区版NVMe驱动更新v1.1
在win7 上安装 Visual Studio 2019 步骤 及 vs2019离线安装包
Deep learning pay attention to MLPs
Scenario solution of distributed cluster architecture: cluster clock synchronization
神经网络实现鸢尾花分类
生活随机-1
RS232 RS485 RS422 通信 学习及备忘笔记
Model inversion attacks that exploit confidence information on and basic countermeasures
神经网络学习
Internet of things interoperability system: classification, standards and future development
深度学习数据窃取攻击在数据沙箱模式下的威胁分析与防御方法研究阅读心得
Never leave its origin - bluecms1.6 vulnerability of the controller's shooting range
深度学习(二)走进机器学习与深度学习编程部分
Why is the kotlin language not popular now? What's your opinion?
ESXi Arm Edition version 1.10更新
Solution to the crash after setting up a cluster
51 single chip microcomputer independent key linkage nixie tube LED buzzer