CURRENT_TIMESTAMP) ORDER BY date DESC"; $db->query( $sql ); $tokyobed_fair = array(); while( $row = $db->fetch() ){ if( $row['type'] == 0 || $row['type'] == 2 ){ $row['url'] = 'news/detail_' . $row['id'] . '.html'; }elseif( $row['type'] == 3 ){ $row['url'] = ''; } if( $row['check_nothing']){ if ( strpos( $row['title'],'京ベッド') == true ){ $tokyobed_fair[] = $row; } } } $smarty->assign('tokyobed_fair', $tokyobed_fair ); if( $device == 'sp' ){ $smarty->display('sp_html/tokyobed/printout.htm'); }else{ $smarty->assign('headermenu', file_get_contents('../../common/headermenu.htm') ); require_once( '../rightmenu.php' ); $smarty->assign('rightmenu', $rightmenu ); require_once( '../footermenu.php' ); $smarty->assign('footermenu', $footermenu ); $smarty->display('html/tokyobed/printout.htm'); } ?>