当前位置: 首页>>代码示例>>PHP>>正文


PHP InitBVar函数代码示例

本文整理汇总了PHP中InitBVar函数的典型用法代码示例。如果您正苦于以下问题:PHP InitBVar函数的具体用法?PHP InitBVar怎么用?PHP InitBVar使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了InitBVar函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: onPrepareComponentParams

 public function onPrepareComponentParams($arParams)
 {
     $arParams['FILTER_NAME'] = $this->initFilterName($arParams['FILTER_NAME']);
     $this->initExternalValues($arParams['FILTER_NAME']);
     $arParams['USERS_PER_PAGE'] = intval($arParams['USERS_PER_PAGE']);
     $arParams['NAV_TITLE'] = !empty($arParams['NAV_TITLE']) ? $arParams['NAV_TITLE'] : GetMessage('INTR_ISL_PARAM_NAV_TITLE_DEFAULT');
     $arParams['DATE_FORMAT'] = !empty($arParams['DATE_FORMAT']) ? $arParams['DATE_FORMAT'] : CComponentUtil::GetDateFormatDefault(false);
     $arParams['DATE_FORMAT_NO_YEAR'] = !empty($arParams['DATE_FORMAT_NO_YEAR']) ? $arParams['DATE_FORMAT_NO_YEAR'] : CComponentUtil::GetDateFormatDefault(true);
     InitBVar($arParams['FILTER_1C_USERS']);
     InitBVar($arParams['FILTER_SECTION_CURONLY']);
     InitBVar($arParams['SHOW_NAV_TOP']);
     InitBVar($arParams['SHOW_NAV_BOTTOM']);
     InitBVar($arParams['SHOW_UNFILTERED_LIST']);
     InitBVar($arParams['SHOW_DEP_HEAD_ADDITIONAL']);
     !isset($arParams["CACHE_TIME"]) && ($arParams["CACHE_TIME"] = 3600);
     if ($arParams['CACHE_TYPE'] == 'A') {
         $arParams['CACHE_TYPE'] = COption::GetOptionString("main", "component_cache_on", "Y");
     }
     $arParams['DETAIL_URL'] = COption::GetOptionString('intranet', 'search_user_url', '/user/#ID#/');
     if (!array_key_exists("PM_URL", $arParams)) {
         $arParams["PM_URL"] = "/company/personal/messages/chat/#USER_ID#/";
     }
     if (!array_key_exists("PATH_TO_USER_EDIT", $arParams)) {
         $arParams["PATH_TO_USER_EDIT"] = '/company/personal/user/#user_id#/edit/';
     }
     if (!array_key_exists("PATH_TO_CONPANY_DEPARTMENT", $arParams)) {
         $arParams["PATH_TO_CONPANY_DEPARTMENT"] = "/company/structure.php?set_filter_structure=Y&structure_UF_DEPARTMENT=#ID#";
     }
     if (IsModuleInstalled("video") && !array_key_exists("PATH_TO_VIDEO_CALL", $arParams)) {
         $arParams["PATH_TO_VIDEO_CALL"] = "/company/personal/video/#USER_ID#/";
     }
     if (!$this->getUser()->CanDoOperation("edit_all_users") && isset($arParams["SHOW_USER"]) && $arParams["SHOW_USER"] != "fired") {
         $arParams["SHOW_USER"] = "active";
     }
     return parent::onPrepareComponentParams($arParams);
 }
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:36,代码来源:class.php

示例2: array

