Changeset 19706
- Timestamp:
- 2010/12/03 12:29:57 (13 years ago)
- 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
- 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 45 45 * const('MOBILE',1); 46 46 * const('SMARTPHONE',2); 47 * const('PC', 4);48 * const('ADMIN', 8);47 * const('PC',10); 48 * const('ADMIN',99); 49 49 */ 50 50 … … 72 72 function prepare($page, $is_admin = false){ 73 73 if(!$this->deviceSeted || !is_null($this->view)){ 74 $device = ($is_admin) ? 8: $this->detectDevice();74 $device = ($is_admin) ? DEVICE_TYPE_ADMIN : $this->detectDevice(); 75 75 $this->setDevice($device); 76 76 } … … 112 112 * Enter description here ... 113 113 */ 114 function setDevice($device =4){114 function setDevice($device = DEVICE_TYPE_PC){ 115 115 116 116 switch ($device){ 117 case 1:117 case DEVICE_TYPE_MOBILE: 118 118 $this->response->setContentType("text/html"); 119 119 $this->setView(new SC_MobileView()); 120 120 break; 121 case 2:121 case DEVICE_TYPE_SMARTPHONE: 122 122 $this->setView(new SC_SmartphoneView()); 123 123 break; 124 case 4:124 case DEVICE_TYPE_PC: 125 125 $this->setView(new SC_SiteView()); 126 126 break; 127 case 8:127 case DEVICE_TYPE_ADMIN: 128 128 $this->setView(new SC_AdminView()); 129 129 } … … 142 142 * SC_Display::MOBILE = ガラケー = 1 143 143 * SC_Display::SMARTPHONE = スマホ = 2 144 * SC_Display::PC = PC = 4144 * SC_Display::PC = PC = 10 145 145 * ※PHP4の為にconstは使っていません。 1がガラケーで、2がスマホで4がPCです。 146 146 * @return … … 151 151 $retDevice = 0; 152 152 if($nu->isMobile()){ 153 $retDevice = 1;153 $retDevice = DEVICE_TYPE_MOBILE; 154 154 }elseif ($su->isSmartphone()){ 155 $retDevice = 2;155 $retDevice = DEVICE_TYPE_SMARTPHONE; 156 156 }else{ 157 $retDevice = 4;157 $retDevice = DEVICE_TYPE_PC; 158 158 } 159 159 -
branches/version-2_5-dev/data/mtb_constants_init.php
r19670 r19706 603 603 /** ダウンロード商品 */ 604 604 define('PRODUCT_TYPE_DOWNLOAD', 2); 605 /** 端末種別: モバイル */ 606 define('DEVICE_TYPE_MOBILE', 1); 607 /** 端末種別: スマートフォン */ 608 define('DEVICE_TYPE_SMARTPHONE', 2); 609 /** 端末種別: PC */ 610 define('DEVICE_TYPE_PC', 10); 611 /** 端末種別: 管理画面 */ 612 define('DEVICE_TYPE_ADMIN', 99); 605 613 ?> -
branches/version-2_5-dev/html/install/sql/create_table_mysql.sql
r19686 r19706 623 623 status smallint, 624 624 create_date datetime NOT NULL, 625 loan_result text,626 credit_result text,627 credit_msg text,628 625 update_date datetime, 629 626 commit_date datetime, 627 payment_date datetime, 628 device_type_id int, 630 629 del_flg smallint NOT NULL DEFAULT 0, 631 630 deliv_date text, 632 conveni_data text,633 cell01 text,634 cell02 text,635 cell03 text,636 631 memo01 text, 637 632 memo02 text, … … 644 639 memo09 text, 645 640 memo10 text, 646 payment_date timestamp,647 641 PRIMARY KEY (order_id) 648 642 ) TYPE=InnoDB; … … 707 701 deliv_check smallint, 708 702 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, 714 706 del_flg smallint NOT NULL DEFAULT 0, 715 707 deliv_date text, 716 conveni_data text,717 cell01 text,718 cell02 text,719 cell03 text,720 708 order_id int, 721 709 memo01 text, … … 1173 1161 ) TYPE=InnoDB; 1174 1162 1163 CREATE TABLE mtb_device_type ( 1164 id int2, 1165 name text, 1166 rank int2 NOT NULL, 1167 PRIMARY KEY (id) 1168 ) TYPE=InnoDB; 1169 1175 1170 CREATE TABLE dtb_mobile_ext_session_id ( 1176 1171 session_id text NOT NULL, -
branches/version-2_5-dev/html/install/sql/create_table_pgsql.sql
r19686 r19706 625 625 status smallint, 626 626 create_date timestamp NOT NULL DEFAULT now(), 627 loan_result text,628 credit_result text,629 credit_msg text,630 627 update_date timestamp, 631 628 commit_date timestamp, 629 payment_date timestamp, 630 device_type_id int, 632 631 del_flg smallint NOT NULL DEFAULT 0, 633 632 deliv_date text, 634 conveni_data text,635 cell01 text,636 cell02 text,637 cell03 text,638 633 memo01 text, 639 634 memo02 text, … … 646 641 memo09 text, 647 642 memo10 text, 648 payment_date timestamp,649 643 PRIMARY KEY (order_id) 650 644 ); … … 709 703 deliv_check smallint, 710 704 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, 716 708 del_flg smallint NOT NULL DEFAULT 0, 717 709 deliv_date text, 718 conveni_data text,719 cell01 text,720 cell02 text,721 cell03 text,722 710 order_id int, 723 711 memo01 text, … … 1172 1160 ); 1173 1161 1174 1162 CREATE TABLE mtb_device_type ( 1163 id int2, 1164 name text, 1165 rank int2 NOT NULL, 1166 PRIMARY KEY (id) 1167 ); 1175 1168 1176 1169 CREATE TABLE dtb_mobile_ext_session_id ( -
branches/version-2_5-dev/html/install/sql/drop_table.sql
r19678 r19706 90 90 DROP TABLE dtb_customer_favorite_products; 91 91 DROP TABLE mtb_product_type; 92 DROP TABLE mtb_device_type; 92 93 DROP TABLE dtb_module; 93 94 DROP TABLE dtb_session; -
branches/version-2_5-dev/html/install/sql/insert_data.sql
r19697 r19706 562 562 INSERT INTO mtb_product_type (id, name, rank) VALUES (1, '通常商品', 0); 563 563 INSERT INTO mtb_product_type (id, name, rank) VALUES (2, 'ダウンロード商品', 1); 564 565 INSERT INTO mtb_device_type (id, name, rank) VALUES (1, 'モバイル', 0); 566 INSERT INTO mtb_device_type (id, name, rank) VALUES (2, 'スマートフォン', 1); 567 INSERT INTO mtb_device_type (id, name, rank) VALUES (10, 'PC', 2); 568 INSERT INTO mtb_device_type (id, name, rank) VALUES (99, '管理画面', 3); 564 569 565 570 INSERT INTO mtb_job (id, name, rank) VALUES (1, '公務員', 0); … … 1116 1121 INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('PRODUCT_TYPE_NORMAL', '1', 900, '通常商品'); 1117 1122 INSERT 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, 'ページ表示時間のログを取得する時間設定(設定値以上かかった場合に取得)'); 1123 INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('SQL_QUERY_LOG_MODE', '1', 1000, 'SQLログを取得するフラグ(1:表示, 0:非表示)'); 1124 INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('SQL_QUERY_LOG_MIN_EXEC_TIME', '2', 1001, 'SQLログを取得する時間設定(設定値以上かかった場合に取得)'); 1125 INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('PAGE_DISPLAY_TIME_LOG_MODE', '1', 1002, 'ページ表示時間のログを取得するフラグ(1:表示, 0:非表示)'); 1126 INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('PAGE_DISPLAY_TIME_LOG_MIN_EXEC_TIME', '2', 1003, 'ページ表示時間のログを取得する時間設定(設定値以上かかった場合に取得)'); 1127 INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('DEVICE_TYPE_MOBILE', '1', 1100, '端末種別: モバイル'); 1128 INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('DEVICE_TYPE_SMARTPHONE', '2', 1101, '端末種別: スマートフォン'); 1129 INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('DEVICE_TYPE_PC', '10', 1102, '端末種別: PC'); 1130 INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('DEVICE_TYPE_ADMIN', '99', 1103, '端末種別: 管理画面'); 1122 1131 1123 1132 INSERT 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.