Changeset 11627


Ignore:
Timestamp:
2007/03/08 23:50:35 (19 years ago)
Author:
uehara
Message:
 
Location:
branches/dev
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/data/Smarty/templates/admin/mail/index.tpl

    r11626 r11627  
    264264                            <tr class="fs12n"> 
    265265                                <td bgcolor="#f2f1ec" width="110">¥­¥ã¥ó¥Ú¡¼¥ó</td> 
    266                                 <td bgcolor="#ffffff" width="499" colspan="3"> 
     266                                <td bgcolor="#ffffff" width="194" colspan="3"> 
    267267                                    <select name="campaign_id" style="<!--{if $arrErr.campaign_id != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}--><!--{/if}-->"> 
    268268                                        <option value="">ÁªÂò¤·¤Æ¤¯¤À¤µ¤¤</option> 
     
    270270                                    </select> 
    271271                                </td> 
     272                                <td bgcolor="#f2f1ec" width="110">¥á¡¼¥ë¥¢¥É¥ì¥¹¼ïÊÌ</td> 
     273                                <td bgcolor="#ffffff" width="195"> 
     274                                    <!--{html_checkboxes name="mail_type" options=$arrMailType separator="&nbsp;" selected=$list_data.mail_type}--> 
     275                                </td>                                
    272276                            </tr> 
    273277                        </table> 
     
    380384                        <tr bgcolor="#636469" align="center" class="fs12n"> 
    381385                            <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="170"><span class="white">¥á¡¼¥ë¥¢¥É¥ì¥¹</span></td>                                                   
    385                             <td width="170"><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>   
    386390                            <td width="101"><span class="white">´õ˾ÇÛ¿®</span></td> 
    387391                            <td width="100"><span class="white">ÅÐÏ¿Æü</span></td> 
  • branches/dev/data/class/SC_CustomerList.php

    r11624 r11627  
    140140        //¡¡E-MAIL 
    141141        if (strlen($this->arrSql['email']) > 0) { 
     142 
     143            $search_all = 'all'; 
     144            $search_pc = 'email'; 
     145            $search_mobile = 'email_mobile'; 
     146             
    142147            //¥«¥ó¥Þ¶èÀÚ¤ê¤ÇÊ£¿ô¤Î¾ò·ï»ØÄê²Äǽ¤Ë 
    143148            $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 
    144170            $sql_where = ""; 
    145171            foreach($this->arrSql['email'] as $val) { 
     
    147173                //¸¡º÷¾ò·ï¤ò´Þ¤Þ¤Ê¤¤ 
    148174                if($this->arrSql['not_emailinc'] == '1') { 
     175                     
    149176                    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 ?) "; 
    151178                    } 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 ?) "; 
    153180                    } 
     181                     
    154182                } else {                 
    155183                    if($sql_where == "") { 
    156                         $sql_where .= "dtb_customer.email ILIKE ? "; 
     184                        $sql_where .= "(dtb_customer.email ILIKE ? OR dtb_customer.email_maile ILIKE ?) "; 
    157185                    } else { 
    158                         $sql_where .= "OR dtb_customer.email ILIKE ? "; 
     186                        $sql_where .= "OR (dtb_customer.email ILIKE ? OR dtb_customer.email_maile ILIKE ?) "; 
    159187                    } 
    160188                } 
     
    164192            $this->setWhere($sql_where); 
    165193        } 
    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                     
    185195        //¡¡HTML-mail 
    186196        if ( $mode == 'magazine' ){ 
  • branches/dev/data/conf/conf.php

    r11609 r11627  
    680680                ); 
    681681 
     682/*¡¡¥á¡¼¥ë¥¢¥É¥ì¥¹¼ïÊÌ¡¡*/ 
     683define ("MAIL_TYPE_PC",1); 
     684define ("MAIL_TYPE_MOBILE",1); 
     685$arrMailType = array( 
     686                    MAIL_TYPE_PC => "¥Ñ¥½¥³¥óÍÑ¥¢¥É¥ì¥¹", 
     687                    MAIL_TYPE_MOBILE => "·ÈÂÓÍÑ¥¢¥É¥ì¥¹", 
     688                );       
     689                 
     690                 
    682691/*¡¡1¹Ô¿ô¡¡*/        
    683692$arrPageRows = array( 
  • branches/dev/html/admin/mail/inc_mailmagazine.php

    r11625 r11627  
    4444                            array(  "column" => "job",              "convert" => "" ), 
    4545                            array(  "column" => "email",            "convert" => "a" ), 
    46                             array(  "column" => "email_mobile",         "convert" => "a" ), 
    4746                            array(  "column" => "htmlmail",         "convert" => "n" ), 
    4847                            array(  "column" => "customer",         "convert" => "" ), 
     
    7574                            ,array(  "column" => "buy_total_from",  "convert" => "n" )       
    7675                            ,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                    ); 
    7980 
    8081//-------------------------------------------------------------------------------------------------------------------------------------- 
  • branches/dev/html/admin/mail/index.php

    r11623 r11627  
    2727        global $arrSex;      
    2828        $this->arrSex = $arrSex; 
     29        global $arrMailType; 
     30        $this->arrMailType = $arrMailType; 
    2931        global $arrPageRows; 
    3032        $this->arrPageRows = $arrPageRows; 
     
    9294        } 
    9395        $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; 
    94105    } 
    95106     
Note: See TracChangeset for help on using the changeset viewer.