$arFilterFields = array("find_user", "find_id", "find_id_exact_match", "find_guest_id", "find_guest_id_exact_match", "find_registered", "find_new_guest", "find_ip", "find_ip_exact_match", "find_country_id", "find_country", "find_country_exact_match", "find_stop", "find_stop_list_id", "find_stop_list_id_exact_match", "find_hits1", "find_hits2", "find_adv", "find_adv_id", "find_adv_id_exact_match", "find_referer1", "find_referer2", "find_referer12_exact_match", "find_referer3", "find_referer3_exact_match", "find_adv_back", "find_first_from", "find_first_from_exact_match", "find_last_site_id", "find_url_last_404", "find_url_last", "find_url_last_exact_match");
$lAdmin->InitFilter($arFilterFields);
InitBVar($find_id_exact_match);
InitBVar($find_user_exact_match);
InitBVar($find_guest_id_exact_match);
InitBVar($find_ip_exact_match);
InitBVar($find_adv_id_exact_match);
InitBVar($find_referer12_exact_match);
InitBVar($find_referer12_exact_match);
InitBVar($find_referer3_exact_match);
InitBVar($find_user_agent_exact_match);
InitBVar($find_country_exact_match);
InitBVar($find_country_exact_match);
InitBVar($find_stop_list_id_exact_match);
InitBVar($find_url_last_exact_match);
InitBVar($find_first_from_exact_match);
if (CheckFilter()) {
    $arFilter = array("ID" => $find_id, "USER" => $find_user, "NEW_GUEST" => $find_new_guest, "GUEST_ID" => $find_guest_id, "IP" => $find_ip, "REGISTERED" => $find_registered, "HITS1" => $find_hits1, "HITS2" => $find_hits2, "ADV" => $find_adv, "ADV_ID" => $find_adv_id, "ADV_BACK" => $find_adv_back, "REFERER1" => $find_referer1, "REFERER2" => $find_referer2, "REFERER3" => $find_referer3, "COUNTRY_ID" => $find_country_id, "COUNTRY" => $find_country, "STOP" => $find_stop, "STOP_LIST_ID" => $find_stop_list_id, "FIRST_URL_FROM" => $find_first_from, "LAST_SITE_ID" => $find_last_site_id, "URL_LAST" => $find_url_last, "URL_LAST_404" => $find_url_last_404, "ID_EXACT_MATCH" => $find_id_exact_match, "USER_EXACT_MATCH" => $find_user_exact_match, "GUEST_ID_EXACT_MATCH" => $find_guest_id_exact_match, "IP_EXACT_MATCH" => $find_ip_exact_match, "ADV_ID_EXACT_MATCH" => $find_adv_id_exact_match, "REFERER1_EXACT_MATCH" => $find_referer12_exact_match, "REFERER2_EXACT_MATCH" => $find_referer12_exact_match, "REFERER3_EXACT_MATCH" => $find_referer3_exact_match, "USER_AGENT_EXACT_MATCH" => $find_user_agent_exact_match, "COUNTRY_EXACT_MATCH" => $find_country_exact_match, "COUNTRY_ID_EXACT_MATCH" => $find_country_exact_match, "STOP_LIST_ID_EXACT_MATCH" => $find_stop_list_id_exact_match, "URL_LAST_EXACT_MATCH" => $find_url_last_exact_match, "FIRST_URL_FROM_EXACT_MATCH" => $find_first_from_exact_match);
} else {
    if ($e = $APPLICATION->GetException()) {
        $GLOBALS["lAdmin"]->AddFilterError(GetMessage("STAT_FILTER_ERROR") . ": " . $e->GetString());
    }
}
$arDelay = array(20, 30, 60, 120, 300);
if ($delay > 0) {
    $_SESSION["SESS_DELAY"] = $delay;
}
if (intval($_SESSION["SESS_DELAY"]) > 0) {
    $delay = intval($_SESSION["SESS_DELAY"]);
}
if (!in_array($delay, $arDelay)) {
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:users_online.php

示例3: IncludeModuleLangFile

IncludeModuleLangFile(__FILE__);
$STAT_RIGHT = $APPLICATION->GetGroupRight("statistic");
if ($STAT_RIGHT == "D") {
    $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
$statDB = CDatabase::GetModuleConnection('statistic');
$aTabs = array(array("DIV" => "edit1", "TAB" => GetMessage("STAT_EVENT_TYPE"), "ICON" => "main_user_edit", "TITLE" => GetMessage("STAT_EVENT_TYPE")));
$tabControl = new CAdminTabControl("tabControl", $aTabs);
$err_mess = "File: " . __FILE__ . "<br>Line: ";
define("HELP_FILE", "event_type_list.php");
/***************************************************************************
		GET | POST handlers
***************************************************************************/
$ID = intval($ID);
InitBVar($ADV_VISIBLE);
InitBVar($DIAGRAM_DEFAULT);
$bVarsFromForm = false;
if ($REQUEST_METHOD == "POST" && ($save != "" || $apply != "") && $STAT_RIGHT == "W" && check_bitrix_sessid()) {
    $cEventType = new CStatEventType();
    $strSql = "SELECT KEEP_DAYS FROM b_stat_event WHERE ID = {$ID}";
    $rsEvent = $statDB->Query($strSql, false, $err_mess . __LINE__);
    $arEvent = $rsEvent->Fetch();
    $statDB->PrepareFields("b_stat_event");
    $sql_KEEP_DAYS = strlen(trim($KEEP_DAYS)) <= 0 ? "null" : intval($KEEP_DAYS);
    $arFields = array("EVENT1" => strlen(trim($EVENT1)) > 0 ? $str_EVENT1 : "", "EVENT2" => strlen(trim($EVENT2)) > 0 ? $str_EVENT2 : "", "ADV_VISIBLE" => "'" . $str_ADV_VISIBLE . "'", "NAME" => "'" . $str_NAME . "'", "DESCRIPTION" => "'" . $str_DESCRIPTION . "'", "KEEP_DAYS" => $sql_KEEP_DAYS, "C_SORT" => "'" . $str_C_SORT . "'", "DIAGRAM_DEFAULT" => "'" . $str_DIAGRAM_DEFAULT . "'", "DYNAMIC_KEEP_DAYS" => strlen(trim($DYNAMIC_KEEP_DAYS)) <= 0 ? "null" : intval($str_DYNAMIC_KEEP_DAYS));
    if ($cEventType->CheckFields($arFields, $ID)) {
        $arFields["EVENT1"] = $arFields["EVENT1"] == "" ? 'null' : "'" . $arFields["EVENT1"] . "'";
        $arFields["EVENT2"] = $arFields["EVENT2"] == "" ? 'null' : "'" . $arFields["EVENT2"] . "'";
        $statDB->StartTransaction();
        if ($ID > 0) {
            $statDB->Update("b_stat_event", $arFields, "WHERE ID='" . $ID . "'", $err_mess . __LINE__);
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:event_type_edit.php

示例4: intval

/***************************************************************************
			   GET | POST processing
****************************************************************************/
$reset_id = intval($reset_id);
if ($FORM_RIGHT == "W" && $reset_id > 0 && check_bitrix_sessid()) {
    CForm::Reset($reset_id);
}
$copy_id = intval($makecopy_id);
if ($FORM_RIGHT == "W" && $copy_id > 0 && check_bitrix_sessid()) {
    CForm::Copy($copy_id);
    LocalRedirect("form_list.php?lang=" . LANGUAGE_ID);
}
InitBVar($find_id_exact_match);
InitBVar($find_name_exact_match);
InitBVar($find_sid_exact_match);
InitBVar($find_description_exact_match);
$arFilter = array("ID" => $find_id, "ID_EXACT_MATCH" => $find_id_exact_match, "NAME" => $find_name, "NAME_EXACT_MATCH" => $find_name_exact_match, "SID" => $find_sid, "SID_EXACT_MATCH" => $find_sid_exact_match, "DESCRIPTION" => $find_description, "DESCRIPTION_EXACT_MATCH" => $find_description_exact_match, "SITE" => $find_site);
// "Save" button was pressed
if ($lAdmin->EditAction() && $FORM_RIGHT >= "W" && check_bitrix_sessid()) {
    foreach ($FIELDS as $ID => $arFields) {
        if (!$lAdmin->IsUpdated($ID)) {
            continue;
        }
        $DB->StartTransaction();
        $ID = IntVal($ID);
        $F_RIGHT = CForm::GetPermission($ID);
        if ($F_RIGHT >= 30) {
            $arFieldsStore = array("TIMESTAMP_X" => $DB->GetNowFunction(), "C_SORT" => "'" . intval($arFields[C_SORT]) . "'");
            if (!$DB->Update("b_form", $arFieldsStore, "WHERE ID='" . $ID . "'", $err_mess . __LINE__)) {
                $lAdmin->AddUpdateError(GetMessage("SAVE_ERROR") . $ID . ": " . GetMessage("FORM_SAVE_ERROR"), $ID);
                $DB->Rollback();
开发者ID:spas-viktor,项目名称:books,代码行数:31,代码来源:form_list.php

示例5: InitFilterEx

	{
		$FilterArr[] = $fname;
		$FilterArr[] = $fname."_exact_match";
	}
	else $FilterArr[] = $fname;
}
$sess_filter = "FORM_RESULT_LIST_".$WEB_FORM_NAME;
if (strlen($set_filter)>0) InitFilterEx($FilterArr,$sess_filter,"set"); 
else InitFilterEx($FilterArr,$sess_filter,"get");
if (strlen($del_filter)>0) DelFilterEx($FilterArr,$sess_filter);

InitBVar($find_id_exact_match);
InitBVar($find_status_id_exact_match);
InitBVar($find_user_id_exact_match);
InitBVar($find_guest_id_exact_match);
InitBVar($find_session_id_exact_match);
if (CheckFilter())
{
	$arFilter = Array(
		"ID"						=> $find_id,
		"ID_EXACT_MATCH"			=> $find_id_exact_match,
		"STATUS"					=> $find_status,
		"STATUS_ID"					=> $find_status_id,
		"STATUS_ID_EXACT_MATCH"		=> $find_status_id_exact_match,
		"TIMESTAMP_1"				=> $find_timestamp_1,
		"TIMESTAMP_2"				=> $find_timestamp_2,
		"DATE_CREATE_1"				=> $find_date_create_1,
		"DATE_CREATE_2"				=> $find_date_create_2,
		"REGISTERED"				=> $find_registered,
		"USER_AUTH"					=> $find_user_auth,
		"USER_ID"					=> $find_user_id,
开发者ID:ASDAFF,项目名称:open_bx,代码行数:31,代码来源:form_result_list_handler.php

示例6: IncludeModuleLangFile

$STAT_RIGHT = $APPLICATION->GetGroupRight("statistic");
if ($STAT_RIGHT == "D") {
    $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
$statDB = CDatabase::GetModuleConnection('statistic');
IncludeModuleLangFile(__FILE__);
$err_mess = "File: " . __FILE__ . "<br>Line: ";
define("HELP_FILE", "stoplist_list.php");
/***************************************************************************
			GET | POST handling
***************************************************************************/
$message = null;
$ID = intval($ID);
InitBVar($ACTIVE);
InitBVar($SAVE_STATISTIC);
InitBVar($USER_AGENT_IS_NULL);
// "save" on the current page was pressed
if ((strlen($save) > 0 || strlen($apply) > 0) && $REQUEST_METHOD == "POST" && $STAT_RIGHT >= "W" && check_bitrix_sessid()) {
    $arFields = array("DATE_START" => $_POST["DATE_START"], "DATE_END" => $_POST["DATE_END"], "SITE_ID" => $_POST["SITE_ID"], "ACTIVE" => $ACTIVE, "SAVE_STATISTIC" => $SAVE_STATISTIC, "IP_1" => $_POST["IP_1"], "IP_2" => $_POST["IP_2"], "IP_3" => $_POST["IP_3"], "IP_4" => $_POST["IP_4"], "MASK_1" => $_POST["MASK_1"], "MASK_2" => $_POST["MASK_2"], "MASK_3" => $_POST["MASK_3"], "MASK_4" => $_POST["MASK_4"], "USER_AGENT" => $_POST["USER_AGENT"], "USER_AGENT_IS_NULL" => $USER_AGENT_IS_NULL, "URL_TO" => $_POST["URL_TO"], "URL_FROM" => $_POST["URL_FROM"], "MESSAGE" => $_POST["MESSAGE"], "URL_REDIRECT" => $_POST["URL_REDIRECT"], "COMMENTS" => $_POST["COMMENTS"], "MESSAGE_LID" => $_POST["MESSAGE_LID"]);
    $obStopList = new CStoplist();
    if ($ID > 0) {
        $res = $obStopList->Update($ID, $arFields);
        $new = "N";
    } else {
        $res = $ID = $obStopList->Add($arFields);
        $new = "Y";
    }
    if ($res) {
        if (strlen($_POST["save"]) > 0) {
            LocalRedirect("stoplist_list.php?lang=" . LANG);
        } else {
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:stoplist_edit.php

示例7: array

            $arrUsers[$USER_ID] = array("LOGIN" => $login, "NAME" => $name);
        }
    }
}
$sTableID = "t_sla_list";
$oSort = new CAdminSorting($sTableID, "SORT", "asc");
// инициализация сортировки
$lAdmin = new CAdminList($sTableID, $oSort);
// инициализация списка
$filter = new CAdminFilter($sTableID . "_filter_id", array("ID", GetMessage("SUP_SITE"), GetMessage("SUP_DESCRIPTION")));
$arFilterFields = array("find_name", "find_name_exact_match", "find_id", "find_id_exact_match", "find_description", "find_description_exact_match", "find_site");
$lAdmin->InitFilter($arFilterFields);
//инициализация фильтра
foreach ($arFilterFields as $key) {
    if (strpos($key, "_exact_match") !== false) {
        InitBVar(${$key});
    }
    $arFilter[strtoupper(substr($key, 5))] = ${$key};
}
if ($bAdmin == "Y" && $lAdmin->EditAction()) {
    foreach ($FIELDS as $ID => $arFields) {
        $ID = intval($ID);
        if (!$lAdmin->IsUpdated($ID)) {
            continue;
        }
        $arFields["PRIORITY"] = intval($arFields["PRIORITY"]);
        if (strlen(trim($arFields["NAME"])) > 0) {
            CTicketSLA::Set(array("NAME" => $arFields["NAME"], "PRIORITY" => $arFields["PRIORITY"]), $ID);
        } else {
            $lAdmin->AddUpdateError(str_replace("#ID#", $ID, GetMessage("SUP_FORGOT_NAME")), $ID);
        }
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:ticket_sla_list.php

示例8: InitFilterEx

     }
 }
 $arParams["sess_filter"] = "FORM_RESULT_LIST_" . $arParams["WEB_FORM_NAME"];
 if (strlen($_REQUEST["set_filter"]) > 0) {
     InitFilterEx($FilterArr, $arParams["sess_filter"], "set");
 } else {
     InitFilterEx($FilterArr, $arParams["sess_filter"], "get");
 }
 if (strlen($_REQUEST["del_filter"]) > 0) {
     DelFilterEx($FilterArr, $arParams["sess_filter"]);
 } else {
     InitBVar($GLOBALS["find_id_exact_match"]);
     InitBVar($GLOBALS["find_status_id_exact_match"]);
     InitBVar($GLOBALS["find_user_id_exact_match"]);
     InitBVar($GLOBALS["find_guest_id_exact_match"]);
     InitBVar($GLOBALS["find_session_id_exact_match"]);
     $arResult["ERROR_MESSAGE"] = "";
     if (__FormResultListCheckFilter($arResult["ERROR_MESSAGE"], $arResult["arrFORM_FILTER"])) {
         $arFilter = array("ID" => $GLOBALS["find_id"], "ID_EXACT_MATCH" => $GLOBALS["find_id_exact_match"], "STATUS" => $GLOBALS["find_status"], "STATUS_ID" => $GLOBALS["find_status_id"], "STATUS_ID_EXACT_MATCH" => $GLOBALS["find_status_id_exact_match"], "TIMESTAMP_1" => $GLOBALS["find_timestamp_1"], "TIMESTAMP_2" => $GLOBALS["find_timestamp_2"], "DATE_CREATE_1" => $GLOBALS["find_date_create_1"], "DATE_CREATE_2" => $GLOBALS["find_date_create_2"], "REGISTERED" => $GLOBALS["find_registered"], "USER_AUTH" => $GLOBALS["find_user_auth"], "USER_ID" => $GLOBALS["find_user_id"], "USER_ID_EXACT_MATCH" => $GLOBALS["find_user_id_exact_match"], "GUEST_ID" => $GLOBALS["find_guest_id"], "GUEST_ID_EXACT_MATCH" => $GLOBALS["find_guest_id_exact_match"], "SESSION_ID" => $GLOBALS["find_session_id"], "SESSION_ID_EXACT_MATCH" => $GLOBALS["find_session_id_exact_match"]);
         if (is_array($arResult["arrFORM_FILTER"])) {
             foreach ($arResult["arrFORM_FILTER"] as $arrF) {
                 foreach ($arrF as $arr) {
                     if ($arr["FILTER_TYPE"] == "date" || $arr["FILTER_TYPE"] == "integer") {
                         $arFilter[$arr["FID"] . "_1"] = $GLOBALS["find_" . $arr["FID"] . "_1"];
                         $arFilter[$arr["FID"] . "_2"] = $GLOBALS["find_" . $arr["FID"] . "_2"];
                         $arFilter[$arr["FID"] . "_0"] = $GLOBALS["find_" . $arr["FID"] . "_0"];
                     } elseif ($arr["FILTER_TYPE"] == "text") {
                         $arFilter[$arr["FID"]] = $GLOBALS["find_" . $arr["FID"]];
                         $exact_match = $GLOBALS["find_" . $arr["FID"] . "_exact_match"] == "Y" ? "Y" : "N";
                         $arFilter[$arr["FID"] . "_exact_match"] = $exact_match;
                     } else {
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:component.php

示例9: array

        die;
    }
}
$lAdmin->InitFilter($arFilterFields);
if (CheckFilter()) {
    $arFilter = array("ID" => $find_id, "ID_EXACT_MATCH" => $find_id_exact_match, "VALID" => $find_valid, "VOTE_ID" => $VOTE_ID, "DATE_1" => $find_date_1, "DATE_2" => $find_date_2, "VOTE_USER" => $find_vote_user, "VOTE_USER_EXACT_MATCH" => $find_vote_user_exact_match, "SESSION" => $find_session, "SESSION_EXACT_MATCH" => $find_session_exact_match, "IP" => $find_ip, "IP_EXACT_MATCH" => $find_ip_exact_match);
}
// if submit "Save"
if ($lAdmin->EditAction() && $VOTE_RIGHT >= "W" && check_bitrix_sessid()) {
    foreach ($FIELDS as $ID => $arFields) {
        if (!$lAdmin->IsUpdated($ID)) {
            continue;
        }
        $DB->StartTransaction();
        $ID = IntVal($ID);
        InitBVar($arFields["VALID"]);
        $arFieldsStore = array("VALID" => "'{$arFields['VALID']}'");
        if (!$DB->Update("b_vote_event", $arFieldsStore, "WHERE ID='{$ID}'", $err_mess . __LINE__)) {
            $lAdmin->AddUpdateError(GetMessage("SAVE_ERROR") . $ID . ": " . GetMessage("VOTE_SAVE_ERROR"), $ID);
            $DB->Rollback();
        }
        $DB->Commit();
    }
}
// Groups action
if (($arID = $lAdmin->GroupAction()) && $VOTE_RIGHT == "W" && check_bitrix_sessid()) {
    if ($_REQUEST['action_target'] == 'selected') {
        $arID = array();
        $rsData = CVoteEvent::GetList($by, $order, $arFilter, $is_filtered);
        while ($arRes = $rsData->Fetch()) {
            $arID[] = $arRes['ID'];
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:vote_user_votes_table.php

示例10: array

    if ($bGotErr) {
        return false;
    } else {
        return true;
    }
}
/********************************************************************
				Actions
********************************************************************/
$arFilterFields = array("find_id", "find_id_exact_match", "find_date_start_1", "find_date_start_2", "find_date_end_1", "find_date_end_2", "find_counter_1", "find_counter_2", "find_user", "find_user_exact_match", "find_guest", "find_guest_exact_match", "find_ip", "find_ip_exact_match", "find_vote", "find_vote_exact_match", "find_vote_id");
$lAdmin->InitFilter($arFilterFields);
InitBVar($find_id_exact_match);
InitBVar($find_user_exact_match);
InitBVar($find_guest_exact_match);
InitBVar($find_ip_exact_match);
InitBVar($find_vote_exact_match);
if (CheckFilter()) {
    $arFilter = array("ID" => $find_id, "ID_EXACT_MATCH" => $find_id_exact_match, "DATE_START_1" => $find_date_start_1, "DATE_START_2" => $find_date_start_2, "DATE_END_1" => $find_date_end_1, "DATE_END_2" => $find_date_end_2, "COUNTER_1" => $find_counter_1, "COUNTER_2" => $find_counter_2, "USER" => $find_user, "USER_EXACT_MATCH" => $find_user_exact_match, "GUEST" => $find_guest, "GUEST_EXACT_MATCH" => $find_guest_exact_match, "IP" => $find_ip, "IP_EXACT_MATCH" => $find_ip_exact_match, "VOTE" => $find_vote, "VOTE_EXACT_MATCH" => $find_vote_exact_match, "VOTE_ID" => $find_vote_id);
}
if (($arID = $lAdmin->GroupAction()) && $VOTE_RIGHT == "W" && check_bitrix_sessid()) {
    if ($_REQUEST['action_target'] == 'selected') {
        $arID = array();
        $rsData = CVoteUser::GetList($by, $order, $arFilter, $is_filtered);
        while ($arRes = $rsData->Fetch()) {
            $arID[] = $arRes['ID'];
        }
    }
    foreach ($arID as $ID) {
        if (strlen($ID) <= 0) {
            continue;
        }
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:vote_user_list.php

示例11: str_replace

                 $file = str_replace("\n", " ", $file);
                 $arResult["ImageModified"] = $file;
                 $arResult["Image"] = $aImg;
             } else {
                 if ($ex = $APPLICATION->GetException()) {
                     $arResult["ERROR_MESSAGE"] = $ex->GetString();
                 }
             }
         }
     }
 } else {
     if (($_POST["apply"] || $_POST["save"]) && $arResult["preview"] != "Y" && empty($_POST["reset"])) {
         if (check_bitrix_sessid()) {
             if (strlen($arResult["ERROR_MESSAGE"]) <= 0) {
                 $TRACKBACK = trim($_POST["TRACKBACK"]);
                 InitBVar($_POST["ENABLE_TRACKBACK"]);
                 $CATEGORYtmp = array();
                 if (!empty($_POST["TAGS"])) {
                     $dbCategory = CBlogCategory::GetList(array(), array("BLOG_ID" => $arBlog["ID"]));
                     while ($arCategory = $dbCategory->Fetch()) {
                         $arCatBlog[ToLower($arCategory["NAME"])] = $arCategory["ID"];
                     }
                     $tags = explode(",", $_POST["TAGS"]);
                     foreach ($tags as $tg) {
                         $tg = trim($tg);
                         if (!in_array($arCatBlog[ToLower($tg)], $CATEGORYtmp)) {
                             if (IntVal($arCatBlog[ToLower($tg)]) > 0) {
                                 $CATEGORYtmp[] = $arCatBlog[ToLower($tg)];
                             } else {
                                 $CATEGORYtmp[] = CBlogCategory::Add(array("BLOG_ID" => $arBlog["ID"], "NAME" => $tg));
                                 BXClearCache(True, "/" . SITE_ID . "/blog/" . $arBlog["URL"] . "/category/");
开发者ID:rasuldev,项目名称:torino,代码行数:31,代码来源:component.php

示例12: InitBVar

$lAdmin->InitFilter($arFilterFields);
/********************************************************************
				Actions
********************************************************************/
InitBVar($find_id_exact_match);
InitBVar($find_question_exact_match);
$arFilter = array("ID" => $find_id, "ID_EXACT_MATCH" => $find_id_exact_match, "ACTIVE" => $find_active, "DIAGRAM" => $find_diagram, "REQUIRED" => $find_required, "QUESTION" => $find_question, "QUESTION_EXACT_MATCH" => $find_question_exact_match);
if ($lAdmin->EditAction() && $VOTE_RIGHT >= "W" && check_bitrix_sessid()) {
    foreach ($FIELDS as $ID => $arFields) {
        if (!$lAdmin->IsUpdated($ID)) {
            continue;
        }
        $DB->StartTransaction();
        InitBVar($arFields["REQUIRED"]);
        InitBVar($arFields["DIAGRAM"]);
        InitBVar($arFields["ACTIVE"]);
        $arFieldsStore = array("ACTIVE" => "'{$arFields['ACTIVE']}'", "DIAGRAM" => "'{$arFields['DIAGRAM']}'", "REQUIRED" => "'{$arFields['REQUIRED']}'", "C_SORT" => "'" . intval($arFields[C_SORT]) . "'", "QUESTION" => "'" . $DB->ForSql($arFields[QUESTION]) . "'");
        if (!$DB->Update("b_vote_question", $arFieldsStore, "WHERE ID='" . $ID . "'", $err_mess . __LINE__)) {
            $lAdmin->AddUpdateError(GetMessage("SAVE_ERROR") . $ID . ": " . GetMessage("VOTE_SAVE_ERROR"), $ID);
            $DB->Rollback();
        }
        $DB->Commit();
        global $CACHE_MANAGER;
        if (defined("BX_COMP_MANAGED_CACHE")) {
            $CACHE_MANAGER->ClearByTag("vote_form_question_" . $ID);
        }
    }
}
if (($arID = $lAdmin->GroupAction()) && $VOTE_RIGHT == "W" && check_bitrix_sessid()) {
    if ($_REQUEST['action_target'] == 'selected') {
        $arID = array();
开发者ID:spas-viktor,项目名称:books,代码行数:31,代码来源:vote_question_list.php

示例13: CAdminList

$lAdmin = new CAdminList($sTableID, $oSort);
$filter = new CAdminFilter($sTableID . "_filter_id", array(GetMessage("STAT_F_ID"), GetMessage("STAT_F_SESSION"), GetMessage("STAT_F_DATE"), GetMessage("STAT_F_GUEST_ID"), GetMessage("STAT_F_AUTH"), GetMessage("STAT_F_NEW_GUEST"), GetMessage("STAT_F_IP"), GetMessage("STAT_F_COUNTRY"), GetMessage("STAT_F_REGION"), GetMessage("STAT_F_CITY"), GetMessage("STAT_F_USER_AGENT"), GetMessage("STAT_F_COOKIE"), GetMessage("STAT_F_STOP"), GetMessage("STAT_F_STOP_LIST_ID"), GetMessage("STAT_F_PAGE"), GetMessage("STAT_F_LOGIC")));
$arFilterFields = array("find_id", "find_id_exact_match", "find_session_id", "find_session_id_exact_match", "find_date1", "find_date2", "find_guest_id", "find_guest_id_exact_match", "find_user", "find_user_exact_match", "find_registered", "find_new_guest", "find_ip", "find_ip_exact_match", "find_country_id", "find_country", "find_country_exact_match", "find_region", "find_region_exact_match", "find_city_id", "find_city", "find_city_exact_match", "find_user_agent", "find_user_agent_exact_match", "find_cookie", "find_cookie_exact_match", "find_stop", "find_stop_list_id", "find_stop_list_id_exact_match", "find_site_id", "find_url_404", "find_url", "find_url_exact_match", "FILTER_logic");
$lAdmin->InitFilter($arFilterFields);
InitBVar($find_id_exact_match);
InitBVar($find_url_exact_match);
InitBVar($find_user_exact_match);
InitBVar($find_guest_id_exact_match);
InitBVar($find_session_id_exact_match);
InitBVar($find_ip_exact_match);
InitBVar($find_user_agent_exact_match);
InitBVar($find_country_exact_match);
InitBVar($find_region_exact_match);
InitBVar($find_city_exact_match);
InitBVar($find_stop_list_id_exact_match);
InitBVar($find_cookie_exact_match);
AdminListCheckDate($lAdmin, array("find_date1" => $find_date1, "find_date2" => $find_date2));
$arFilter = array("ID" => $find_id, "SITE_ID" => $find_site_id, "URL" => $find_url, "URL_404" => $find_url_404, "USER" => $find_user, "NEW_GUEST" => $find_new_guest, "REGISTERED" => $find_registered, "GUEST_ID" => $find_guest_id, "SESSION_ID" => $find_session_id, "DATE_1" => $find_date1, "DATE_2" => $find_date2, "IP" => $find_ip, "USER_AGENT" => $find_user_agent, "COUNTRY" => $find_country, "COUNTRY_ID" => $find_country_id, "REGION" => $find_region, "CITY" => $find_city, "CITY_ID" => $find_city_id, "STOP" => $find_stop, "STOP_LIST_ID" => $find_stop_list_id, "COOKIE" => $find_cookie, "ID_EXACT_MATCH" => $find_id_exact_match, "URL_EXACT_MATCH" => $find_url_exact_match, "USER_EXACT_MATCH" => $find_user_exact_match, "GUEST_ID_EXACT_MATCH" => $find_guest_id_exact_match, "SESSION_ID_EXACT_MATCH" => $find_session_id_exact_match, "IP_EXACT_MATCH" => $find_ip_exact_match, "USER_AGENT_EXACT_MATCH" => $find_user_agent_exact_match, "COUNTRY_EXACT_MATCH" => $find_country_exact_match, "COUNTRY_ID_EXACT_MATCH" => $find_country_exact_match, "REGION_EXACT_MATCH" => $find_region_exact_match, "CITY_EXACT_MATCH" => $find_city_exact_match, "CITY_ID_EXACT_MATCH" => $find_city_exact_match, "STOP_LIST_ID_EXACT_MATCH" => $find_stop_list_id_exact_match, "COOKIE_EXACT_MATCH" => $find_cookie_exact_match);
$rsData = CHit::GetList($by, $order, $arFilter, $is_filtered);
$rsData = new CAdminResult($rsData, $sTableID);
$rsData->NavStart();
$lAdmin->NavText($rsData->GetNavPrint(GetMessage("STAT_HIT_PAGES")));
$arHeaders = array();
$arHeaders[] = array("id" => "ID", "content" => "ID", "sort" => "s_id", "default" => true);
$arHeaders[] = array("id" => "SESSION_ID", "content" => GetMessage("STAT_SESSION"), "sort" => "s_session_id", "default" => false);
$arHeaders[] = array("id" => "DATE_HIT", "content" => GetMessage("STAT_DATE"), "sort" => "s_date_hit", "default" => true);
$arHeaders[] = array("id" => "USER_ID", "content" => GetMessage("STAT_USER"), "sort" => "s_user_id", "default" => true);
$arHeaders[] = array("id" => "GUEST_ID", "content" => GetMessage("STAT_GUEST_ID"), "sort" => "s_guest_id", "default" => false);
$arHeaders[] = array("id" => "IP", "content" => GetMessage("STAT_IP"), "sort" => "s_ip", "default" => true);
$arHeaders[] = array("id" => "COUNTRY_ID", "content" => GetMessage("STAT_COUNTRY"), "sort" => "s_country_id", "default" => true);
$arHeaders[] = array("id" => "REGION_NAME", "content" => GetMessage("STAT_REGION"), "sort" => "s_region_name", "default" => false);
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:hit_list.php

示例14: Array

$arFilterFields = Array(
	"find_name",
	"find_name_exact_match",
	"find_id",
	"find_id_exact_match",
	"find_description",
	"find_description_exact_match",
	"find_site",
	);

$lAdmin->InitFilter($arFilterFields);//инициализация фильтра


foreach($arFilterFields as $key) 
{
	if (strpos($key, "_exact_match")!==false) InitBVar(${$key});
	$arFilter[strtoupper(substr($key,5))] = ${$key};
}


if ($bAdmin=="Y" && $lAdmin->EditAction()) //если идет сохранение со списка
{
	foreach($FIELDS as $ID => $arFields)
	{
		$ID = intval($ID);

		if(!$lAdmin->IsUpdated($ID))
			continue;

		$arFields["PRIORITY"] = intval($arFields["PRIORITY"]);
开发者ID:ASDAFF,项目名称:bitrix-5,代码行数:30,代码来源:ticket_sla_list.php

示例15: InitSorting

//Permissions
if (!($USER->IsAuthorized() && (CTicket::IsSupportClient() || CTicket::IsAdmin() || CTicket::IsSupportTeam()))) {
    $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
//Sorting
InitSorting();
if (strlen($GLOBALS["by"]) <= 0) {
    $GLOBALS["by"] = "s_timestamp";
    $GLOBALS["order"] = "s_timestamp";
}
//Filter
$FilterArr = array("find_id", "find_id_exact_match", "find_site", "find_lamp", "find_close", "find_title", "find_title_exact_match", "find_message", "find_message_exact_match");
_InitFilter($FilterArr);
InitBVar($_REQUEST["find_id_exact_match"]);
InitBVar($_REQUEST["find_title_exact_match"]);
InitBVar($_REQUEST["find_message_exact_match"]);
$arFilter = array("ID" => $_REQUEST["find_id"], "ID_EXACT_MATCH" => $_REQUEST["find_id_exact_match"], "LAMP" => $_REQUEST["find_lamp"], "CLOSE" => $_REQUEST["find_close"], "TITLE" => $_REQUEST["find_title"], "TITLE_EXACT_MATCH" => $_REQUEST["find_title_exact_match"], "MESSAGE" => $_REQUEST["find_message"], "MESSAGE_EXACT_MATCH" => $_REQUEST["find_message_exact_match"]);
if (strlen($arParams["SITE_ID"]) > 0) {
    $arFilter["LID"] = $arParams["SITE_ID"];
}
//TICKET_EDIT_TEMPLATE
$arParams["TICKET_EDIT_TEMPLATE"] = trim($arParams["TICKET_EDIT_TEMPLATE"]);
$arParams["TICKET_EDIT_TEMPLATE"] = strlen($arParams["TICKET_EDIT_TEMPLATE"]) > 0 ? htmlspecialcharsbx($arParams["TICKET_EDIT_TEMPLATE"]) : "ticket_edit.php?ID=#ID#";
//TICKETS_PER_PAGE
$arParams["TICKETS_PER_PAGE"] = intval($arParams["TICKETS_PER_PAGE"]) <= 0 ? 50 : intval($arParams["TICKETS_PER_PAGE"]);
//Get Tickets
CPageOption::SetOptionString("main", "nav_page_in_session", "N");
$UFA = array();
$UFAT = array();
global $USER_FIELD_MANAGER;
$arrUF = $USER_FIELD_MANAGER->GetUserFields("SUPPORT", 0, LANGUAGE_ID);
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:component.php


注:本文中的InitBVar函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。