getDb(); // ページの表示 Show($objMySmarty, $objDb); $objMySmarty->closeDb(); } /*--------------------------------------------------------------------------- * 関数名称 : Show *         * 関数概要 : 表示処理 *         * 引  数 : - *         * 戻 り 値 : - *         * 作成者名 :  *         * 修正履歴 :  *---------------------------------------------------------------------------*/ function Show($objMySmarty, $objDb, $err=false){ $nInfoId = array(); $objShowDate = array(); $strComment = array(); $strTitle = array(); $strImgName = array(); // バナーリストを表示する $objInfo = new Info('d_info1'); $objInfoList = $objInfo->getInfoList($objDb, 10, 0, 1); foreach($objInfoList as $objInfoOne){ $nInfoId[] = $objInfoOne->getInfoId(); $objShowDate[] = $objInfoOne->getShowDate(); $strComment[] = changeUrltoLink($objInfoOne->getComment()); $strTitle[] = $objInfoOne->getTitle(); $strImgName[] = $objInfoOne->getImgName1(); } $objMySmarty->assign("InfoId", $nInfoId); $objMySmarty->assign("ShowDate", $objShowDate); $objMySmarty->assign("Comment", $strComment); $objMySmarty->assign("Title", $strTitle); $objMySmarty->assign("ImgName", $strImgName); $objMySmarty->assign("ReflashCode", date('YmdHis')); $objMySmarty->assign("ImgPath", BASE_IMG_DIR. INFO01_IMG_DIR); // メッセージ $objMessage = new Message("d_message1"); $objMessage->getMessage($objDb); $strMessage = OrignalTagToHtmlTag($objMessage->getComment()); $objMySmarty->assign("Message", $strMessage); $objMySmarty->display("index.html"); } ?>