本文整理匯總了PHP中ShowFilterLogicHelp函數的典型用法代碼示例。如果您正苦於以下問題:PHP ShowFilterLogicHelp函數的具體用法?PHP ShowFilterLogicHelp怎麽用?PHP ShowFilterLogicHelp使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了ShowFilterLogicHelp函數的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: call_user_func_array
):</td>
<td>
<?php
if (array_key_exists("GetAdminFilterHTML", $arProp["PROPERTY_USER_TYPE"])) {
echo "<script type='text/javascript'>var arClearHiddenFields = [];</script>";
echo call_user_func_array($arProp["PROPERTY_USER_TYPE"]["GetAdminFilterHTML"], array($arProp, array("VALUE" => "_REQUEST[find_sub_el_property_" . $arProp["ID"] . ']')));
} elseif ($arProp["PROPERTY_TYPE"] == 'S') {
?>
<input type="text" name="filter_sub_el_property_<?php
echo $arProp["ID"];
?>
" value="<?php
echo htmlspecialcharsex($_REQUEST["filter_sub_el_property_" . $arProp["ID"]]);
?>
" size="30"> <?php
echo ShowFilterLogicHelp();
?>
<?php
} elseif ($arProp["PROPERTY_TYPE"] == 'N' || $arProp["PROPERTY_TYPE"] == 'E') {
?>
<input type="text" name="filter_sub_el_property_<?php
echo $arProp["ID"];
?>
" value="<?php
echo htmlspecialcharsex($_REQUEST["filter_sub_el_property_" . $arProp["ID"]]);
?>
" size="30">
<?php
} elseif ($arProp["PROPERTY_TYPE"] == 'L') {
?>
<select name="filter_sub_el_property_<?php
示例2: GetTextFilter
function GetTextFilter($FID, $size = "45", $field_text = "class=\"inputtext\"", $field_checkbox = "class=\"inputcheckbox\"")
{
$var = "find_" . $FID;
$var_exec_match = "find_" . $FID . "_exact_match";
global ${$var}, ${$var_exec_match};
$checked = ${$var_exec_match} == "Y" ? "checked" : "";
return '<input ' . $field_text . ' type="text" name="' . $var . '" size="' . $size . '" value="' . htmlspecialcharsbx(${$var}) . '"><input ' . $field_checkbox . ' type="checkbox" value="Y" name="' . $var . '_exact_match" title="' . GetMessage("FORM_EXACT_MATCH") . '" ' . $checked . '>' . ShowFilterLogicHelp();
}
示例3: foreach
foreach ($arSKUProps as $arProp) {
?>
<tr>
<td><? echo ('' != $strSKUName ? $strSKUName . ' - ' : ''), $arProp["NAME"]; ?>:</td>
<td>
<?
if (!empty($arProp["PROPERTY_USER_TYPE"]) && isset($arProp["PROPERTY_USER_TYPE"]["GetAdminFilterHTML"])) {
echo call_user_func_array($arProp["PROPERTY_USER_TYPE"]["GetAdminFilterHTML"], array(
$arProp,
array(
"VALUE" => "find_sub_el_property_" . $arProp["ID"],
"TABLE_ID" => $sTableID,
),
));
} elseif ($arProp["PROPERTY_TYPE"] == 'S') {
?><input type="text" name="find_sub_el_property_<?= $arProp["ID"] ?>" value="<? echo htmlspecialcharsex(${"find_sub_el_property_" . $arProp["ID"]}) ?>" size="30"> <?= ShowFilterLogicHelp(); ?><?
} elseif ($arProp["PROPERTY_TYPE"] == 'N' || $arProp["PROPERTY_TYPE"] == 'E') {
?><input type="text" name="find_sub_el_property_<?= $arProp["ID"] ?>" value="<? echo htmlspecialcharsex(${"find_sub_el_property_" . $arProp["ID"]}) ?>" size="30"><?
} elseif ($arProp["PROPERTY_TYPE"] == 'L') {
?><select name="find_sub_el_property_<?= $arProp["ID"] ?>">
<option value=""><? echo GetMessage("IBLOCK_VALUE_ANY") ?></option>
<option value="NOT_REF"><? echo GetMessage("IBLOCK_ELEMENT_EDIT_NOT_SET") ?></option><?
$dbrPEnum = CIBlockPropertyEnum::GetList(array("SORT" => "ASC", "NAME" => "ASC"), array("PROPERTY_ID" => $arProp["ID"]));
while ($arPEnum = $dbrPEnum->GetNext()) {
?><option value="<?= $arPEnum["ID"] ?>"<? if (${"find_sub_el_property_" . $arProp["ID"]} == $arPEnum["ID"]) echo " selected" ?>><?= $arPEnum["VALUE"] ?></option><?
}
?></select><?
}
elseif ($arProp["PROPERTY_TYPE"] == 'G') {
echo _ShowGroupPropertyField2('find_sub_el_property_' . $arProp["ID"], $arProp, ${'find_sub_el_property_' . $arProp["ID"]});
}
示例4: ShowFilter
protected function ShowFilter()
{
global $APPLICATION;
global $filter_name, $filter_uid, $filter_active, $filter_creator_id, $filter_keywords, $filter_lesson_type;
?>
<form name="form1" method="GET" action="<?php
echo $APPLICATION->GetCurPage();
?>
" onsubmit="return this.set_filter.onclick();">
<?php
$this->oFilter->Begin();
?>
<tr>
<td><b><?php
echo GetMessage('LEARNING_NAME');
?>
:</b></td>
<td><input type="text" name="filter_name" value="<?php
echo htmlspecialcharsbx($filter_name);
?>
"
size="47"> <?php
ShowFilterLogicHelp();
?>
</td>
</tr>
<tr>
<td>ID:</b></td>
<td><input type="text" name="filter_uid" value="<?php
echo htmlspecialcharsbx($filter_uid);
?>
" size="47"></td>
</tr>
<tr>
<td><?php
echo GetMessage('LEARNING_COURSE_ADM_CREATED2');
?>
:</b></td>
<td><input type="text" name="filter_creator_id" value="<?php
echo htmlspecialcharsbx($filter_creator_id);
?>
" size="47"></td>
</tr>
<tr>
<td><?php
echo GetMessage('LEARNING_F_ACTIVE');
?>
:</td>
<td>
<?php
$arr = array('reference' => array(GetMessage('LEARNING_YES'), GetMessage('LEARNING_NO')), 'reference_id' => array('Y', 'N'));
echo SelectBoxFromArray('filter_active', $arr, htmlspecialcharsEx($filter_active), GetMessage('LEARNING_ALL'));
?>
</td>
</tr>
<tr>
<td><?php
echo GetMessage('LEARNING_KEYWORDS');
?>
:</b></td>
<td><input type="text" name="filter_keywords" value="<?php
echo htmlspecialcharsbx($filter_keywords);
?>
" size="47"></td>
</tr>
<tr>
<td><?php
echo GetMessage('LEARNING_FILTER_TYPE_OF_UNILESSON');
?>
:</td>
<td>
<?php
$arr = array('reference' => array(GetMessage('LEARNING_FILTER_TYPE_COURSE'), GetMessage('LEARNING_FILTER_TYPE_LESSON_WITH_CHILDS'), GetMessage('LEARNING_FILTER_TYPE_LESSON_WO_CHILDS')), 'reference_id' => array('COURSE', 'LESSON_WITH_CHILDS', 'LESSON_WO_CHILDS'));
echo SelectBoxFromArray('filter_lesson_type', $arr, htmlspecialcharsEx($filter_lesson_type), GetMessage('LEARNING_ALL'));
?>
</td>
</tr>
<?php
/*
if ($this->requestedParentLessonId != -2) // magic number '-2' is means 'List lessons, without relation to parent'
{
?>
<tr>
<td>SORT:</b></td>
<td><input type="text" name="filter_sort" value="<?php echo htmlspecialcharsbx($_GET['filter_sort']); ?>" size="47"></td>
</tr>
<?php
}
*/
$strTmpLessonPath = '';
if (isset($_GET['LESSON_PATH'])) {
$strTmpLessonPath = $_GET['LESSON_PATH'];
}
$this->oFilter->Buttons(array('table_id' => $this->tableID, 'url' => $APPLICATION->GetCurPage() . '?PARENT_LESSON_ID=' . $this->requestedParentLessonId . '&' . $this->hrefSearchRetPoint . '&LESSON_PATH=' . $strTmpLessonPath, 'form' => 'form1'));
//.........這裏部分代碼省略.........
示例5: GetMessage
</tr>
<tr>
<td><?echo GetMessage("STAT_F_ADV_BACK")?>:</td>
<td><?echo SelectBoxFromArray("find_adv_back", $arrYN, $adminFilter["find_adv_back"], GetMessage("MAIN_ALL"));?></td>
</tr>
<tr>
<td><?echo GetMessage("STAT_FIRST_FROM_PAGE")?>:</td>
<td><input type="text" name="find_first_from" size="34" value="<?echo htmlspecialcharsbx($adminFilter["find_first_from"])?>"><?=ShowExactMatchCheckbox("find_first_from")?> <?=ShowFilterLogicHelp()?></td>
</tr>
<tr>
<td><?echo GetMessage("STAT_F_URL_LAST")?>:</td>
<td><?
echo SelectBoxFromArray("find_last_site_id", $arSiteDropdown, $adminFilter["find_last_site_id"], GetMessage("STAT_D_SITE"));
?> <?
echo SelectBoxFromArray("find_url_last_404", $arr, $adminFilter["find_url_last_404"], GetMessage("STAT_404"));
?> <input type="text" name="find_url_last" size="34" value="<?echo htmlspecialcharsbx($adminFilter["find_url_last"])?>"><?=ShowExactMatchCheckbox("find_url_last")?> <?=ShowFilterLogicHelp()?></td>
</tr>
<?
$filter->Buttons(array(
"table_id" => $sTableID,
"url" => $APPLICATION->GetCurPage(),
"form" => "form1",
));
$filter->End();?>
</form>
<?
$lAdmin->DisplayList();
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_admin.php");?>
示例6: array
<td><?
$ref = array(GetMessage("SUP_ALL"));
$ref_id = array("ALL");
$rs = CSite::GetList(($v1="sort"), ($v2="asc"));
while ($ar = $rs->Fetch())
{
$ref[] = "[".$ar["ID"]."] ".$ar["NAME"];
$ref_id[] = $ar["ID"];
}
echo SelectBoxMFromArray("find_site[]", array("reference" => $ref, "reference_id" => $ref_id), $find_site, "",false,"4");
?></td>
</tr>
<tr>
<td><?=GetMessage("SUP_DESCRIPTION")?>:</td>
<td><input type="text" name="find_description" size="47" value="<?=htmlspecialcharsbx($find_description)?>"><?=InputType("checkbox", "find_description_exact_match", "Y", $find_description_exact_match, false, "", "title='".GetMessage("SUP_EXACT_MATCH")."'")?> <?=ShowFilterLogicHelp()?></td>
</tr>
<?
$filter->Buttons(array("table_id"=>$sTableID, "url"=>$APPLICATION->GetCurPage(), "form"=>"form1"));
$filter->End();
?>
</form>
<?
$lAdmin->DisplayList();
?>