国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.2KB

  1. <?php
  2. /**
  3. * 交易支付
  4. *
  5. * @version $Id: mypay.php 1 13:52 2010年7月9日Z tianya $
  6. * @package DedeCMS.Member
  7. * @copyright Copyright (c) 2007 - 2019, DesDev, Inc.
  8. * @license http://help.dedecms.com/usersguide/license.html
  9. * @link http://www.dedecms.com
  10. */
  11. require_once(dirname(__FILE__).'/config.php');
  12. CheckRank(0,0);
  13. $menutype = 'mydede';
  14. $menutype_son = 'op';
  15. require_once(DEDEINC.'/datalistcp.class.php');
  16. setcookie('ENV_GOBACK_URL', GetCurUrl(), time()+3600, '/');
  17. if(!isset($dopost)) $dopost = '';
  18. if($dopost=='')
  19. {
  20. $query = "Select * From `#@__member_operation` where mid='".$cfg_ml->M_ID."' And product='archive' order by aid desc";
  21. $dlist = new DataListCP();
  22. $dlist->pageSize = 20;
  23. $dlist->SetTemplate(DEDEMEMBER.'/templets/mypay.htm');
  24. $dlist->SetSource($query);
  25. $dlist->Display();
  26. }
  27. elseif($dopost=='del')
  28. {
  29. $ids = preg_replace("#[^0-9,]#", "", $ids);
  30. $query = "Delete From `#@__member_operation` where aid in($ids) And mid='{$cfg_ml->M_ID}' And product='archive'";
  31. $dsql->ExecuteNoneQuery($query);
  32. ShowMsg("成功删除指定的交易记录!","mypay.php");
  33. exit();
  34. }