Changeset 18853 for branches/version-2_5-dev/data/class/SC_CustomerList.php
- Timestamp:
- 2010/10/14 16:46:42 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/SC_CustomerList.php
r18820 r18853 76 76 } 77 77 78 // 名前(カナ)78 // 名前(カナ) 79 79 if (!isset($this->arrSql['kana'])) $this->arrSql['kana'] = ""; 80 80 if ( strlen($this->arrSql['kana']) > 0 ) { … … 84 84 } 85 85 86 // 86 // 都道府県 87 87 if (!isset($this->arrSql['pref'])) $this->arrSql['pref'] = ""; 88 88 if ( strlen($this->arrSql['pref']) > 0 ) { … … 91 91 } 92 92 93 // 93 // 電話番号 94 94 if (!isset($this->arrSql['tel'])) $this->arrSql['tel'] = ""; 95 95 if ( is_numeric( $this->arrSql['tel'] ) ) { … … 99 99 } 100 100 101 // 性別101 // 性別 102 102 if (!isset($this->arrSql['sex'])) $this->arrSql['sex'] = ""; 103 103 if ( is_array( $this->arrSql['sex'] ) ){ … … 108 108 } 109 109 110 // 職業110 // 職業 111 111 if (!isset($this->arrSql['job'])) $this->arrSql['job'] = ""; 112 112 if ( is_array( $this->arrSql['job'] ) ){ … … 123 123 } 124 124 125 // 125 // E-MAIL 126 126 if (!isset($this->arrSql['email'])) $this->arrSql['email'] = ""; 127 127 if (strlen($this->arrSql['email']) > 0) { … … 151 151 } 152 152 153 // 153 // E-MAIL(mobile) 154 154 if (!isset($this->arrSql['email_mobile'])) $this->arrSql['email_mobile'] = ""; 155 155 … … 180 180 } 181 181 182 // 182 // 配信メールアドレス種別 183 183 if ( $mode == 'magazine' ){ 184 184 $sqlEmailMobileIsEmpty = "(dtb_customer.email_mobile IS NULL OR dtb_customer.email_mobile = '')"; … … 204 204 } 205 205 206 // 206 // HTML-mail 207 207 if ( $mode == 'magazine' ){ 208 208 if (!isset($this->arrSql['htmlmail'])) $this->arrSql['htmlmail'] = ""; … … 299 299 } 300 300 301 // 購入商品コード301 // 購入商品コード 302 302 if (!isset($this->arrSql['buy_product_code'])) $this->arrSql['buy_product_code'] = ""; 303 303 if ( strlen($this->arrSql['buy_product_code']) > 0 ) { … … 307 307 } 308 308 309 // 購入商品名称309 // 購入商品名称 310 310 if (!isset($this->arrSql['buy_product_name'])) $this->arrSql['buy_product_name'] = ""; 311 311 if ( strlen($this->arrSql['buy_product_name']) > 0 ) { … … 315 315 } 316 316 317 // カテゴリーを選択している場合のみ絞込検索を行う317 // カテゴリーを選択している場合のみ絞込検索を行う 318 318 if (!isset($this->arrSql['category_id'])) $this->arrSql['category_id'] = ""; 319 319 if ( strlen($this->arrSql['category_id']) > 0){ 320 // カテゴリーで絞込検索を行うSQL文生成320 // カテゴリーで絞込検索を行うSQL文生成 321 321 list($tmp_where, $tmp_arrval) = $objDb->sfGetCatWhere($this->arrSql['category_id']); 322 322 323 // カテゴリーで絞込みが可能の場合323 // カテゴリーで絞込みが可能の場合 324 324 if($tmp_where != "") { 325 325 $this->setWhere( " customer_id IN (SELECT distinct customer_id FROM dtb_order WHERE order_id IN (SELECT distinct order_id FROM dtb_order_detail WHERE product_id IN (SELECT product_id FROM dtb_product_categories WHERE ".$tmp_where." ))) "); … … 327 327 } 328 328 } 329 // 携帯電話番号329 // 携帯電話番号 330 330 if (!isset($this->arrSql['cell'])) $this->arrSql['cell'] = ""; 331 331 if ( is_numeric( $this->arrSql['cell'] ) ) { … … 335 335 } 336 336 337 // キャンペーン337 // キャンペーン 338 338 if (!isset($this->arrSql['campaign_id'])) $this->arrSql['campaign_id'] = ""; 339 339 if ( is_numeric( $this->arrSql['campaign_id'] ) ) { … … 342 342 } 343 343 344 // 会員状態344 // 会員状態 345 345 if (!isset($this->arrSql['status'])) $this->arrSql['status'] = ""; 346 346 if ( is_array( $this->arrSql['status'] ) ){ … … 395 395 } 396 396 397 // 397 // 検索総数カウント用SQL 398 398 function getListCount() { 399 399 $this->select = "SELECT COUNT(customer_id) FROM dtb_customer "; … … 401 401 } 402 402 403 // 403 // CSVダウンロード用SQL 404 404 function getListCSV($arrColumnCSV) { 405 405 $this->arrColumnCSV = $arrColumnCSV;
Note: See TracChangeset
for help on using the changeset viewer.