From bd3e17670b95eb8ec0590135c335a24734e32bf3 Mon Sep 17 00:00:00 2001 From: LyLme Date: Sat, 5 Mar 2022 02:38:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E6=89=80=E5=9C=A8?= =?UTF-8?q?=E5=88=86=E7=BB=84=E5=90=8D=E7=A7=B0=E6=98=BE=E7=A4=BA=E5=92=8C?= =?UTF-8?q?=E5=BA=8F=E5=8F=B7=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/link.php | 53 ++++++++++++++++---------------------------------- 1 file changed, 17 insertions(+), 36 deletions(-) diff --git a/admin/link.php b/admin/link.php index d8abe2d..62c2346 100644 --- a/admin/link.php +++ b/admin/link.php @@ -1,5 +1,5 @@ @@ -44,9 +44,9 @@ while($grouplist = mysqli_fetch_assoc($grouplists)) { } echo '
- +
-
<<返回链接列表 +
<<返回 '; } elseif($set=='edit') @@ -62,14 +62,14 @@ echo '

修改链接信息

-
+

方式1:填写图标的URL地址,如/img/logo.pnghttp://www.xxx.com/img/logo.png
-方式2:粘贴图标的SVG代码,查看教程
方式3:留空使用默认图标
方式3:留空使用默认图标
+方式2:粘贴图标的SVG代码,查看教程
方式3:留空使用默认图标
@@ -82,9 +82,9 @@ while($grouplist = mysqli_fetch_assoc($grouplists)) { echo '
- +
-
<<返回链接列表 +
<<返回 '; } elseif($set=='add_submit') @@ -102,7 +102,7 @@ $sql="INSERT INTO `lylme_links` (`id`, `name`, `group_id`, `url`, `icon`, `PS`,` if(mysqli_query($con,$sql)){ echo ''; }else - echo ''; + echo ''; } } elseif($set=='edit_submit') @@ -138,38 +138,19 @@ else } else { - -$sql=" 1"; -$cons='系统共有 '.$linksrows.' 个链接
新增链接'; - -echo '
'; -echo $cons; -echo '
'; - -?> +echo '
系统共有 '.$linksrows.' 个链接
新增链接
- - - + '; +$i = 0; +$rs=mysqli_query($con,"SELECT * FROM `lylme_links` ORDER BY `lylme_links`.`id` ASC"); while($res = mysqli_fetch_array($rs)) { -echo ''; +$i = $i+1; +echo ''; } ?>
ID名称链接分组ID操作
序号名称链接分组操作
'.$res['id'].''.$res['name'].''.$res['url'].''.$res['group_id'].'编辑 删除
'.$i.''.$res['name'].''.$res['url'].''; +echo mysqli_fetch_assoc(mysqli_query($con,"SELECT * FROM `lylme_groups` WHERE `group_id` = ".$res['group_id']))["group_name"]; +echo '编辑 删除