From aaa0e21ed0e20abae8e94dff932aeafcd7d24c7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E9=87=8F?= <2593879575@qq.com> Date: Wed, 22 Jun 2022 01:06:59 +0800 Subject: [PATCH 1/2] 1 --- .../.idea/.gitignore" | 8 ++ .../.idea/20220621.iml" | 8 ++ .../.idea/encodings.xml" | 4 + .../.idea/misc.xml" | 6 ++ .../.idea/modules.xml" | 8 ++ .../Login.php" | 41 ++++++++++ .../Login2.php" | 17 ++++ .../conn.php" | 6 ++ .../index.php" | 79 ++++++++++++++++++ .../mysql.txt" | 34 ++++++++ .../order.php" | 82 +++++++++++++++++++ .../order2.php" | 28 +++++++ 12 files changed, 321 insertions(+) create mode 100644 "\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/.idea/.gitignore" create mode 100644 "\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/.idea/20220621.iml" create mode 100644 "\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/.idea/encodings.xml" create mode 100644 "\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/.idea/misc.xml" create mode 100644 "\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/.idea/modules.xml" create mode 100644 "\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/Login.php" create mode 100644 "\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/Login2.php" create mode 100644 "\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/conn.php" create mode 100644 "\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/index.php" create mode 100644 "\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/mysql.txt" create mode 100644 "\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/order.php" create mode 100644 "\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/order2.php" diff --git "a/\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/.idea/.gitignore" "b/\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/.idea/.gitignore" new file mode 100644 index 0000000..35410ca --- /dev/null +++ "b/\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/.idea/.gitignore" @@ -0,0 +1,8 @@ +# 默认忽略的文件 +/shelf/ +/workspace.xml +# 基于编辑器的 HTTP 客户端请求 +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git "a/\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/.idea/20220621.iml" "b/\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/.idea/20220621.iml" new file mode 100644 index 0000000..c956989 --- /dev/null +++ "b/\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/.idea/20220621.iml" @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git "a/\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/.idea/encodings.xml" "b/\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/.idea/encodings.xml" new file mode 100644 index 0000000..15a15b2 --- /dev/null +++ "b/\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/.idea/encodings.xml" @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git "a/\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/.idea/misc.xml" "b/\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/.idea/misc.xml" new file mode 100644 index 0000000..28a804d --- /dev/null +++ "b/\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/.idea/misc.xml" @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git "a/\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/.idea/modules.xml" "b/\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/.idea/modules.xml" new file mode 100644 index 0000000..35be35d --- /dev/null +++ "b/\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/.idea/modules.xml" @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git "a/\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/Login.php" "b/\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/Login.php" new file mode 100644 index 0000000..7274259 --- /dev/null +++ "b/\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/Login.php" @@ -0,0 +1,41 @@ + + + + + + + + 用户登录 + + +
+

用户登录

+
+
+ + + + + + + + + + + + + + + + +
用户名
用户名不能为空
密码
密码不能为空
+
+
+
+ + diff --git "a/\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/Login2.php" "b/\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/Login2.php" new file mode 100644 index 0000000..d459a72 --- /dev/null +++ "b/\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/Login2.php" @@ -0,0 +1,17 @@ +alert('用户名或密码错误!');window.location.href='Login.php';"; + }else{ + $_SESSION['username']=$username; + echo ""; + } + diff --git "a/\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/conn.php" "b/\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/conn.php" new file mode 100644 index 0000000..4c97aa2 --- /dev/null +++ "b/\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/conn.php" @@ -0,0 +1,6 @@ + + + + + + + + 订单列表 + + +
+

订单列表

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
编号药名下单人下单时间收货人收件人电话收货地址配送方式状态配送时间备注
+
+
+ + +alert('请先登录!');window.location.href='Login.php';"; +} + + + diff --git "a/\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/mysql.txt" "b/\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/mysql.txt" new file mode 100644 index 0000000..2369792 --- /dev/null +++ "b/\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/mysql.txt" @@ -0,0 +1,34 @@ +create database Ordermedicinedb charset utf8; +use Ordermedicinedb; +create table UserInfo( + UserId int PRIMARY KEY auto_increment, + UserName VARCHAR(300) not NULL, + Password VARCHAR(20) not null +); +create table OrderInfo( + Id int PRIMARY KEY auto_increment, + MedicineName VARCHAR(300) not null, + UserId int not null, + CONSTRAINT fk_UserId + FOREIGN KEY(UserId) REFERENCES userinfo(UserId), + AddTime datetime not null, + RealName VARCHAR(20) not null, + Mobile varchar(11) not null, + Address VARCHAR(300) not null, + State int not null, + CHECK (State=1 or State=2), + SendTime datetime DEFAULT null, + SendType bit not null, + CHECK (SendType=0 or SendType=1), + Remark varchar(500) +); +INSERT INTO UserInfo VALUES +(null,'ά','123456'), +(null,'','123456'), +(null,'','123456') +; +INSERT INTO OrderInfo VALUES +(null,'999ð',1,NOW(),'','123333','׼',1,null,0,'Ӽ'), +(null,'޽ˮ',2,NOW(),'ά','124444','ά',1,null,0,'Ӽ'), +(null,'666ð',3,NOW(),'','125555','',1,null,0,'Ӽ') +; \ No newline at end of file diff --git "a/\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/order.php" "b/\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/order.php" new file mode 100644 index 0000000..c96d2b6 --- /dev/null +++ "b/\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/order.php" @@ -0,0 +1,82 @@ + + + + + + + + 在线订药 + + +
+

