index.php 649 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. require('../../class/connect.php');
  3. require('../../class/db_sql.php');
  4. $link=db_connect();
  5. $empire=new mysqlquery();
  6. $editor=1;
  7. $voteid=(int)$_GET['voteid'];
  8. if(empty($voteid))
  9. {
  10. printerror("NotVote","history.go(-1)",9);
  11. }
  12. $r=$empire->fetch1("select voteid,title,votenum,votetext,voteclass,addtime from {$dbtbpre}enewsvote where voteid='$voteid'");
  13. if(empty($r['voteid'])||empty($r['votetext']))
  14. {
  15. printerror("NotVote","history.go(-1)",9);
  16. }
  17. $r_exp="\r\n";
  18. $f_exp="::::::";
  19. if($r['voteclass'])
  20. {
  21. $voteclass="多选";
  22. }
  23. else
  24. {
  25. $voteclass="单选";
  26. }
  27. //导入模板
  28. require(ECMS_PATH.'e/template/tool/vote.php');
  29. db_close();
  30. $empire=null;
  31. ?>