num_rows($site->getTags()); ?>
新增导航菜单链接




(*必填) 数字越小越靠前

<<返回
'; } elseif ($set == 'edit') { $id = $_GET['id']; $row2 = $DB->query("select * from lylme_tags where tag_id='$id' limit 1"); $row = $DB->fetch($row2); echo '

修改导航菜单链接





(*必填) 数字越小越靠前

<<返回
'; } elseif ($set == 'add_submit') { $name = $_POST['name']; $link = $_POST['link']; $sort = $_POST['sort'] ?: 10; if ($_POST['target'] == true) { $target = 1; } else { $target = 0; } if ($name == null or $link == null) { echo ''; } else { $sql = "INSERT INTO `lylme_tags` (`tag_id`, `tag_name`, `tag_link`, `tag_target`,`sort`) VALUES (NULL, '" . $name . "', '" . $link . "', '" . $target . "','" . $sort . "');"; if ($DB->query($sql)) { echo ''; } else { echo ''; } } } elseif ($set == 'edit_submit') { $id = $_GET['id']; $sort = $_POST['sort'] ?: 10; $rows2 = $DB->query("select * from lylme_tags where tag_id='$id' limit 1"); $rows = $DB->fetch($rows2); if (!$rows) { echo ''; } $name = $_POST['name']; $link = $_POST['link']; if ($_POST['target'] == true) { $target = 1; } else { $target = 0; } if ($name == null or $link == null) { echo ''; } else { $sql = "UPDATE `lylme_tags` SET `tag_name` = '" . $name . "', `tag_link` = '" . $link . "', `tag_target` = '" . $target . "', `sort` = '" . $sort . "' WHERE `lylme_tags`.`tag_id` = " . $id . ";"; if ($DB->query($sql)) { echo ''; } else { echo ''; } } } elseif ($set == 'delete') { $id = $_GET['id']; $sql = "DELETE FROM lylme_tags WHERE tag_id='$id'"; if ($DB->query($sql)) { echo ''; } else { echo ''; } } else { echo '
系统共有 ' . $tagsrows . ' 个导航菜单
新增导航菜单
'; ?>
getTags(); while ($res = $DB->fetch($rs)) { echo ''; } ?>
排序权重名称链接操作
' . $res['sort'] . '' . $res['tag_name'] . '' . $res['tag_link'] . '编辑 删除