Source for file LC_Page_Products_DetailImage.php
Documentation is available at LC_Page_Products_DetailImage.php
* This file is part of EC-CUBE
* Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
* http://www.lockon.co.jp/
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once(CLASS_PATH .
"pages/LC_Page.php");
* @author LOCKON CO.,LTD.
* @version $Id: LC_Page_Products_DetailImage.php 17969 2009-04-10 14:20:10Z Seasoft $
// 管理ページからの確認の場合は、非公開の商品も表示する。
// XXX 若干脆弱な気がする。ログイン状態か確認するのが望ましいかと。
if (isset
($_GET['admim']) &&
$_GET['admin'] ==
'on') {
$where =
"del_flg = 0 AND status = 1";
if (!SC_Utils_Ex::sfIsInt($_GET['product_id']) ||
!$objDb->sfIsRecord("dtb_products", "product_id", $_GET['product_id'], $where)) {
$image_key =
$_GET['image'];
if(!$objDb->sfColumnExists("dtb_products",$image_key)){
$col =
"name, $image_key";
$arrRet =
$objQuery->select($col, "dtb_products", "product_id = ?", array($_GET['product_id']));
$image_path =
IMAGE_SAVE_DIR .
$arrRet[0][$image_key];
$this->tpl_width =
$width;
$this->tpl_height =
$height;
$this->tpl_table_width =
$this->tpl_width +
20;
$this->tpl_table_height =
$this->tpl_height +
20;
$this->tpl_image =
$arrRet[0][$image_key];
$this->tpl_name =
$arrRet[0]['name'];
$this->tpl_image_key =
$image_key;
$objView->assignobj($this);
Documentation generated on Tue, 28 Apr 2009 18:12:42 +0900 by phpDocumentor 1.4.2