本文整理汇总了PHP中GetFilterParams函数的典型用法代码示例。如果您正苦于以下问题:PHP GetFilterParams函数的具体用法?PHP GetFilterParams怎么用?PHP GetFilterParams使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了GetFilterParams函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: intr_SelectorTplShowSection
function intr_SelectorTplShowSection($ID, $arSections, $arParams, $arResult)
{
if (0 == $ID) {
$num = count($arSections[$ID]);
if ($num <= 0) {
return;
}
$num_per_column = ceil($num / $arParams['COLUMNS']);
$width = floor(90 / ($num_per_column > 1 ? $arParams['COLUMNS'] : $num));
}
if (is_array($arSections[$ID])) {
echo '<ul' . ($ID <= 0 ? ' class="bx-users-sections" style="width: ' . $width . '%"' : '') . '>';
$cnt = 0;
foreach ($arSections[$ID] as $key => $arSect) {
$arClassName = array();
if ($ID <= 0) {
$arClassName[] = 'bx-users-section-top';
}
if ($arResult['FILTER_VALUES'][$arParams['FILTER_NAME'] . '_UF_DEPARTMENT'] == $arSect['ID']) {
$arClassName[] = 'bx-users-section-current selected';
}
echo '<li' . (count($arClassName) > 0 ? ' class="' . implode(' ', $arClassName) . '"' : '') . '>';
echo '<a href="' . $arParams['LIST_URL'] . '?set_filter_' . $arParams['FILTER_NAME'] . '=Y&' . $arParams['FILTER_NAME'] . '_UF_DEPARTMENT=' . intval($arSect['ID']) . GetFilterParams($arResult['FILTER_PARAMS']) . '"' . (count($arClassName) > 0 ? ' class="' . implode(' ', $arClassName) . '"' : '') . '>' . htmlspecialcharsbx($arSect['NAME']) . '</a>';
intr_SelectorTplShowSection($arSect['ID'], $arSections, $arParams, $arResult);
echo '</li>';
if ($ID == 0 && ++$cnt >= $num_per_column) {
echo '</ul>';
if ($key < $num - 1) {
echo '<ul class="bx-users-sections" style="width: ' . $width . '%">';
}
$cnt = 0;
}
}
echo '</ul>';
}
}
示例2: htmlspecialcharsbx
?><tr id="tr_COUPON" class="adm-detail-required-field">
<td width="40%"><? echo $tabControl->GetCustomLabelHTML(); ?></td>
<td width="60%" id="td_COUPON_VALUE">
<input type="text" id="COUPON" name="COUPON" size="32" maxlength="32" value="<? echo htmlspecialcharsbx($arCoupon['COUPON']); ?>" />
<input type="button" value="<? echo GetMessage("DSC_CPN_GEN") ?>" id="COUPON_GENERATE">
</td>
</tr><?
$tabControl->EndCustomField('COUPON',
'<input type="hidden" name="COUPON" value="'.htmlspecialcharsbx($arCoupon['COUPON']).'">'
);
$tabControl->AddCalendarField('DATE_APPLY', GetMessage("DDSC_CPN_DATE").':', $arCoupon['DATE_APPLY']);
$tabControl->AddTextField("DESCRIPTION", GetMessage("DSC_CPN_DESCRIPTION").':', htmlspecialcharsbx($arCoupon['DESCRIPTION']), array("cols" => 50, 'rows' => 6));
$arButtonsParams = array(
"disabled" => $bReadOnly,
"back_url" => "/bitrix/admin/cat_discount_coupon.php?lang=".LANGUAGE_ID.GetFilterParams("filter_", false)
);
$tabControl->Buttons($arButtonsParams);
$tabControl->Show();
$tabControl->ShowWarnings("tabControl", $obMessages);
echo BeginNote();
?><span class="required" style="vertical-align: super; font-size: smaller;">1</span> <? echo GetMessage('DSC_CPN_ONE_ORDER_NOTE');
echo EndNote();
?><script type="text/javascript">
BX.ready(function(){
var obCouponValue = BX('COUPON');
var obCouponBtn = BX('COUPON_GENERATE');
if (!!obCouponValue && !!obCouponBtn)
示例3: array
}
}
if ($bContinue) {
continue;
}
}
$arReports[] = array("TEXT" => $rep_title, "ONCLICK" => "window.open('/bitrix/admin/sale_order_print_new.php?&ORDER_ID=" . $ID . "&doc=" . substr($file, 0, strlen($file) - 4) . "&" . bitrix_sessid_get() . "', '_blank');");
}
}
}
closedir($handle);
}
}
$aMenu[] = array("TEXT" => Loc::getMessage("SALE_OVIEW_TO_PRINT"), "TITLE" => Loc::getMessage("SALE_OVIEW_TO_PRINT_TITLE"), "LINK" => "/bitrix/admin/sale_order_print.php?ID=" . $ID . "&lang=" . LANGUAGE_ID . GetFilterParams("filter_"), "MENU" => $arReports);
$aMenu[] = array("TEXT" => Loc::getMessage("SALE_OVIEW_ORDER_COPY"), "TITLE" => Loc::getMessage("SALE_OVIEW_ORDER_COPY_TITLE"), "LINK" => '/bitrix/admin/sale_order_create.php?lang=' . LANGUAGE_ID . "&SITE_ID=" . $saleOrder->getSiteId() . "&ID=" . $ID . "&" . bitrix_sessid_get() . GetFilterParams("filter_"));
$aMenu[] = array("TEXT" => Loc::getMessage("SALE_OVIEW_DELETE"), "TITLE" => Loc::getMessage("SALE_OVIEW_DELETE_TITLE"), "LINK" => "javascript:if(confirm('" . GetMessageJS("SALE_OVIEW_DEL_MESSAGE") . "')) window.location='sale_order.php?ID=" . $ID . "&action=delete&lang=" . LANGUAGE_ID . "&" . bitrix_sessid_get() . urlencode(GetFilterParams("filter_")) . "'", "WARNING" => "Y");
$context = new CAdminContextMenu($aMenu);
$context->Show();
//prepare blocks order
$defaultBlocksOrder = array("statusorder", "buyer", "delivery", "financeinfo", "payment", "additional", "basket");
$formId = "sale_order_view";
$orderBasket = new Admin\Blocks\OrderBasket($saleOrder, "BX.Sale.Admin.OrderBasketObj", "sale_order_basket", true, Admin\Blocks\OrderBasket::VIEW_MODE);
echo Admin\OrderEdit::getScripts($saleOrder, $formId);
echo Admin\Blocks\OrderInfo::getScripts();
echo Admin\Blocks\OrderBuyer::getScripts();
echo Admin\Blocks\OrderPayment::getScripts();
echo Admin\Blocks\OrderStatus::getScripts($saleOrder, $USER->GetID());
echo Admin\Blocks\OrderAdditional::getScripts();
echo Admin\Blocks\OrderFinanceInfo::getScripts();
echo Admin\Blocks\OrderShipment::getScripts();
echo Admin\Blocks\OrderAnalysis::getScripts();
示例4: CalendarPeriod
:</td>
<td><?php
echo CalendarPeriod("filter_active_from_from", htmlspecialcharsex($filter_active_from_from), "filter_active_from_to", htmlspecialcharsex($filter_active_from_to), "filter_active_from");
?>
</td>
</tr>
<tr>
<td><?php
echo GetMessage("LEARNING_ADMIN_GROUPS_ACTIVE_TO");
?>
:</td>
<td><?php
echo CalendarPeriod("filter_active_to_from", htmlspecialcharsex($filter_active_to_from), "filter_active_to_to", htmlspecialcharsex($filter_active_to_to), "filter_active_to");
?>
</td>
</tr>
<?php
$filter->Buttons(array("table_id" => $sTableID, "url" => $APPLICATION->GetCurPage() . "?" . GetFilterParams("filter_"), "form" => "form1"));
$filter->End();
?>
</form>
<?php
$lAdmin->DisplayList();
?>
<?php
require $_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/main/include/epilog_admin.php";
示例5: array
}
}
else
{
for (i=0; ; i++)
{
var el = form.elements['ANSWER_n'+i+'_CORRECT'];
if (el)
{
if (el.checked == true)
return true;
}
else
return false;
}
}
return false;
}
</script>
<?php
} else {
//!bBadCourse
$aContext = array(array("ICON" => "btn_list", "TEXT" => GetMessage("MAIN_ADMIN_MENU_LIST"), "LINK" => "learn_unilesson_admin.php?lang=" . LANG . '&LESSON_PATH=' . $uriParentLessonPath . GetFilterParams("filter_"), "TITLE" => GetMessage("LEARNING_BACK_TO_ADMIN")));
$context = new CAdminContextMenu($aContext);
$context->Show();
CAdminMessage::ShowMessage(GetMessage("LEARNING_BAD_COURSE"));
}
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
示例6: GetMessage
if (is_array($find_events) && count($find_events) > 0) {
$arrDays = CStatEventType::GetGraphArray($arFilter, $arrLegend);
if (function_exists("ImageCreate")) {
if (strlen($strError) <= 0 && count($arrLegend) > 0 && count($arrDays) > 1) {
$width = COption::GetOptionString("statistic", "GRAPH_WEIGHT");
$height = COption::GetOptionString("statistic", "GRAPH_HEIGHT");
?>
<div class="graph">
<?php
if ($summa == "Y") {
echo GetMessage("STAT_SUMMARIZED");
}
?>
<table cellpadding="0" cellspacing="0" border="0" class="graph" align="center"><tr><td>
<img class="graph" src="event_graph.php?<?php
echo GetFilterParams($FilterArr);
?>
&width=<?php
echo $width;
?>
&height=<?php
echo $height;
?>
&lang=<?php
echo LANG;
?>
" width="<?php
echo $width;
?>
" height="<?php
echo $height;
示例7: GetMessage
</td>
</tr>
<tr>
<td><?php
echo GetMessage("MURL_RULE");
?>
:</td>
<td>
<input type="text" name="RULE" size="50" maxlength="250" value="<?php
echo $str_RULE;
?>
">
</td>
</tr>
<?php
$tabControl->EndTab();
?>
<?php
$tabControl->Buttons(array("disabled" => !$isAdmin, "back_url" => "/bitrix/admin/urlrewrite_list.php?lang=" . LANG . "&filter_site_id=" . UrlEncode($site_id) . "&" . GetFilterParams("filter_", false)));
$tabControl->End();
?>
</form>
<?php
$tabControl->ShowWarnings("form1", $message);
?>
<?php
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
示例8: GetFilterParams
<?php
}
?>
<?php
}
?>
</table>
</td>
</tr>
<?php
$tabControl->EndCustomField("ANSWER");
?>
<?php
$tabControl->Buttons(array("back_url" => "learn_test_result_admin.php?lang=" . LANG . "&ATTEMPT_ID=" . $ATTEMPT_ID . GetFilterParams("filter_", false)));
$tabControl->arParams["FORM_ACTION"] = $APPLICATION->GetCurPage() . "?lang=" . LANG . "&ATTEMPT_ID=" . $ATTEMPT_ID . GetFilterParams("filter_");
$tabControl->Show();
?>
<script type="text/javascript">
function OnChangeAnswered(val)
{
document.forms["testResultTabControl_form"].elements['POINT'].disabled = !val;
document.forms["testResultTabControl_form"].elements['CORRECT'].disabled = !val && !document.forms["testResultTabControl_form"].elements['ANSWERED'].checked;
var r = document.forms["testResultTabControl_form"].elements['RESPONSE[]'];
if (!r)
return;
for (i=0; i < r.length; i++)
示例9: unset
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
die;
}
$bChecked = false;
if ($arResult['FILTER_VALUES'][$arParams['FILTER_NAME'] . '_IS_ONLINE']) {
if ($key = array_search($arParams['FILTER_NAME'] . '_IS_ONLINE', $arResult['FILTER_PARAMS'], true)) {
$bChecked = true;
unset($arResult['FILTER_PARAMS'][$key]);
}
}
$arParams['LIST_URL'] .= strpos($arParams['LIST_URL'], '?') === false ? '?' : '&';
$arExtraVars = array('current_view' => $arParams['CURRENT_VIEW'], 'current_filter' => $arParams['CURRENT_FILTER']);
$extraUrl = 'set_filter_' . $arParams['FILTER_NAME'] . '=Y' . GetFilterParams($arResult['FILTER_PARAMS'], true, $arExtraVars);
// ajax mode hack - especially for complex component
if ($arParams['AJAX_MODE'] == 'Y') {
$url = CAjax::AddSessionParam($arParams['LIST_URL'] . $extraUrl, $arParams['AJAX_ID']);
$onclick = 'jsAjaxUtil.InsertDataToNode(\'' . CUtil::JSEscape($url) . '\' + (this.checked ? \'' . CUtil::JSEscape('&' . $arParams['FILTER_NAME'] . '_IS_ONLINE=Y') . '\' : \'\'), \'comp_' . $arParams['AJAX_ID'] . '\', ' . ($arParams['AJAX_OPTION_SHADOW'] == 'Y' ? 'true' : 'false') . ');';
} else {
$onclick = 'window.location.href=\'' . CUtil::JSEscape($arParams['LIST_URL'] . $extraUrl) . '\' + (this.checked ? \'' . CUtil::JSEscape('&' . $arParams['FILTER_NAME'] . '_IS_ONLINE=Y') . '\' : \'\')';
}
?>
<input type="checkbox" name="<?php
echo $arParams['FILTER_NAME'] . '_IS_ONLINE';
?>
" value="Y" <?php
echo $bChecked ? 'checked="checked"' : '';
?>
id="<?php
echo $arParams['FILTER_NAME'] . '_IS_ONLINE';
示例10: array
$arActions[] = array("ICON" => "edit", "DEFAULT" => "Y", "TEXT" => GetMessage("MAIN_ADMIN_MENU_EDIT"), "ACTION" => $lAdmin->ActionRedirect($editUrl));
/*
$arActions[] = array(
"ICON"=>"copy",
"TEXT"=>GetMessage("MAIN_ADMIN_ADD_COPY"),
"ACTION"=>$lAdmin->ActionRedirect("learn_course_edit.php?COPY_ID=".$f_ID));
*/
$arActions[] = array("SEPARATOR" => true);
$arActions[] = array("ICON" => "delete", "TEXT" => GetMessage("MAIN_ADMIN_MENU_DELETE"), "ACTION" => "if(confirm('" . GetMessageJS('LEARNING_CONFIRM_DEL_MESSAGE') . "')) " . $lAdmin->ActionDoGroup($f_ID, "delete", 'LESSON_PATH=' . $uriLessonPath));
$row->AddActions($arActions);
}
// list footer
$lAdmin->AddFooter(array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $rsData->SelectedRowsCount()), array("counter" => true, "title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => "0")));
// group actions buttons
$lAdmin->AddGroupActionTable(array("self" => GetMessage("LEARNING_ACTION_SELF"), "deself" => GetMessage("LEARNING_ACTION_DESELF"), "activate" => GetMessage("MAIN_ADMIN_LIST_ACTIVATE"), "deactivate" => GetMessage("MAIN_ADMIN_LIST_DEACTIVATE"), "required" => GetMessage("MAIN_ADMIN_LIST_REQUIRED"), "derequired" => GetMessage("MAIN_ADMIN_LIST_NOT_REQUIRED"), "delete" => GetMessage("MAIN_ADMIN_LIST_DELETE")));
$arContextPopup = array(array("TEXT" => GetMessage('LEARNING_SINGLE_CHOICE'), "LINK" => "learn_question_edit.php?lang=" . LANG . '&LESSON_PATH=' . $uriLessonPath . "&QUESTION_TYPE=S" . GetFilterParams("filter_", false) . $str_from), array("TEXT" => GetMessage('LEARNING_MULTIPLE_CHOICE'), "LINK" => "learn_question_edit.php?lang=" . LANG . '&LESSON_PATH=' . $uriLessonPath . "&QUESTION_TYPE=M" . GetFilterParams("filter_", false) . $str_from), array("TEXT" => GetMessage('LEARNING_SORTING'), "LINK" => "learn_question_edit.php?lang=" . LANG . '&LESSON_PATH=' . $uriLessonPath . "&QUESTION_TYPE=R" . GetFilterParams("filter_", false) . $str_from), array("TEXT" => GetMessage('LEARNING_TEXT_ANSWER'), "LINK" => "learn_question_edit.php?lang=" . LANG . '&LESSON_PATH=' . $uriLessonPath . "&QUESTION_TYPE=T" . GetFilterParams("filter_", false) . $str_from));
$aContext = array(array("ICON" => "btn_new", "TEXT" => GetMessage("LEARNING_ADD"), "TITLE" => GetMessage("LEARNING_ADD_ALT"), "MENU" => $arContextPopup));
$lAdmin->AddAdminContextMenu($aContext);
// list mode check (if AJAX then terminate the script)
$lAdmin->CheckListMode();
$APPLICATION->SetTitle($arLesson['NAME'] . ': ' . GetMessage('LEARNING_QUESTION'));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
$filter = new CAdminFilter($sTableID . "_filter", array(GetMessage("LEARNING_NAME"), GetMessage("LEARNING_F_SELF"), GetMessage("LEARNING_F_ACTIVE2"), GetMessage("LEARNING_F_CORRECT_REQUIRED")));
?>
<form method="GET" action="<?php
echo $APPLICATION->GetCurPage();
?>
" name="find_form" onsubmit="return this.set_filter.onclick();">
<input type="hidden" name="LESSON_PATH" value="<?php
echo htmlspecialcharsbx(urldecode($uriLessonPath));
?>
示例11: GetMessage
?>
;">
<td width="40%"><?php
echo GetMessage('BX_SALE_DISCOUNT_EDIT_FIELDS_COUPON_MAX_USE');
?>
</td>
<td width="60%"><input type="text" name="COUPON[MAX_USE]" value="<?php
echo $coupons['COUPON_MAX_USE'] > 0 ? $coupons['COUPON_MAX_USE'] : '';
?>
"></td>
</tr><?php
}
$control->EndCustomField('COUPONS');
$control->BeginNextFormTab();
$control->AddEditField("XML_ID", GetMessage("BT_SALE_DISCOUNT_EDIT_FIELDS_XML_ID") . ":", false, array("size" => 50, "maxlength" => 255), htmlspecialcharsbx($arDiscount['XML_ID']));
$control->Buttons(array("disabled" => $saleModulePermissions < "W", "back_url" => "/bitrix/admin/sale_discount.php?lang=" . LANGUAGE_ID . GetFilterParams("filter_")));
$control->Show();
?>
<script type="text/javascript">
BX.ready(function(){
var obCouponAdd = BX('COUPON_ADD_Y'),
obCouponType = BX('tr_COUPON_TYPE'),
obCouponCount = BX('tr_COUPON_COUNT'),
obCouponPeriod = BX('tr_COUPON_PERIOD'),
obCouponMaxUse = BX('tr_COUPON_MAX_USE');
if (!!obCouponAdd && (!!obCouponType || !!obCouponCount || !!obCouponPeriod || !!obCouponMaxUse))
{
BX.bind(obCouponAdd, 'click', function(){
if (!!obCouponType)
BX.style(obCouponType, 'display', (obCouponAdd.checked ? 'table-row' : 'none'));
示例12: GetMessage
echo GetMessage("LDAP_EDIT_SYNC_PERIOD_H");
?>
</td>
</tr>
<tr>
<td><?php
echo GetMessage("LDAP_EDIT_SYNC_ATTR");
?>
</td>
<td><input type="text" id="SYNC_ATTR" name="SYNC_ATTR" size="20" maxlength="255" value="<?php
echo $str_SYNC_ATTR;
?>
"></td>
</tr>
<?php
$tabControl->Buttons(array("disabled" => $MOD_RIGHT < "W", "back_url" => "ldap_server_admin.php?lang=" . LANG . GetFilterParams("filter_", false)));
$tabControl->End();
?>
</form>
<?php
$tabControl->ShowWarnings("form1", $message);
?>
<a name="notes" ></a>
<?php
echo BeginNote();
?>
<span class="required">**</span> <?php
echo GetMessage("LDAP_EDIT_SYNC_NOTES");
echo EndNote();
示例13: GetMessage
if (CModule::IncludeModule("mail"))
{
$arr["unmark_spam"] = GetMessage("SUP_UNMARK_SPAM");
$arr["maybe_spam"] = GetMessage("SUP_MAYBE_SPAM");
}
}
$lAdmin->AddGroupActionTable($arr);
$aContext = array(
array(
"ICON" => "btn_new",
"TEXT"=>GetMessage("MAIN_ADD"),
"LINK"=>"ticket_edit.php?lang=".LANG.GetFilterParams("filter_"),
"TITLE"=>GetMessage("MAIN_ADD")
),
);
$lAdmin->AddAdminContextMenu($aContext);
$lAdmin->CheckListMode();
$APPLICATION->SetTitle(GetMessage("SUP_TICKETS_TITLE"));
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php");
?>
示例14: GetMessage
?>
:</td>
<td width="60%">
<input type="checkbox" name="ACTIVE" value="Y"<?php
if ($str_ACTIVE == "Y") {
echo " checked";
}
?>
/>
</td>
</tr>
<tr>
<td width="40%"><?php
echo GetMessage("CVAT_SORT");
?>
:</td>
<td width="60%">
<input type="text" name="C_SORT" value="<?php
echo $str_C_SORT;
?>
" size="5" />
</td>
</tr>
<?php
$tabControl->EndTab();
$tabControl->Buttons(array("disabled" => $bReadOnly, "back_url" => "/bitrix/admin/cat_vat_admin.php?lang=" . LANG . "&" . GetFilterParams("filter_", false)));
$tabControl->End();
?>
</form>
<?php
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
示例15: foreach
foreach ($arLang as $key => $val) {
?>
<tr class="adm-detail-required-field">
<td><?php
echo $val["NAME"];
?>
[<?php
echo $key;
?>
]:</td>
<td><input type="text" name="NAME_<?php
echo $key;
?>
" value="<?php
echo $arSmile["LANG"][$key]["NAME"];
?>
" size="40" /></td>
</tr>
<?php
}
?>
<?php
$tabControl->EndTab();
$tabControl->Buttons(array("disabled" => $forumPermissions < "W", "back_url" => "/bitrix/admin/forum_smile.php?lang=" . LANG . "&" . GetFilterParams("filter_", false)));
?>
</form>
<?php
$tabControl->End();
$tabControl->ShowWarnings("fform", $message);
require $DOCUMENT_ROOT . "/bitrix/modules/main/include/epilog_admin.php";