caozha-CEPCS is a new coronavirus epidemic prevention and control system developed based on PHP. CEPCS (full name: COVID-19 Epidemic Prevention and Control System) can be applied to units, enterprises, schools, industrial parks, villages, etc. The front-end functions include: employee (visitor) registration and login, my information, my QR code (people with administrative rights can scan the QR code provided by the user after logging in to directly view all the user's information), epidemic reporting, epidemic situation Announcement and other modules to achieve efficient epidemic control within the enterprise or park. The backend is developed based on caozha-admin and has complete functions, including: epidemic news announcements, member management, epidemic reporting records, system settings, administrator maintenance, permission group management, system logs and other functions. This is a small system, and I hope it can do its little bit to help everyone get through the epidemic.
caozha-CEPCS function introduction Front-end functions The front-end functions are divided into: employee (visitor) registration and login, my information, my QR code (people with administrative rights can scan the QR code provided by the user after logging in to directly view all the user's information), epidemic situation Reporting, epidemic announcement and other modules to achieve efficient epidemic control within the enterprise or park.
The front-end login is based on the ID number and password for login verification. Therefore, when registering or adding a member in the backend, it will first be verified whether the ID number already exists in the system. If it already exists, it will prompt that registration cannot be done.
In terms of security, the system performs necessary filtering on the incoming data; the generated QR code is also encrypted and verified to prevent malicious users from forging QR codes.
Back-end functions The back-end is developed based on the open source and free caozha-admin architecture and has complete functions, including: epidemic news announcements, member management, epidemic reporting records, system settings, administrator maintenance, permission group management, system logs and other functions.
For more functions, download and experience it yourself.
Quick installation
1. PHP version must be 7.1 or above.
2. Upload all source codes in the directory /Src/ to the server.
3. Set the root directory of the website to point to the running directory /public/. (This is a requirement of ThinkPHP6.0)
4. Import the .sql file in the /Database/ directory into the MYSQL database.
5. Modify the file /config/database.php and configure your database information.
6. Backend access address: http://your domain name/index.php/admin/index/login (Account number: caozha Password: 123456)
7. Front-end access address: http://your domain name/index.php (test account: 450881000000000011 password: 123456)
Pseudo-static settings
1. The ThinkPHP framework must be set pseudo-static in the running directory for normal access, otherwise a 404 error will be displayed.
2. If you are using Apache, the pseudo-static setting is (.htaccess):
Options+FollowSymlinks-Multiviews
RewriteEngineOn
RewriteCond%{REQUEST_FILENAME}!-d
RewriteCond%{REQUEST_FILENAME}!-f
RewriteRule^(.*)index.php?s=index.php?s=1[QSA,PT,L]
3. If you are using Nginx, the pseudo-static setting is:
location/{
indexindex.php;if(!-e$request_filename){rewrite^(.*)$/index.php?s=/$1last;break;}
}
4. In the website running directory (/public/), there are two files: .htaccess and nginx.htaccess, which are pseudo-static files of Apache and Nginx respectively. You can use them directly.
caozha-CEPCS Development Manual Backend:
It adopts the open source and free caozha-admin architecture, and the installation and usage methods are similar to caozha-admin.
front end:
It is made using free downloadable templates from the Internet. If you don't like it, you can make your own interface.
Theoretically, this system is suitable for use in most scenarios, especially for units, industrial parks, technology parks, schools, villages, etc. with a large number of people.
We know that a standard industrial park or science and technology park may have many different small factories or companies inside, and the personnel and visitors are relatively complex, which adds difficulties to epidemic prevention and control.
Let's take the industrial park as an example to explain the functions and usage of each part of this system.
1. Registration system employees (or stranger visitors) need to verify their identity information and register before entering the gate of the industrial park.
There are two situations: corporate employees in the industrial park and strange foreign visitors. Staff responsible for epidemic prevention and control in the park can set up notice boards in advance to remind visitors with different identities to queue up at different checkpoints.
(1) For corporate employees in the park, in order to make the entire verification process simple and fast and avoid crowding and long queues, the verification method is simplified to: show the QR code. Employees use their own account and password to log in to the client of the epidemic prevention and control system through their mobile phones in advance. After successful login, click on the corresponding "My QR Code" function, and the system will automatically generate a QR code with a unique identifier. . The staff responsible for the park verification will use a mobile browser to log in to the system with an account as a "staff" in advance. At this time, the cookie that the staff member has passed the login verification will be automatically saved in the mobile browser. Later, the mobile browser will be used directly to log in to the system. With the QR code scanning function, you can scan the QR code displayed by employees (or visitors) to automatically open the QR code scanning results page. If the QR code information is verified to be true, it will prompt that the verification is successful and display the employee's complete information, such as company, name, address, ID number, etc. Verification personnel use this information to compare the ID card information presented by the employee on site to confirm whether it is consistent. If the information is consistent, their body temperature will be measured. If their body temperature is normal, they will be allowed to enter the park. If they have a fever, they will be refused entry and will be handled by park security. If the information is inconsistent, ask them to register as external visitors.
(2) Unfamiliar foreign visitors. For unfamiliar foreign visitors, the park verification staff can display the QR code of the system registration page. After the visitor scans the QR code with his mobile phone, a visitor registration/registration form page will open. After the visitor fills out the form and submits it, a visitor's account will be automatically generated. After the visitor logs in to the system with his account and password, he clicks "My QR Code" and shows the QR code to the staff. After the staff scans the QR code, the information filled in by the visitor will be automatically displayed. Based on the ID card presented by the visitor on site and the information displayed by the system, it will be judged whether the information is true. If it is true, the visitor's temperature will be measured directly. If the temperature is normal, the visitor will be allowed to enter the park. If the visitor has a fever, he will be refused. Enter the park and be followed up by park security.
2. Epidemic reporting system Epidemic reporting is to strengthen the control of the epidemic. Employees of companies in the park report their body temperature and whether they cough every day. In this way, the health status of all employees in the park can be accurately understood in real time, so that the epidemic can be detected in time.
3. The epidemic announcement system has designed a special news announcement in a prominent position on the home page where employees log in. You can use this news announcement to release some epidemic-related information, such as epidemic notifications, infection prevention knowledge, etc. Through proactive information announcements and publicity, we can enhance employees’ awareness of prevention and reduce the risk of spreading COVID-19.