當前位置: 首頁>>代碼示例>>PHP>>正文


PHP xajaxResponse::addScrip方法代碼示例

本文整理匯總了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;
}
開發者ID:Nikitian,項目名稱:fl-ru-damp,代碼行數:46,代碼來源:contacts.server.php


注:本文中的xajaxResponse::addScrip方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。