window.location.href='./login.php';"); $page = isset($_GET['page'])? $_GET['page'] : 1; $groups = $DB->query("SELECT * FROM `lylme_groups` ORDER BY `group_order` ASC"); //获取分组 $gpwd = $DB->fetch($DB->query("SELECT `group_id`, `group_pwd` FROM `lylme_groups` WHERE `group_id` = ".$page))["group_pwd"]; //分组加密状态 $rs = $DB->query("SELECT * FROM `lylme_links` WHERE `group_id` = ".$page." ORDER BY `lylme_links`.`id` ASC"); //获取链接 $grouprows=$DB->num_rows($rs); echo '
系统收录: ' . $linksrows . ' 个链接 / 当前分组: '.$grouprows.'个链接
新增 '; if(empty($gpwd)){ echo ''; } else{ echo ''; } echo '
'; $rs = $DB->query("SELECT * FROM `lylme_links` WHERE `group_id` = ".$page." ORDER BY `lylme_links`.`link_order` ASC"); while ($res = $DB->fetch($rs)) { echo ''; ; } echo '
排序名称链接分组启用操作
' . $res['name'] . ''; if(!empty($res['link_pwd'])||!empty($gpwd)){ echo ''. $res['url'] .'';}else{echo $res['url'];} echo ''. $DB->fetch($DB->query("SELECT * FROM `lylme_groups` WHERE `group_id` = " . $res['group_id'])) ["group_name"]. ' '; if($res['link_status']=="0"){ echo '禁用';}else{echo '启用';} $de_llink = "del_link('".$res['id']."')"; echo' 编辑 
'; ?>