本文整理汇总了PHP中xajaxResponse::addScrip方法的典型用法代码示例。如果您正苦于以下问题:PHP xajaxResponse::addScrip方法的具体用法?PHP xajaxResponse::addScrip怎么用?PHP xajaxResponse::addScrip使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类xajaxResponse
的用法示例。
在下文中一共展示了xajaxResponse::addScrip方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ChFolderInner
function ChFolderInner($folder_id, $login)
{
session_start();
$objResponse = new xajaxResponse();
$folder_id = intval($folder_id);
$user = new users();
$user->GetUser($login);
if (!$user->is_banned) {
$login = addslashes($login);
$uid = get_uid(false);
if ($folder_id && $login && $folder_id > 0) {
$fld = new mess_ustf();
$fld->from_id = $uid;
$fld->folder = $folder_id;
$passive = $fld->Change($login);
}
if ($folder_id < 0) {
if ($folder_id == -1) {
$fld = new teams();
$fld->user_id = $uid;
$passive = !$fld->teamsInverseFavorites($login);
}
if ($folder_id == -2) {
$fld = new ignor();
$fld->user_id = $uid;
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/memBuff.php";
$passive = !$fld->Change($login);
$memBuff = new memBuff();
$memBuff->delete("msgsCnt" . $uid);
$objResponse->script("GetNewMsgCount();");
}
if ($folder_id == -3) {
$passive = messages::DeleteFromUsers($login);
$objResponse->addScrip("document.location='/contacts/';");
}
}
if ($passive) {
$objResponse->assign("folder" . $folder_id, "className", "active");
$objResponse->assign("vfolder" . $folder_id, "className", "active");
} else {
$objResponse->assign("folder" . $folder_id, "className", "");
$objResponse->assign("vfolder" . $folder_id, "className", "passive");
}
}
return $objResponse;
}