_size="'.$size.'";_bc="'.$bc.'";_bg="'.$bg.'";_fg="'.$fg.'";'; $tag=$tag_sample.$ad; // 初期状態 } else { $size = "5"; $bc = "444444"; $bg = "ffffff"; $fg = "444444"; $tag_sample = ""; $tag = ""; } // Yahoo! APIで関連ワードを検索 /* $yahoo_webunitsearch = new YahooAPI(); if(!$kanren_keyword = $yahoo_webunitsearch->webunitSearch("ブログパーツ", "", 20)){ $kanren_keyword; } */ // 画面表示 $template = 'index.html'; $smarty = new Smarty(); $smarty->assign('size',$size); $smarty->assign('bc',$bc); $smarty->assign('bg',$bg); $smarty->assign('fg',$fg); $smarty->assign('tag',$tag); $smarty->assign('tag_sample',$tag_sample); //$smarty->assign('kanren_keyword',$kanren_keyword); $smarty->display($template); ?>