Changeset 11627 for branches/dev/data
- Timestamp:
- 2007/03/08 23:50:35 (19 years ago)
- Location:
- branches/dev/data
- Files:
-
- 3 edited
-
Smarty/templates/admin/mail/index.tpl (modified) (3 diffs)
-
class/SC_CustomerList.php (modified) (3 diffs)
-
conf/conf.php (modified) (1 diff)
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(
Note: See TracChangeset
for help on using the changeset viewer.
