当前位置:网站首页>(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、 Speech synthesis and autoregressive model
- Reading experience of protecting against DNN model steaming attacks
- Reinforcement learning - continuous control
- ESXi on Arm 10/22 更新
- The difference and connection between cookies, sessions and tokens
- EIGamal 密码体制描述
- Protecting Against DNN Model Stealing Attacks 论文阅读心得
- 端接电阻详解 信号完整系列 硬件学习笔记7
- 五、视频处理与GStreamer
猜你喜欢

Research on threat analysis and defense methods of deep learning data theft attack in data sandbox mode

Reinforcement learning - Strategic Learning

Differences between processes and threads

51单片机独立按键联动数码管LED蜂鸣器

Reinforcement learning - dqn in value learning

怎么看SIMULINK直接搭的模块的传递函数

基于tensorflow搭建神经网络

Interviewer: let you design a set of image loading framework. How would you design it?

无约束低分辨率人脸识别综述一:用于低分辨率人脸识别的数据集

Convolutional neural network
随机推荐
2、 Openvino brief introduction and construction process
Internet of things interoperability system: classification, standards and future development
深度学习(一):走进机器学习与深度学习理论部分
关于隔离电源断电瞬间MOSFET损坏问题分析
四、模型优化器与推理引擎
arduino 读取模拟电压_MQ2气体/烟雾传感器如何工作及其与Arduino接口
5、 Video processing and GStreamer
Reinforcement learning - proximal policy optimization algorithms
(PHP graduation project) obtain the campus network repair application management system based on PHP
Boosting unconstrained face recognition with auxiliary unlabeled data to enhance unconstrained face recognition
一个票据打印实例
TensorFlow2.1基本概念与常见函数
Nanjing University of Posts and Telecommunications CTF topic writeup (II) including topic address
Word2vec+ regression model to achieve classification tasks
Prime_ Series range from detection to weight lifting
DSX-PC6跳线模块,何时更换JACK插座?
On low resolution face recognition in the wild:comparisons and new technologies
CalendarExtender控件的中文显示问题
Protecting Against DNN Model Stealing Attacks 论文阅读心得
弹出消息对话框的方法