Changeset 4608 for temp/trunk/html/admin/customer/index.php
- Timestamp:
- 2006/09/11 19:37:56 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/html/admin/customer/index.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/admin/customer/index.php
r2166 r4608 118 118 // ¸ÜµÒºï½ü 119 119 if ($_POST['mode'] == "delete") { 120 $sql = "SELECT status,email FROM dtb_customer WHERE customer_id = ? AND del ete= 0";120 $sql = "SELECT status,email FROM dtb_customer WHERE customer_id = ? AND del_flg = 0"; 121 121 $result_customer = $objConn->getAll($sql, array($_POST["edit_customer_id"])); 122 122 123 123 if ($result_customer[0]["status"] == 2) { //Ëܲñ°÷ºï½ü 124 $arrDel = array("del ete" => 1, "update_date" => "NOW()");124 $arrDel = array("del_flg" => 1, "update_date" => "NOW()"); 125 125 $objConn->autoExecute("dtb_customer", $arrDel, "customer_id = " .addslashes($_POST["edit_customer_id"]) ); 126 126 } elseif ($result_customer[0]["status"] == 1) { //²¾²ñ°÷ºï½ü … … 138 138 $objPage->arrErr = lfCheckError($objPage->arrForm); 139 139 140 $where = "del ete= 0";140 $where = "del_flg = 0"; 141 141 142 142 /* ÆþÎÏ¥¨¥é¡¼¤Ê¤· */ … … 197 197 // ¸¡º÷·ë²Ì¤ò¤¹¤Ù¤Æºï½ü 198 198 $where = "product_id IN (SELECT product_id FROM vw_products_nonclass WHERE $where)"; 199 $sqlval['del ete'] = 1;199 $sqlval['del_flg'] = 1; 200 200 $objQuery->update("dtb_products", $sqlval, $where, $arrval); 201 201 202 $sql = "SELECT status,email FROM dtb_customer WHERE customer_id = ? AND del ete= 0";202 $sql = "SELECT status,email FROM dtb_customer WHERE customer_id = ? AND del_flg = 0"; 203 203 $result_customer = $objConn->getAll($sql, array($_POST["del_customer_id"])); 204 204 205 205 if ($result_customer[0]["status"] == 2) { //Ëܲñ°÷ºï½ü 206 $arrDel = array("del ete" => 1, "update_date" => "NOW()");206 $arrDel = array("del_flg" => 1, "update_date" => "NOW()"); 207 207 $objConn->autoExecute("dtb_customer", $arrDel, "customer_id = " .addslashes($_POST["del_customer_id"]) ); 208 208 } elseif ($result_customer[0]["status"] == 1) { //²¾²ñ°÷ºï½ü
Note: See TracChangeset
for help on using the changeset viewer.
