<?php
require('../../class/connect.php');
require('../../data/dbcache/class.php');
require('../../class/db_sql.php');
$link=db_connect();
$empire=new mysqlquery();
$editor=1;
$classid=(int)$_GET['classid'];
$id=(int)$_GET['id'];
if(empty($id)||empty($classid)||!$class_r[$classid]['tbname'])
{
	printerror("NotVote","history.go(-1)",9);
}
$infor=$empire->fetch1("select id,votenum,title from {$dbtbpre}ecms_".$class_r[$classid]['tbname']." where id='$id' and classid='$classid'");
if(empty($infor['id']))
{
	printerror("NotVote","history.go(-1)",9);
}
$r=$empire->fetch1("select id,title,votetext,voteclass from {$dbtbpre}enewsinfovote where id='$id' and classid='$classid' limit 1");
if(empty($r['id'])||empty($r['votetext']))
{
	printerror("NotVote","history.go(-1)",9);
}
if(empty($r['title']))
{
	$r['title']=$infor['title'];
}
$r_exp="\r\n";
$f_exp="::::::";
if($r['voteclass'])
{
	$voteclass="多选";
}
else
{
	$voteclass="单选";
}
$infor[title]=stripSlashes($infor[title]);
//导入模板
require(ECMS_PATH.'e/template/public/vote.php');
db_close();
$empire=null;
?>