Changeset 11533 for branches/dev/html
- Timestamp:
- 2007/03/05 17:52:29 (19 years ago)
- File:
-
- 1 edited
-
branches/dev/html/admin/customer/index.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/html/admin/customer/index.php
r233 r11533 86 86 87 87 //---- ¥Ú¡¼¥¸½é´üÀßÄê 88 $obj Conn = new SC_DBConn();88 $objQuery = new SC_Query(); 89 89 $objPage = new LC_Page(); 90 90 $objView = new SC_AdminView(); … … 123 123 if ($_POST['mode'] == "delete") { 124 124 $sql = "SELECT status,email FROM dtb_customer WHERE customer_id = ? AND del_flg = 0"; 125 $result_customer = $obj Conn->getAll($sql, array($_POST["edit_customer_id"]));125 $result_customer = $objQuery->conn->getAll($sql, array($_POST["edit_customer_id"])); 126 126 127 127 if ($result_customer[0]["status"] == 2) { //Ëܲñ°÷ºï½ü 128 128 $arrDel = array("del_flg" => 1, "update_date" => "NOW()"); 129 $obj Conn->autoExecute("dtb_customer", $arrDel, "customer_id = " .addslashes($_POST["edit_customer_id"]) );129 $objQuery->conn->autoExecute("dtb_customer", $arrDel, "customer_id = " .addslashes($_POST["edit_customer_id"]) ); 130 130 } elseif ($result_customer[0]["status"] == 1) { //²¾²ñ°÷ºï½ü 131 131 $sql = "DELETE FROM dtb_customer WHERE customer_id = ?"; 132 $obj Conn->query($sql, array($_POST["edit_customer_id"]));132 $objQuery->conn->query($sql, array($_POST["edit_customer_id"])); 133 133 } 134 134 $sql = "DELETE FROM dtb_customer_mail WHERE email = ?"; 135 $obj Conn->query($sql, array($result_customer[0]["email"]));135 $objQuery->conn->query($sql, array($result_customer[0]["email"])); 136 136 } 137 137 if ($_POST['mode'] == "search" || $_POST['mode'] == "csv" || $_POST['mode'] == "delete" || $_POST['mode'] == "delete_all") { … … 170 170 } 171 171 172 $objPage->search_data = $obj Conn->getAll($searchSql, $objSelect->arrVal);172 $objPage->search_data = $objQuery->conn->getAll($searchSql, $objSelect->arrVal); 173 173 174 174 switch($_POST['mode']) { … … 209 209 210 210 $sql = "SELECT status,email FROM dtb_customer WHERE customer_id = ? AND del_flg = 0"; 211 $result_customer = $obj Conn->getAll($sql, array($_POST["del_customer_id"]));211 $result_customer = $objQuery->conn->getAll($sql, array($_POST["del_customer_id"])); 212 212 213 213 if ($result_customer[0]["status"] == 2) { //Ëܲñ°÷ºï½ü 214 214 $arrDel = array("del_flg" => 1, "update_date" => "NOW()"); 215 $obj Conn->autoExecute("dtb_customer", $arrDel, "customer_id = " .addslashes($_POST["del_customer_id"]) );215 $objQuery->conn->autoExecute("dtb_customer", $arrDel, "customer_id = " .addslashes($_POST["del_customer_id"]) ); 216 216 } elseif ($result_customer[0]["status"] == 1) { //²¾²ñ°÷ºï½ü 217 217 $sql = "DELETE FROM dtb_customer WHERE customer_id = ?"; 218 $obj Conn->query($sql, array($_POST["del_customer_id"]));218 $objQuery->conn->query($sql, array($_POST["del_customer_id"])); 219 219 } 220 220 $sql = "DELETE FROM dtb_customer_mail WHERE email = ?"; 221 $obj Conn->query($sql, array($result_customer[0]["email"]));221 $objQuery->conn->query($sql, array($result_customer[0]["email"])); 222 222 223 223 break; … … 225 225 226 226 // ¹Ô¿ô¤Î¼èÆÀ 227 $linemax = $obj Conn->getOne( $objSelect->getListCount(), $objSelect->arrVal);227 $linemax = $objQuery->conn->getOne( $objSelect->getListCount(), $objSelect->arrVal); 228 228 $objPage->tpl_linemax = $linemax; // ²¿·ï¤¬³ºÅö¤·¤Þ¤·¤¿¡£É½¼¨ÍÑ 229 229
Note: See TracChangeset
for help on using the changeset viewer.
