Changeset 11606
- Timestamp:
- 2007/03/08 15:31:03 (17 years ago)
- Location:
- branches/dev/html/admin/customer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/html/admin/customer/edit.php
r11558 r11606 80 80 array( "column" => "reminder", "convert" => "n" ), 81 81 array( "column" => "reminder_answer", "convert" => "aKV" ), 82 array( "column" => "mailmaga_flg", "convert" => "n" ), 82 83 array( "column" => "note", "convert" => "aKV" ), 83 84 array( "column" => "point", "convert" => "n" ), … … 106 107 107 108 //--¡¡¸ÜµÒ¥Ç¡¼¥¿¼èÆÀ 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 = ?"; 110 110 $result = $objConn->getAll($sql, array($_POST["edit_customer_id"])); 111 111 $objPage->list_data = $result[0]; … … 207 207 208 208 $arrRegist["update_date"] = "Now()"; 209 $arrRegistMail["update_date"] = "Now()"; 210 $arrRegistMail["mail_flag"] = $array["mail_flag"]; 211 $arrRegistMail['email'] = $array['email']; 209 212 210 //-- ÊÔ½¸ÅÐÏ¿¼Â¹Ô 213 211 $objConn->query("BEGIN"); 214 212 $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 226 214 $objConn->query("COMMIT"); 227 215 } -
branches/dev/html/admin/customer/index.php
r11533 r11606 132 132 $objQuery->conn->query($sql, array($_POST["edit_customer_id"])); 133 133 } 134 $sql = "DELETE FROM dtb_customer_mail WHERE email = ?";135 $objQuery->conn->query($sql, array($result_customer[0]["email"]));136 134 } 137 135 if ($_POST['mode'] == "search" || $_POST['mode'] == "csv" || $_POST['mode'] == "delete" || $_POST['mode'] == "delete_all") { … … 218 216 $objQuery->conn->query($sql, array($_POST["del_customer_id"])); 219 217 } 220 $sql = "DELETE FROM dtb_customer_mail WHERE email = ?";221 $objQuery->conn->query($sql, array($result_customer[0]["email"]));222 218 223 219 break;
Note: See TracChangeset
for help on using the changeset viewer.