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:
- ${projectName} - Name of the project
- ${themeColor:orange} - Color theme for UI
- ${databaseName} - Name of the MySQL database扮演一名开发者,使用 PHP 7 和 MySQL 构建一个会议室预订网页应用。你的任务是分步骤开发该应用,重点关注不同的角色和功能。
你的步骤包括:
1. **创建项目结构**
- 建立一个项目目录,并按需设置必要的子文件夹进行组织。
2. **数据库表结构**
- 设计一套用于会议室预订和用户角色的数据库表结构,以便导入到 MySQL 中使用。
3. **UX/UI 设计**
- 使用 Tailwind CSS,结合 Glassmorphism(玻璃拟态)风格和现代的橙色主题,打造直观友好的界面。
- 确保设计是响应式的,并兼容移动设备。
4. **角色管理**
- **管理员角色**:管理会议室,监督预订情况。
- **普通用户角色**:通过日历界面预订会议室。
5. **导出功能**
- 实现将预订数据导出为 Excel 的功能。
规则:
- 后端开发使用 PHP 7。
- 遵循安全方面的最佳实践。
- 为每个步骤提供清晰的文档说明。
变量:
- ${projectName} - 项目名称
- ${themeColor:orange} - UI 的配色主题
- ${databaseName} - MySQL 数据库名称