在线订药

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
药名
收货人姓名
收货人电话
收货地址
配送方式商家配送自提
备注
+
+
+ + +alert('请先登录!');window.location.href='Login.php';"; +} \ No newline at end of file diff --git "a/\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/order2.php" "b/\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/order2.php" new file mode 100644 index 0000000..ad5d98b --- /dev/null +++ "b/\345\220\264\351\207\217/20220621--\345\244\247\344\272\214php\350\200\203\351\242\230/order2.php" @@ -0,0 +1,28 @@ +alert('订购成功!');window.location.href='index.php';"; +}else{ + echo ""; +} \ No newline at end of file -- Gitee From ff50b03c9a03d8e9779025f77f5e852cdf30ef67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E9=87=8F?= <2593879575@qq.com> Date: Wed, 22 Jun 2022 10:56:56 +0800 Subject: [PATCH 2/2] 1 --- .../.idea/encodings.xml" | 4 + .../.idea/misc.xml" | 6 + .../.idea/modules.xml" | 8 + .../.idea/workspace.xml" | 193 ++++++++++++++++++ ...\215\267_Web_\345\244\247\344\272\214.iml" | 8 + .../conn.php" | 6 + .../delete.php" | 13 ++ .../index.php" | 83 ++++++++ .../index2.php" | 19 ++ 9 files changed, 340 insertions(+) create mode 100644 "\345\220\264\351\207\217/20220622--\345\244\247\344\272\214web\350\200\203\351\242\230/.idea/encodings.xml" create mode 100644 "\345\220\264\351\207\217/20220622--\345\244\247\344\272\214web\350\200\203\351\242\230/.idea/misc.xml" create mode 100644 "\345\220\264\351\207\217/20220622--\345\244\247\344\272\214web\350\200\203\351\242\230/.idea/modules.xml" create mode 100644 "\345\220\264\351\207\217/20220622--\345\244\247\344\272\214web\350\200\203\351\242\230/.idea/workspace.xml" create mode 100644 "\345\220\264\351\207\217/20220622--\345\244\247\344\272\214web\350\200\203\351\242\230/.idea/\350\257\225\345\215\267_Web_\345\244\247\344\272\214.iml" create mode 100644 "\345\220\264\351\207\217/20220622--\345\244\247\344\272\214web\350\200\203\351\242\230/conn.php" create mode 100644 "\345\220\264\351\207\217/20220622--\345\244\247\344\272\214web\350\200\203\351\242\230/delete.php" create mode 100644 "\345\220\264\351\207\217/20220622--\345\244\247\344\272\214web\350\200\203\351\242\230/index.php" create mode 100644 "\345\220\264\351\207\217/20220622--\345\244\247\344\272\214web\350\200\203\351\242\230/index2.php" diff --git "a/\345\220\264\351\207\217/20220622--\345\244\247\344\272\214web\350\200\203\351\242\230/.idea/encodings.xml" "b/\345\220\264\351\207\217/20220622--\345\244\247\344\272\214web\350\200\203\351\242\230/.idea/encodings.xml" new file mode 100644 index 0000000..15a15b2 --- /dev/null +++ "b/\345\220\264\351\207\217/20220622--\345\244\247\344\272\214web\350\200\203\351\242\230/.idea/encodings.xml" @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git "a/\345\220\264\351\207\217/20220622--\345\244\247\344\272\214web\350\200\203\351\242\230/.idea/misc.xml" "b/\345\220\264\351\207\217/20220622--\345\244\247\344\272\214web\350\200\203\351\242\230/.idea/misc.xml" new file mode 100644 index 0000000..28a804d --- /dev/null +++ "b/\345\220\264\351\207\217/20220622--\345\244\247\344\272\214web\350\200\203\351\242\230/.idea/misc.xml" @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git "a/\345\220\264\351\207\217/20220622--\345\244\247\344\272\214web\350\200\203\351\242\230/.idea/modules.xml" "b/\345\220\264\351\207\217/20220622--\345\244\247\344\272\214web\350\200\203\351\242\230/.idea/modules.xml" new file mode 100644 index 0000000..504858d --- /dev/null +++ "b/\345\220\264\351\207\217/20220622--\345\244\247\344\272\214web\350\200\203\351\242\230/.idea/modules.xml" @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git "a/\345\220\264\351\207\217/20220622--\345\244\247\344\272\214web\350\200\203\351\242\230/.idea/workspace.xml" "b/\345\220\264\351\207\217/20220622--\345\244\247\344\272\214web\350\200\203\351\242\230/.idea/workspace.xml" new file mode 100644 index 0000000..89b7561 --- /dev/null +++ "b/\345\220\264\351\207\217/20220622--\345\244\247\344\272\214web\350\200\203\351\242\230/.idea/workspace.xml" @@ -0,0 +1,193 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 邮箱 + 性别 + 男 + 女 + 未知 + + + + 省份 + + + + + + 爱好 + 篮球 + 读书 + 插画 + 编程 + 弹琴 + + + + + + + + + + + + + + + + + + + + + + + + + +
id用户名邮箱性别省份爱好操作
删除
+ + + diff --git "a/\345\220\264\351\207\217/20220622--\345\244\247\344\272\214web\350\200\203\351\242\230/index2.php" "b/\345\220\264\351\207\217/20220622--\345\244\247\344\272\214web\350\200\203\351\242\230/index2.php" new file mode 100644 index 0000000..ee2c1ca --- /dev/null +++ "b/\345\220\264\351\207\217/20220622--\345\244\247\344\272\214web\350\200\203\351\242\230/index2.php" @@ -0,0 +1,19 @@ +alert('新增成功!');location.href='index.php';"; +}else{ + echo ""; +} -- Gitee