Changeset 19706


Ignore:
Timestamp:
2010/12/03 12:29:57 (13 years ago)
Author:
nanasess
bzr:base-revision:
ohkouchi@loop-az.jp-20101202091436-vcp9ha97310kgcx0
bzr:committer:
Kentaro Ohkouchi <ohkouchi@loop-az.jp>
bzr:file-ids:

data/class/SC_Display.php 18986@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Fcamp%2Fcamp-2_5-E%2Fdata%2Fclass%2FSC_Display.php
data/mtb_constants_init.php 16505@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fmtb_constants_init.php
html/install/sql/create_table_mysql.sql 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fhtml%2Finstall%2Fsql%2Fcreate_table_mysql.sql
html/install/sql/create_table_pgsql.sql 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fhtml%2Finstall%2Fsql%2Fcreate_table_pgsql.sql
html/install/sql/drop_table.sql 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fhtml%2Finstall%2Fsql%2Fdrop_table.sql
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:repository-uuid:
1e3b908f-19a9-db11-a64c-001125224ba8
bzr:revision-id:
ohkouchi@loop-az.jp-20101203032953-i438uvz39m2g69ii
bzr:revno:
2435
bzr:revprop:branch-nick:
branches/version-2_5-dev
bzr:root:
branches/version-2_5-dev
bzr:timestamp:
2010-12-03 12:29:53.193000078 +0900
bzr:user-agent:
bzr2.2.1+bzr-svn1.0.4
svn:original-date:
2010-12-03T03:29:53.193000Z
Message:
  • #628(未使用処理・定義などの削除)
    • dtb_order テーブルの loan_result, credit_result, credit_msg, conveni_data, cell01, cell02, cell03 を削除
  • #627(ソース整形・ソースコメントの改善)
    • mtb_constants.rank の項番修正
  • #792(ダウンロード販売機能)
    • dtb_order.payment_date を datetime に変更
  • #787(スマートフォン対応)
    • mtb_device_type 追加
    • 端末種別の定数を追加
  • #859(モバイル・PCどちらからの注文か受注データで識別できるようにする)
    • dtb_order.device_type_id, dtb_order_temp.device_type_id を追加
Location:
branches/version-2_5-dev
Files:
6 edited

