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

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