session_start();
require_once("../conn/mysqlconn.php");
require_once('xajax.inc.php');
if(!isset($_SESSION['wid']))
{
$_SESSION['wid']=$_GET["wid"];
}
if(isset($_POST['content_4']))
{
$con=newcreatedb;
$con->createconn();
$con->mysql="insertintocontent(webid,tallname,txtconntent)values('$_SESSION[wid]','$_POST[tallnane]','$_POST[content_4]')";
$con->getresule();
}
@define(mun_2,3);//定义每页显示几条记
functiontt($form_mm)
{
if($_SESSION["code"]==$form_mm['chetxt'])//用xajax来取得验证码,不同以前的那种看验证码对不对
{
$erro_msg="谢谢你的支持";
$jjs="";
}
else
{
$erro_msg="验证码不对,请重新在写";
$jjs="true";
}
$obj=newxajaxResponse();
$obj->addAssign("check_msg","innerHTML",$erro_msg);
$obj->addAssign("btn","disabled",$jjs);
return$obj->getXML();
}
functioncallmsg()
{
$obj=newxajaxResponse();
$obj->addScript("xajax_tt(xajax.getFormValues('form_d'));");
return$obj->getXML();
}
functionxx($uu)
{
$ad_2="";
$bb=mun_2;
$start=$uu*mun_2-mun_2;
$II=$uu-1;
if($uu==1)
{
$II=$uu;
}
$I=$uu+1;
if($I>@$_SESSION['$mun_5'])
{
$I=$uu;
}
$pp=newcreatedb;
$pp->createconn();
$pp->mysql="selectcount(*)fromcontentwherewebid=$_SESSION[wid]";
$pp->getresule();
$pp->getrow();
$u=$pp->row[0];
$t=$u;
$pp->mysql="select*fromcontentwherewebid=$_SESSION[wid]groupbyiddesclimit$start,$bb";
$pp->getresule();
$start=$start+1;
while($pp->getrow())
{
$ad="