cat_list( 7, 1 ); /* check cat parameter */ if ( isset( $_GET['c'] ) && is_numeric( $_GET['c'] ) ) { $thiscat = $_GET['c']; } else { /* $catdata_p = $sqlsub->cat_list( 7, 1 ); $cat = array_pop(array_keys($catdata_p)); */ $thiscat = 0; } $sql = new Stanoo\Sccms\ftable( "blog" ); $sql->page_limit = 15; $sql->select = " * "; $sql->query_where = "where enable = 'Y' and (blog_start is null or blog_start < '". date("Y-m-d H:i:s")."') and (blog_end is null or blog_end > '". date("Y-m-d H:i:s")."') "; if ( $thiscat == 0 ) { $sql->query_where .= "and blogcat_serno is null"; } else { $sql->query_where .= "and blogcat_serno = '$thiscat'"; } $sql->query_orderby = "ORDER BY orderby, blog_serno desc"; $sql->orderby_method = "-1"; if ( isset( $_GET['page'] ) && is_numeric( $_GET['page'] ) ) { $page = $_GET['page']; } else { $page = 1; } $data_array = $sql->data( $page ); $page = $sql->page; ?> Blog列表 - TWI

Blog

pagination_section() ?>