码迷,mamicode.com
首页 > Web开发 > 详细

PHP基于MVC模式下的化妆品销售网站,源码分享

时间:2019-09-21 14:58:02      阅读:176      评论:0      收藏:0      [点我收藏+]

标签:网络   create   prim   codec   name   into   val   存在   gb2312   

大家好,我是全微毕设团队的创始人,本团队擅长JAVA(SSM,SSH,SPRINGBOOT)、PYTHON、PHP、C#、安卓等多项技术。

今天将为大家分析一个化妆品销售网站,随着科技的迅速发展,计算机网络信息技术在当代社会越来越普及,基于Web平台上的商业活动也越来越密集。传统的交易大部分是面对面交易,在这种信息化时代,人们已经不能满足于传统的交易平台。信息的网络化管理在市场上的地位变得越来越重要,相对于人为管理而言,网络化管理更简单,工作效率更高。
本文着重研究网络信息技术运用在化妆品购买,改变传统化妆品管理销售的方式,采用PHP技术和mysql数据库设计一个集管理与交易于一身的化妆品销售网站。该系统可以向用户展示所有的化妆品、活动信息和相关资讯,同时为用户提供一个网上购买化妆品的平台,使用户可以直接以订单形式把购买信息传递给商家。这些信息数据都是保存在系统的数据库中,管理员可以后台操作对这些数据进行管理。系统还为用户提供留言反馈的平台,让商家从后台了解用户需求,从而提高服务质量。

sql建表语句

/*
Navicat MySQL Data Transfer

Source Server         : localhost_3306
Source Server Version : 50146
Source Host           : localhost:3306
Source Database       : phphzpxswzdzkfa182

Target Server Type    : MYSQL
Target Server Version : 50146
File Encoding         : 65001

Date: 2017-03-30 16:31:30
*/

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=4 DEFAULT CHARSET=gb2312;

-- ----------------------------
-- Records of allusers
-- ----------------------------
INSERT INTO `allusers` VALUES (2, hsg, hsg, 超级管理员, 2016-03-25 07:46:56);
INSERT INTO `allusers` VALUES (3, ss, ss, 普通管理员, 2017-03-23 14:25:24);

-- ----------------------------
-- Table structure for `dingdan`
-- ----------------------------
DROP TABLE IF EXISTS `dingdan`;
CREATE TABLE `dingdan` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `dingdanhao` VARCHAR(50) DEFAULT NULL,
  `jine` VARCHAR(50) DEFAULT NULL,
  `goumairen` VARCHAR(50) DEFAULT NULL,
  `lianxidianhua` VARCHAR(50) DEFAULT NULL,
  `youbian` VARCHAR(50) DEFAULT NULL,
  `dizhi` VARCHAR(300) DEFAULT NULL,
  `kuaidileixing` VARCHAR(50) DEFAULT NULL,
  `dingdanneirong` VARCHAR(500) DEFAULT NULL,
  `iszf` VARCHAR(10) DEFAULT ,
  `addtime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=gb2312;



-- ----------------------------
-- Table structure for `dizhishezhi`
-- ----------------------------
DROP TABLE IF EXISTS `dizhishezhi`;
CREATE TABLE `dizhishezhi` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `dizhi` VARCHAR(300) DEFAULT NULL,
  `addtime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=gb2312;

-- ----------------------------
-- Records of dizhishezhi
-- ----------------------------
INSERT INTO `dizhishezhi` VALUES (2, 浙江杭州市下沙园区, 2017-03-23 13:01:00);

