diff --git a/include/common.php b/include/common.php new file mode 100644 index 0000000..87d35b0 --- /dev/null +++ b/include/common.php @@ -0,0 +1,15 @@ + + diff --git a/include/footer.php b/include/footer.php new file mode 100644 index 0000000..b057b49 --- /dev/null +++ b/include/footer.php @@ -0,0 +1,90 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/include/head.php b/include/head.php new file mode 100644 index 0000000..a5aacf4 --- /dev/null +++ b/include/head.php @@ -0,0 +1,62 @@ + + + + + + + 上网导航 - LyLme Start Page + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/include/list.php b/include/list.php new file mode 100644 index 0000000..6112ce7 --- /dev/null +++ b/include/list.php @@ -0,0 +1,46 @@ + +
  • ' + .$group["group_icon"]. + ' + '.$group["group_name"]. + ' +
  • '; + while($link = mysqli_fetch_array($links)) { + // 循环每个链接 + $group_links = mysqli_query($con,"SELECT * FROM `lylme_links` WHERE `group_id` = ".$group["group_id"]); + // 返回指定分组下的所有字段 + $link_num=mysqli_num_rows($group_links); + // 释放结果集 + //echo gettype($fieldcount); + if($link_num > $i ) { + $i = $i+1; + echo "\n\n".'
  • + + '.$link["icon"].' + + '.$link["name"].' + + +
  • '; + } + if($link_num == $i) { + echo ''."\n\n" ; + #输出分类结束标签 + $i = 0; + break; + //跳出当前循环 + } + //获取分类下的网站数量 + } +} +mysqli_close($con); +?> \ No newline at end of file