写了一天,改了很多页面,已经累到暴毙。bug真的好多..
一句话形容,苦中作乐。
<?php
include_once './inc/config.inc.php';
include_once './inc/mysql.inc.php';
include_once './inc/tool.inc.php';
include_once './inc/page.inc.php';
$cssArray[] = 'style/public.css';
$cssArray[] = 'style/list.css';
$webTitle = '子板块列表页';
$link = sql_connect();
$member_id = is_login($link);
// 判断$_GET数据合法性
if(!isset($_GET['id']) || empty($_GET['id']) || !is_numeric($_GET['id'])){
skip('index.php','error','id参数不合法!');
}
$query = "select id,module_name,father_module_id,info,member_id from sfk_son_module where id ={$_GET['id']}";
$result_son = sql_execute($link,$query);
if(mysqli_num_rows($result_son) != 1){
skip('index.php','error','该子版块不存在');
}
$data_son = mysqli_fetch_assoc($result_son);
$query = "select id,module_name from sfk_father_module where id = {$data_son['father_module_id']}";
$result_father = sql_execute($link,$query);
$data_father = mysqli_fetch_assoc($result_father);
$query = "select count(*) from sfk_content where module_id = {$_GET['id']}";
$all_content = sql_num($link,$query);
$query = "select count(*) from sfk_content where module_id = {$_GET['id']} and time > curdate()";
$today_content = sql_num($link,$query);
?>
<!-- 加载头部 -->
<?php include_once './inc/header.inc.php';?>
<div style="margin-top:55px;"></div>
<div id="position" class="auto">
<