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


PHP CIntranetUtils::ShowDepartmentFilter方法代碼示例

本文整理匯總了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'];
開發者ID:mrdeadmouse,項目名稱:u136006,代碼行數:31,代碼來源:template.php

示例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>
開發者ID:mrdeadmouse,項目名稱:u136006,代碼行數:31,代碼來源:template.php

示例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 
開發者ID:mrdeadmouse,項目名稱:u136006,代碼行數:31,代碼來源:template.php


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