0) { // ページリンク $page_link = ""; if ($paramater['page_limit'] != "") { $link_cnt = floor($cnt / $paramater['page_limit']); if (($cnt > $paramater['page_limit']) && (($cnt % $paramater['page_limit']) > 0)) { $link_cnt++; } for ($i = 0; $i < $link_cnt; $i++) { if (($i * $paramater['page_limit']) == $paramater['page_sta']) { $page_link .= "".($i + 1)."|"; } else { $page_link .= "".($i + 1)."|"; } } } } $paramater['page_end'] = $paramater['page_sta'] + $paramater['page_limit']; if ($paramater['page_end'] > $cnt) { $paramater['page_end'] = $cnt; } // --------------- // 画面表示 // --------------- $page_category = CATG_GetName($paramater['category_l']); // title, discription, keyword, h1 $TDK = array (); $tdk_json_file = INCLUDE_PATH."/tdk/default.txt"; if ($paramater['category_l'] != "") { $tdk_json_file = INCLUDE_PATH."/tdk/".$paramater['category_l'].".txt"; } $tdk_json = read_file($tdk_json_file); $TDK = json_decode($tdk_json, true); //foreach ($TDK as $key => $value) { print "\n"; } header('Content-Type: text/html; charset=utf-8'); TPCS_GetList($TOPICS, $paramater); include(TOPICS_PATH.'/template/index.html'); database_close(); exit; ?>