Ignore:
Timestamp:
2011/03/03 20:02:28 (15 years ago)
Author:
nanasess
bzr:base-revision:
[email protected]
bzr:committer:
Kentaro Ohkouchi <[email protected]>
bzr:file-ids:

data/class/SC_CheckError.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2FSC_CheckError.php
data/class/pages/entry/LC_Page_Entry.php 15141@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fentry%2FLC_Page_Entry.php
data/class/pages/mypage/LC_Page_Mypage_Change.php 16070@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fmypage%2FLC_Page_Mypage_Change.php
data/class/pages/shopping/LC_Page_Shopping.php 15223@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fshopping%2FLC_Page_Shopping.php
data/mtb_constants_init.php 16505@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fmtb_constants_init.php
html/install/sql/insert_data.sql 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fhtml%2Finstall%2Fsql%2Finsert_data.sql
bzr:mapping-version:
v4
bzr:merge:

[email protected]
bzr:repository-uuid:
1e3b908f-19a9-db11-a64c-001125224ba8
bzr:revision-id:
[email protected]
bzr:revno:
3204
bzr:revprop:branch-nick:
branches/version-2_5-dev
bzr:root:
branches/version-2_5-dev
bzr:text-revisions:

data/class/SC_CheckError.php [email protected]
data/class/pages/entry/LC_Page_Entry.php [email protected]
data/class/pages/mypage/LC_Page_Mypage_Change.php [email protected]
data/class/pages/shopping/LC_Page_Shopping.php [email protected]
data/mtb_constants_init.php [email protected]
html/install/sql/insert_data.sql [email protected]
bzr:timestamp:
2011-03-03 20:02:23.256999969 +0900
bzr:user-agent:
bzr2.2.1+bzr-svn1.0.4
svn:original-date:
2011-03-03T11:02:23.257000Z
Message:

#808(生年月日関連のシステムパラメーターの挙動が不一致)

  • 以下で統一
    • BIRTH_YEAR - セレクトボックスの開始値
    • START_BIRTH_YEAR - 初期選択値(1970年)
Location:
branches/version-2_5-dev/data
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/SC_CheckError.php

    r20461 r20477  
    811811 
    812812            // 年の数字チェック、最小数値制限チェック 
    813             $this->doFunc(array($value[0].'(年)', $value[1], START_BIRTH_YEAR), array("NUM_CHECK", "MIN_CHECK")); 
     813            $this->doFunc(array($value[0].'(年)', $value[1], BIRTH_YEAR), array("NUM_CHECK", "MIN_CHECK")); 
    814814            // 上のチェックでエラーある場合、中断する。 
    815815            if (isset($this->arrErr[$value[1]])) { 
  • branches/version-2_5-dev/data/class/pages/entry/LC_Page_Entry.php

    r20344 r20477  
    5151 
    5252        // 生年月日選択肢の取得 
    53         $objDate            = new SC_Date(START_BIRTH_YEAR, date("Y",strtotime("now"))); 
    54         $this->arrYear      = $objDate->getYear('', 1950, ''); 
     53        $objDate            = new SC_Date(BIRTH_YEAR, date("Y",strtotime("now"))); 
     54        $this->arrYear      = $objDate->getYear('', START_BIRTH_YEAR, ''); 
    5555        $this->arrMonth     = $objDate->getMonth(true); 
    5656        $this->arrDay       = $objDate->getDay(true); 
  • branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_Change.php

    r20162 r20477  
    5757 
    5858        // 生年月日選択肢の取得 
    59         $objDate            = new SC_Date(START_BIRTH_YEAR, date("Y",strtotime("now"))); 
    60         $this->arrYear      = $objDate->getYear('', 1950, ''); 
     59        $objDate            = new SC_Date(BIRTH_YEAR, date("Y",strtotime("now"))); 
     60        $this->arrYear      = $objDate->getYear('', START_BIRTH_YEAR, ''); 
    6161        $this->arrMonth     = $objDate->getMonth(true); 
    6262        $this->arrDay       = $objDate->getDay(true); 
  • branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping.php

    r20448 r20477  
    5151        $this->tpl_onload = 'fnCheckInputDeliv();'; 
    5252 
    53         $objDate = new SC_Date(START_BIRTH_YEAR, date("Y",strtotime("now"))); 
    54         $this->arrYear = $objDate->getYear('', 1950, ''); 
     53        $objDate = new SC_Date(BIRTH_YEAR, date("Y",strtotime("now"))); 
     54        $this->arrYear = $objDate->getYear('', START_BIRTH_YEAR, ''); 
    5555        $this->arrMonth = $objDate->getMonth(true); 
    5656        $this->arrDay = $objDate->getDay(true); 
  • branches/version-2_5-dev/data/mtb_constants_init.php

    r20462 r20477  
    206206/** 親カテゴリ表示文字 */ 
    207207define('CATEGORY_HEAD', ">"); 
    208 /** 生年月日選択開始年 */ 
    209 define('START_BIRTH_YEAR', 1901); 
     208/** 生年月日初期選択年 */ 
     209define('START_BIRTH_YEAR', 1970); 
    210210/** 価格名称 */ 
    211211define('NORMAL_PRICE_TITLE', "通常価格"); 
Note: See TracChangeset for help on using the changeset viewer.