From 5aa30115b5f1db3cc07b25dfbbab807b0d2ccc67 Mon Sep 17 00:00:00 2001 From: nakulaos <2821195622@qq.com> Date: Sat, 9 Dec 2023 15:04:58 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E4=BD=8D=E7=BD=AE=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 29 ++++++++++++++++++++++++++ README/image14.png | Bin 0 -> 14929 bytes admin/position_list.php | 1 + admin/position_new.php | 45 ++++++++++++++++++++++++++++++++++++++++ admin/position_save.php | 26 +++++++++++++++++++++++ 5 files changed, 101 insertions(+) create mode 100644 README/image14.png create mode 100644 admin/position_list.php create mode 100644 admin/position_new.php create mode 100644 admin/position_save.php diff --git a/README.md b/README.md index c3df979..2c11f3c 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,9 @@ **connect.php** +如果要使用自己电脑本地数据库,可以将以下字段改成本地mysql的用户名,密码,数据库 +![](README/image14.png) + ### 4、主界面 **head.php** **index.php** **foot.php** @@ -55,10 +58,36 @@ user_edit-编辑用户 user_save-数据库写入用户数据 user_update-数据 ![输入图片说明](README/image12.png) +补充:如果要在本地数据库创建用户表,可以使用以下sql语句 +```sql +create table user +( + id int auto_increment, + username char(20) not null, + real_name char(20) null, + password char(20) not null, + constraint user_pk + primary key (id) +); + +``` + #### ②assort表:存储图书分类数据 ![输入图片说明](README/image13.png) + +#### location表:存储图书位置管理数据 + +```sql +create table position +( + id int auto_increment, + position char(128) not null, + constraint position_pk + primary key (id) +); +``` # 二、技术选型与结构设计 HTML、CSS、PHP、MySQL。 diff --git a/README/image14.png b/README/image14.png new file mode 100644 index 0000000000000000000000000000000000000000..22f7c1a29cc76670eef4ad728be4234a62e50804 GIT binary patch literal 14929 zcmcJWbyQnjx9;o3rD)LxC|;yki>0_*@#0XlK#F^4aVhTZ6c6rF+=@E^Qrw|fg6D?5 z-+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-fo^O$r~O3>mLsqN_Ma5e@TfPBra=(*t*Ip% zZm7h#9@AP~=PxOg{4Sj}p|4?nh3y;C=rS&u)3DsV_O_tthv0klLsh9{& z1sxBMZJ8>!SBwx#F-!I0Z}{u#XVP}UcD!^dfj?J1ti^F>HJ4EZSGHP-#o%eq`ek41 z`uXM2upw(_^|_AiAoO5J#XDQ!#r15SLIAbBQHS&g@^Fvr&h&Q literal 0 HcmV?d00001 diff --git a/admin/position_list.php b/admin/position_list.php new file mode 100644 index 0000000..b3d9bbc --- /dev/null +++ b/admin/position_list.php @@ -0,0 +1 @@ + + + +
+ +
+

位置管理

