getDb(); // ページの表示 Show($objMySmarty, $objDb); $objMySmarty->closeDb(); } /*--------------------------------------------------------------------------- * 関数名称 : Show *         * 関数概要 : 表示処理 *         * 引  数 : - *         * 戻 り 値 : - *         * 作成者名 :  *         * 修正履歴 :  *---------------------------------------------------------------------------*/ function Show($objMySmarty, $objDb, $err=false){ // 表示数を取得 $objMySystem = new MySystem(); $objMySystem->getSystemInfo($objDb); // お知らせ ShowInfo($objMySmarty, $objDb); $objMySmarty->assign("ReflashCode", date('YmdHis')); $objMySmarty->display("index.html"); } function ShowInfo($objMySmarty, $objDb){ $objInfo = new Info("d_info1"); // データの器を作成 $objInfoId = array(); $objShowDate = array(); $objTitle = array(); $objComment = array(); $strImgBody1 = array(); $strImgBody2 = array(); $strImgBody3 = array(); $objInfoList = $objInfo->getInfoList($objDb, 5, 0); foreach($objInfoList as $objInfoOne){ $objInfoId[] = $objInfoOne->getInfoId(); $objShowDate[] = $objInfoOne->getShowDate(); $objTitle[] = $objInfoOne->getTitle(); $objComment[] = changeUrltoLink(OrignalTagToHtmlTag($objInfoOne->getComment())); $strImgBody1[] = $objInfoOne->getImgBody1(); $strImgBody2[] = $objInfoOne->getImgBody2(); $strImgBody3[] = $objInfoOne->getImgBody3(); } $objMySmarty->assign("InfoId", $objInfoId); $objMySmarty->assign("InfoShowDate", $objShowDate); $objMySmarty->assign("InfoTitle", $objTitle); $objMySmarty->assign("InfoComment", $objComment); $objMySmarty->assign("InfoImgBody1", $strImgBody1); $objMySmarty->assign("InfoImgBody2", $strImgBody2); $objMySmarty->assign("InfoImgBody3", $strImgBody3); $objMySmarty->assign("InfoImgPath", BASE_IMG_DIR. INFO1_IMG_DIR); } ?>