Legend:

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

    r19705 r19706  
    4545     * const('MOBILE',1); 
    4646     * const('SMARTPHONE',2); 
    47      * const('PC',4); 
    48      * const('ADMIN',8); 
     47     * const('PC',10); 
     48     * const('ADMIN',99); 
    4949     */ 
    5050 
     
    7272    function prepare($page, $is_admin = false){ 
    7373        if(!$this->deviceSeted || !is_null($this->view)){ 
    74             $device = ($is_admin) ? 8 : $this->detectDevice(); 
     74            $device = ($is_admin) ? DEVICE_TYPE_ADMIN : $this->detectDevice(); 
    7575            $this->setDevice($device); 
    7676        } 
     
    112112     * Enter description here ... 
    113113     */ 
    114     function setDevice($device=4){ 
     114    function setDevice($device = DEVICE_TYPE_PC){ 
    115115 
    116116        switch ($device){ 
    117             case 1: 
     117            case DEVICE_TYPE_MOBILE: 
    118118                $this->response->setContentType("text/html"); 
    119119                $this->setView(new SC_MobileView()); 
    120120                break; 
    121             case 2: 
     121            case DEVICE_TYPE_SMARTPHONE: 
    122122                $this->setView(new SC_SmartphoneView()); 
    123123                break; 
    124             case 4: 
     124            case DEVICE_TYPE_PC: 
    125125                $this->setView(new SC_SiteView()); 
    126126                break; 
    127             case 8: 
     127            case DEVICE_TYPE_ADMIN: 
    128128                $this->setView(new SC_AdminView()); 
    129129        } 
     
    142142     * SC_Display::MOBILE = ガラケー = 1 
    143143     * SC_Display::SMARTPHONE = スマホ = 2 
    144      * SC_Display::PC = PC = 4 
     144     * SC_Display::PC = PC = 10 
    145145     * ※PHP4の為にconstは使っていません。 1がガラケーで、2がスマホで4がPCです。 
    146146     * @return 
     
    151151        $retDevice = 0; 
    152152        if($nu->isMobile()){ 
    153             $retDevice = 1; 
     153            $retDevice = DEVICE_TYPE_MOBILE; 
    154154        }elseif ($su->isSmartphone()){ 
    155             $retDevice = 2; 
     155            $retDevice = DEVICE_TYPE_SMARTPHONE; 
    156156        }else{ 
    157             $retDevice = 4; 
     157            $retDevice = DEVICE_TYPE_PC; 
    158158        } 
    159159 
  • branches/version-2_5-dev/data/mtb_constants_init.php

    r19670 r19706  
    603603/** ダウンロード商品 */ 
    604604define('PRODUCT_TYPE_DOWNLOAD', 2); 
     605/** 端末種別: モバイル */ 
     606define('DEVICE_TYPE_MOBILE', 1); 
     607/** 端末種別: スマートフォン */ 
     608define('DEVICE_TYPE_SMARTPHONE', 2); 
     609/** 端末種別: PC */ 
     610define('DEVICE_TYPE_PC', 10); 
     611/** 端末種別: 管理画面 */ 
     612define('DEVICE_TYPE_ADMIN', 99); 
    605613?> 
  • branches/version-2_5-dev/html/install/sql/create_table_mysql.sql

    r19686 r19706  
    623623    status smallint, 
    624624    create_date datetime NOT NULL, 
    625     loan_result text, 
    626     credit_result text, 
    627     credit_msg text, 
    628625    update_date datetime, 
    629626    commit_date datetime, 
     627    payment_date datetime, 
     628    device_type_id int, 
    630629    del_flg smallint NOT NULL DEFAULT 0, 
    631630    deliv_date text, 
    632     conveni_data text, 
    633     cell01 text, 
    634     cell02 text, 
    635     cell03 text, 
    636631    memo01 text, 
    637632    memo02 text, 
     
    644639    memo09 text, 
    645640    memo10 text, 
    646     payment_date timestamp, 
    647641    PRIMARY KEY (order_id) 
    648642) TYPE=InnoDB; 
     
    707701    deliv_check smallint, 
    708702    point_check smallint, 
    709     loan_result text, 
    710     credit_result text, 
    711     credit_msg text, 
    712     create_date datetime NOT NULL, 
    713     update_date datetime, 
     703    create_date datetime NOT NULL, 
     704    update_date datetime, 
     705    device_type_id int, 
    714706    del_flg smallint NOT NULL DEFAULT 0, 
    715707    deliv_date text, 
    716     conveni_data text, 
    717     cell01 text, 
    718     cell02 text, 
    719     cell03 text, 
    720708    order_id int, 
    721709    memo01 text, 
     
    11731161) TYPE=InnoDB; 
    11741162 
     1163CREATE TABLE mtb_device_type ( 
     1164    id int2, 
     1165    name text, 
     1166    rank int2 NOT NULL, 
     1167    PRIMARY KEY (id) 
     1168) TYPE=InnoDB; 
     1169 
    11751170CREATE TABLE dtb_mobile_ext_session_id ( 
    11761171    session_id text NOT NULL, 
  • branches/version-2_5-dev/html/install/sql/create_table_pgsql.sql

    r19686 r19706  
    625625    status smallint, 
    626626    create_date timestamp NOT NULL DEFAULT now(), 
    627     loan_result text, 
    628     credit_result text, 
    629     credit_msg text, 
    630627    update_date timestamp, 
    631628    commit_date timestamp, 
     629    payment_date timestamp, 
     630    device_type_id int, 
    632631    del_flg smallint NOT NULL DEFAULT 0, 
    633632    deliv_date text, 
    634     conveni_data text, 
    635     cell01 text, 
    636     cell02 text, 
    637     cell03 text, 
    638633    memo01 text, 
    639634    memo02 text, 
     
    646641    memo09 text, 
    647642    memo10 text, 
    648     payment_date timestamp, 
    649643    PRIMARY KEY (order_id) 
    650644); 
     
    709703    deliv_check smallint, 
    710704    point_check smallint, 
    711     loan_result text, 
    712     credit_result text, 
    713     credit_msg text, 
    714     create_date timestamp NOT NULL DEFAULT now(), 
    715     update_date timestamp, 
     705    create_date timestamp NOT NULL DEFAULT now(), 
     706    update_date timestamp, 
     707    device_type_id int, 
    716708    del_flg smallint NOT NULL DEFAULT 0, 
    717709    deliv_date text, 
    718     conveni_data text, 
    719     cell01 text, 
    720     cell02 text, 
    721     cell03 text, 
    722710    order_id int, 
    723711    memo01 text, 
     
    11721160); 
    11731161 
    1174  
     1162CREATE TABLE mtb_device_type ( 
     1163    id int2, 
     1164    name text, 
     1165    rank int2 NOT NULL, 
     1166    PRIMARY KEY (id) 
     1167); 
    11751168 
    11761169CREATE TABLE dtb_mobile_ext_session_id ( 
  • branches/version-2_5-dev/html/install/sql/drop_table.sql

    r19678 r19706  
    9090DROP TABLE dtb_customer_favorite_products; 
    9191DROP TABLE mtb_product_type; 
     92DROP TABLE mtb_device_type; 
    9293DROP TABLE dtb_module; 
    9394DROP TABLE dtb_session; 
  • branches/version-2_5-dev/html/install/sql/insert_data.sql

    r19697 r19706  
    562562INSERT INTO mtb_product_type (id, name, rank) VALUES (1, '通常商品', 0); 
    563563INSERT INTO mtb_product_type (id, name, rank) VALUES (2, 'ダウンロード商品', 1); 
     564 
     565INSERT INTO mtb_device_type (id, name, rank) VALUES (1, 'モバイル', 0); 
     566INSERT INTO mtb_device_type (id, name, rank) VALUES (2, 'スマートフォン', 1); 
     567INSERT INTO mtb_device_type (id, name, rank) VALUES (10, 'PC', 2); 
     568INSERT INTO mtb_device_type (id, name, rank) VALUES (99, '管理画面', 3); 
    564569 
    565570INSERT INTO mtb_job (id, name, rank) VALUES (1, '公務員', 0); 
     
    11161121INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('PRODUCT_TYPE_NORMAL', '1', 900, '通常商品'); 
    11171122INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('PRODUCT_TYPE_DOWNLOAD', '2', 901, 'ダウンロード商品'); 
    1118 INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('SQL_QUERY_LOG_MODE', '1', 902, 'SQLログを取得するフラグ(1:表示, 0:非表示)'); 
    1119 INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('SQL_QUERY_LOG_MIN_EXEC_TIME', '2', 903, 'SQLログを取得する時間設定(設定値以上かかった場合に取得)'); 
    1120 INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('PAGE_DISPLAY_TIME_LOG_MODE', '1', 904, 'ページ表示時間のログを取得するフラグ(1:表示, 0:非表示)'); 
    1121 INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('PAGE_DISPLAY_TIME_LOG_MIN_EXEC_TIME', '2', 905, 'ページ表示時間のログを取得する時間設定(設定値以上かかった場合に取得)'); 
     1123INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('SQL_QUERY_LOG_MODE', '1', 1000, 'SQLログを取得するフラグ(1:表示, 0:非表示)'); 
     1124INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('SQL_QUERY_LOG_MIN_EXEC_TIME', '2', 1001, 'SQLログを取得する時間設定(設定値以上かかった場合に取得)'); 
     1125INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('PAGE_DISPLAY_TIME_LOG_MODE', '1', 1002, 'ページ表示時間のログを取得するフラグ(1:表示, 0:非表示)'); 
     1126INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('PAGE_DISPLAY_TIME_LOG_MIN_EXEC_TIME', '2', 1003, 'ページ表示時間のログを取得する時間設定(設定値以上かかった場合に取得)'); 
     1127INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('DEVICE_TYPE_MOBILE', '1', 1100, '端末種別: モバイル'); 
     1128INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('DEVICE_TYPE_SMARTPHONE', '2', 1101, '端末種別: スマートフォン'); 
     1129INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('DEVICE_TYPE_PC', '10', 1102, '端末種別: PC'); 
     1130INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('DEVICE_TYPE_ADMIN', '99', 1103, '端末種別: 管理画面'); 
    11221131 
    11231132INSERT INTO dtb_index_list (table_name, column_name, recommend_flg, recommend_comment) VALUES ('dtb_customer', 'email_mobile', 0, '会員数増加時のログイン処理速度を向上させたいときに試してみてください'); 
Note: See TracChangeset for help on using the changeset viewer.