PHP基于B/S模式的校园餐厅展示系统源码分享
Posted erhabiancheng
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了PHP基于B/S模式的校园餐厅展示系统源码分享相关的知识,希望对你有一定的参考价值。
大家好,我是全微毕设团队的创始人,本团队擅长JAVA(SSM,SSH,SPRINGBOOT)、PYTHON、php、C#、安卓等多项技术。
今天将为大家分析一个校园餐厅展示系统,随着我国科学技术的不断发展,计算机的应用日渐成熟,其强大的功能给人们留下深刻的印象,它已经应用到了人类社会的各个层次的领域,发挥着重要的不可替换的作用。随着经济不断的发展,国家对教学的不断重视,办学的规模不断增大,生活水平不断提高,用户对餐饮要求也越来越严格。校园餐厅展示系统是为校园用户而设计的平台,通过平台用户可以进行查看餐饮信息,并可进行订餐操作,商家可以进行菜品信息管理、订餐记录管理等,给用户和商家带来了便利。近年来由于新兴IT行业的空前发展,它与传统餐饮行业也进行了新旧的结合,很多餐厅开始通过网络进行订餐,通过专门的校园餐厅展示系统,一方面节省了用户的时间,给校园用户带来方便,另一方面给商家带来了新的销售模式,同时也使校园订餐的管理规范化,系统化,高效化。
校园餐厅展示系统的开发是基于B/S结构,采用PHP技术及mysql数据库进行开发;论文首先阐述了校园餐厅展示系统的开发,并对该系统进行了较详细的需求分析,然后详细探讨了校园餐厅展示系统的功能需求、业务流程、系统功能和系统设计等方面的问题。望能利用先进的计算机技术和网络技术来改变校园餐厅订餐现状,更好的为校园用户服务。
sql建表语句
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50160 Source Host : localhost:3306 Source Database : phpxyctzsxt6768 Target Server Type : MYSQL Target Server Version : 50160 File Encoding : 65001 Date: 2017-04-10 16:12:44 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `allusers` -- ---------------------------- DROP TABLE IF EXISTS `allusers`; CREATE TABLE `allusers` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `username` VARCHAR(50) DEFAULT NULL, `pwd` VARCHAR(50) DEFAULT NULL, `cx` VARCHAR(50) DEFAULT ‘普通管理员‘, `addtime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=gb2312; -- ---------------------------- -- Records of allusers -- ---------------------------- INSERT INTO `allusers` VALUES (‘2‘, ‘hsg‘, ‘hsg‘, ‘超级管理员‘, ‘2016-03-29 07:46:56‘); -- ---------------------------- -- Table structure for `dx` -- ---------------------------- DROP TABLE IF EXISTS `dx`; CREATE TABLE `dx` ( `ID` INT(11) NOT NULL AUTO_INCREMENT, `leibie` VARCHAR(255) CHARACTER SET utf8 DEFAULT NULL, `content` text CHARACTER SET utf8, `addtime` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1; -- ---------------------------- -- Table structure for `goumaijilu` -- ---------------------------- DROP TABLE IF EXISTS `goumaijilu`; CREATE TABLE `goumaijilu` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `shangpubianhao` VARCHAR(50) DEFAULT NULL, `mingcheng` VARCHAR(50) DEFAULT NULL, `caipinmingcheng` VARCHAR(50) DEFAULT NULL, `jiage` VARCHAR(50) DEFAULT NULL, `shangjiahao` VARCHAR(50) DEFAULT NULL, `shuliang` VARCHAR(50) DEFAULT NULL, `jine` VARCHAR(50) DEFAULT NULL, `dinggouren` VARCHAR(50) DEFAULT NULL, `xingming` VARCHAR(50) DEFAULT NULL, `shouji` VARCHAR(50) DEFAULT NULL, `dizhi` VARCHAR(300) DEFAULT NULL, `beizhu` VARCHAR(500) DEFAULT NULL, `issh` VARCHAR(10) DEFAULT ‘否‘, `iszf` VARCHAR(10) DEFAULT ‘否‘, `addtime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=gb2312; -- ---------------------------- -- Records of goumaijilu -- ---------------------------- INSERT INTO `goumaijilu` VALUES (‘2‘, ‘14915793431848‘, ‘东风风神单范德萨‘, ‘分店港大发光‘, ‘30‘, ‘111‘, ‘1‘, ‘30‘, ‘555‘, ‘何升高‘, ‘18988576978‘, ‘江苏南京‘, ‘第三方打算的 ‘, ‘是‘, ‘是‘, ‘2017-04-08 01:09:43‘); INSERT INTO `goumaijilu` VALUES (‘3‘, ‘14915793431848‘, ‘东风风神单范德萨‘, ‘电饭锅地方 ‘, ‘20‘, ‘111‘, ‘1‘, ‘20‘, ‘555‘, ‘何升高‘, ‘18988576978‘, ‘浙江宁波‘, ‘似懂非懂的‘, ‘否‘, ‘是‘, ‘2017-04-08 01:16:48‘); -- ---------------------------- -- Table structure for `liuyanban` -- ---------------------------- DROP TABLE IF EXISTS `liuyanban`; CREATE TABLE `liuyanban` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `zhanghao` VARCHAR(50) DEFAULT NULL, `zhaopian` VARCHAR(50) DEFAULT NULL, `xingming` VARCHAR(50) DEFAULT NULL, `liuyan` VARCHAR(50) DEFAULT NULL, `addtime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, `huifu` VARCHAR(50) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=gb2312; -- ---------------------------- -- Records of liuyanban -- ---------------------------- -- ---------------------------- -- Table structure for `pinglun` -- ---------------------------- DROP TABLE IF EXISTS `pinglun`; CREATE TABLE `pinglun` ( `ID` INT(11) NOT NULL AUTO_INCREMENT, `wenzhangID` VARCHAR(255) CHARACTER SET gb2312 DEFAULT NULL, `pinglunneirong` VARCHAR(1000) CHARACTER SET gb2312 DEFAULT NULL, `pinglunren` VARCHAR(255) CHARACTER SET gb2312 DEFAULT NULL, `addtime` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `biao` VARCHAR(50) CHARACTER SET gb2312 DEFAULT NULL, `pingfen` INT(11) DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1; -- ---------------------------- -- Records of pinglun -- ---------------------------- INSERT INTO `pinglun` VALUES (‘3‘, ‘7‘, ‘xzcz cx‘, ‘555‘, ‘2017-04-08 00:43:58‘, ‘shangpinxinxi‘, ‘3‘); INSERT INTO `pinglun` VALUES (‘4‘, ‘3‘, ‘似懂非懂都是‘, ‘555‘, ‘2017-04-08 01:16:34‘, ‘shangpuxinxi‘, ‘3‘); -- ---------------------------- -- Table structure for `shangjiaxinxi` -- ---------------------------- DROP TABLE IF EXISTS `shangjiaxinxi`; CREATE TABLE `shangjiaxinxi` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `shangjiahao` VARCHAR(50) DEFAULT NULL, `mima` VARCHAR(50) DEFAULT NULL, `shangjiaxingming` VARCHAR(50) DEFAULT NULL, `xingbie` VARCHAR(50) DEFAULT NULL, `shouji` VARCHAR(50) DEFAULT NULL, `youxiang` VARCHAR(50) DEFAULT NULL, `beizhu` VARCHAR(500) DEFAULT NULL, `addtime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=gb2312; -- ---------------------------- -- Records of shangjiaxinxi -- ---------------------------- INSERT INTO `shangjiaxinxi` VALUES (‘2‘, ‘111‘, ‘111‘, ‘王一‘, ‘男‘, ‘18988576978‘, ‘5837895@qq.com‘, ‘dsfd ‘, ‘2017-04-07 23:24:40‘); INSERT INTO `shangjiaxinxi` VALUES (‘3‘, ‘222‘, ‘222‘, ‘陈浩‘, ‘男‘, ‘13367752235‘, ‘239865@qq.com‘, ‘水电费都是‘, ‘2017-04-07 23:24:54‘); -- ---------------------------- -- Table structure for `shangpinxinxi` -- ---------------------------- DROP TABLE IF EXISTS `shangpinxinxi`; CREATE TABLE `shangpinxinxi` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `shangpubianhao` VARCHAR(50) DEFAULT NULL, `mingcheng` VARCHAR(300) DEFAULT NULL, `caipinmingcheng` VARCHAR(300) DEFAULT NULL, `jiage` VARCHAR(50) DEFAULT NULL, `tupian` VARCHAR(50) DEFAULT NULL, `caipinjieshao` VARCHAR(500) DEFAULT NULL, `shangjiahao` VARCHAR(50) DEFAULT NULL, `issh` VARCHAR(10) DEFAULT ‘否‘, `addtime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=gb2312; -- ---------------------------- -- Table structure for `shangpuxinxi` -- ---------------------------- DROP TABLE IF EXISTS `shangpuxinxi`; CREATE TABLE `shangpuxinxi` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `shangpubianhao` VARCHAR(50) DEFAULT NULL, `mingcheng` VARCHAR(300) DEFAULT NULL, `leixing` VARCHAR(50) DEFAULT NULL, `louceng` VARCHAR(50) DEFAULT NULL, `weizhihao` VARCHAR(50) DEFAULT NULL, `tupian` VARCHAR(50) DEFAULT NULL, `shangpujieshao` VARCHAR(500) DEFAULT NULL, `shangjiahao` VARCHAR(50) DEFAULT NULL, `issh` VARCHAR(10) DEFAULT ‘否‘, `addtime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=gb2312; -- ---------------------------- -- Records of shangpuxinxi -- ---------------------------- INSERT INTO `shangpuxinxi` VALUES (‘2‘, ‘14915790823958‘, ‘发鬼地方个电饭锅 ‘, ‘火锅‘, ‘3楼‘, ‘32号‘, ‘uploadfile/1491579237uwur.jpg‘, ‘是的发送到萨达都是‘, ‘111‘, ‘是‘, ‘2017-04-07 23:34:00‘); INSERT INTO `shangpuxinxi` VALUES (‘3‘, ‘14915793431848‘, ‘东风风神单范德萨‘, ‘小吃‘, ‘2楼‘, ‘10号‘, ‘uploadfile/1491579367uwxj.jpg‘, ‘小吃吃v想VC‘, ‘111‘, ‘是‘, ‘2017-04-07 23:36:10‘); -- ---------------------------- -- Table structure for `shoucangjilu` -- ---------------------------- DROP TABLE IF EXISTS `shoucangjilu`; CREATE TABLE `shoucangjilu` ( `ID` INT(11) NOT NULL AUTO_INCREMENT, `username` VARCHAR(255) CHARACTER SET gb2312 DEFAULT NULL, `xwid` VARCHAR(255) CHARACTER SET gb2312 DEFAULT NULL, `biao` VARCHAR(100) CHARACTER SET gb2312 DEFAULT NULL, `addtime` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `ziduan` VARCHAR(255) CHARACTER SET gb2312 DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of shoucangjilu -- ---------------------------- INSERT INTO `shoucangjilu` VALUES (‘3‘, ‘555‘, ‘7‘, ‘shangpinxinxi‘, ‘2017-04-08 00:43:25‘, ‘caipinmingcheng‘); INSERT INTO `shoucangjilu` VALUES (‘4‘, ‘555‘, ‘6‘, ‘shangpinxinxi‘, ‘2017-04-08 00:55:06‘, ‘caipinmingcheng‘); INSERT INTO `shoucangjilu` VALUES (‘5‘, ‘555‘, ‘3‘, ‘shangpuxinxi‘, ‘2017-04-08 01:16:28‘, ‘mingcheng‘); INSERT INTO `shoucangjilu` VALUES (‘6‘, ‘555‘, ‘5‘, ‘shangpinxinxi‘, ‘2017-04-08 01:16:40‘, ‘caipinmingcheng‘); -- ---------------------------- -- Table structure for `songcanfuwu` -- ---------------------------- DROP TABLE IF EXISTS `songcanfuwu`; CREATE TABLE `songcanfuwu` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `shangpubianhao` VARCHAR(50) DEFAULT NULL, `mingcheng` VARCHAR(50) DEFAULT NULL, `caipinmingcheng` VARCHAR(50) DEFAULT NULL, `shuliang` VARCHAR(50) DEFAULT NULL, `jine` VARCHAR(50) DEFAULT NULL, `dinggouren` VARCHAR(50) DEFAULT NULL, `xingming` VARCHAR(50) DEFAULT NULL, `shouji` VARCHAR(300) DEFAULT NULL, `dizhi` VARCHAR(300) DEFAULT NULL, `peisongyuan` VARCHAR(50) DEFAULT NULL, `lianxifangshi` VARCHAR(50) DEFAULT NULL, `shangjiahao` VARCHAR(50) DEFAULT NULL, `issh` VARCHAR(10) DEFAULT ‘否‘, `addtime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=gb2312; -- ---------------------------- -- Records of songcanfuwu -- ---------------------------- INSERT INTO `songcanfuwu` VALUES (‘2‘, ‘14915793431848‘, ‘东风风神单范德萨‘, ‘分店港大发光‘, ‘1‘, ‘30‘, ‘555‘, ‘何升高‘, ‘18988576978‘, ‘江苏南京‘, ‘XXX‘, ‘13353369875‘, ‘111‘, ‘是‘, ‘2017-04-08 01:15:07‘); -- ---------------------------- -- Table structure for `xinwentongzhi` -- ---------------------------- DROP TABLE IF EXISTS `xinwentongzhi`; CREATE TABLE `xinwentongzhi` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `biaoti` VARCHAR(500) CHARACTER SET gb2312 DEFAULT NULL, `leibie` VARCHAR(50) CHARACTER SET gb2312 DEFAULT NULL, `neirong` text CHARACTER SET gb2312, `tianjiaren` VARCHAR(50) CHARACTER SET gb2312 DEFAULT NULL, `addtime` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, `shouyetupian` VARCHAR(50) DEFAULT NULL, `dianjilv` INT(11) DEFAULT ‘1‘, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=382 DEFAULT CHARSET=latin1; -- ---------------------------- -- Table structure for `yonghuzhuce` -- ---------------------------- DROP TABLE IF EXISTS `yonghuzhuce`; CREATE TABLE `yonghuzhuce` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `zhanghao` VARCHAR(50) DEFAULT NULL, `mima` VARCHAR(50) DEFAULT NULL, `xingming` VARCHAR(50) DEFAULT NULL, `xingbie` VARCHAR(50) DEFAULT NULL, `diqu` VARCHAR(50) DEFAULT NULL, `Email` VARCHAR(50) DEFAULT NULL, `zhaopian` VARCHAR(50) DEFAULT NULL, `addtime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, `issh` VARCHAR(10) DEFAULT ‘否‘, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=gb2312; -- ---------------------------- -- Records of yonghuzhuce -- ---------------------------- INSERT INTO `yonghuzhuce` VALUES (‘26‘, ‘555‘, ‘555‘, ‘何升高‘, ‘男‘, ‘浙江‘, ‘gsgs@163.com‘, ‘uploadfile/13392103902z4y.jpg‘, ‘2016-03-29 07:46:56‘, ‘是‘); INSERT INTO `yonghuzhuce` VALUES (‘27‘, ‘leejie‘, ‘leejie‘, ‘李龙‘, ‘男‘, ‘湖北‘, ‘fege@126.com‘, ‘uploadfile/1339211863x4s3.jpg‘, ‘2016-03-29 07:46:56‘, ‘是‘); INSERT INTO `yonghuzhuce` VALUES (‘28‘, ‘mygod‘, ‘mygod‘, ‘陈德才‘, ‘男‘, ‘河南‘, ‘gshf@yahoo.com‘, ‘uploadfile/1339211824lezl.gif‘, ‘2016-03-29 07:46:56‘, ‘是‘); INSERT INTO `yonghuzhuce` VALUES (‘29‘, ‘xwxxmx‘, ‘xwxxmx‘, ‘吴江‘, ‘女‘, ‘北京‘, ‘jrjtr@163.com‘, ‘uploadfile/1339211786gts3.jpg‘, ‘2016-03-29 07:46:56‘, ‘是‘); INSERT INTO `yonghuzhuce` VALUES (‘36‘, ‘666‘, ‘666‘, ‘陈卫国‘, ‘男‘, ‘浙江‘, ‘234@qq.com‘, ‘uploadfile/1488631880jroa.jpg‘, ‘2017-03-04 20:51:23‘, ‘是‘); INSERT INTO `yonghuzhuce` VALUES (‘37‘, ‘111‘, ‘111‘, ‘陈卫国‘, ‘男‘, ‘湖北‘, ‘234@qq.com‘, ‘uploadfile/1490088571ic78.jpg‘, ‘2017-03-21 17:29:34‘, ‘是‘); INSERT INTO `yonghuzhuce` VALUES (‘38‘, ‘001‘, ‘001‘, ‘陈卫国‘, ‘男‘, ‘浙江‘, ‘234@qq.com‘, ‘‘, ‘2017-04-08 01:21:12‘, ‘否‘); -- ---------------------------- -- Table structure for `youqinglianjie` -- ---------------------------- DROP TABLE IF EXISTS `youqinglianjie`; CREATE TABLE `youqinglianjie` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `wangzhanmingcheng` VARCHAR(50) DEFAULT NULL, `wangzhi` VARCHAR(50) DEFAULT NULL, `addtime` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, `logo` VARCHAR(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=gb2312; -- ---------------------------- -- Records of youqinglianjie -- ---------------------------- INSERT INTO `youqinglianjie` VALUES (‘16‘, ‘百度‘, ‘http://www.baidu.com‘, ‘2016-03-29 07:46:56‘, ‘uploadfile/baidu.gif‘); INSERT INTO `youqinglianjie` VALUES (‘17‘, ‘谷歌‘, ‘http://www.google.cn‘, ‘2016-03-29 07:46:56‘, ‘uploadfile/google.png‘); INSERT INTO `youqinglianjie` VALUES (‘18‘, ‘新浪‘, ‘http://www.sina.com‘, ‘2016-03-29 07:46:56‘, ‘uploadfile/sina.gif‘); INSERT INTO `youqinglianjie` VALUES (‘19‘, ‘QQ‘, ‘http://www.qq.com‘, ‘2016-03-29 07:46:56‘, ‘uploadfile/qq.jpg‘); INSERT INTO `youqinglianjie` VALUES (‘20‘, ‘网易‘, ‘http://www.163.com‘, ‘2016-03-29 07:46:56‘, ‘uploadfile/163.png‘);
以上是关于PHP基于B/S模式的校园餐厅展示系统源码分享的主要内容,如果未能解决你的问题,请参考以下文章