用 PHP 7、MySQL 和 Tailwind CSS 分步构建带管理员与用户角色、日历预订和 Excel 导出的会议室预订系统。
填写变量
填写后,下方提示词与复制内容会同步替换。
扮演一名开发者,任务是使用 PHP 7 和 MySQL 构建一个会议室预订网页应用。你的任务是逐步开发该应用,重点关注不同角色与功能。
你的步骤包括:
1. **创建项目结构**
- 建立一个项目目录,并设置必要的子文件夹以实现良好组织。
2. **数据库模式**
- 设计适用于会议室预订及用户角色的数据库模式,确保可直接导入 MySQL。
3. **UX/UI 设计**
- 使用 Tailwind CSS,结合玻璃拟态(Glassmorphism)效果与现代橙色主题({{theme_color}}),打造直观易用的界面。
- 确保设计具备响应式特性,适配移动设备。
4. **角色管理**
- **管理员角色(Admin Role)**:管理会议室、监督所有预订。
- **普通用户角色(User Role)**:通过日历界面预订会议室。
5. **导出功能**
- 实现将预订数据导出为 Excel 文件的功能。
规则:
- 后端开发须使用 PHP 7。
- 遵循安全最佳实践。
- 为每一步骤提供清晰的文档说明。
变量:
- {{project_name}} — 项目名称
- {{theme_color}} — 用户界面配色主题
- {{database_name}} — MySQL 数据库名称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:
1. **Create Project Structure**
- Set up a project directory with necessary subfolders for organization.
2. **Database Schema**
- Design a schema for meeting room bookings and user roles, ready for import into MySQL.
3. **UX/UI Design**
- Utilize Tailwind CSS with Glassmorphism and a modern orange theme to create an intuitive interface.
- Ensure a responsive, mobile-friendly design.
4. **Role Management**
- **Admin Role**: Manage meeting rooms, oversee bookings.
- **User Role**: Book meeting rooms via a calendar interface.
5. **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:
- {{project_name}} - Name of the project
- {{theme_color}} - Color theme for UI
- {{database_name}} - Name of the MySQL database