get('pcode', 0); $prdct_mgr = new ProductManager(); $prdct = $prdct_mgr->get($prdct_code); $fname = $prdct['file_name']; $objDir = PRODUCT_IMG_DIR . getTargetDir(PRODUCT_IMG_DIR, $prdct_code); $objPath = str_replace(EC_DOCUMENT_ROOT, '', $objDir); $img_url = "/img/printing.jpg"; if (!empty($fname) && file_exists($objDir.$fname)) { //$img_url = EC_URL.'/' . $objPath . $fname; $img_url = 'http://shinko-sha.eigyo.co.jp/' . $objPath . $fname; } $prdct['img_url'] = $img_url; $prdct['ec_url'] = EC_URL.'/site/prdct/detail.php?pcode='.$prdct_code; $init->assign('prdct', $prdct); $init->template = $template; $init->drowHtml(SITE_USER); /** * エラー表示 */ function _displayErrorPage($error, $values=null, $tpl='Error_Page') { global $init; $init->assign('errors', $error); if (is_array($values)) { foreach($values as $key=>$val) { $init->assign($key, $val); } } $init->template = $tpl; $init->drowHtml(SITE_USER); exit; } ?>