Changeset 4849 for temp


Ignore:
Timestamp:
2006/09/17 14:21:34 (20 years ago)
Author:
kakinaka
Message:

blank

Location:
temp/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/data/class/SC_CustomerList.php

    r4847 r4849  
    258258 
    259259    function getListMailMagazine() { 
    260         $this->select = "SELECT customer_id,name01,name02,kana01,kana02,sex,email,tel01,tel02,tel03,pref, mail_flag FROM dtb_customer_mail LEFT OUTER JOIN dtb_customer USING(email)"; 
     260        $this->select = " 
     261            SELECT  
     262                dtb_customer.customer_id, 
     263                dtb_customer.name01, 
     264                dtb_customer.name02, 
     265                dtb_customer.kana01, 
     266                dtb_customer.kana02, 
     267                dtb_customer.sex, 
     268                dtb_customer.email, 
     269                dtb_customer.tel01, 
     270                dtb_customer.tel02, 
     271                dtb_customer.tel03, 
     272                dtb_customer.pref,  
     273                dtb_customer_mail.mail_flag  
     274            FROM  
     275                dtb_customer_mail LEFT OUTER JOIN dtb_customer USING(email)"; 
    261276        return $this->getSql(0);     
    262277    } 
  • temp/trunk/html/admin/mail/index.php

    r4847 r4849  
    369369    global $conn; 
    370370    global $arrSearchColumn; 
     371     
     372    $objQuery = new SC_Query(); 
    371373         
    372374    $objSelect = new SC_CustomerList( lfConvertParam($arrData, $arrSearchColumn), "magazine" ); 
     
    375377     
    376378    $dtb_send_history = array(); 
    377     $dtb_send_history["send_id"] = $conn->getOne("SELECT NEXTVAL('dtb_send_history_send_id_seq')"); 
     379//  $dtb_send_history["send_id"] = $conn->getOne("SELECT NEXTVAL('dtb_send_history_send_id_seq')"); 
     380    $dtb_send_history["send_id"] = $objQuery->nextval('dtb_send_history', 'send_id'); 
    378381    $dtb_send_history["mail_method"] = $arrData['mail_method']; 
    379382    $dtb_send_history["subject"] = $arrData['subject']; 
Note: See TracChangeset for help on using the changeset viewer.