当前位置:网站首页>(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











边栏推荐
- 短跳线DSX-8000测试正常,但是DSX-5000测试无长度显示?
- 《AdaFace: Quality Adaptive Margin for Face Recognition》用于人脸识别的图像质量自适应边缘损失
- Internet of things interoperability system: classification, standards and future development
- Overview of unconstrained low resolution face recognition II: heterogeneous low resolution face recognition methods
- 确保PoE设备成功部署的最佳实践
- 电快速脉冲群(EFT)设计-EMC系列 硬件设计笔记4
- 开关电源电路EMI设计在layout过程中注意事项
- Neural network learning
- Model inversion attacks that exploit confidence information on and basic countermeasures
- CString转char[]函数
猜你喜欢

EIGamal 密码体制描述

Reversible watermarking method based on difference expansion

EIGamal cryptosystem description

压敏电阻设计参数及经典电路记录 硬件学习笔记5

五、视频处理与GStreamer

一个票据打印实例

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

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

GF(2^8)的加法与乘法计算

Deep learning (self supervision: simpl) -- a simple framework for contractual learning of visual representations
随机推荐
Adaface: quality adaptive margin for face recognition image quality adaptive edge loss for face recognition
机器学习之聚类
一、语音合成与自回归模型
Boosting unconstrained face recognition with auxiliary unlabeled data to enhance unconstrained face recognition
ESXi 社区版网卡驱动
Summary of command injection bypass methods
ASP.NET 读数据库绑定到 TreeView 递归方式
8类网线测试仪AEM testpro CV100 和FLUKE DSX-8000哪些事?
针对大量数据,MATLAB生成EXCEL文件并进行排版处理的源码
使用PowerCli来创建自定义ESXi ISO镜像
确保PoE设备成功部署的最佳实践
短跳线DSX-8000测试正常,但是DSX-5000测试无长度显示?
Realization of topic function
基于差值扩展的可逆水印方法
dsp和fpga的通讯
Deep learning (self supervision: CPC V2) -- data efficient image recognition with contractual predictive coding
无约束低分辨率人脸识别综述一:用于低分辨率人脸识别的数据集
Reinforcement learning - dqn in value learning
怎么看SIMULINK直接搭的模块的传递函数
Web滚动字幕(MARQUEE示例)