-- ----------------------------
-- 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 `goumaiche`
-- ----------------------------
DROP TABLE IF EXISTS `goumaiche`;
CREATE TABLE `goumaiche` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `shangpinbianhao` VARCHAR(50) DEFAULT NULL,
  `shangpinmingcheng` VARCHAR(50) DEFAULT NULL,
  `pinpai` VARCHAR(50) DEFAULT NULL,
  `jiage` VARCHAR(50) DEFAULT NULL,
  `kucunshuliang` VARCHAR(50) DEFAULT NULL,
  `goumaishuliang` VARCHAR(50) DEFAULT NULL,
  `goumairen` VARCHAR(50) DEFAULT NULL,
  `jine` VARCHAR(50) DEFAULT NULL,
  `issh` VARCHAR(10) DEFAULT ,
  `addtime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=gb2312;

-- ----------------------------
-- Records of goumaiche
-- ----------------------------
INSERT INTO `goumaiche` VALUES (2, 14902449822111, 洗面奶, A品牌, 258, 100, 1, 555, 100, , 2017-03-23 12:59:30);
INSERT INTO `goumaiche` VALUES (3, 14902449822111, 洗面奶, A品牌, 258, 99, 1, 555, 99, , 2017-03-23 12:59:57);
INSERT INTO `goumaiche` VALUES (4, 14902513258009, 清洁霜, A品牌, 98, 100, 30, 555, 3000, , 2017-03-23 14:45:42);
INSERT INTO `goumaiche` VALUES (5, 14902513258009, 清洁霜, A品牌, 98, 50, 3, 999, 150, , 2017-03-24 13:14:57);
INSERT INTO `goumaiche` VALUES (6, 14903319984895, 精华眼霜, A品牌, 356, 100, 30, 999, 3000, , 2017-03-24 13:18:58);
INSERT INTO `goumaiche` VALUES (7, 14902449822111, 洗面奶, A品牌, 258, 40, 10, 999, 400, , 2017-03-24 13:19:06);
INSERT INTO `goumaiche` VALUES (8, 14903319984895, 精华眼霜, A品牌, 356, 70, 10, 999, 700, , 2017-03-24 13:19:13);
INSERT INTO `goumaiche` VALUES (9, 14902514058239, 保养乳液, A品牌, 258, 260, 30, 999, 7800, , 2017-03-24 13:19:23);
INSERT INTO `goumaiche` VALUES (10, 14902449822111, 洗面奶, A品牌, 258, 30, 2, 666, 60, , 2017-03-29 19:41:48);
INSERT INTO `goumaiche` VALUES (11, 14902449822111, 洗面奶, A品牌, 258, 28, 2, 666, 56, , 2017-03-29 19:41:55);
INSERT INTO `goumaiche` VALUES (12, 14902514058239, 保养乳液, A品牌, 258, 230, 1, 666, 230, , 2017-03-29 19:52:58);

-- ----------------------------
-- 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=26 DEFAULT CHARSET=latin1;

-- ----------------------------
-- Records of pinglun
-- ----------------------------
INSERT INTO `pinglun` VALUES (4, 2, 132123132123, 555, 2017-03-23 13:31:16, shangpinxinxi, 1);
INSERT INTO `pinglun` VALUES (5, 2, 321231231, 555, 2017-03-23 13:45:36, shangpinxinxi, 1);
INSERT INTO `pinglun` VALUES (6, 2, 15646545613132, 555, 2017-03-23 13:45:44, shangpinxinxi, 1);
INSERT INTO `pinglun` VALUES (7, 4, eer, 555, 2017-03-23 15:10:14, shangpinxinxi, -1);
INSERT INTO `pinglun` VALUES (8, 4, grehree, 555, 2017-03-23 15:10:19, shangpinxinxi, 1);
INSERT INTO `pinglun` VALUES (9, 4, 1321313, 555, 2017-03-23 15:20:00, shangpinxinxi, 1);
INSERT INTO `pinglun` VALUES (10, 4, 123131313213, 555, 2017-03-23 15:21:22, shangpinxinxi, 1);
INSERT INTO `pinglun` VALUES (11, 4, 123131, 555, 2017-03-23 15:21:46, shangpinxinxi, 1);
INSERT INTO `pinglun` VALUES (12, 4, ‘‘, 555, 2017-03-23 15:23:14, shangpinxinxi, 1);
INSERT INTO `pinglun` VALUES (13, 4, 13213131321, 555, 2017-03-23 15:23:29, shangpinxinxi, 0);
INSERT INTO `pinglun` VALUES (14, 3, 123132123, 555, 2017-03-23 15:25:56, shangpinxinxi, 1);
INSERT INTO `pinglun` VALUES (15, 3, 131321, 555, 2017-03-23 15:26:12, shangpinxinxi, 0);
INSERT INTO `pinglun` VALUES (16, 3, 123123132, 555, 2017-03-23 15:26:26, shangpinxinxi, -1);
INSERT INTO `pinglun` VALUES (17, 3, 1231321, 555, 2017-03-23 15:26:42, shangpinxinxi, -1);
INSERT INTO `pinglun` VALUES (18, 3, ‘‘, 555, 2017-03-23 15:29:07, shangpinxinxi, 1);
INSERT INTO `pinglun` VALUES (19, 3, ‘‘, 555, 2017-03-23 15:29:12, shangpinxinxi, 1);
INSERT INTO `pinglun` VALUES (20, 2, ‘‘, 555, 2017-03-23 15:29:25, shangpinxinxi, 1);
INSERT INTO `pinglun` VALUES (21, 2, ‘‘, 555, 2017-03-23 15:29:29, shangpinxinxi, 1);
INSERT INTO `pinglun` VALUES (22, 5, ‘‘, 999, 2017-03-24 13:12:54, shangpinxinxi, 1);
INSERT INTO `pinglun` VALUES (23, 5, ‘‘, 999, 2017-03-24 13:13:15, shangpinxinxi, 1);
INSERT INTO `pinglun` VALUES (24, 5, ‘‘, 999, 2017-03-24 13:13:36, shangpinxinxi, 0);
INSERT INTO `pinglun` VALUES (25, 5, ‘‘, 999, 2017-03-24 13:13:48, shangpinxinxi, -1);

-- ----------------------------
-- Table structure for `shangpinleibie`
-- ----------------------------
DROP TABLE IF EXISTS `shangpinleibie`;
CREATE TABLE `shangpinleibie` (  
`id` INT(11) NOT NULL AUTO_INCREMENT,  
`leibie` VARCHAR(50) DEFAULT NULL,  
`addtime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,  
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=gb2312;

