Ignore:
Timestamp:
2010/08/06 14:52:59 (10 years ago)
Author:
eccuore
Message:

#792(ダウンロード販売機能) 機能追加

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis.php

    r18776 r18777  
    105105                    break; 
    106106                } 
    107                 $this->tpl_onload = "window.alert('SHOPマスタの登録が完了しました。');"; 
     107                $this->tpl_onload = "fnCheckLimit('downloadable_days', 'downloadable_days_unlimited', '" . DISABLED_RGB . "'); window.alert('SHOPマスタの登録が完了しました。');"; 
    108108            } 
    109109            if( empty($this->arrForm['regular_holiday_ids']) ) { 
     
    120120            $regular_holiday_ids = explode('|', $this->arrForm['regular_holiday_ids']); 
    121121            $this->arrForm['regular_holiday_ids'] = $regular_holiday_ids; 
     122            $this->tpl_onload = "fnCheckLimit('downloadable_days', 'downloadable_days_unlimited', '" . DISABLED_RGB . "');"; 
    122123        } 
    123124 
     
    166167            "regular_holiday_ids", 
    167168            "latitude", 
    168             "longitude" 
     169            "longitude", 
     170            "downloadable_days", 
     171            "downloadable_days_unlimited" 
    169172        ); 
    170173        return $arrCol; 
     
    235238        $arrConvList['good_traded'] = ""; 
    236239        $arrConvList['message'] = ""; 
     240        $arrConvList['downloadable_days'] = "n"; 
     241        $arrConvList['downloadable_days_unlimited'] = "n"; 
    237242 
    238243        return SC_Utils_Ex::mbConvertKanaWithArray($array, $arrConvList); 
     
    271276        $objErr->doFunc(array("取扱商品", "good_traded", LLTEXT_LEN), array("MAX_LENGTH_CHECK")); 
    272277        $objErr->doFunc(array("メッセージ", "message", LLTEXT_LEN), array("MAX_LENGTH_CHECK")); 
    273  
     278        if(!isset($array['downloadable_days_unlimited']) && $array['downloadable_days_unlimited'] != "1") { 
     279            $objErr->doFunc(array("ダウンロード可能日数", "downloadable_days", DOWNLOAD_DAYS_LEN), array("EXIST_CHECK", "ZERO_CHECK", "NUM_CHECK", "MAX_LENGTH_CHECK")); 
     280        } 
    274281        $objErr->doFunc(array("緯度", "latitude", STEXT_LEN), array("NUM_POINT_CHECK", "MAX_LENGTH_CHECK")); 
    275282        $objErr->doFunc(array("経度", "longitude", STEXT_LEN), array("NUM_POINT_CHECK", "MAX_LENGTH_CHECK")); 
Note: See TracChangeset for help on using the changeset viewer.