Ignore:
Timestamp:
2013/05/02 18:11:36 (11 years ago)
Author:
h_yoshimoto
Message:

#2236 2.12.3リリース以降の2.12-devへのコミット差し戻し

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/pages/admin/order/LC_Page_Admin_Order_ProductSelect.php

    r22567 r22796  
    3232 * @version $Id$ 
    3333 */ 
    34 class LC_Page_Admin_Order_ProductSelect extends LC_Page_Admin_Ex  
    35 { 
     34class LC_Page_Admin_Order_ProductSelect extends LC_Page_Admin_Ex { 
    3635 
    3736    // }}} 
     
    4342     * @return void 
    4443     */ 
    45     function init() 
    46     { 
     44    function init() { 
    4745        parent::init(); 
    4846        $this->tpl_mainpage = 'order/product_select.tpl'; 
     
    6159     * @return void 
    6260     */ 
    63     function process() 
    64     { 
     61    function process() { 
    6562        $this->action(); 
    6663        $this->sendResponse(); 
     
    7269     * @return void 
    7370     */ 
    74     function action() 
    75     { 
     71    function action() { 
    7672 
    7773        $objDb = new SC_Helper_DB_Ex(); 
     
    8278 
    8379        $this->tpl_no = $this->getNo(array($_GET,$_POST)); 
    84         $this->shipping_id = $this->getShippingId(array($_GET,$_POST)); 
    8580 
    8681        switch ($this->getMode()) { 
     
    106101                $this->tpl_javascript .= $this->getTplJavascript($objProduct); 
    107102                $js_fnOnLoad = $this->getFnOnload($this->arrProducts); 
    108                 $this->tpl_javascript .= 'function fnOnLoad() 
    109                 {' . $js_fnOnLoad . '}'; 
     103                $this->tpl_javascript .= 'function fnOnLoad(){' . $js_fnOnLoad . '}'; 
    110104                $this->tpl_onload .= 'fnOnLoad();'; 
    111105                // 規格1クラス名 
     
    138132     * @param SC_Product $objProduct 
    139133     */ 
    140     function getProductList($arrProductId, &$objProduct) 
    141     { 
     134    function getProductList($arrProductId, &$objProduct) { 
    142135        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    143136 
     
    153146     * @param array $arrProducts 
    154147     */ 
    155     function getFnOnload($arrProducts) 
    156     { 
     148    function getFnOnload($arrProducts) { 
    157149        foreach ($arrProducts as $arrProduct) { 
    158150            $js_fnOnLoad .= "fnSetClassCategories(document.product_form{$arrProduct['product_id']});"; 
     
    165157     * @param SC_Product $objProduct 
    166158     */ 
    167     function getTplJavascript(&$objProduct) 
    168     { 
     159    function getTplJavascript(&$objProduct) { 
    169160        return 'productsClassCategories = ' . SC_Utils_Ex::jsonEncode($objProduct->classCategories) . '; '; 
    170161    } 
     
    175166     * @param SC_Product $objProduct 
    176167     */ 
    177     function getProducts($whereAndBind,&$objProduct, $page_max, $startno) 
    178     { 
     168    function getProducts($whereAndBind,&$objProduct, $page_max, $startno) { 
    179169        $where = $whereAndBind['where']; 
    180170        $bind = $whereAndBind['bind']; 
     
    196186     * @param SC_Product $objProduct 
    197187     */ 
    198     function getLineCount($whereAndBind,&$objProduct) 
    199     { 
     188    function getLineCount($whereAndBind,&$objProduct) { 
    200189        $where = $whereAndBind['where']; 
    201190        $bind = $whereAndBind['bind']; 
     
    213202     * @param SC_FormParam $objFormParam 
    214203     */ 
    215     function createWhere(&$objFormParam,&$objDb) 
    216     { 
     204    function createWhere(&$objFormParam,&$objDb) { 
    217205        $arrForm = $objFormParam->getHashArray(); 
    218206        $where = 'alldtl.del_flg = 0'; 
     
    254242     * @param unknown_type $globalParams 
    255243     */ 
    256     function getNo($globalParams) 
    257     { 
     244    function getNo($globalParams) { 
    258245        foreach ($globalParams as $params) { 
    259246            if (isset($params['no']) && $params['no']!= '') { 
     
    265252 
    266253    /** 
    267      * リクエストパラメーター shipping_id を取ってくる。 
    268      * @param unknown_type $globalParams 
    269      */ 
    270     function getShippingId($globalParams) 
    271     { 
    272         foreach ($globalParams as $params) { 
    273             if (isset($params['shipping_id']) && $params['shipping_id']!= '') { 
    274                 return intval($params['shipping_id']); 
    275             } 
    276         } 
    277         return null; 
    278     } 
    279  
    280  
    281     /** 
    282254     * 取得している並び順で並び替え 
    283255     * @param $arrProduct_id 
    284256     * @param $productList 
    285257     */ 
    286     function sortProducts($arrProduct_id,$productList) 
    287     { 
     258    function sortProducts($arrProduct_id,$productList) { 
    288259        $products  = array(); 
    289260        foreach ($productList as $item) { 
     
    301272     * @return void 
    302273     */ 
    303     function destroy() 
    304     { 
     274    function destroy() { 
    305275        parent::destroy(); 
    306276    } 
     
    310280     * @param SC_FormParam $objFormParam 
    311281     */ 
    312     function lfInitParam(&$objFormParam) 
    313     { 
     282    function lfInitParam(&$objFormParam) { 
    314283        $objFormParam->addParam('オーダーID', 'order_id', INT_LEN, 'n', array('EXIST_CHECK', 'MAX_LENGTH_CHECK', 'NUM_CHECK')); 
    315284        $objFormParam->addParam('商品名', 'search_name', STEXT_LEN, 'KVa', array('MAX_LENGTH_CHECK')); 
     
    317286        $objFormParam->addParam('商品コード', 'search_product_code', LTEXT_LEN, 'KVa', array('MAX_LENGTH_CHECK', 'SPTAB_CHECK')); 
    318287        $objFormParam->addParam('フッター', 'footer', LTEXT_LEN, 'KVa', array('MAX_LENGTH_CHECK', 'SPTAB_CHECK')); 
    319         $objFormParam->addParam('届け先ID', 'shipping_id', LTEXT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); 
    320288    } 
    321289} 
Note: See TracChangeset for help on using the changeset viewer.