";
$enews=ehtmlspecialchars($_GET['enews']);
$cid=ehtmlspecialchars($_GET['cid']);
$r[myorder]=0;
$url=$urlgname."管理模板变量 > 增加模板变量";
//修改
if($enews=="EditTempvar")
{
$varid=(int)$_GET['varid'];
$r=$empire->fetch1("select myvar,varname,varvalue,classid,isclose,myorder from ".GetDoTemptb("enewstempvar",$gid)." where varid='$varid'");
$r[varvalue]=ehtmlspecialchars(stripSlashes($r[varvalue]));
$url=$urlgname."管理模板变量 > 修改模板变量:".$r[myvar];
}
//分类
$cstr="";
$csql=$empire->query("select classid,classname from {$dbtbpre}enewstempvarclass order by classid");
while($cr=$empire->fetch($csql))
{
$select="";
if($cr[classid]==$r[classid])
{
$select=" selected";
}
$cstr.="";
}
db_close();
$empire=null;
?>
增加模板变量