Changeset 20477


Ignore:
Timestamp:
2011/03/03 20:02:28 (10 years ago)
Author:
nanasess
bzr:base-revision:
ohkouchi@loop-az.jp-20110303104641-cuvs5b4fnts4ja39
bzr:committer:
Kentaro Ohkouchi <ohkouchi@loop-az.jp>
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:

ohkouchi@loop-az.jp-20110303110126-3wlyc4sqti40yzh2
bzr:repository-uuid:
1e3b908f-19a9-db11-a64c-001125224ba8
bzr:revision-id:
ohkouchi@loop-az.jp-20110303110223-uzm8n0x87mmxjw2b
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 ohkouchi@loop-az.jp-20110303110126-3wlyc4sqti40yzh2
data/class/pages/entry/LC_Page_Entry.php ohkouchi@loop-az.jp-20110303110126-3wlyc4sqti40yzh2
data/class/pages/mypage/LC_Page_Mypage_Change.php ohkouchi@loop-az.jp-20110303110126-3wlyc4sqti40yzh2
data/class/pages/shopping/LC_Page_Shopping.php ohkouchi@loop-az.jp-20110303110126-3wlyc4sqti40yzh2
data/mtb_constants_init.php ohkouchi@loop-az.jp-20110303110126-3wlyc4sqti40yzh2
html/install/sql/insert_data.sql ohkouchi@loop-az.jp-20110303110126-3wlyc4sqti40yzh2
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
Files:
6 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', "通常価格"); 
  • branches/version-2_5-dev/html/install/sql/insert_data.sql

    r20462 r20477  
    10531053INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('ERR_COLOR', '"#ffe8e8"', 137, 'エラー時表示色'); 
    10541054INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('CATEGORY_HEAD', '">"', 138, '親カテゴリ表示文字'); 
    1055 INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('START_BIRTH_YEAR', '1901', 139, '生年月日選択開始年'); 
     1055INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('START_BIRTH_YEAR', '1970', 139, '生年月日初期選択年'); 
    10561056INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('NORMAL_PRICE_TITLE', '"通常価格"', 140, '価格名称'); 
    10571057INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('SALE_PRICE_TITLE', '"販売価格"', 141, '価格名称'); 
Note: See TracChangeset for help on using the changeset viewer.