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 '
排序 | 名称 | 链接 | 分组 | 启用 | 操作 | |
---|---|---|---|---|---|---|
' . $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' | 编辑 |