NEWS
//表示用テンプレートの読み込み $dbr->loadTemplateFromFile("../include/template_kiji.txt", false ); //NULLの場合の文字列を定義 $dbr->null_str = " "; print $dbr->error_message; if( !$debug_mode_p ) { $dbr->GetDirectSQL( "select a.kiji_naiyou, a.title, b.order_no from kiji_data a, page_data b where a.kiji_id=b.kiji_id and b.page_id=1 and (b.flag IS NULL or b.flag!=1) and (b.kind IS NULL or b.kind=0) order by b.order_no, b.kiji_id;" ); } else { $dbr->GetDirectSQL( "select a.kiji_naiyou, a.title, b.order_no from kiji_data a, page_data b where a.kiji_id=b.kiji_id and b.page_id=1 and (b.kind IS NULL or b.kind=0) order by b.order_no, b.kiji_id;" ); } print $dbr->error_message; //テンプレートを使って表示 print $dbr->DispRowWithTemplate( ); //関連するブログ一覧の出力 print getBlogTitleList( $dbr, 1 ); //print phpinfo(); ?>
//表示用テンプレートの読み込み
$dbr->loadTemplateFromFile("../include/template_kiji_rnews_nobar.txt", false );
//NULLの場合の文字列を定義
$dbr->null_str = " ";
print $dbr->error_message;
if( !$debug_mode_p ) {
$dbr->GetDirectSQL( "select a.kiji_naiyou, a.title, b.order_no from kiji_data a, page_data b where a.kiji_id=b.kiji_id and b.page_id=1 and (b.flag IS NULL or b.flag!=1) and b.kind=2 order by b.order_no, b.kiji_id;" );
} else {
$dbr->GetDirectSQL( "select a.kiji_naiyou, a.title, b.order_no from kiji_data a, page_data b where a.kiji_id=b.kiji_id and b.page_id=1 and b.kind=2 order by b.order_no, b.kiji_id;" );
}
print $dbr->error_message;
//テンプレートを使って表示
print $dbr->DispRowWithTemplate( );
?>