+
+ +
+ +
+ +
+
+
+
+ + +
+ +
+
+
+
+
+ +
+
+
+
+
+
+ + +
+ +0){ + $_SESSION['positionInfo']=$positionInfo; + alert('该位置信息已经存在','position_new.php'); + exit(); +} + +$sql="INSERT INTO position (positionInfo VALUES ('$positionInfo')"; + +// 判断是否添加成功 +$rs=mysqli_query($conn,$sql); +if($rs){ + $_SESSION['positionInfo']=$positionInfo; + alert('添加成功','position_list.php'); +}else{ + alert('添加失败','position_new.php'); +} \ No newline at end of file -- Gitee From 7ce1a19ce7499ca27e98b8d21789ff4fd1d5b5f2 Mon Sep 17 00:00:00 2001 From: nakulaos <2821195622@qq.com> Date: Sat, 9 Dec 2023 15:32:53 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E4=BD=8D=E7=BD=AE=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20bug=20=E8=A7=A3=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/position_new.php | 28 ++++++++++++++++------------ admin/position_save.php | 6 +++--- 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/admin/position_new.php b/admin/position_new.php index 4e67178..1e1ffdd 100644 --- a/admin/position_new.php +++ b/admin/position_new.php @@ -20,19 +20,23 @@ include('head.php');
- - -
- -
-
-
-
-
- +
+
+ +
+ +
+
-
+
+
+
+ +
+
+ +
diff --git a/admin/position_save.php b/admin/position_save.php index de9b341..6897569 100644 --- a/admin/position_save.php +++ b/admin/position_save.php @@ -1,12 +1,12 @@ 0){ $_SESSION['positionInfo']=$positionInfo; @@ -14,7 +14,7 @@ if(mysqli_num_rows($rs)>0){ exit(); } -$sql="INSERT INTO position (positionInfo VALUES ('$positionInfo')"; +$sql="INSERT INTO position (positionInfo) VALUE ('$positionInfo')"; // 判断是否添加成功 $rs=mysqli_query($conn,$sql); -- Gitee From 97477cb176bc148df30df046b7145b9a01d0b922 Mon Sep 17 00:00:00 2001 From: nakulaos <2821195622@qq.com> Date: Sat, 9 Dec 2023 15:39:33 +0800 Subject: [PATCH 3/4] =?UTF-8?q?README=20=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2c11f3c..45d5ee5 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ create table user create table position ( id int auto_increment, - position char(128) not null, + positionInfo char(128) not null, constraint position_pk primary key (id) ); -- Gitee From e295a8f5d311fcdf8ef65dc02643e82575cca307 Mon Sep 17 00:00:00 2001 From: nakulaos <2821195622@qq.com> Date: Wed, 13 Dec 2023 20:35:28 +0800 Subject: [PATCH 4/4] =?UTF-8?q?position=20=E5=A2=9E=E5=88=A0=E6=94=B9?= =?UTF-8?q?=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/position_delete.php | 10 ++++ admin/position_edit.php | 47 +++++++++++++++++ admin/position_list.php | 84 +++++++++++++++++++++++++++++ admin/position_list_search.php | 96 ++++++++++++++++++++++++++++++++++ admin/position_update.php | 17 ++++++ 5 files changed, 254 insertions(+) create mode 100644 admin/position_delete.php create mode 100644 admin/position_edit.php create mode 100644 admin/position_list_search.php create mode 100644 admin/position_update.php diff --git a/admin/position_delete.php b/admin/position_delete.php new file mode 100644 index 0000000..f8dbde3 --- /dev/null +++ b/admin/position_delete.php @@ -0,0 +1,10 @@ + +
+ +
+

位置管理

+
+
    +
  • 修改位置信息
  • +
+
+ +
+
+
+
+
+ +
+ +
+ +
+
+
+
+ +
+
+
+
+
+
+
+
+
+ + +
+
+

位置管理

+
+ +
  • 位置列表
  • +
  • 新增位置
  • +
    +
    +
    +
    +
    +
    +
    + +
    + +
    +
    + + + + + + + + + + + '; + echo ''; + echo ''; + echo ''; + echo ''; + } + } + ?> + +
    ID位置信息操作
    '.$row['id'].''.$row['positionInfo'].'
    + +
    +
    +
    +
    diff --git a/admin/position_list_search.php b/admin/position_list_search.php new file mode 100644 index 0000000..4e5b679 --- /dev/null +++ b/admin/position_list_search.php @@ -0,0 +1,96 @@ + + +
    + +
    +

    用户管理

    +
    +
      +
    • 搜索结果
    • +
    +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    + + + + + + + + + + + '; + echo ''; + echo ''; + echo ''; + echo ''; + } + } + ?> + +
    ID位置信息操作
    '.$row['id'].''.$row['positionInfo'].'
    + +
    +
    +
    + +
    +