本文整理汇总了PHP中CIntranetUtils::ShowDepartmentFilter方法的典型用法代码示例。如果您正苦于以下问题:PHP CIntranetUtils::ShowDepartmentFilter方法的具体用法?PHP CIntranetUtils::ShowDepartmentFilter怎么用?PHP CIntranetUtils::ShowDepartmentFilter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CIntranetUtils
的用法示例。
在下文中一共展示了CIntranetUtils::ShowDepartmentFilter方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
: </td>
<td>
<?php
if ($arResult['CURRENT_USER']['DEPARTMENT_TOP']) {
?>
<input type="checkbox" id="only_mine_office" onclick="BXChangeFilterTop_adv(this)" <?php
echo $arResult['FILTER_VALUES'][$arParams['FILTER_NAME'] . '_UF_DEPARTMENT'] == $arResult['CURRENT_USER']['DEPARTMENT_TOP'] || $arResult['FILTER_VALUES'][$arParams['FILTER_NAME'] . '_UF_DEPARTMENT'] == array($arResult['CURRENT_USER']['DEPARTMENT_TOP']) ? 'checked="checked"' : '';
?>
/>
<label for="only_mine_office"><?php
echo GetMessage('INTR_ISS_PARAM_DEPARTMENT_MINE');
?>
</label><br />
<?php
}
CIntranetUtils::ShowDepartmentFilter($arResult['UF_DEPARTMENT_field'], $arResult['bVarsFromForm']);
?>
</td>
</tr><tr>
<?php
}
?>
<td class="bx-filter-caption"><?php
echo GetMessage('INTR_ISS_PARAM_POST');
?>
: </td>
<td><input type="text" name="<?php
echo $arParams['FILTER_NAME'];
?>
_POST" value="<?php
echo $arResult['FILTER_VALUES'][$arParams['FILTER_NAME'] . '_POST'];
示例2: GetMessage
value="N"><?php
echo GetMessage('TMR_FILTER_ONLY_DIRECT');
?>
</option>
</select>
<a href="javascript:void(0)" class="filter-reset" onclick="this.blur(); document.forms.REPORT_FILTER.show_all.value = 'Y'; window.BXTMREPORT.Filter(); return false;"></a>
</span>
<span class="tm-filter-item inactive">
<?php
function __tmr_replace($str)
{
$str = preg_replace('/<option([^>]*)>' . GetMessage('MAIN_NO') . '<\\/option>/i' . BX_UTF_PCRE_MODIFIER, '<option\\1>' . GetMessage('TMR_FILTER_DEPT_0') . '</option>', $str);
$str = preg_replace('/class="([^"]*)"/i', 'class="\\1" onchange="window.BXTMREPORT.Filter();"', $str);
return $str;
}
CIntranetUtils::ShowDepartmentFilter($arResult['UF_DEPARTMENT_field'], true, false, '__tmr_replace');
?>
<script type="text/javascript">
document.forms.REPORT_FILTER.department.value = "<?php
echo $arResult["DEPARTMENT_ID"];
?>
";
</script>
<a href="javascript:void(0);" class="filter-reset" onclick="this.blur(); document.forms.REPORT_FILTER.department.value = ''; window.BXTMREPORT.Filter(); return false;"></a>
</span>
<span class="tm-settings-item" id="TMBUTTON" onclick="BXTMREPORT.InitSettingMode(this);">
<span class="tm-settings-l"></span><span class="tm-settings-c"><span class="tm-settings-icon"></span><?php
echo GetMessage("TM_SETTINGS");
?>
</span><span class="tm-settings-r"></span>
</span>
示例3: array
die;
}
$arMonths_r = array();
for ($i = 1; $i <= 12; $i++) {
$arMonths_r[$i] = ToLower(GetMessage('MONTH_' . $i . '_S'));
}
if ($arParams['SHOW_FILTER'] == 'Y') {
?>
<table class="bx-users-toolbar"><tr><td class="bx-users-toolbar-last">
<form name="bx_birthday_filter" action="" method="get">
<?php
echo GetMessage('INTR_ISBN_TPL_FILTER_DEPARTMENT');
?>
:
<?php
CIntranetUtils::ShowDepartmentFilter($arResult['UF_DEPARTMENT_field'], true);
?>
<input type="submit" value="<?php
echo GetMessage('INTR_ISBN_TPL_FILTER_SUBMIT');
?>
" />
</form>
<script type="text/javascript">
window.onload = function() {document.forms.bx_birthday_filter.department.onchange = function() {this.form.submit()}}
</script>
</td></tr></table>
<?php
}
?>
<div class="bx-birthday-layout">
<?php