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 0000000000000000000000000000000000000000..35410cacdc5e87f985c93a96520f5e11a5c822e4 --- /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 0000000000000000000000000000000000000000..c956989b29ad0767edc6cf3a202545927c3d1e76 --- /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 0000000000000000000000000000000000000000..15a15b218a29e09c9190992732698d646e4d659a --- /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 0000000000000000000000000000000000000000..28a804d8932aba40f168fd757a74cb718a955a1a --- /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 0000000000000000000000000000000000000000..35be35d6ced3bd3e982d6cd3aa3ca1f1f2495cef --- /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 0000000000000000000000000000000000000000..727425915fffc97a831c3b2e15c826cca721bb80 --- /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 0000000000000000000000000000000000000000..d459a722a2acde4463f71b8da86e39f4ac5aa248 --- /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 0000000000000000000000000000000000000000..4c97aa2f5c7785e0d6ed67d2de2f1b0912a4edbd --- /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 0000000000000000000000000000000000000000..236979222de3737625c4f924824c8e4c32c8ab8e --- /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 0000000000000000000000000000000000000000..c96d2b6ea9f9bdf4ee4d13561cac2a47691fd193 --- /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 0000000000000000000000000000000000000000..ad5d98b567ff7f71b3a72b75891a3109aa3bc135 --- /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 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 0000000000000000000000000000000000000000..15a15b218a29e09c9190992732698d646e4d659a --- /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 0000000000000000000000000000000000000000..28a804d8932aba40f168fd757a74cb718a955a1a --- /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 0000000000000000000000000000000000000000..504858d59b4fb6e4a456a6a90e0713c9d4e065ed --- /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 0000000000000000000000000000000000000000..89b75615d1f5056ae496db77100f7b4b257117a9 --- /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 0000000000000000000000000000000000000000..ee2c1cabafaf4b082dd6f1ff65a0bd99168bc942 --- /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 ""; +}