-- ----------------------------
-- Records of shangpinleibie
-- ----------------------------
INSERT INTO `shangpinleibie` VALUES (2, A类, 2017-03-23 12:56:11);
INSERT INTO `shangpinleibie` VALUES (3, B类, 2017-03-23 12:56:15);
INSERT INTO `shangpinleibie` VALUES (4, C类, 2017-03-23 12:56:18);
INSERT INTO `shangpinleibie` VALUES (5, 面膜, 2017-03-24 13:04:48);
INSERT INTO `shangpinleibie` VALUES (6, 面霜, 2017-03-24 13:04:57);
INSERT INTO `shangpinleibie` VALUES (7, 眼霜, 2017-03-24 13:05:05);
INSERT INTO `shangpinleibie` VALUES (8, 精华素, 2017-03-24 13:05:19);
INSERT INTO `shangpinleibie` VALUES (9, 原液, 2017-03-24 13:05:37);

-- ----------------------------
-- Table structure for `shangpinxinxi`
-- ----------------------------
DROP TABLE IF EXISTS `shangpinxinxi`;
CREATE TABLE `shangpinxinxi` (  
`id` INT(11) NOT NULL AUTO_INCREMENT,  
`shangpinbianhao` VARCHAR(50) DEFAULT NULL,  
`shangpinmingcheng` VARCHAR(50) DEFAULT NULL,  
`shangpinleibie` VARCHAR(50) DEFAULT NULL,  
`pinpai` VARCHAR(50) DEFAULT NULL,  
`tupian` VARCHAR(50) DEFAULT NULL,  
`jiage` VARCHAR(50) DEFAULT NULL,  
`kucunshuliang` VARCHAR(50) DEFAULT NULL,  
`yonghupingjia` INT(50) DEFAULT NULL,  
`shangpinjieshao` VARCHAR(500) DEFAULT NULL,  
`addtime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,  
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=gb2312;

-- ----------------------------
-- Records of shangpinxinxi
-- ----------------------------
INSERT INTO `shangpinxinxi` VALUES (2, 14902449822111, 洗面奶, A类, A品牌, uploadfile/14902450300kk6.jpg, 258, 26, 2, 1231321321321, 2017-03-23 12:57:25);
INSERT INTO `shangpinxinxi` VALUES (3, 14902513258009, 清洁霜, A类, A品牌, uploadfile/1490251354ssjs.jpg, 98, 47, 1, 1231313132231321, 2017-03-23 14:42:50);
INSERT INTO `shangpinxinxi` VALUES (4, 14902514058239, 保养乳液, A类, A品牌, uploadfile/14902514753jwj.jpg, 258, 229, 4, 313213131, 2017-03-23 14:44:42);
INSERT INTO `shangpinxinxi` VALUES (5, 14903319984895, 精华眼霜, 眼霜, A品牌, uploadfile/1490332026lk8b.jpg, 356, 60, 1, 2131231323, 2017-03-24 13:07:16);
INSERT INTO `shangpinxinxi` VALUES (6, 14903326697472, A名称, 面霜, A品牌, uploadfile/1490332699z66r.jpg, 520, 100, 0, 32123123, 2017-03-24 13:18:30);

-- ----------------------------
-- 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=6 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of shoucangjilu
-- ----------------------------
INSERT INTO `shoucangjilu` VALUES (3, 555, 2, shangpinxinxi, 2017-03-23 13:31:05, shangpinmingcheng);
INSERT INTO `shoucangjilu` VALUES (4, 999, 3, shangpinxinxi, 2017-03-24 13:14:44, shangpinmingcheng);
INSERT INTO `shoucangjilu` VALUES (5, 999, 3, shangpinxinxi, 2017-03-24 13:14:47, shangpinmingcheng);

-- ----------------------------
-- 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,  
`zhaiyao` VARCHAR(800) CHARACTER SET gb2312 DEFAULT NULL,  
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=237 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 ,  
`shouji` VARCHAR(255) DEFAULT NULL,  
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=gb2312;

-- ----------------------------
-- Records of yonghuzhuce
-- ----------------------------
INSERT INTO `yonghuzhuce` VALUES (26, 555, 555, 何升高, , 浙江, gsgs@163.com, uploadfile/13392103902z4y.jpg, 2016-02-19 07:46:56, , 32235643);
INSERT INTO `yonghuzhuce` VALUES (27, leejie, leejie, 李龙, , 湖北, fege@126.com, uploadfile/1339211863x4s3.jpg, 2016-02-19 07:46:56, , 65754745);
INSERT INTO `yonghuzhuce` VALUES (28, mygod, mygod, 陈德才, , 河南, gshf@yahoo.com, uploadfile/1339211824lezl.gif, 2016-02-19 07:46:56, , 53464373);
INSERT INTO `yonghuzhuce` VALUES (29, xwxxmx, xwxxmx, 吴江, , 北京, jrjtr@163.com, uploadfile/1339211786gts3.jpg, 2016-02-19 07:46:56, , 52356474);
INSERT INTO `yonghuzhuce` VALUES (30, 999, 999, 张九, , 浙江, 36524@qq.com, uploadfile/1490332279l2ej.jpg, 2017-03-24 13:11:22, , NULL);
INSERT INTO `yonghuzhuce` VALUES (31, 666, 666, 张六, , 浙江, 36524@qq.com, uploadfile/14907876690u7l.jpg, 2017-03-29 19:41:11, , NULL);

-- ----------------------------
-- 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-02-19 07:46:56, uploadfile/baidu.gif);
INSERT INTO `youqinglianjie` VALUES (17, 谷歌, http://www.google.cn, 2016-02-19 07:46:56, uploadfile/google.png);
INSERT INTO `youqinglianjie` VALUES (18, 新浪, http://www.sina.com, 2016-02-19 07:46:56, uploadfile/sina.gif);
INSERT INTO `youqinglianjie` VALUES (19, QQ, http://www.qq.com, 2016-02-19 07:46:56, uploadfile/qq.jpg);
INSERT INTO `youqinglianjie` VALUES (20, 网易, http://www.163.com, 2016-02-19 07:46:56, uploadfile/163.png);

 

源码下载

PHP基于MVC模式下的化妆品销售网站,源码分享

标签:网络   create   prim   codec   name   into   val   存在   gb2312   

原文地址:https://www.cnblogs.com/erhabiancheng/p/11562854.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!