db = cs4_open(); $start_date = date("YmdHis"); //- 表示対象日記リスト情報取得 if("1" == $p['page']){ $start_pos = ""; }else{ $start_pos = $show_line * ($p['page'] - 1); } //print $start_pos."
"; $jouzu_detail = get_JouzuDetail($start_date,$start_pos); //- 検索結果ゼロ処理 $tmp_list_ct = get_JouzuDetail($start_date,"");//- 取得件数 $list_ct = count($tmp_list_ct); //print $list_ct; if('0' == $list_ct){ print "Not Found your request Jouzu !!"; exit; } // テンプレート読み込み $template =& loadTemplate( $p ); for($i=0;$isetCurrentBlock('__List__'); $template->setVariable('uniq_id',$jouzu_detail[$i]['uniq_id']); $template->setVariable('title',$jouzu_detail[$i]['title']); $template->parseCurrentBlock(); } //- ページ送り処理 (Prev) if('1' < $p['page']){ $template->setCurrentBlock('__PagePrev__'); $template->setVariable('prev_page',$p['page'] - 1); $template->parseCurrentBlock(); } //- ページ送り処理 (Next) if(($p['page'] * $show_line) < $list_ct){ $template->setCurrentBlock('__PageNext__'); $template->setVariable('next_page', $p['page'] + 1); $template->parseCurrentBlock(); } $template->setVariable('site_top',SITE_NAME); $template->show(); cs4_close($this->db); } jouzu_list( $p ); ?>