Пример #1
0
: </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
0
 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
0
    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