function GetMultiSelectField($FIELD_NAME, $arMultiSelect, $arSELECTED = array(), $HEIGHT = "", $PARAM = "") { if (strlen($PARAM) <= 0) { $PARAM = " class=\"inputselect\" "; } return SelectBoxMFromArray("form_multiselect_" . $FIELD_NAME . "[]", $arMultiSelect, $arSELECTED, "", false, $HEIGHT, $PARAM); }
><font class="newstext"> <?php echo $arAnswer["MESSAGE"]; ?> </font><?php break; case 2: if ($show_dropdown != "Y") { $field_name = "vote_dropdown_" . $QUESTION_ID; echo SelectBoxFromArray($field_name, $arDropDown[$QUESTION_ID], "", "", $arAnswer["FIELD_PARAM"]); $show_dropdown = "Y"; } break; case 3: if ($show_multiselect != "Y") { $field_name = "vote_multiselect_" . $QUESTION_ID; echo SelectBoxMFromArray($field_name . "[]", $arMultiSelect[$QUESTION_ID], array(), "", false, $arAnswer["FIELD_HEIGHT"], $arAnswer["FIELD_PARAM"]); $show_multiselect = "Y"; } break; case 4: $field_name = "vote_field_" . $arAnswer["ID"]; if (strlen(trim($arAnswer["MESSAGE"])) > 0) { ?> <font class="newstext"><?php echo $arAnswer["MESSAGE"]; ?> </font><br><?php } ?> <input type="newstext" name="<?php echo $field_name;
} uksort($arrSEARCHERS, "multiselect_sort"); $ref = array(); $ref_id = array(); if (is_array($arrSEARCHERS)) { $ref = array_values($arrSEARCHERS); $ref_id = array_keys($arrSEARCHERS); } ?> <tr valign="top"> <td width="0%" nowrap><?php echo GetMessage("STAT_F_SEACHERS"); ?> <br><IMG SRC="/bitrix/images/statistic/mouse.gif" WIDTH="44" HEIGHT="21" BORDER=0 ALT=""></td> <td width="0%" nowrap><?php echo SelectBoxMFromArray("find_searchers[]", array("REFERENCE" => $ref, "REFERENCE_ID" => $ref_id), $find_searchers, "", false, "11", "' style=\"width:100%\""); ?> </td> </tr> <?php } $oFilter->Buttons(array("table_id" => $sTableID, "url" => $APPLICATION->GetCurPage())); $oFilter->End(); ?> </form> <?php if ($message) { echo $message->Show(); } $aMenu = array(array("TEXT" => GetMessage("STAT_LIST"), "TITLE" => GetMessage("STAT_LIST_TITLE"), "LINK" => "searcher_list.php?lang=" . LANG, "ICON" => "btn_list"), array("LINK" => "searcher_graph_list.php?lang=" . LANGUAGE_ID . "&set_default=Y", "TEXT" => GetMessage("STAT_GRAPH_FULL_S"), "TITLE" => GetMessage("STAT_GRAPH_TITLE")));
<td><?php echo GetMessage("STAT_F_PERIOD") . " (" . FORMAT_DATE . "):"; ?> </td> <td><?php echo CalendarPeriod("find_date1", $find_date1, "find_date2", $find_date2, "find_form", "Y"); ?> </td> </tr> <tr valign="top"> <td><?php echo GetMessage("STAT_F_EVENTS"); ?> <br><IMG SRC="/bitrix/images/statistic/mouse.gif" WIDTH="44" HEIGHT="21" BORDER=0 ALT=""></td> <td><?php echo SelectBoxMFromArray("find_events[]", array("REFERENCE" => $find_events_names, "REFERENCE_ID" => $find_events), false, "", false, "11", 'id="find_events[]"'); ?> <script language="Javascript"> function selectEventType(form, field) { jsUtils.OpenWindow('event_multiselect.php?target_control=select&lang=<?php echo LANG; ?> &form='+form+'&field='+field, 600, 600); } jsSelectUtils.sortSelect('find_events[]'); jsSelectUtils.selectAllOptions('find_events[]'); </script> <br> <input type="button" OnClick="selectEventType('find_form','find_events[]')" value="<?php echo GetMessage("STAT_ADD");
echo GetMessage("AD_F_WHAT_TO_SHOW"); ?> :<br><img src="/bitrix/images/advertising/mouse.gif" width="44" height="21" border=0 alt=""></td> <td><?php $arr = array("reference" => array(GetMessage("AD_VISITOR_GRAPH"), GetMessage("AD_SHOW_GRAPH"), GetMessage("AD_CLICK_GRAPH"), "CTR"), "reference_id" => array("visitor", "show", "click", "ctr")); echo SelectBoxMFromArray("find_what_show[]", $arr, $find_what_show, "", false, "4"); ?> </td> </tr> <tr> <td nowrap valign="top"><span class="required">*</span><?php echo GetMessage("AD_F_CONTRACTS"); ?> :<br><img src="/bitrix/images/advertising/mouse.gif" width="44" height="21" border=0 alt=""></td> <td nowrap><?php echo SelectBoxMFromArray("find_contract_id[]", array("REFERENCE" => $contract_ref, "REFERENCE_ID" => $contract_ref_id), $find_contract_id, "", false, "5", "style='width:100%'"); ?> </td> </tr> <?php $filter->Buttons(); ?> <input type="submit" id="set_filter" name="set_filter" value="<?php echo GetMessage("ADV_F_FIND"); ?> " title="<?php echo GetMessage("ADV_F_FIND_TITLE"); ?> "> <input type="submit" name="del_filter" value="<?php echo GetMessage("ADV_F_CLEAR");
</tr> <tr valign="top"> <td><?php echo GetMessage("POST_F_DISTRIBUTION"); ?> :</td> <td><?php $ref = array(); $ref_id = array(); $rsRubric = CRubric::GetList(array("LID" => "ASC", "SORT" => "ASC", "NAME" => "ASC"), array("ACTIVE" => "Y")); while ($arRubric = $rsRubric->Fetch()) { $ref[] = "[" . $arRubric["ID"] . "] (" . $arRubric["LID"] . ") " . $arRubric["NAME"]; $ref_id[] = $arRubric["ID"]; } $arr = array("reference" => $ref, "reference_id" => $ref_id); echo SelectBoxMFromArray("find_distribution[]", $arr, $find_distribution, "", false, 5); ?> </td> </tr> <?php $oFilter->Buttons(array("table_id" => $sTableID, "url" => $APPLICATION->GetCurPage(), "form" => "find_form")); $oFilter->End(); ?> </form> <?php $lAdmin->DisplayList(); ?> <?php require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
<td><?php echo GetMessage("STAT_PERIOD") . " (" . FORMAT_DATE . "):"; ?> </td> <td><?php echo CalendarPeriod("find_date1", $find_date1, "find_date2", $find_date2, "find_form", "Y"); ?> </td> </tr> <tr> <td><?php echo GetMessage("STAT_SITE"); ?> :</td> <td><?php echo SelectBoxMFromArray("find_site_id[]", $arSiteDropdown, $find_site_id, "", ""); ?> </td> </tr> <tr valign="top"> <td><?php echo GetMessage("STAT_SHOW"); ?> :</td> <td> <?php echo InputType("checkbox", "find_hit", "Y", $find_hit, false, false, 'id="find_hit"'); ?> <label for="find_hit"><?php echo GetMessage("STAT_HITS_2"); ?>
while($arGroup = $rsGroups -> Fetch()) $arRatingVoteAuthorityGroupID[] = $arGroup["GROUP_ID"]; ?> <tr class="heading"> <td colspan="2"><?php echo GetMessage('RATING_SETTINGS_FRM_AUTHORITY'); ?> </td> </tr> <tr> <td width="50%" valign="top"><?php echo GetMessage('RATING_SETTINGS_FRM_RATING_VOTE_AUTHORITY_GROUP_ID'); ?> </td> <td><?php echo SelectBoxMFromArray("RATING_VOTE_AUTHORITY_GROUP_ID[]", $arRatingVoteGroupIdList, $arRatingVoteAuthorityGroupID, "", true, 5); ?> </td> </tr> <tr id="rating_settings_auto_assign_2_1"> <td width="50%"><?php echo GetMessage('RATING_SETTINGS_FRM_AUTO_ASSIGN'); ?> :</td> <td><?php echo SelectBoxFromArray("RATING_ASSIGN_AUTHORITY_GROUP", $arRatingVoteGroupIdList2, $ratingAssignAuthorityGroup); ?> </td> </tr> <tr id="rating_settings_auto_assign_2_2"> <td width="50%"></td>
} uksort($arrCOUNTRY, "multiselect_sort"); $ref = array(); $ref_id = array(); if (is_array($arrCOUNTRY)) { $ref = array_values($arrCOUNTRY); $ref_id = array_keys($arrCOUNTRY); } ?> <tr valign="top"> <td valign="top"><?php echo GetMessage("STAT_F_COUNTRY_ID"); ?> :<br><img src="/bitrix/images/statistic/mouse.gif" width="44" height="21" border=0 alt=""></td> <td><?php echo SelectBoxMFromArray("find_country_id[]", array("REFERENCE" => $ref, "REFERENCE_ID" => $ref_id), $find_country_id, "", false, "11", "style=\"width:100%\""); ?> </td> </tr> <?php } ?> <?php $filter->Buttons(array("table_id" => $sTableID, "url" => $APPLICATION->GetCurPage(), "form" => "form1")); $filter->End(); ?> </form>
public function ShowHTML() { global $APPLICATION; $arP = array(); foreach ($this->arGroups as $group_id => $group_params) { $arP[$group_params['TAB']][$group_id] = array(); } if (is_array($this->arOptions)) { foreach ($this->arOptions as $option => $arOptParams) { $val = $this->arCurOptionValues[$option]; if ($arOptParams['SORT'] < 0 || !isset($arOptParams['SORT'])) { $arOptParams['SORT'] = 0; } $label = isset($arOptParams['TITLE']) && $arOptParams['TITLE'] != '' ? $arOptParams['TITLE'] : ''; $opt = htmlspecialchars($option); switch ($arOptParams['TYPE']) { case 'DATE': $input = '<input type="text" name="' . $opt . '" id="' . $opt . '" value="' . $val . '" /><script>$(\'#' . $opt . '\').datetimepicker({lang:"en",format:"F d, Y H:i", step:"30"});</script>'; break; case 'CHECKBOX': $input = '<input type="checkbox" name="' . $opt . '" id="' . $opt . '" value="Y"' . ($val == 'Y' ? ' checked' : '') . ' ' . ($arOptParams['REFRESH'] == 'Y' ? 'onclick="document.forms[\'' . $this->module_id . '\'].submit();"' : '') . ' />'; break; case 'TEXT': if (!isset($arOptParams['COLS'])) { $arOptParams['COLS'] = 25; } if (!isset($arOptParams['ROWS'])) { $arOptParams['ROWS'] = 5; } $input = '<textarea rows="' . $type[1] . '" cols="' . $arOptParams['COLS'] . '" rows="' . $arOptParams['ROWS'] . '" name="' . $opt . '">' . htmlspecialchars($val) . '</textarea>'; if ($arOptParams['REFRESH'] == 'Y') { $input .= '<input type="submit" name="refresh" value="OK" />'; } break; case 'SELECT': $input = SelectBoxFromArray($opt, $arOptParams['VALUES'], $val, '', '', $arOptParams['REFRESH'] == 'Y' ? true : false, $arOptParams['REFRESH'] == 'Y' ? $this->module_id : ''); if ($arOptParams['REFRESH'] == 'Y') { $input .= '<input type="submit" name="refresh" value="OK" />'; } break; case 'MSELECT': $input = SelectBoxMFromArray($opt . '[]', $arOptParams['VALUES'], $val); if ($arOptParams['REFRESH'] == 'Y') { $input .= '<input type="submit" name="refresh" value="OK" />'; } break; case 'COLORPICKER': if (!isset($arOptParams['FIELD_SIZE'])) { $arOptParams['FIELD_SIZE'] = 25; } ob_start(); echo '<input id="__CP_PARAM_' . $opt . '" name="' . $opt . '" size="' . $arOptParams['FIELD_SIZE'] . '" value="' . htmlspecialchars($val) . '" type="text" style="float: left;" ' . ($arOptParams['FIELD_READONLY'] == 'Y' ? 'readonly' : '') . ' /> <script> function onSelect_' . $opt . '(color, objColorPicker) { var oInput = BX("__CP_PARAM_' . $opt . '"); oInput.value = color; } </script>'; $APPLICATION->IncludeComponent('bitrix:main.colorpicker', '', array('SHOW_BUTTON' => 'Y', 'ID' => $opt, 'NAME' => 'Выбор цвета', 'ONSELECT' => 'onSelect_' . $opt), false); $input = ob_get_clean(); if ($arOptParams['REFRESH'] == 'Y') { $input .= '<input type="submit" name="refresh" value="OK" />'; } break; case 'FILE': if (!isset($arOptParams['FIELD_SIZE'])) { $arOptParams['FIELD_SIZE'] = 25; } if (!isset($arOptParams['BUTTON_TEXT'])) { $arOptParams['BUTTON_TEXT'] = '...'; } CAdminFileDialog::ShowScript(array('event' => 'BX_FD_' . $opt, 'arResultDest' => array('FUNCTION_NAME' => 'BX_FD_ONRESULT_' . $opt), 'arPath' => array(), 'select' => 'F', 'operation' => 'O', 'showUploadTab' => true, 'showAddToMenuTab' => false, 'fileFilter' => '', 'allowAllFiles' => true, 'SaveConfig' => true)); $input = '<input id="__FD_PARAM_' . $opt . '" name="' . $opt . '" size="' . $arOptParams['FIELD_SIZE'] . '" value="' . htmlspecialchars($val) . '" type="text" style="float: left;" ' . ($arOptParams['FIELD_READONLY'] == 'Y' ? 'readonly' : '') . ' /> <input value="' . $arOptParams['BUTTON_TEXT'] . '" type="button" onclick="window.BX_FD_' . $opt . '();" /> <script> setTimeout(function(){ if (BX("bx_fd_input_' . strtolower($opt) . '")) BX("bx_fd_input_' . strtolower($opt) . '").onclick = window.BX_FD_' . $opt . '; }, 200); window.BX_FD_ONRESULT_' . $opt . ' = function(filename, filepath) { var oInput = BX("__FD_PARAM_' . $opt . '"); if (typeof filename == "object") oInput.value = filename.src; else oInput.value = (filepath + "/" + filename).replace(/\\/\\//ig, \'/\'); } </script>'; if ($arOptParams['REFRESH'] == 'Y') { $input .= '<input type="submit" name="refresh" value="OK" />'; } break; case 'CUSTOM': $input = $arOptParams['VALUE']; break; default: if (!isset($arOptParams['SIZE'])) { $arOptParams['SIZE'] = 25; } if (!isset($arOptParams['MAXLENGTH'])) { $arOptParams['MAXLENGTH'] = 255; } $input = '<input type="' . ($arOptParams['TYPE'] == 'INT' ? 'number' : 'text') . '" size="' . $arOptParams['SIZE'] . '" maxlength="' . $arOptParams['MAXLENGTH'] . '" value="' . htmlspecialchars($val) . '" name="' . htmlspecialchars($option) . '" />'; if ($arOptParams['REFRESH'] == 'Y') { $input .= '<input type="submit" name="refresh" value="OK" />'; } break; } if (isset($arOptParams['NOTES']) && $arOptParams['NOTES'] != '') { $input .= '<div class="notes"> <table cellspacing="0" cellpadding="0" border="0" class="notes"> <tbody> <tr class="top"> <td class="left"><div class="empty"></div></td> <td><div class="empty"></div></td> <td class="right"><div class="empty"></div></td> </tr> <tr> <td class="left"><div class="empty"></div></td> <td class="content"> ' . $arOptParams['NOTES'] . ' </td> <td class="right"><div class="empty"></div></td> </tr> <tr class="bottom"> <td class="left"><div class="empty"></div></td> <td><div class="empty"></div></td> <td class="right"><div class="empty"></div></td> </tr> </tbody> </table> </div>'; } $arP[$this->arGroups[$arOptParams['GROUP']]['TAB']][$arOptParams['GROUP']]['OPTIONS'][] = $label != '' ? '<tr><td valign="top" width="40%">' . $label . '</td><td valign="top" nowrap>' . $input . '</td></tr>' : '<tr><td valign="top" colspan="2" align="center">' . $input . '</td></tr>'; $arP[$this->arGroups[$arOptParams['GROUP']]['TAB']][$arOptParams['GROUP']]['OPTIONS_SORT'][] = $arOptParams['SORT']; } $tabControl = new CAdminTabControl('tabControl', $this->arTabs); $tabControl->Begin(); echo '<form name="' . $this->module_id . '" method="POST" action="' . $APPLICATION->GetCurPage() . '?mid=' . $this->module_id . '&lang=' . LANGUAGE_ID . '" enctype="multipart/form-data">' . bitrix_sessid_post(); foreach ($arP as $tab => $groups) { $tabControl->BeginNextTab(); foreach ($groups as $group_id => $group) { if (sizeof($group['OPTIONS_SORT']) > 0) { echo '<tr class="heading"><td colspan="2">' . $this->arGroups[$group_id]['TITLE'] . '</td></tr>'; array_multisort($group['OPTIONS_SORT'], $group['OPTIONS']); foreach ($group['OPTIONS'] as $opt) { echo $opt; } } } } if ($this->need_access_tab) { $tabControl->BeginNextTab(); $module_id = $this->module_id; require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/admin/group_rights.php"; } $tabControl->Buttons(); ?> <input type="hidden" name="update" value="Y" /> <input type="submit" name="save" value="<?php echo GetMessage("ICS_BS"); ?> " /> <input type="reset" name="reset" value="<?php echo GetMessage("ICS_BR"); ?> " /> </form> <?php $tabControl->End(); } }
<td valign="top"><?php echo GetMessage("STAT_SEARCHERS"); ?> <br><IMG SRC="/bitrix/images/statistic/mouse.gif" WIDTH="44" HEIGHT="21" BORDER=0 ALT=""><br><?php echo GetMessage("STAT_SELECT_WHAT_YOU_NEED"); ?> </td> <td><?php $ref = $ref_id = array(); $strSql = "SELECT ID, NAME FROM b_stat_searcher WHERE ID>1 ORDER BY NAME"; $rs = $statDB->Query($strSql, false, $err_mess . __LINE__); while ($ar = $rs->Fetch()) { $ref[] = $ar["NAME"] . " [" . $ar["ID"] . "]"; $ref_id[] = $ar["ID"]; } echo SelectBoxMFromArray("arSEARCHERS[]", array("REFERENCE" => $ref, "REFERENCE_ID" => $ref_id), $arSEARCHERS, "", false, "10", "class=typeselect"); ?> </td> </tr> <tr> <td valign=top><?php echo GetMessage("STAT_PAGES_TO"); ?> </td> <td><textarea name="PAGES_TO" cols="50" rows="8"><?php echo implode("\r\n", $arPAGES_TO); ?> </textarea></td> </tr> <?php //********************
echo ShowExactMatchCheckbox("find_event2"); ?> <?php echo ShowFilterLogicHelp(); ?> </td> </tr> <tr valign="top"> <td><?php echo GetMessage("STAT_F_SELECT_EVENTS"); ?> :</td> <td> <?php echo SelectBoxMFromArray("find_events[]", array("REFERENCE" => $find_events_names, "REFERENCE_ID" => $find_events), $find_events, "", false, "10", "style=\"width:300px;\""); ?> <script language="Javascript"> function selectEvent(form, field) { jsUtils.OpenWindow('event_multiselect.php?lang=<?php echo LANGUAGE_ID; ?> &form='+form+'&field='+field, 600, 600); } jsSelectUtils.sortSelect('find_events[]'); jsSelectUtils.selectAllOptions('find_events[]'); </script> <br> <input type="button" OnClick="selectEvent('find_form','find_events[]')" value="<?php echo GetMessage("MAIN_ADMIN_MENU_ADD");
?> </td> </tr> <tr> <td><?php echo GetMessage('FORM_EDIT_RIGHTS') . " [EDIT]"; ?> <br><img src="/bitrix/images/form/mouse.gif" width="44" height="21" border=0 alt=""></td> <td><?php echo SelectBoxMFromArray("arPERMISSION_EDIT[]", array("REFERENCE" => $arr_ref, "REFERENCE_ID" => $arr_ref_id), $arPERMISSION_EDIT, "", false, 8, ""); ?> </td> </tr> <tr> <td><?php echo GetMessage('FORM_DELETE_RIGHTS') . " [DELETE]"; ?> <br><img src="/bitrix/images/form/mouse.gif" width="44" height="21" border=0 alt=""></td> <td><?php echo SelectBoxMFromArray("arPERMISSION_DELETE[]", array("REFERENCE" => $arr_ref, "REFERENCE_ID" => $arr_ref_id), $arPERMISSION_DELETE, "", false, 8, ""); ?> </td> </tr> <?php $tabControl->EndTab(); $tabControl->Buttons(array("disabled" => $F_RIGHT < 30, "back_url" => "form_list.php?lang=" . LANGUAGE_ID)); $tabControl->End(); ?> </form> <?php require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
<?php $arr = array("reference" => array(GetMessage("LEARNING_YES"), GetMessage("LEARNING_NO")), "reference_id" => array("Y", "N")); echo SelectBoxFromArray("filter_completed", $arr, htmlspecialcharsex($filter_completed), GetMessage('LEARNING_ALL')); ?> </td> </tr> <tr valign="top"> <td><?php echo GetMessage('LEARNING_ADMIN_STATUS'); ?> :</b></td> <td> <?php $arr = array("reference" => array_values($arStatus), "reference_id" => array_keys($arStatus)); echo SelectBoxMFromArray("filter_status[]", $arr, $filter_status, "", false, "3"); ?> </td> </tr> <tr> <td><?php echo GetMessage("LEARNING_ADMIN_SCORE"); ?> :</td> <td nowrap> <input type="text" name="filter_score_from" size="10" value="<?php echo htmlspecialcharsex($filter_score_from); ?> "> ...
</td> </tr> <tr> <td><?php echo GetMessage("POST_F_RUBRIC"); ?> :</td> <td> <?php $arr = array("reference" => array(), "reference_id" => array()); $rsRubrics = CRubric::GetList(); while ($arRubric = $rsRubrics->Fetch()) { $arr["reference"][] = "[" . $arRubric["ID"] . "] " . $arRubric["NAME"]; $arr["reference_id"][] = $arRubric["ID"]; } echo SelectBoxMFromArray("find_rubric[]", $arr, $find_rubric, GetMessage("MAIN_ALL"), ""); ?> </td> </tr> <?php $oFilter->Buttons(array("table_id" => $sTableID, "url" => $APPLICATION->GetCurPage(), "form" => "find_form")); $oFilter->End(); ?> </form> <?php //****************************** // Send message and show progress //****************************** if ($_REQUEST['action'] == "send") { ?>
</td> </tr> <?php } ?> <?php if ($isEditMode && ($isAdmin || $isDemo && !$isOwner)) { ?> <tr valign="top"> <td><?php echo GetMessage("AD_EDIT_CONTRACT"); ?> <br><IMG SRC="/bitrix/images/advertising/mouse.gif" WIDTH="44" HEIGHT="21" BORDER=0 ALT=""></td> <td><?php echo SelectBoxMFromArray("arrUSER_EDIT[]", array("REFERENCE" => $ref, "REFERENCE_ID" => $ref_id), $arrUSER_EDIT, "", true, 15); ?> </td> </tr> <?php } else { ?> <tr valign="top"> <td><?php echo GetMessage("AD_EDIT_CONTRACT"); ?> </td> <td><?php reset($ref_id); while (list($key, $value) = each($ref_id)) { if (is_array($arrUSER_EDIT) && in_array($value, $arrUSER_EDIT)) {
"><?php echo InputType("checkbox", "find_type_exact_match", "Y", $find_type_exact_match, false, "", "title='" . GetMessage("AD_EXACT_MATCH") . "'"); ?> <?php echo ShowFilterLogicHelp(); ?> <br><?php $ref_id = array(); $ref = array(); $rsType = CAdvType::GetList($v1 = "s_sort", $v2 = "asc", array(), $v3); while ($arType = $rsType->Fetch()) { $ref_id[] = $arType["SID"]; $ref[] = "[" . $arType["SID"] . "] " . $arType["NAME"]; } $arr = array("REFERENCE" => $ref, "REFERENCE_ID" => $ref_id); echo SelectBoxMFromArray("find_type_sid[]", $arr, $find_type_sid, "", false, "5"); ?> </td> </tr> <tr> <td><?php echo GetMessage("AD_F_NAME"); ?> :</td> <td><input type="text" name="find_name" size="47" value="<?php echo htmlspecialcharsbx($find_name); ?> "><?php echo InputType("checkbox", "find_name_exact_match", "Y", $find_name_exact_match, false, "", "title='" . GetMessage("AD_EXACT_MATCH") . "'"); ?> <?php
</tr> <tr> <td><?php echo GetMessage("MAIN_EVENTLOG_AUDIT_TYPE_ID"); ?> :</td> <td> <input type="text" name="find_audit_type_id" size="47" value="<?php echo htmlspecialcharsbx($find_audit_type_id); ?> "> <?php echo ShowFilterLogicHelp(); ?> <br> <?php echo SelectBoxMFromArray("find_audit_type[]", array("reference" => array_values($arAuditTypes), "reference_id" => array_keys($arAuditTypes)), $find_audit_type, GetMessage("MAIN_ALL"), ""); ?> </td> </tr> <tr> <td><?php echo GetMessage("MAIN_EVENTLOG_MODULE_ID"); ?> :</td> <td><input type="text" name="find_module_id" size="47" value="<?php echo htmlspecialcharsbx($find_module_id); ?> "> <?php echo ShowFilterLogicHelp(); ?> </td>
</td> </tr> <tr> <td><?php echo GetMessage("FORM_F_SITE"); ?> <br><img src="/bitrix/images/form/mouse.gif" width="44" height="21" border=0 alt=""></td> <td><?php $ref = array(); $ref_id = array(); $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, "3"); ?> </td> </tr> <tr> <td><?php echo GetMessage("FORM_F_SID"); ?> </td> <td><input type="text" name="find_sid" size="47" value="<?php echo htmlspecialcharsbx($find_sid); ?> "><?php echo InputType("checkbox", "find_sid_exact_match", "Y", $find_sid_exact_match, false, "", "title='" . GetMessage("FORM_EXACT_MATCH") . "'"); ?> <?php
while ($arAdv = $rsAdv->Fetch()) { $ref[] = $arAdv["REFERENCE"]; $ref_id[] = $arAdv["REFERENCE_ID"]; } if ($isEditMode) { ?> <tr valign="top"> <td><?php echo GetMessage("AD_STAT_ADV"); ?> <br><img src="/bitrix/images/advertising/mouse.gif" width="44" height="21" border=0 alt=""><br><?php echo GetMessage("AD_SELECT_WHAT_YOU_NEED"); ?> </td> <td><?php echo SelectBoxMFromArray("arrSTAT_ADV[]", array("REFERENCE" => $ref, "REFERENCE_ID" => $ref_id), $arrSTAT_ADV, "", true, 10); ?> </td> </tr> <?php } else { ?> <tr valign="top"> <td><?php echo GetMessage("AD_STAT_ADV"); ?> </td> <td><?php if (is_array($arrSTAT_ADV) && count($arrSTAT_ADV) > 0) { foreach ($arrSTAT_ADV as $aid) { $key = array_search($aid, $ref_id);
</tr> <?php } elseif ($key == "SKIP_STATISTIC_GROUPS") { $rUserGroups = CGroup::GetList($by = "c_sort", $order = "asc"); while ($arUserGroups = $rUserGroups->Fetch()) { $ug_id[] = $arUserGroups["ID"]; $ug[] = "[" . $arUserGroups["ID"] . "] " . $arUserGroups["NAME"]; } ?> <tr> <td class="adm-detail-valign-top" width="40%"><?php echo GetMessage("STAT_OPT_SKIP_GROUPS_LABEL"); ?> :<br><img src="/bitrix/images/statistic/mouse.gif" width="44" height="21" border=0 alt=""></td> <td nowrap width="60%"><?php echo SelectBoxMFromArray("arSKIP_STATISTIC_GROUPS[]", array("REFERENCE" => $ug, "REFERENCE_ID" => $ug_id), $arSKIP_STATISTIC_GROUPS, "", false, 10); ?> </td> </tr> <?php } elseif ($key == "SKIP_STATISTIC_IP_RANGES") { ?> <tr> <td class="adm-detail-valign-top" width="40%"><?php echo GetMessage("STAT_OPT_SKIP_RANGES_LABEL"); ?> :</td> <td nowrap width="60%"><textarea name="SKIP_STATISTIC_IP_RANGES" rows="5" cols="30"><?php echo htmlspecialcharsbx($SKIP_STATISTIC_IP_RANGES); ?> </textarea><br>
} $rsGroups = CSupportUserGroup::GetUserGroupList(array('GROUP_NAME' => 'ASC'), $arGroupFilter); while ($arGroup = $rsGroups->Fetch()) { $arr['REFERENCE'][] = $arGroup['GROUP_NAME']; $arr['REFERENCE_ID'][] = $arGroup['GROUP_ID']; } } ?> <tr> <td><?php echo GetMessage('SUP_F_CLIENT_GROUP'); ?> :</td> <td><?php echo SelectBoxMFromArray('find_client_group_id[]', $arr, $find_client_group_id, GetMessage('SUP_ALL'), false, count($arr['REFERENCE']) < 7 ? count($arr['REFERENCE']) + 1 : 7); ?> </td> </tr> <? } if ($bADS) { ?> <tr> <td><?php echo GetMessage("SUP_F_COUPON"); ?> :</td> <td><input type="text" name="find_coupon" size="47" value="<?php
<br><img src="/bitrix/images/form/mouse.gif" width="44" height="21" border=0 alt=""></td> <td><?php echo SelectBoxMFromArray("arFILTER_ANSWER_VALUE[]", array("REFERENCE" => $arrANSWER_VALUE["reference"], "REFERENCE_ID" => $arrANSWER_VALUE["reference_id"]), $arrFilter["ANSWER_VALUE"], "", false, "5"); ?> </td> </tr> <?php } else { ?> <tr> <td><?php echo GetMessage("FORM_FILTER_TYPE"); ?> :<br><img src="/bitrix/images/form/mouse.gif" width="44" height="21" border=0 alt="" /></td> <td><?php echo SelectBoxMFromArray("arFILTER_FIELD[]", array("REFERENCE" => $arrFIELD["reference"], "REFERENCE_ID" => $arrFIELD["reference_id"]), $arrFilter["USER"], "", false, "3"); ?> </td> </tr> <?php } ?> <tr> <td><?php echo GetMessage("FORM_FILTER_TITLE"); ?> </td> <td><input type="text" name="FILTER_TITLE" size="50" value="<?php echo $str_FILTER_TITLE; ?> " /></td>
<td width="100%" nowrap><?php $arr = array("reference" => array(GetMessage("STAT_F_VIEW_SECTIONS"), GetMessage("STAT_F_VIEW_FILES")), "reference_id" => array("D", "F")); echo SelectBoxFromArray("find_show", $arr, htmlspecialcharsbx($find_show), GetMessage("MAIN_ALL")); ?> </td> </tr> <?php if (is_array($arrADV)) { ?> <tr valign="top"> <td width="0%" nowrap valign="top"><?php echo GetMessage("STAT_F_ADV"); ?> :<br><img src="/bitrix/images/statistic/mouse.gif" width="44" height="21" border=0 alt=""></td> <td width="100%" nowrap><?php echo SelectBoxMFromArray("find_adv[]", array("REFERENCE" => $find_adv_names, "REFERENCE_ID" => $find_adv), $find_adv, "", false, "5", "style=\"width:300px;\""); ?> <script language="Javascript"> function selectEventType(form, field) { jsUtils.OpenWindow('adv_multiselect.php?lang=<?php echo LANG; ?> &form='+form+'&field='+field, 600, 600); } jsSelectUtils.sortSelect('find_adv[]'); jsSelectUtils.selectAllOptions('find_adv[]'); </script> <br> <input type="button" OnClick="selectEventType('find_form','find_adv[]')" value="<?php echo GetMessage("MAIN_ADMIN_MENU_ADD");