xajaxдµÄÁôÑÔ±¾

5年以前  |  阅读数:226 次  |  编程语言:PHP 

<?
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 = new createdb;
$con->createconn();
$con->mysql="insert into content(webid,tallname,txtconntent) values('$_SESSION[wid]','$_POST[tallnane]','$_POST[content_4]')";
$con->getresule();
}
@define(mun_2,3); //¶¨ÒaÿҳÏÔʾ¼¸Ìo¼Ç
function tt($form_mm)
{
if($_SESSION["code"]==$form_mm['chetxt']) //ÓÃxajaxÀ´È¡µÃÑeÖ¤Âe£¬²»Í¬ÒÔÇ°µÄÄÇÖÖ¿´ÑeÖ¤Âe¶Ô²»¶Ô
{
$erro_msg="ллÄaµÄÖ§³Ö";
$jjs="";
}
else
{
$erro_msg="ÑeÖ¤Âe²»¶Ô£¬ÇeÖØÐÂÔÚд";
$jjs="true";
}
$obj= new xajaxResponse();
$obj->addAssign("check_msg","innerHTML",$erro_msg);
$obj->addAssign("btn","disabled",$jjs);
return $obj->getXML();
}
function callmsg()
{
$obj= new xajaxResponse();
$obj->addScript("xajax_tt(xajax.getFormValues('form_d'));");
return $obj->getXML();
}
function xx($uu)
{
$ad_2="";
$bb=mun_2;
$start=$uumun_2 - mun_2;
$II=$uu-1;
if($uu==1)
{
$II=$uu;
}
$I=$uu+1;
if($I>@$_SESSION['$mun_5'])
{
$I=$uu;
}
$pp = new createdb;
$pp->createconn();
$pp->mysql="select count(
) from content where webid=$_SESSION[wid]";
$pp->getresule();
$pp->getrow();
$u=$pp->row[0];
$t=$u;
$pp->mysql="select * from content where webid=$_SESSION[wid] group by id desc limit $start,$bb";
$pp->getresule();
$start=$start+1;
while($pp->getrow())
{
$ad="

";
$ad_2=$ad_2.$ad;
@$qqaa="ÉÏÒ»Ò³ ÏÂÒ»Ò³ ";
$start++;
}
$obj= new xajaxResponse();
$obj->addAssign("div","innerHTML",$ad_2);
$obj->addAssign("ren","innerHTML",@$qqaa);
$obj->addscript("if ( (event.altKey) || ((event.keyCode == 8) &&
(event.srcElement.type != 'text' &&
event.srcElement.type != 'textarea' &&
event.srcElement.type != 'password')) ||
((event.ctrlKey) && ((event.keyCode == 78) || (event.keyCode == 82)) ) ||
(event.keyCode == 116) ) {
event.keyCode = 0;
event.returnValue = false;
}
");
return $obj->getXML();
}
$ax = new xajax();
$ax->registerFunction("xx");
$ax->registerFunction("tt");
$ax->registerFunction("callmsg");
$ax->processRequests();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

ÎÞ±eÌaÎĵµ printJavascript();?>
createconn(); $pp->mysql="select count(*) from content where webid=$_SESSION[wid]"; $pp->getresule(); $pp->getrow(); $lunnum=$pp->row[0]; //×ܼǼÊý $mun_5=""; $mun_3=""; $mun_3=$lunnum % mun_2; //¿´ÊÇ*ñÕu³ý/È»ºoËa³o×ÜÒ³Êý if($mun_3) { $mun_3=$lunnum / mun_2 + 1; } else { $mun_3=$lunnum / mun_2; } $_SESSION['$mun_5']=$mun_3; ?>

ÕýÔÚ¼ÓÔÔ¡£¡£¡£¡£¡£¡£

dfdfdf
 相关文章:
PHP分页显示制作详细讲解
SSH 登录失败:Host key verification failed
获取IMSI
将二进制数据转为16进制以便显示
获取IMEI
文件下载
贪吃蛇
双位运算符
PHP自定义函数获取搜索引擎来源关键字的方法
Java生成UUID
发送邮件
年的日历图
提取后缀名
在Zeus Web Server中安装PHP语言支持
让你成为最历害的git提交人
Yii2汉字转拼音类的实例代码
再谈PHP中单双引号的区别详解
指定应用ID以获取对应的应用名称
Python 2与Python 3版本和编码的对比
php封装的page分页类完整实例