Changeset 11749 for branches/dev


Ignore:
Timestamp:
2007/03/12 10:41:01 (17 years ago)
Author:
uehara
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/html/admin/mail/index.php

    r11744 r11749  
    141141        //-- ¸¡º÷¥Ç¡¼¥¿¼èÆÀ  
    142142        $objSelect = new SC_CustomerList($objPage->list_data, "magazine"); 
    143  
    144143        // À¸À®¤µ¤ì¤¿WHEREʸ¤ò¼èÆÀ¤¹¤ë       
    145144        list($where, $arrval) = $objSelect->getWhere(); 
     
    165164        // ɽ¼¨½ç½ø 
    166165        $objQuery->setorder("customer_id DESC"); 
     166         
    167167        // ¸¡º÷·ë²Ì¤Î¼èÆÀ 
    168         $col = "dtb_customer.customer_id, 
    169             dtb_customer.name01, 
    170             dtb_customer.name02, 
    171             dtb_customer.kana01, 
    172             dtb_customer.kana02, 
    173             dtb_customer.sex, 
    174             dtb_customer.email, 
    175             dtb_customer.tel01, 
    176             dtb_customer.tel02, 
    177             dtb_customer.tel03, 
    178             dtb_customer.pref, 
    179             dtb_customer.mailmaga_flg"; 
     168        $is_mobile = false; 
     169        switch($_POST['mail_type']) { 
     170            case 1: 
     171                $is_mobile = false; 
     172                break; 
     173            case 2: 
     174                $is_mobile = true;       
     175                break; 
     176            default: 
     177                $is_mobile = false; 
     178                break; 
     179        } 
     180        $col = $objSelect->getListMailMagazine($is_mobile); 
    180181        $objPage->arrResults = $objQuery->select($col, $from, $where, $arrval); 
    181  
     182sfprintr($where); 
    182183        //¸½ºß»þ¹ï¤Î¼èÆÀ 
    183184        $objPage->arrNowDate = lfGetNowDate(); 
     
    397398     
    398399    $objQuery = new SC_Query(); 
    399          
    400400    $objSelect = new SC_CustomerList( lfConvertParam($arrData, $arrSearchColumn), "magazine" ); 
     401     
    401402    $search_data = $conn->getAll($objSelect->getListMailMagazine(), $objSelect->arrVal); 
    402403    $dataCnt = count($search_data); 
Note: See TracChangeset for help on using the changeset viewer.