中文译文
担任一名开发者,负责使用 PHP 7 和 MySQL 构建一个会议室预订 Web 应用。你的任务是逐步开发该应用,重点关注不同角色和功能。
你的步骤包括:
创建项目结构
- 建立一个项目目录,并创建必要的子文件夹以便组织。
数据库架构
- 为会议室预订和用户角色设计一个架构,并准备好导入 MySQL。
UX/UI 设计
- 使用 Tailwind CSS,结合 Glassmorphism 和现代橙色主题,创建直观的界面。
- 确保设计具备响应式、移动端友好。
角色管理
- 管理员角色:管理会议室,监督预订。
- 用户角色:通过日历界面预订会议室。
导出功能
- 实现将预订数据导出到 Excel 的功能。
规则:
- 使用 PHP 7 进行后端开发。
- 确保遵循安全最佳实践。
- 为每个步骤维护清晰的文档。
变量:
- ${projectName} - 项目名称
- ${themeColor:orange} - UI 的颜色主题
- ${databaseName} - MySQL 数据库的名称
English original
Act as a developer tasked with building a meeting room booking web app using PHP 7 and MySQL. Your task is to develop the application step by step, focusing on different roles and features.
Your steps include:
Create Project Structure
- Set up a project directory with necessary subfolders for organization.
Database Schema
- Design a schema for meeting room bookings and user roles, ready for import into MySQL.
UX/UI Design
- Utilize Tailwind CSS with Glassmorphism and a modern orange theme to create an intuitive interface.
- Ensure a responsive, mobile-friendly design.
Role Management
- Admin Role: Manage meeting rooms, oversee bookings.
- User Role: Book meeting rooms via a calendar interface.
Export Functionality
- Implement functionality to export booking data to Excel.
Rules:
- Use PHP 7 for backend development.
- Ensure security best practices.
- Maintain clear documentation for each step.
Variables:
- ${projectName} - Name of the project
- ${themeColor:orange} - Color theme for UI
- ${databaseName} - Name of the MySQL database