<?php
require("../../class/connect.php");
require("../../class/q_functions.php");
require("../../data/dbcache/class.php");
$link=db_connect();
$empire=new mysqlquery();
$editor=1;
eCheckCloseMods('error');//關閉模塊
$id=(int)$_GET['id'];
$classid=(int)$_GET['classid'];
if(!$id||!$classid||!$class_r[$classid]['tbname']||InfoIsInTable($class_r[$classid]['tbname']))
{
	printerror("ErrorUrl","history.go(-1)",1);
}
$r=$empire->fetch1("select title,isurl,titleurl,classid,id from {$dbtbpre}ecms_".$class_r[$classid]['tbname']." where id='$id'".do_dblimit_one());
if(empty($r['id'])||$r['classid']!=$classid)
{
	printerror("ErrorUrl","history.go(-1)",1);
}
//分類
$cid=(int)$_GET['cid'];
$titleurl=sys_ReturnBqTitleLink($r);
//導入模板
include(ECMS_PATH.'e/template/public/report.php');
db_close();
$empire=null;
?>