Changeset 11606


Ignore:
Timestamp:
2007/03/08 15:31:03 (17 years ago)
Author:
uehara
Message:
 
Location:
branches/dev/html/admin/customer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/html/admin/customer/edit.php

    r11558 r11606  
    8080                             array(  "column" => "reminder",    "convert" => "n" ), 
    8181                             array(  "column" => "reminder_answer", "convert" => "aKV" ), 
     82                             array(  "column" => "mailmaga_flg", "convert" => "n" ),                          
    8283                             array(  "column" => "note",        "convert" => "aKV" ), 
    8384                             array(  "column" => "point",       "convert" => "n" ), 
     
    106107 
    107108    //--¡¡¸ÜµÒ¥Ç¡¼¥¿¼èÆÀ 
    108     $sql = "SELECT A.*, B.mail_flag FROM dtb_customer AS A LEFT OUTER JOIN dtb_customer_mail AS B USING(email) 
    109              WHERE A.del_flg = 0 AND A.customer_id = ?"; 
     109    $sql = "SELECT * FROM dtb_customer WHERE del_flg = 0 AND customer_id = ?"; 
    110110    $result = $objConn->getAll($sql, array($_POST["edit_customer_id"])); 
    111111    $objPage->list_data = $result[0]; 
     
    207207 
    208208    $arrRegist["update_date"] = "Now()"; 
    209     $arrRegistMail["update_date"] = "Now()"; 
    210     $arrRegistMail["mail_flag"] = $array["mail_flag"]; 
    211     $arrRegistMail['email'] = $array['email']; 
     209 
    212210    //-- ÊÔ½¸ÅÐÏ¿¼Â¹Ô 
    213211    $objConn->query("BEGIN"); 
    214212    $objQuery->Insert("dtb_customer", $arrRegist, "customer_id = '" .addslashes($array["customer_id"]). "'"); 
    215      
    216     //-- ¥á¥ë¥Þ¥¬ÅÐÏ¿ 
    217     $mailmaga = $objQuery->getAll("SELECT * FROM dtb_customer_mail WHERE email = ?", $array["edit_email"]); 
    218      
    219     if(count($mailmaga) > 0 ){ 
    220         $objQuery->Update("dtb_customer_mail", $arrRegistMail, "email = '" .addslashes($array["edit_email"]). "'"); 
    221     }else{ 
    222         $arrRegistMail["create_date"] = "Now()"; 
    223         //$arrRegist["create_date"] = date( "Y/m/d H:i:s", time()); 
    224         $objQuery->Insert("dtb_customer_mail", $arrRegistMail); 
    225     } 
     213 
    226214    $objConn->query("COMMIT"); 
    227215} 
  • branches/dev/html/admin/customer/index.php

    r11533 r11606  
    132132        $objQuery->conn->query($sql, array($_POST["edit_customer_id"])); 
    133133    } 
    134     $sql = "DELETE FROM dtb_customer_mail WHERE email = ?"; 
    135     $objQuery->conn->query($sql, array($result_customer[0]["email"])); 
    136134} 
    137135if ($_POST['mode'] == "search" || $_POST['mode'] == "csv"  || $_POST['mode'] == "delete" || $_POST['mode'] == "delete_all") { 
     
    218216                $objQuery->conn->query($sql, array($_POST["del_customer_id"])); 
    219217            } 
    220             $sql = "DELETE FROM dtb_customer_mail WHERE email = ?"; 
    221             $objQuery->conn->query($sql, array($result_customer[0]["email"]));   
    222218             
    223219            break; 
Note: See TracChangeset for help on using the changeset viewer.