Changeset 11627
- Timestamp:
- 2007/03/08 23:50:35 (19 years ago)
- Location:
- branches/dev
- Files:
-
- 5 edited
-
data/Smarty/templates/admin/mail/index.tpl (modified) (3 diffs)
-
data/class/SC_CustomerList.php (modified) (3 diffs)
-
data/conf/conf.php (modified) (1 diff)
-
html/admin/mail/inc_mailmagazine.php (modified) (2 diffs)
-
html/admin/mail/index.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/data/Smarty/templates/admin/mail/index.tpl
r11626 r11627 264 264 <tr class="fs12n"> 265 265 <td bgcolor="#f2f1ec" width="110">¥¥ã¥ó¥Ú¡¼¥ó</td> 266 <td bgcolor="#ffffff" width=" 499" colspan="3">266 <td bgcolor="#ffffff" width="194" colspan="3"> 267 267 <select name="campaign_id" style="<!--{if $arrErr.campaign_id != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}--><!--{/if}-->"> 268 268 <option value="">ÁªÂò¤·¤Æ¤¯¤À¤µ¤¤</option> … … 270 270 </select> 271 271 </td> 272 <td bgcolor="#f2f1ec" width="110">¥á¡¼¥ë¥¢¥É¥ì¥¹¼ïÊÌ</td> 273 <td bgcolor="#ffffff" width="195"> 274 <!--{html_checkboxes name="mail_type" options=$arrMailType separator=" " selected=$list_data.mail_type}--> 275 </td> 272 276 </tr> 273 277 </table> … … 380 384 <tr bgcolor="#636469" align="center" class="fs12n"> 381 385 <td width="20"><span class="white">#</span></td> 382 <td width=" 50"><span class="white">²ñ°÷ÈÖ¹æ</span></td>383 <td width=" 100"><span class="white">̾Á°</span></td>384 <td width="1 70"><span class="white">¥á¡¼¥ë¥¢¥É¥ì¥¹</span></td>385 <td width="1 70"><span class="white">¥á¡¼¥ë¥¢¥É¥ì¥¹(·ÈÂÓÍÑ)</span></td>386 <td width="80"><span class="white">²ñ°÷ÈÖ¹æ</span></td> 387 <td width="80"><span class="white">¼õÃíÈÖ¹æ</span></td> 388 <td width="140"><span class="white">̾Á°</span></td> 389 <td width="190"><span class="white">¥á¡¼¥ë¥¢¥É¥ì¥¹</span></td> 386 390 <td width="101"><span class="white">´õ˾ÇÛ¿®</span></td> 387 391 <td width="100"><span class="white">ÅÐÏ¿Æü</span></td> -
branches/dev/data/class/SC_CustomerList.php
r11624 r11627 140 140 //¡¡E-MAIL 141 141 if (strlen($this->arrSql['email']) > 0) { 142 143 $search_all = 'all'; 144 $search_pc = 'email'; 145 $search_mobile = 'email_mobile'; 146 142 147 //¥«¥ó¥Þ¶èÀÚ¤ê¤ÇÊ£¿ô¤Î¾ò·ï»ØÄê²Äǽ¤Ë 143 148 $this->arrSql['email'] = explode(",", $this->arrSql['email']); 149 150 //¡¡¥á¡¼¥ë¼ïÊÌ 151 if ( is_array( $this->arrSql['mail_type'] ) ){ 152 153 if(in_array(MAIL_TYPE_PC, $this->arrSql['mail_type']) && !in_array(MAIL_TYPE_MOBILE, $this->arrSql['mail_type'])) { 154 // PC¤Î¤ß¸¡º÷ 155 $search_patern = $search_pc; 156 } else if(!in_array(MAIL_TYPE_PC, $this->arrSql['mail_type']) && in_array(MAIL_TYPE_MOBILE, $this->arrSql['mail_type'])) { 157 // ¥â¥Ð¥¤¥ë¤Î¤ß¸¡º÷ 158 $search_patern = $search_mobile; 159 } else { 160 // Á´¸¡º÷ 161 $search_patern = $search_all; 162 } 163 164 } else { 165 // Á´¸¡º÷ 166 $search_patern = $search_all; 167 } 168 169 144 170 $sql_where = ""; 145 171 foreach($this->arrSql['email'] as $val) { … … 147 173 //¸¡º÷¾ò·ï¤ò´Þ¤Þ¤Ê¤¤ 148 174 if($this->arrSql['not_emailinc'] == '1') { 175 149 176 if($sql_where == "") { 150 $sql_where .= " dtb_customer.email NOT ILIKE ?";177 $sql_where .= "(dtb_customer.email NOT ILIKE ? OR dtb_customer.email_maile NOT ILIKE ?) "; 151 178 } else { 152 $sql_where .= "AND dtb_customer.email NOT ILIKE ?";179 $sql_where .= "AND (dtb_customer.email NOT ILIKE ? OR dtb_customer.email_maile NOT ILIKE ?) "; 153 180 } 181 154 182 } else { 155 183 if($sql_where == "") { 156 $sql_where .= " dtb_customer.email ILIKE ?";184 $sql_where .= "(dtb_customer.email ILIKE ? OR dtb_customer.email_maile ILIKE ?) "; 157 185 } else { 158 $sql_where .= "OR dtb_customer.email ILIKE ?";186 $sql_where .= "OR (dtb_customer.email ILIKE ? OR dtb_customer.email_maile ILIKE ?) "; 159 187 } 160 188 } … … 164 192 $this->setWhere($sql_where); 165 193 } 166 167 //¡¡·ÈÂÓÍѥ᡼¥ë¥¢¥É¥ì¥¹ 168 if (strlen($this->arrSql['email_mobile']) > 0) { 169 //¥«¥ó¥Þ¶èÀÚ¤ê¤ÇÊ£¿ô¤Î¾ò·ï»ØÄê²Äǽ¤Ë 170 $this->arrSql['email_mobile'] = explode(",", $this->arrSql['email_mobile']); 171 $sql_where = ""; 172 foreach($this->arrSql['email_mobile'] as $val) { 173 $val = trim($val); 174 if($sql_where == "") { 175 $sql_where .= "dtb_customer.email_mobile ILIKE ? "; 176 } else { 177 $sql_where .= "OR dtb_customer.email_mobile ILIKE ? "; 178 } 179 $this->arrVal[] = $this->addSearchStr($val); 180 } 181 $this->setWhere($sql_where); 182 } 183 184 194 185 195 //¡¡HTML-mail 186 196 if ( $mode == 'magazine' ){ -
branches/dev/data/conf/conf.php
r11609 r11627 680 680 ); 681 681 682 /*¡¡¥á¡¼¥ë¥¢¥É¥ì¥¹¼ïÊÌ¡¡*/ 683 define ("MAIL_TYPE_PC",1); 684 define ("MAIL_TYPE_MOBILE",1); 685 $arrMailType = array( 686 MAIL_TYPE_PC => "¥Ñ¥½¥³¥óÍÑ¥¢¥É¥ì¥¹", 687 MAIL_TYPE_MOBILE => "·ÈÂÓÍÑ¥¢¥É¥ì¥¹", 688 ); 689 690 682 691 /*¡¡1¹Ô¿ô¡¡*/ 683 692 $arrPageRows = array( -
branches/dev/html/admin/mail/inc_mailmagazine.php
r11625 r11627 44 44 array( "column" => "job", "convert" => "" ), 45 45 array( "column" => "email", "convert" => "a" ), 46 array( "column" => "email_mobile", "convert" => "a" ),47 46 array( "column" => "htmlmail", "convert" => "n" ), 48 47 array( "column" => "customer", "convert" => "" ), … … 75 74 ,array( "column" => "buy_total_from", "convert" => "n" ) 76 75 ,array( "column" => "buy_total_to", "convert" => "n" ) 77 ,array( "column" => "campaign_id", "convert" => "" ) 78 ); 76 ,array( "column" => "campaign_id", "convert" => "" ) 77 ,array( "column" => "mail_type", "convert" => "a" ) 78 79 ); 79 80 80 81 //-------------------------------------------------------------------------------------------------------------------------------------- -
branches/dev/html/admin/mail/index.php
r11623 r11627 27 27 global $arrSex; 28 28 $this->arrSex = $arrSex; 29 global $arrMailType; 30 $this->arrMailType = $arrMailType; 29 31 global $arrPageRows; 30 32 $this->arrPageRows = $arrPageRows; … … 92 94 } 93 95 $list_data['job_disp'] = $job_disp; 96 } 97 98 // ¥á¡¼¥ë¼ïÊ̤ÎÊÑ´¹ 99 if (count($list_data['mail_type']) > 0) { 100 foreach($list_data['mail_type'] as $key => $val){ 101 $list_data['mail_type'][$key] = $objPage->arrMailType[$val]; 102 $mail_type_disp .= $list_data['mail_type'][$key] . " "; 103 } 104 $list_data['mail_type_disp'] = $mail_type_disp; 94 105 } 95 106
Note: See TracChangeset
for help on using the changeset viewer.
