要货了源码集市 · 免费资源
==========================

名称：餐厅食谱菜单公示系统
编号：#20367
分类：免费资源
技术栈：Java

说明
----
本人纯小白，在AI的帮助下完成制作了这个堪用的《餐厅食谱菜单公示系统》，起因是因为单位内部食堂每日吃食大家只能到饭堂才能看到今天吃什么，而办公楼跟食堂也有一定距离，每次不吃吧饿~吃吧跑过去又不是自己喜欢吃的。然后就给饭堂的管理员做了这个。为的就是让大家能够能够知道每天吃什么，甚至未来吃什么，回顾昨天吃什么！！！妥妥的吃货~~~ 因为本人并不专业，系统可能还是存在很多随着时间的增加出现各种未知问题，比如数据文件的大小等。 数据库的问题，本来想做成独立数据库文件，每日一个以日期为名数据库单文件，但是能力有限没成功。 想要达成未达成的，添加订餐打包预订功能，对每日想吃的提前预订打包，饭堂的工作人员看到后提前打包，这样人员可以到饭堂领包就走，节约排队时间。 总之，第一次独立完成。发出来共享给大家，也是请有能力的同志们能够一起完善强大它。还有就是接受大家的各种建议以及提出这个系统存在的隐藏问题，我边学边改。 &lt;!DOCTYPE html&gt; &lt;html lang=&quot;zh-CN&quot;&gt; &lt;head&gt; &lt;meta charset=&quot;UTF-8&quot;&gt; &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt; &lt;title&gt;单位食堂菜单公示&lt;/title&gt; &lt;link href=&quot;css/bootstrap.min.css&quot; rel=&quot;stylesheet&quot;&gt; &lt;link href=&quot;css/all.min.css&quot; rel=&quot;stylesheet&quot;&gt; &lt;link href=&quot;css/style.css&quot; rel=&quot;stylesheet&quot;&gt; &lt;link href=&quot;css/responsive.css&quot; rel=&quot;stylesheet&quot;&gt; &lt;/head&gt; &lt;body&gt; &lt;!-- 顶部导航栏 --&gt; &lt;nav class=&quot;navbar navbar-expand-lg navbar-dark bg-primary&quot;&gt; &lt;div class=&quot;container&quot;&gt; &lt;a class=&quot;navbar-brand&quot; href=&quot;#&quot;&gt; &lt;i class=&quot;fas fa-utensils me-2&quot;&gt;&lt;/i&gt; 单位食堂菜单公示 &lt;/a&gt; &lt;button class=&quot;navbar-toggler&quot; type=&quot;button&quot; data-bs-toggle=&quot;collapse&quot; data-bs-target=&quot;#navbarNav&quot;&gt; &lt;span class=&quot;navbar-toggler-icon&quot;&gt;&lt;/span&gt; &lt;/button&gt; &lt;div class=&quot;collapse navbar-collapse&quot; id=&quot;navbarNav&quot;&gt; &lt;ul class=&quot;navbar-nav ms-auto&quot;&gt; &lt;li class=&quot;nav-item&quot;&gt; &lt;a class=&quot;nav-link&quot; href=&quot;#menu&quot;&gt;今日菜单&lt;/a&gt; &lt;/li&gt; &lt;li class=&quot;nav-item&quot;&gt; &lt;a class=&quot;nav-link&quot; href=&quot;#reviews&quot;&gt;评价反馈&lt;/a&gt; &lt;/li&gt; &lt;li class=&quot;nav-item&quot;&gt; &lt;a class=&quot;nav-link&quot; href=&quot;#suggestions&quot;&gt;建议箱&lt;/a&gt; &lt;/li&gt; &lt;li class=&quot;nav-item&quot;&gt; &lt;a class=&quot;nav-link&quot; href=&quot;admin/index.html&quot; target=&quot;_blank&quot;&gt; &lt;i class=&quot;fas fa-cog&quot;&gt;&lt;/i&gt; 管理后台 &lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;/nav&gt; &lt;!-- 主要内容区域 --&gt; &lt;div class=&quot;container mt-4&quot;&gt; &lt;!-- 日期选择器 --&gt; &lt;div class=&quot;row mb-4&quot;&gt; &lt;div class=&quot;col-12&quot;&gt; &lt;div class=&quot;card&quot;&gt; &lt;div class=&quot;card-body&quot;&gt; &lt;h5 class=&quot;card-title&quot;&gt; &lt;i class=&quot;fas fa-calendar-alt me-2&quot;&gt;&lt;/i&gt; 选择查看日期 &lt;/h5&gt; &lt;div class=&quot;row align-items-center&quot;&gt; &lt;div class=&quot;col-md-6&quot;&gt; &lt;input type=&quot;date&quot; class=&quot;form-control&quot; id=&quot;datePicker&quot; value=&quot;&quot;&gt; &lt;/div&gt; &lt;div class=&quot;col-md-6&quot;&gt; &lt;div class=&quot;btn-group&quot; role=&quot;group&quot;&gt; &lt;button type=&quot;button&quot; class=&quot;btn btn-outline-primary&quot; id=&quot;prevDay&quot;&gt; &lt;i class=&quot;fas fa-chevron-left&quot;&gt;&lt;/i&gt; 前一天 &lt;/button&gt; &lt;button type=&quot;button&quot; class=&quot;btn btn-outline-primary&quot; id=&quot;today&quot;&gt; 今天 &lt;/button&gt; &lt;button type=&quot;button&quot; class=&quot;btn btn-outline-primary&quot; id=&quot;nextDay&quot;&gt; 后一天 &lt;i class=&quot;fas fa-chevron-right&quot;&gt;&lt;/i&gt; &lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;!-- 菜单展示区域 --&gt; &lt;div class=&quot;row&quot; id=&quot;menu&quot;&gt; &lt;div class=&quot;col-12&quot;&gt; &lt;h2 class=&quot;text-center mb-4&quot;&gt; &lt;i class=&quot;fas fa-utensils me-2&quot;&gt;&lt;/i&gt; 今日菜单 &lt;/h2&gt; &lt;/div&gt; &lt;/div&gt; &lt;!-- 早中晚三餐菜单 --&gt; &lt;div class=&quot;row&quot;&gt; &lt;!-- 早餐 --&gt; &lt;div class=&quot;col-lg-4 mb-4&quot;&gt; &lt;div class=&quot;card h-100&quot;&gt; &lt;div class=&quot;card-header bg-warning text-dark&quot;&gt; &lt;h5 class=&quot;card-title mb-0&quot;&gt; &lt;i class=&quot;fas fa-sun me-2&quot;&gt;&lt;/i&gt; 早餐 (6:30-9:00) &lt;/h5&gt; &lt;/div&gt; &lt;div class=&quot;card-body&quot;&gt; &lt;div id=&quot;breakfast-menu&quot;&gt; &lt;!-- 早餐菜单将通过JavaScript动态加载 --&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;!-- 午餐 --&gt; &lt;div class=&quot;col-lg-4 mb-4&quot;&gt; &lt;div class=&quot;card h-100&quot;&gt; &lt;div class=&quot;card-header bg-success text-white&quot;&gt; &lt;h5 class=&quot;card-title mb-0&quot;&gt; &lt;i class=&quot;fas fa-sun me-2&quot;&gt;&lt;/i&gt; 午餐 (11:30-14:00) &lt;/h5&gt; &lt;/div&gt; &lt;div class=&quot;card-body&quot;&gt; &lt;div id=&quot;lunch-menu&quot;&gt; &lt;!-- 午餐菜单将通过JavaScript动态加载 --&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;!-- 晚餐 --&gt; &lt;div class=&quot;col-lg-4 mb-4&quot;&gt; &lt;div class=&quot;card h-100&quot;&gt; &lt;div class=&quot;card-header bg-info text-white&quot;&gt; &lt;h5 class=&quot;card-title mb-0&quot;&gt; &lt;i class=&quot;fas fa-moon me-2&quot;&gt;&lt;/i&gt; 晚餐 (17:30-20:00) &lt;/h5&gt; &lt;/div&gt; &lt;div class=&quot;card-body&quot;&gt; &lt;div id=&quot;dinner-menu&quot;&gt; &lt;!-- 晚餐菜单将通过JavaScript动态加载 --&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;!-- 评价反馈区域 --&gt; &lt;div class=&quot;row mt-5&quot; id=&quot;reviews&quot;&gt; &lt;div class=&quot;col-12&quot;&gt; &lt;div class=&quot;card&quot;&gt; &lt;div class=&quot;card-header&quot;&gt; &lt;h5 class=&quot;card-title mb-0&quot;&gt; &lt;i class=&quot;fas fa-star me-2&quot;&gt;&lt;/i&gt; 菜品评价 &lt;/h5&gt; &lt;/div&gt; &lt;div class=&quot;card-body&quot;&gt; &lt;div id=&quot;reviews-list&quot;&gt; &lt;!-- 评价内容将通过JavaScript动态加载 --&gt; &lt;/div&gt; &lt;!-- 评价表单 --&gt; &lt;hr class=&quot;my-4&quot;&gt; &lt;h6&gt;提交评价&lt;/h6&gt; &lt;form id=&quot;review-form&quot;&gt; &lt;div class=&quot;row mb-3&quot;&gt; &lt;div class=&quot;col-md-6&quot;&gt; &lt;label for=&quot;dish_name&quot; class=&quot;form-label&quot;&gt;菜品名称：&lt;/label&gt; &lt;input type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;dish_name&quot; id=&quot;dish_name&quot; required&gt; &lt;/div&gt; &lt;div class=&quot;col-md-6&quot;&gt; &lt;label for=&quot;rating&quot; class=&quot;form-label&quot;&gt;评分：&lt;/label&gt; &lt;select class=&quot;form-control&quot; name=&quot;rating&quot; id=&quot;rating&quot; required&gt; &lt;option value=&quot;&quot;&gt;请选择评分&lt;/option&gt; &lt;option value=&quot;5&quot;&gt;⭐⭐⭐⭐⭐ 非常好&lt;/option&gt; &lt;option value=&quot;4&quot;&gt;⭐⭐⭐⭐ 好&lt;/option&gt; &lt;option value=&quot;3&quot;&gt;⭐⭐⭐ 一般&lt;/option&gt; &lt;option value=&quot;2&quot;&gt;⭐⭐ 不好&lt;/option&gt; &lt;option value=&quot;1&quot;&gt;⭐ 很差&lt;/option&gt; &lt;/select&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;mb-3&quot;&gt; &lt;label for=&quot;content&quot; class=&quot;form-label&quot;&gt;评价内容：&lt;/label&gt; &lt;textarea class=&quot;form-control&quot; name=&quot;content&quot; id=&quot;content&quot; rows=&quot;3&quot; placeholder=&quot;请分享您对这道菜的评价...&quot;&gt;&lt;/textarea&gt; &lt;/div&gt; &lt;div class=&quot;mb-3&quot;&gt; &lt;label for=&quot;author&quot; class=&quot;form-label&quot;&gt;您的姓名：&lt;/label&gt; &lt;input type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;author&quot; id=&quot;author&quot; required placeholder=&quot;请输入您的姓名&quot;&gt; &lt;/div&gt; &lt;button type=&quot;submit&quot; class=&quot;btn btn-primary&quot;&gt; &lt;i class=&quot;fas fa-star me-2&quot;&gt;&lt;/i&gt;提交评价 &lt;/button&gt; &lt;/form&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;!-- 建议收集区域 --&gt; &lt;div class=&quot;row mt-4&quot; id=&quot;suggestions&quot;&gt; &lt;div class=&quot;col-12&quot;&gt; &lt;div class=&quot;card&quot;&gt; &lt;div class=&quot;card-header&quot;&gt; &lt;h5 class=&quot;card-title mb-0&quot;&gt; &lt;i class=&quot;fas fa-lightbulb me-2&quot;&gt;&lt;/i&gt; 我想吃的菜 - 建议箱 &lt;/h5&gt; &lt;/div&gt; &lt;div class=&quot;card-body&quot;&gt; &lt;!-- 已批准的建议展示 --&gt; &lt;div id=&quot;suggestions-list&quot; class=&quot;mb-4&quot;&gt; &lt;!-- 建议内容将通过JavaScript动态加载 --&gt; &lt;/div&gt; &lt;hr class=&quot;my-4&quot;&gt; &lt;h6&gt;提交新建议&lt;/h6&gt; &lt;form id=&quot;suggestion-form&quot;&gt; &lt;div class=&quot;mb-3&quot;&gt; &lt;label for=&quot;suggestion-text&quot; class=&quot;form-label&quot;&gt;您的建议：&lt;/label&gt; &lt;textarea class=&quot;form-control&quot; name=&quot;content&quot; id=&quot;suggestion-text&quot; rows=&quot;3&quot; placeholder=&quot;请告诉我们您希望食堂提供什么菜品...&quot;&gt;&lt;/textarea&gt; &lt;/div&gt; &lt;div class=&quot;mb-3&quot;&gt; &lt;label for=&quot;suggester-name&quot; class=&quot;form-label&quot;&gt;您的姓名（可选）：&lt;/label&gt; &lt;input type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;author&quot; id=&quot;suggester-name&quot; placeholder=&quot;请输入您的姓名&quot;&gt; &lt;/div&gt; &lt;button type=&quot;submit&quot; class=&quot;btn btn-primary&quot;&gt; &lt;i class=&quot;fas fa-paper-plane me-2&quot;&gt;&lt;/i&gt; 提交建议 &lt;/button&gt; &lt;/form&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;!-- 底部信息区 --&gt; &lt;footer class=&quot;bg-dark text-light mt-5 py-4&quot;&gt; &lt;div class=&quot;container&quot;&gt; &lt;div class=&quot;row&quot;&gt; &lt;div class=&quot;col-md-6&quot;&gt; &lt;h6&gt;联系我们&lt;/h6&gt; &lt;p class=&quot;mb-1&quot;&gt; &lt;i class=&quot;fas fa-phone me-2&quot;&gt;&lt;/i&gt; 食堂热线：400-123-4567 &lt;/p&gt; &lt;p class=&quot;mb-1&quot;&gt; &lt;i class=&quot;fas fa-envelope me-2&quot;&gt;&lt;/i&gt; 邮箱： [email&#160;protected] &lt;/p&gt; &lt;/div&gt; &lt;div class=&quot;col-md-6 text-md-end&quot;&gt; &lt;h6&gt;营业时间&lt;/h6&gt; &lt;p class=&quot;mb-1&quot;&gt;早餐：6:30-9:00&lt;/p&gt; &lt;p class=&quot;mb-1&quot;&gt;午餐：11:30-14:00&lt;/p&gt; &lt;p class=&quot;mb-0&quot;&gt;晚餐：17:30-20:00&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;hr class=&quot;my-3&quot;&gt; &lt;div class=&quot;text-center&quot;&gt; &lt;p class=&quot;mb-0&quot;&gt;© 2024 单位食堂菜单公示系统. 保留所有权利.&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;/footer&gt; &lt;!-- Bootstrap JS --&gt; &lt;script src=&quot;js/bootstrap.bundle.min.js&quot;&gt;&lt;/script&gt; &lt;!-- 自定义JavaScript --&gt; &lt;script src=&quot;js/main-api.js?v=2025093005&quot;&gt;&lt;/script&gt; &lt;!-- 强制日期修复脚本 --&gt; &lt;script&gt; // 立即修复日期显示问题 window.addEventListener('load', function() { console.log(' 强制日期修复脚本启动'); setTimeout(function() { // 使用更可靠的日期计算方法，避免时区问题 const now = new Date(); const today = now.getFullYear() + '-' + String(now.getMonth() + 1).padStart(2, '0') + '-' + String(now.getDate()).padStart(2, '0'); console.log(' 强制设置今日日期:', today); console.log(' 原始时间对象:', now.toString()); // 更新日期选择器 const datePicker = document.getElementById('datePicker'); if (datePicker) { datePicker.value = today; console.log('✅ 日期选择器已更新为:', today); } // 强制更新菜单标题 const menuTitle = document.querySelector('#menu h2'); if (menuTitle) { const todayObj = new Date(); const formattedDate = todayObj.toLocaleDateString('zh-CN', { year: 'numeric', month: 'long', day: 'numeric', weekday: 'long' }); // 始终显示&quot;今日菜单&quot;，无论是否有菜单数据 menuTitle.innerHTML = '&lt;i class=&quot;fas fa-utensils me-2&quot;&gt;&lt;/i&gt;今日菜单'; console.log('✅ 标题已更新为&quot;今日菜单&quot;'); // 移除任何旧的提示信息 const menuSection = document.getElementById('menu'); if (menuSection) { const existingAlerts = menuSection.querySelectorAll('.date-fix-alert, .date-fallback-alert'); existingAlerts.forEach(alert =&gt; alert.remove()); } } console.log(' 强制日期修复完成'); }, 2000); // 延迟2秒确保页面完全加载 }); &lt;/script&gt; &lt;/body&gt; &lt;/html&gt; 复制代码链接：https://cloud.189.cn/t/NVzEra6VNJ3q（访问码：hdp7）

交付说明
--------
当前商品尚未上传完整工程压缩包，本文件为授权与部署说明。请通过订单号在「订单查询」核对后联系站点补发源码包。

站点：https://www.yaohuole.homes
