doaction.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. require("../class/connect.php");
  3. require("../class/db_sql.php");
  4. require("../data/dbcache/class.php");
  5. require("../member/class/user.php");
  6. require("../data/dbcache/MemberLevel.php");
  7. require LoadLang("pub/fun.php");
  8. $link=db_connect();
  9. $empire=new mysqlquery();
  10. $enews=$_POST['enews'];
  11. if(empty($enews))
  12. {
  13. $enews=$_GET['enews'];
  14. }
  15. //导入文件
  16. eCheckCloseMods('shop');//关闭模块
  17. include('class/ShopSysFun.php');
  18. if($enews=="ClearBuycar")//清空购物车
  19. {
  20. ClearBuycar();
  21. }
  22. elseif($enews=="AddBuycar")//加入购物车
  23. {
  24. $classid=$_GET['classid'];
  25. $id=$_GET['id'];
  26. $pn=$_GET['pn'];
  27. AddBuycar($classid,$id,$pn,$_GET);
  28. }
  29. elseif($enews=="EditBuycar")//修改购物车
  30. {
  31. EditBuycar($_POST);
  32. }
  33. elseif($enews=="AddDd")//增加定单
  34. {
  35. AddDd($_POST);
  36. }
  37. elseif($enews=="ShopDdToPay")//未付款的继续支付
  38. {
  39. $ddid=$_GET['ddid'];
  40. ShopDdToPay($ddid);
  41. }
  42. elseif($enews=='DelDd')//取消订单
  43. {
  44. ShopSys_qDelDd($_GET);
  45. }
  46. elseif($enews=="AddAddress")//新增地址
  47. {
  48. ShopSys_AddAddress($_POST);
  49. }
  50. elseif($enews=="EditAddress")//修改地址
  51. {
  52. ShopSys_EditAddress($_POST);
  53. }
  54. elseif($enews=="DelAddress")//删除地址
  55. {
  56. ShopSys_DelAddress($_GET);
  57. }
  58. elseif($enews=="DefAddress")//默认地址
  59. {
  60. ShopSys_DefAddress($_GET);
  61. }
  62. else
  63. {printerror("ErrorUrl","history.go(-1)",1);}
  64. db_close();
  65. $empire=null;
  66. ?>