国内流行的内容管理系统(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.

27 lines
964B

  1. <?php
  2. /**
  3. * 投票管理
  4. *
  5. * @version $Id: vote_main.php 1 23:54 2010年7月20日Z tianya $
  6. * @package DedeCMS.Administrator
  7. * @copyright Copyright (c) 2007 - 2018, DesDev, Inc.
  8. * @copyright Copyright (c) 2020, DedeBIZ.COM
  9. * @license https://www.dedebiz.com/license/v6
  10. * @link https://www.dedebiz.com
  11. */
  12. require_once(dirname(__FILE__)."/config.php");
  13. require_once(DEDEINC."/datalistcp.class.php");
  14. setcookie("ENV_GOBACK_URL",$dedeNowurl,time()+3600,"/");
  15. $sql = "SELECT aid,votename,starttime,endtime,totalcount,isenable FROM #@__vote ORDER BY aid DESC";
  16. $dlist = new DataListCP();
  17. $issel = isset($issel) ? $issel : 0;
  18. $aid = isset($aid) ? $aid : 0;
  19. if($issel == 1)
  20. {
  21. $dlist->SetParameter('issel',$issel);
  22. $dlist->SetTemplet(DEDEADMIN."/templets/vote_select.htm");
  23. } else {
  24. $dlist->SetTemplet(DEDEADMIN."/templets/vote_main.htm");
  25. }
  26. $dlist->SetSource($sql);
  27. $dlist->display();