Exemple #1
0
:</td>
	<td nowrap>
		<?php 
$arr = array("reference" => array(GetMessage("TASK_FILTER_ANY"), GetMessage("MAIN_YES"), GetMessage("MAIN_NO")), "reference_id" => array("", "Y", "N"));
echo SelectBoxFromArray("find_sys", $arr, htmlspecialcharsbx($find_sys));
?>
	</td>
</tr>
<tr>
	<td nowrap><?php 
echo GetMessage("TASK_FILTER_BINDING");
?>
:</td>
	<td nowrap>
		<?php 
$bindings = COperation::GetBindingList();
$arRef = array(GetMessage("TASK_FILTER_ANY"));
$arRefId = array('');
for ($i = 0, $l = count($bindings); $i < $l; $i++) {
    $b = $bindings[$i];
    $text = GetMessage('TASK_BINDING_' . strtoupper($b));
    if (!$text) {
        $text = strtoupper($b);
    }
    $arRef[] = $text;
    $arRefId[] = $b;
}
$arr = array("reference" => $arRef, "reference_id" => $arRefId);
echo SelectBoxFromArray("find_binding", array("reference" => $arRef, "reference_id" => $arRefId), htmlspecialcharsbx($find_binding));
?>
	</td>