当前位置:网站首页>(PHP graduation project) based on thinkphp5 community property management system
(PHP graduation project) based on thinkphp5 community property management system
2022-07-28 06:18:00 【BiShe source code library】
be based on thinkphp5 Community property management system
Community property management system is based on php programing language ,mysql Database and thinkphp5 Framework development BS Architecture system . The system is mainly used by the administrator for the residential property , Real estate , Parking space , Asset and equipment management . This design property management system source code , It's easy to operate , Functional perfection , Good user experience , For a php Graduation design and php Curriculum design reference and learning .
One . Technical environment
php edition : 7.1
php frame :thinkphp5
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+thinkphp5
Two . Project documents

3、 ... and . system function

Four . Code example
<?php
namespace app\admin\controller;
use think\Controller;
use think\Request;
class User extends Controller
{
/* Administrator login */
public function login(){
if(request()->isPost()){
$data = input('post.');
// p($data);exit();
// View by user name User Is there such data in the table
$ret = model('Admin')->getUserByUsername($data['username']);
if(!$ret || $ret->status !=1){
$this->error(' The user does not exist ');
}else{
if($ret->password !=md5($data['password'])){
$this->error(' Incorrect password ');
}else{
session('User',$ret,'adminuser');
return $this->success(' Login successful ',url('index/index'));
}
}
}else{
// obtain session The value of the inside , If session It's worth it , Then jump straight to index/index
$user = session('User','','adminuser');
if($user && $user->id){
return $this->redirect(url('index/index'));
}
return $this->fetch();
}
}
/* Exit account */
public function logout(){
session(null,'adminuser');
$this->redirect(url('user/login'));
}
/* Change password page */
public function edit(){
$user = session('User','','adminuser');
if(!$user || !$user->id){
return $this->redirect(url('user/login'));
}else{
$username = $user['username'];
$userId = $user['id'];
return $this->fetch('',[
'username'=>$username,
'userId'=>$userId,
]);
}
}
/* Change Password action*/
public function updatePwd(){
$data = input('post.');
$data['password'] = md5($data['password']);
$result =model('Admin')->save($data,['id'=>intval($data['id'])]);
if($result){
return $this->success(' Modification successful !',url('index/index'));
}else{
return $this->error(' Modification failed !');
}
}
}
5、 ... and . Project screenshots











边栏推荐
- 生活随机-1
- Protecting Against DNN Model Stealing Attacks 论文阅读心得
- Nanjing University of Posts and Telecommunications CTF topic writeup (II) including topic address
- 三、OpenVINO实战:图像分类
- Why is the kotlin language not popular now? What's your opinion?
- frameset 用法示例
- Neural network optimization
- CString转char[]函数
- Tornado first met
- 怎么看SIMULINK直接搭的模块的传递函数
猜你喜欢

Common CTF encryption methods JS

1、 Amd - openvino environment configuration

51 single chip microcomputer independent key linkage nixie tube LED buzzer

ASP.NET 读数据库绑定到 TreeView 递归方式

Nanjing University of Posts and Telecommunications CTF topic writeup (II) including topic address

8类网线测试仪AEM testpro CV100 和FLUKE DSX-8000哪些事?

The difference and relation between TCP and UDP

(PHP graduation project) obtain the campus network repair application management system based on PHP

监控安装ESXi on Arm的树莓派4b的CPU温度

arduino 读取模拟电压_MQ2气体/烟雾传感器如何工作及其与Arduino接口
随机推荐
D2sc-gan: low resolution face recognition of classroom scenes based on dual depth and shallow channel generation confrontation network
5、 Video processing and GStreamer
The difference and connection between cookies, sessions and tokens
Cyclic neural network
Latex入门
What is the process of building a small program?
在win7 上安装 Visual Studio 2019 步骤 及 vs2019离线安装包
Overview of unconstrained low resolution face recognition I: data sets for low resolution face recognition
Transformer's understanding
Research on threat analysis and defense methods of deep learning data theft attack in data sandbox mode
Realization of topic function
Difference between shallow copy and deep copy
Overview of unconstrained low resolution face recognition II: heterogeneous low resolution face recognition methods
Addition and multiplication calculation of GF (2^8)
神经网络学习
详解爬电距离和电气间隙
dsp和fpga的通讯
《AdaFace: Quality Adaptive Margin for Face Recognition》用于人脸识别的图像质量自适应边缘损失
开关电源电路EMI设计在layout过程中注意事项
ESXi on Arm 10/22 更新