Ignore:
Timestamp:
2010/12/03 12:29:57 (16 years ago)
Author:
nanasess
bzr:base-revision:
[email protected]
bzr:committer:
Kentaro Ohkouchi <[email protected]>
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:
[email protected]
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 を追加
File:
1 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 
Note: See TracChangeset for help on using the changeset viewer.