$ref_id = array(); $ref[] = GetMessage("SUP_NO"); $ref_id[] = "0"; $z = CTicket::GetSupportTeamList(); while ($zr = $z->Fetch()) { $ref[] = $zr["REFERENCE"]; $ref_id[] = $zr["REFERENCE_ID"]; } $arr = array("REFERENCE" => $ref, "REFERENCE_ID" => $ref_id); echo SelectBoxFromArray("find_responsible_id", $arr, htmlspecialcharsbx($find_responsible_id), GetMessage("SUP_ALL")); ?> <br><input type="text" name="find_responsible" size="47" value="<?php echo htmlspecialcharsbx($find_responsible); ?> "><?php echo InputType("checkbox", "find_responsible_exact_match", "Y", $find_responsible_exact_match, false, "", "title='" . GetMessage("SUP_EXACT_MATCH") . "'"); ?> <?php echo ShowFilterLogicHelp(); ?> </td> </tr> <tr valign="center"> <td nowrap><?php echo GetMessage("SUP_F_DEFAULT"); ?> :</td> <td nowrap><?php $arr = array("reference" => array(GetMessage("SUP_YES"), GetMessage("SUP_NO")), "reference_id" => array("Y", "N")); echo SelectBoxFromArray("find_default", $arr, htmlspecialcharsbx($find_default), GetMessage("SUP_ALL")); ?>
</td> <td><input size="3" type="text" name="DEFENCE_MAX_STACK_HITS" id="DEFENCE_MAX_STACK_HITS" value="<?php echo htmlspecialcharsbx($DEFENCE_MAX_STACK_HITS); ?> "> <?php echo GetMessage("STAT_OPT_DEFENCE_MAX_STACK_HITS_MEASURE"); ?> </td> </tr> <tr> <td nowrap><label for="DEFENCE_LOG"><?php echo GetMessage("STAT_OPT_DEFENCE_LOG", array("#HREF#" => "/bitrix/admin/event_log.php?lang=" . LANGUAGE_ID . "&set_filter=Y&find_type=audit_type_id&find_audit_type[]=STAT_ACTIVITY_LIMIT")); ?> </label></td> <td><?php echo InputType("checkbox", "DEFENCE_LOG", "Y", $DEFENCE_LOG); ?> </td> </tr> <?php $tabControl->EndTab(); ?> <script language="JavaScript"> function ChangeDefenceSwitch() { var obSwitch = document.getElementById("DEFENCE_ON"); document.getElementById("DEFENCE_DELAY").disabled = !obSwitch.checked; document.getElementById("DEFENCE_STACK_TIME").disabled = !obSwitch.checked; document.getElementById("DEFENCE_MAX_STACK_HITS").disabled = !obSwitch.checked; document.getElementById("DEFENCE_MAX_STACK_HITS").disabled = !obSwitch.checked; document.getElementById("DEFENCE_LOG").disabled = !obSwitch.checked;
<td><?php echo GetMessage("FORM_IN_RESULTS_TABLE"); ?> </td> <td><?php echo InputType("checkbox", "IN_RESULTS_TABLE", "Y", $str_IN_RESULTS_TABLE, false); ?> </td> </tr> <tr> <td><?php echo GetMessage("FORM_IN_EXCEL_TABLE"); ?> </td> <td><?php echo InputType("checkbox", "IN_EXCEL_TABLE", "Y", $str_IN_EXCEL_TABLE, false); ?> </td> </tr> <tr> <td><?php echo GetMessage("FORM_RESULTS_TABLE_TITLE"); ?> </td> <td><input type="text" name="RESULTS_TABLE_TITLE" size="50" value="<?php echo $str_RESULTS_TABLE_TITLE; ?> " /></td> </tr> <?php //********************
?> <?php echo ShowFilterLogicHelp(); ?> </td> </tr> <tr> <td><?php echo GetMessage("AD_F_COMMENTS"); ?> :</td> <td><input type="text" name="find_comments" size="47" value="<?php echo htmlspecialcharsbx($find_comments); ?> "><?php echo InputType("checkbox", "find_comments_exact_match", "Y", $find_comments_exact_match, false, "", "title='" . GetMessage("AD_EXACT_MATCH") . "'"); ?> <?php echo ShowFilterLogicHelp(); ?> </td> </tr> <?php $oFilter->Buttons(array("table_id" => $sTableID, "url" => $APPLICATION->GetCurPage(), "form" => "form1")); $oFilter->End(); ?> </form> <?php $lAdmin->DisplayList(); require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
<td><?php echo GetMessage("STAT_ADV_VISIBLE", array("#LANG#" => LANG)); ?> </td> <td><?php echo InputType("checkbox", "ADV_VISIBLE", "Y", $str_ADV_VISIBLE, false); ?> </td> </tr> <tr> <td><?php echo GetMessage("STAT_PIE_CHART"); ?> </td> <td><?php echo InputType("checkbox", "DIAGRAM_DEFAULT", "Y", $str_DIAGRAM_DEFAULT, false); ?> </td> </tr> <tr> <td><?php echo GetMessage("STAT_KEEP_DAYS"); ?> </td> <td><input type="text" name="KEEP_DAYS" size="5" value="<?php echo $str_KEEP_DAYS; ?> "></td> </tr> <tr> <td><?php
?> " size="47"><?php echo InputType("checkbox", "find_question_exact_match", "Y", $find_question_exact_match, false, "", "title='" . GetMessage("VOTE_EXACT_MATCH") . "'"); ?> <?php echo ShowFilterLogicHelp(); ?> </td> </tr> <tr> <td>ID:</td> <td><input type="text" name="find_id" size="47" value="<?php echo htmlspecialcharsbx($find_id); ?> "><?php echo InputType("checkbox", "find_id_exact_match", "Y", $find_id_exact_match, false, "", "title='" . GetMessage("VOTE_EXACT_MATCH") . "'"); ?> <?php echo ShowFilterLogicHelp(); ?> </td> </tr> <tr> <td><?php echo GetMessage("VOTE_F_ACTIVE"); ?> </td> <td><?php $arr = array("reference" => array(GetMessage("VOTE_YES"), GetMessage("VOTE_NO")), "reference_id" => array("Y", "N")); echo SelectBoxFromArray("find_active", $arr, htmlspecialcharsbx($find_active), GetMessage("VOTE_ALL")); ?>
$arRatingUserProp = CRatings::GetRatingUserProp($ratingId, $ID); if ($ratingId == $authorityRatingId && $arRatingUserProp['BONUS'] == 0) $arRatingUserProp['BONUS'] = COption::GetOptionString("main", "rating_start_authority", 3); $viewTabControl->BeginNextTab(); ?> <table cellspacing="7" cellpadding="0" border="0" width="100%" class="edit-table"> <? if ($USER->CanDoOperation('edit_ratings') && ($selfEdit || $ID!=$uid)): ?> <tr> <td class="field-name" width="40%"><?php echo GetMessage('RATING_BONUS'); ?> :<sup><span class="required">2</span></sup></td> <td><?php echo InputType('text', "RATING_BONUS[{$ratingId}]", floatval($arRatingUserProp['BONUS']), false, false, '', 'size="5" maxlength="11"'); ?> <?php echo $ratingWeightType == 'auto' ? 'x ' . GetMessage('RATING_NORM_VOTE_WEIGHT') : ''; ?> </td> </tr> <? endif; ?> <tr> <td class="field-name" width="40%"><?php echo GetMessage('RATING_POSITION'); ?> :</td> <td> <?$APPLICATION->IncludeComponent( "bitrix:rating.result", "",
} </script> <?php $disableFixClick = ""; if ($str_FIX_CLICK != "Y") { $disableFixClick = " disabled"; } ?> <tr valign="top"> <td width="40%"><label for="FIX_CLICK"><?php echo GetMessage("AD_FIX_CLICK"); ?> </label></td> <td width="60%"><?php if ($isEditMode) { echo InputType("checkbox", "FIX_CLICK", "Y", $str_FIX_CLICK, false, "", 'id="FIX_CLICK" OnClick="DisableFixClick();"'); } else { echo $str_FIX_CLICK == "Y" ? GetMessage("AD_YES") : GetMessage("AD_NO"); } ?> </td> </tr> <?php } ?> <?php if (!$isEditMode) { ?> <tr valign="top"> <td><?php
echo $str_DESCR; ?> </textarea></td> </tr> <tr> <td width="100%" colspan=2 align="center"> <div id="tr_default"> <table width="100%" cellspacing=0 cellpadding=0> <tr valign="top"> <td align="right" width="40%"><?php echo GetMessage("SUP_BY_DEFAULT"); ?> </td> <td width="60%" align="left" style="padding-left: 10px;"><?php echo InputType("checkbox", "SET_AS_DEFAULT", "Y", $str_SET_AS_DEFAULT, false); ?> </td> </tr> </table> </div> </td> </tr> <tr> <td width="100%" colspan=2 align="center"> <div id="tr_responsible"> <table width="100%" cellspacing=0 cellpadding=0> <tr> <td align="right" width="40%"><?php echo GetMessage("SUP_RESPONSIBLE"); ?>
if (BX.type.isArray(data['MESSAGE[]']) && data['MESSAGE[]'].length > 1) { RowInsert(); while (document.forms.form1['MESSAGE[]'].length < data['MESSAGE[]'].length) RowInsert(); } }) }); </script> <? ################################# END ################ ?> <tr> <td><?php echo GetMessage("FORM_REQUIRED"); ?> </td> <td><?echo InputType("checkbox","REQUIRED","Y",$str_REQUIRED,false) ?></td> </tr> <tr> <td><?php echo GetMessage("FORM_ANS_TYPE"); ?> </td> <td><select name="FIELD_TYPE" id="selected_type" onchange="ShowSelected(); jsFormValidatorSettings.UpdateAll();"> <? $arDisplay = array( 'text' =>'none', 'textarea' =>'none', 'list' =>'none', ); $arCompat_desc[1]=array( 'radio' =>GetMessage('F_TYPES_RADIO'),
$tabControl->Begin(); $tabControl->BeginNextFormTab(); $tabControl->AddEditField("NAME", GetMessage('RATING_RULE_EDIT_FRM_NAME'), true, array("size"=>54, "maxlength"=>255), $str_NAME); $tabControl->BeginCustomField("ACTIVE", GetMessage('RATING_RULE_EDIT_FRM_ACTIVE'), false); ?> <tr> <td><?php echo GetMessage("RATING_RULE_EDIT_FRM_ACTIVE"); ?> </td> <td><?php echo InputType("checkbox", "ACTIVE", "Y", $str_ACTIVE); ?> </td> </tr> <? $tabControl->EndCustomField("ACTIVE"); $tabControl->BeginCustomField("ENTITY_TYPE_ID", GetMessage('RATING_RULE_EDIT_FRM_TYPE_ID'), true); $arObjects = CRatingRule::GetRatingRuleObjects(); ?> <tr style="<?php echo count($arObjects) > 1 ? '' : 'display:none'; ?> " class="adm-detail-required-field"> <td><?php echo GetMessage("RATING_RULE_EDIT_FRM_TYPE_ID");
echo InputType("checkbox", "find_allow_delivery", "Y", $find_allow_delivery, false, false, 'id="find_allow_delivery"'); ?> <label for="find_allow_delivery"><?php echo GetMessage("SALE_ALLOW_DELIVERY"); ?> </label><br> <?php echo InputType("checkbox", "find_canceled", "Y", $find_canceled, false, false, 'id="find_canceled"'); ?> <label for="find_canceled"><?php echo GetMessage("SALE_CANCELED"); ?> </label><br> <?php foreach ($arStatus as $k => $v) { echo InputType("checkbox", "find_status_" . $k, "Y", ${"find_status_" . $k}, false, false, 'id="find_status_' . $k . '"'); ?> <label for="find_status_<?php echo $k; ?> "><?php echo $v; ?> </label><br> <?php } ?> </td> </tr> <tr> <td><?php
<td nowrap><?php echo GetMessage("SUP_MESSAGES"); ?> </td> <td align="center"><?php echo InputType("checkbox", "find_mess", "Y", $find_mess, false); ?> </td> </tr> <tr> <td nowrap><?php echo GetMessage("SUP_OVERDUE_MESSAGES"); ?> </td> <td align="center"><?php echo InputType("checkbox", "find_overdue_mess", "Y", $find_overdue_mess, false); ?> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> <?php $filter->Buttons(array("table_id" => $sTableID, "url" => $APPLICATION->GetCurPage(), "form" => "form1")); $filter->End();
<td><?php echo InputType('text', 'newpoint_lat', '', '', false, '', 'class="newpoint_lat"'); ?> </td> </tr> <tr> <td class="title">Долгота (37.12345)</td> <td><?php echo InputType('text', 'newpoint_lon', '', '', false, '', 'class="newpoint_lon"'); ?> </td> </tr> <tr> <td class="title">Комментарий</td> <td><?php echo InputType('text', 'comment', $arTs[0]["INFO"], '', false, '', 'class="comment"'); ?> </td> </tr> <tr> <td class="center" colspan="2"> <input type="hidden" name="action" value="1"> <input type="hidden" name="edit_id" value="<?php echo $editID; ?> "> <input type="submit" value="Редактировать запись"> </td> </tr> </table> </form>
<td align="right"><?php echo GetMessage("STAT_MESSAGE_LID"); ?> </td> <td><?php echo CLanguage::SelectBox("MESSAGE_LID", $str_MESSAGE_LID); ?> </td> </tr> <tr valign="top"> <td align="right"><?php echo GetMessage("STAT_SAVE_STATISTIC"); ?> </td> <td><?php echo InputType("checkbox", "SAVE_STATISTIC", "Y", $str_SAVE_STATISTIC, false); ?> </td> </tr> <?php $tabControl->BeginNextTab(); ?> <tr valign="top"> <td colspan="2" align="center"><textarea style="width:100%" name="COMMENTS" rows="5" wrap="VIRTUAL"><?php echo $str_COMMENTS; ?> </textarea></td> </tr> <?php $tabControl->Buttons(array("disabled" => $STAT_RIGHT < "W", "back_url" => "/bitrix/admin/stoplist_list.php?lang=" . LANG . "&set_filter=Y")); $tabControl->End();
<?echo InputType("checkbox","find_page_views","Y",$find_page_views,false,false,'id="find_page_views"');?> <label for="find_hit"><?php echo GetMessage("LOL_METRIKA_PAGE_VIEWS_2"); ?> </label><br> <?echo InputType("checkbox","find_visitors","Y",$find_visitors,false,false,'id="find_visitors"'); ?> <label for="find_visitors"><?php echo GetMessage("LOL_METRIKA_VISITORS_2"); ?> </label><br> <?echo InputType("checkbox","find_visits","Y",$find_visits,false,false,'id="find_visits"'); ?> <label for="find_visits"><?php echo GetMessage("LOL_METRIKA_VISITS_2"); ?> </label><br> <?echo InputType("checkbox","find_new_visitors","Y",$find_new_visitors,false,false,'id="find_new_visitors"'); ?> <label for="find_new_visitors"><?php echo GetMessage("LOL_METRIKA_NEW_VISITORS_2"); ?> </label><br> </td> </tr> <? $oFilter->Buttons(array("table_id"=>$sTableID, "url"=>$APPLICATION->GetCurPage(), "form" => "find_form", "report"=>true)); $oFilter->End(); ?> </form> <? if($message) echo $message->Show();
public function GetSettingsHTML($arFields, $strHTMLControlName, &$arPropertyFields) { $arPropertyFields = array("HIDE" => array("ROW_COUNT", "COL_COUNT", "MULTIPLE_CNT"), 'USER_TYPE_SETTINGS_TITLE' => Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_TITLE')); $arSettings = self::PrepareSettings($arFields); return '<tr> <td>' . Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_VIEW') . '</td> <td>' . SelectBoxFromArray($strHTMLControlName["NAME"] . '[VIEW]', self::GetPropertyViewsList(true), htmlspecialcharsbx($arSettings['VIEW'])) . '</td> </tr> <tr> <td>' . Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_SHOW_ADD') . '</td> <td>' . InputType('checkbox', $strHTMLControlName["NAME"] . '[SHOW_ADD]', 'Y', htmlspecialcharsbx($arSettings["SHOW_ADD"])) . '</td> </tr> <tr> <td>' . Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_IBLOCK_MESS') . '</td> <td>' . InputType('checkbox', $strHTMLControlName["NAME"] . '[IBLOCK_MESS]', 'Y', htmlspecialcharsbx($arSettings["IBLOCK_MESS"])) . '</td> </tr> <tr> <td>' . Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_MAX_WIDTH') . '</td> <td><input type="text" name="' . $strHTMLControlName["NAME"] . '[MAX_WIDTH]" value="' . (int) $arSettings['MAX_WIDTH'] . '"> ' . Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_COMMENT_MAX_WIDTH') . '</td> </tr> <tr> <td>' . Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_MIN_HEIGHT') . '</td> <td><input type="text" name="' . $strHTMLControlName["NAME"] . '[MIN_HEIGHT]" value="' . (int) $arSettings['MIN_HEIGHT'] . '"> ' . Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_COMMENT_MIN_HEIGHT') . '</td> </tr> <tr> <td>' . Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_MAX_HEIGHT') . '</td> <td><input type="text" name="' . $strHTMLControlName["NAME"] . '[MAX_HEIGHT]" value="' . (int) $arSettings['MAX_HEIGHT'] . '"> ' . Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_COMMENT_MAX_HEIGHT') . '</td> </tr> <tr> <td>' . Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_BAN_SYMBOLS') . '</td> <td><input type="text" name="' . $strHTMLControlName["NAME"] . '[BAN_SYM]" value="' . htmlspecialcharsbx($arSettings['BAN_SYM']) . '"></td> </tr> <tr> <td>' . Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_REP_SYMBOL') . '</td> <td>' . SelectBoxFromArray($strHTMLControlName["NAME"] . '[REP_SYM]', self::GetReplaceSymList(true), htmlspecialcharsbx($arSettings['REP_SYM'])) . ' <input type="text" name="' . $strHTMLControlName["NAME"] . '[OTHER_REP_SYM]" size="1" maxlength="1" value="' . $arSettings['OTHER_REP_SYM'] . '"></td> </tr> '; }
<td><?echo GetMessage("SEC_STATACT_DEFENCE_STACK_TIME")?></td> <td><input size="3" type="text" name="DEFENCE_STACK_TIME" id="DEFENCE_STACK_TIME" value="<?php echo htmlspecialcharsbx($DEFENCE_STACK_TIME); ?> "> <?echo GetMessage("SEC_STATACT_DEFENCE_STACK_TIME_MEAS")?></td> </tr> <tr> <td><?echo GetMessage("SEC_STATACT_DEFENCE_MAX_HITS")?></td> <td><input size="3" type="text" name="DEFENCE_MAX_STACK_HITS" id="DEFENCE_MAX_STACK_HITS" value="<?php echo htmlspecialcharsbx($DEFENCE_MAX_STACK_HITS); ?> "> <?echo GetMessage("SEC_STATACT_DEFENCE_MAX_HITS_MEAS")?></td> </tr> <tr> <td nowrap><label for="DEFENCE_LOG"><?echo GetMessage("SEC_STATACT_DEFENCE_LOG", array("#HREF#"=>"/bitrix/admin/event_log.php?lang=".LANGUAGE_ID."&set_filter=Y&find_type=audit_type_id&find_audit_type[]=STAT_ACTIVITY_LIMIT"))?></label></td> <td><?echo InputType("checkbox", "DEFENCE_LOG", "Y", $DEFENCE_LOG)?></td> </tr> <? $tabControl->Buttons( array( "disabled"=>(!$canWrite), "back_url"=>$_GET["return_url"]? $_GET["return_url"]: "security_stat_activity.php?lang=".LANG, ) ); ?> <? $tabControl->End(); ?> </form> <? require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_admin.php");
</tr> <?php } ?> <?php } ?> <tr> <td width="40%"><label for="active"><?php echo GetMessage("AD_ACTIVE"); ?> </label></td> <td width="60%"><?php if ($isEditMode) { echo InputType("checkbox", "ACTIVE", "Y", $str_ACTIVE, false, "", 'id="active"'); } else { echo $str_ACTIVE == "Y" ? GetMessage("AD_YES") : GetMessage("AD_NO"); } ?> </td> <tr> <td><?php echo GetMessage("AD_SORT"); ?> </td> <td><?php if ($isEditMode) { ?> <input type="text" name="SORT" value="<?php echo $str_SORT;
<tr> <td align="right" width="40%" valign="top"><span class="adm-required-field"><?php echo GetMessage("BPIMNA_PD_MESSAGE_OUT"); ?> :</span></td> <td width="60%" valign="top"> <textarea name="message_out" id="id_message_out" rows="4" cols="40"><?php echo htmlspecialcharsbx($arCurrentValues["message_out"]); ?> </textarea> <input style="vertical-align: top" type="button" value="..." onclick="BPAShowSelector('id_message_out', 'string');"><br/> <?php echo GetMessage("BPIMNA_PD_MESSAGE_OUT_EMPTY"); ?> </td> </tr> <tr> <td align="right" width="40%"><span class="adm-required-field"><?php echo GetMessage("BPIMNA_PD_NOTIFY_TYPE"); ?> :</span></td> <td width="60%"> <?php echo InputType("radio", "message_type", "2", $arCurrentValues["message_type"], false, " " . GetMessage("BPIMNA_PD_NOTIFY_TYPE_FROM")); ?> <br/> <?php echo InputType("radio", "message_type", "4", $arCurrentValues["message_type"], false, " " . GetMessage("BPIMNA_PD_NOTIFY_TYPE_SYSTEM")); ?> </td> </tr>
function GetRadioField($FIELD_NAME, $FIELD_ID, $VALUE = "", $PARAM = "") { if (strlen($PARAM) <= 0) { $PARAM = " class=\"inputradio\" "; } return InputType("radio", "form_radio_" . $FIELD_NAME, $FIELD_ID, $VALUE, false, "", $PARAM); }
function ShowExactMatchCheckbox($name, $title = false) { $var = $name . "_exact_match"; global ${$var}; if ($title === false) { $title = GetMessage("MAIN_EXACT_MATCH"); } return '<input type="hidden" name="' . $name . '_exact_match" value="N">' . InputType("checkbox", $name . "_exact_match", "Y", ${$var}, false, "", "title='" . $title . "'"); }
?> <?php echo ShowFilterLogicHelp(); ?> </td> </tr> <tr> <td><?php echo GetMessage("FORM_F_DESCRIPTION"); ?> </td> <td><input type="text" name="find_description" size="47" value="<?php echo htmlspecialcharsbx($find_description); ?> "><?php echo InputType("checkbox", "find_description_exact_match", "Y", $find_description_exact_match, false, "", "title='" . GetMessage("FORM_EXACT_MATCH") . "'"); ?> <?php echo ShowFilterLogicHelp(); ?> </td> </tr> <?php $oFilter->Buttons(array("table_id" => $sTableID, "url" => $APPLICATION->GetCurPage())); $oFilter->End(); ############################################################# ?> </form>
CFileMan::AddHTMLEditorFrame("BODY", $str_BODY, "BODY_TYPE", $str_BODY_TYPE, 400, "Y", $ID, GetDirPath($str_FILENAME), "", false, $bWithoutPHP, false, array('limit_php_access' => $limit_php_access)); ?> </td> </tr> <?php } else { ?> <tr> <td colspan="2" align="center"><?php echo InputType("radio", "BODY_TYPE", "text", $str_BODY_TYPE, false); ?> <?php echo GetMessage("FLOW_TEXT"); ?> / <?php echo InputType("radio", "BODY_TYPE", "html", $str_BODY_TYPE, false); ?> HTML <br><textarea name="BODY" style="width:100%" rows="30" wrap="VIRTUAL"><?php echo $str_BODY; ?> </textarea></td> </tr> <?php } $tabControl->BeginNextTab(); ?> <?php if (!empty($arDocFiles)) { ?> <tr> <td colspan="2">
<?php echo InputType("checkbox", "find_event", "Y", $find_event, false, false, 'id="find_event"'); ?> <label for="find_event"><?php echo GetMessage("STAT_EVENTS_2"); ?> </label><br> <?php echo InputType("checkbox", "find_guest", "Y", $find_guest, false, false, 'id="find_guest"'); ?> <label for="find_guest"><?php echo GetMessage("STAT_GUESTS_2"); ?> </label><br> <?php echo InputType("checkbox", "find_new_guest", "Y", $find_new_guest, false, false, 'id="find_new_guest"'); ?> <label for="find_new_guest"><?php echo GetMessage("STAT_NEW_GUESTS_2"); ?> </label><br> </td> </tr> <?php $oFilter->Buttons(array("table_id" => $sTableID, "url" => $APPLICATION->GetCurPage(), "form" => "find_form", "report" => true)); $oFilter->End(); ?> </form> <?php if ($message) {
$value_right = ""; } $field_res .= '<input type="text" name="' . $name . '" size="' . $arParams["NUMBER_WIDTH"] . '" value="' . htmlspecialcharsbx($value_right) . '" />'; if (strlen($value_right) > 0) { ${$FILTER_NAME}["<=" . $field_code] = intval($value_right); } break; case "SECTION_ID": $arrRef = array("reference" => array_values($arResult["arrSection"]), "reference_id" => array_keys($arResult["arrSection"])); $field_res = SelectBoxFromArray($name, $arrRef, $value, " ", ""); if (!is_array($value) && $value != "NOT_REF" && strlen($value) > 0) { ${$FILTER_NAME}[$field_code] = intval($value); } $_name = $FILTER_NAME . "_ff[INCLUDE_SUBSECTIONS]"; $_value = $arrFFV["INCLUDE_SUBSECTIONS"]; $field_res .= "<br>" . InputType("checkbox", $_name, "Y", $_value, false, "", "") . " " . GetMessage("CC_BCF_INCLUDE_SUBSECTIONS"); if (isset(${$FILTER_NAME}[$field_code]) && $_value == "Y") { ${$FILTER_NAME}["INCLUDE_SUBSECTIONS"] = "Y"; } break; case "ACTIVE_DATE": case "DATE_ACTIVE_FROM": case "DATE_ACTIVE_TO": case "DATE_CREATE": $arDateField = $arrDFV[$field_code]; $arResult["arrInputNames"][$arDateField["from"]["name"]] = true; $arResult["arrInputNames"][$arDateField["to"]["name"]] = true; $arResult["arrInputNames"][$arDateField["days_to_back"]["name"]] = true; ob_start(); $APPLICATION->IncludeComponent('bitrix:main.calendar', '', array('FORM_NAME' => $FILTER_NAME . "_form", 'SHOW_INPUT' => 'Y', 'INPUT_NAME' => $arDateField["from"]["name"], 'INPUT_VALUE' => $arDateField["from"]["value"], 'INPUT_NAME_FINISH' => $arDateField["to"]["name"], 'INPUT_VALUE_FINISH' => $arDateField["to"]["value"], 'INPUT_ADDITIONAL_ATTR' => 'size="10" class="inputselect inputfield"'), null, array('HIDE_ICONS' => 'Y')); $field_res = ob_get_contents();
function Tab1($adminForm) { $adminForm->BeginCustomField("NAME", GetMessage("SUP_NAME"), false); ?> <tr class="adm-detail-required-field"> <td width="40%" align="right"><?php echo $adminForm->GetCustomLabelHTML(); ?> :</td> <td width="60%"><input type="text" maxlength="255" name="NAME" size="50" value="<?php echo CSupportPage::$holidaysFields->getFieldForOutput("NAME", CSupportTableFields::ATTRIBUTE); ?> "></td> </tr> <?php $adminForm->EndCustomField("NAME"); $adminForm->BeginCustomField("OPEN_TIME", GetMessage("SUP_OPEN_TIME"), false); ?> <tr class="adm-detail-required-field"> <td width="40%" align="right"><?php echo $adminForm->GetCustomLabelHTML(); ?> :</td> <td width="60%"> <select id="OPEN_TIME" size="1" name="OPEN_TIME"> <?php $arr = CSupportHolidays::GetOpenTimeArray(); foreach ($arr as $v => $n) { $ss = substr($v, 0, 3); if ($ss == "GB_") { echo '<optgroup label="' . GetMessage($n) . '">'; } elseif ($ss == "GE_") { echo '</optgroup>'; } else { echo '<option ' . ($v == CSupportPage::$holidaysFields->OPEN_TIME ? 'selected ' : '') . 'value="' . $v . '">' . GetMessage($n) . '</option>'; } } ?> </select> </td> </tr> <?php $adminForm->EndCustomField("OPEN_TIME"); $adminForm->BeginCustomField("DATE_FROM", GetMessage("SUP_DATE_FROM"), false); ?> <tr class="adm-detail-required-field"> <td width="40%" align="right"><?php echo $adminForm->GetCustomLabelHTML(); ?> :</td> <td width="60%"><?php echo CalendarDate("DATE_FROM", GetTime(CSupportPage::$holidaysFields->DATE_FROM, "FULL"), "supTabControl", "20"); ?> </td> </tr> <?php $adminForm->EndCustomField("DATE_FROM"); $adminForm->BeginCustomField("DATE_TILL", GetMessage("SUP_DATE_TILL"), false); ?> <tr class="adm-detail-required-field"> <td width="40%" align="right"><?php echo $adminForm->GetCustomLabelHTML(); ?> :</td> <td width="60%"><?php echo CalendarDate("DATE_TILL", GetTime(CSupportPage::$holidaysFields->DATE_TILL, "FULL"), "supTabControl", "20"); ?> </td> </tr> <?php $adminForm->EndCustomField("DATE_TILL"); $adminForm->BeginCustomField("SLA_ID", GetMessage("SUP_SLA_ID"), false); ?> <tr valign="top"> <td width="40%" align="right"><?php echo $adminForm->GetCustomLabelHTML(); ?> :</td> <td width="60%"> <?php $arrSLA_ID = CSupportPage::$holidaysSlaFields->getColumn("SLA_ID"); $arSort = array(); $ar = CTicketSLA::GetList($arSort, array(), $is_filtered); $idR = 0; while ($arR = $ar->Fetch()) { $idR++; echo InputType("checkbox", "SLA_ID[]", $arR["ID"], $arrSLA_ID, false, "", "", $idR) . '<label for="' . $idR . '"> ' . htmlspecialcharsbx($arR["NAME"]) . "</label><br>"; } ?> </td> </tr> <?php $adminForm->EndCustomField("SLA_ID"); $adminForm->BeginCustomField("DESCRIPTION", GetMessage("SUP_DESCRIPTION"), false); ?> <tr class="heading"> <td colspan="2"><?php echo $adminForm->GetCustomLabelHTML(); ?> :</td> </tr> <tr> <td colspan="2" align="center"><textarea style="width:60%; height:150px;" name="DESCRIPTION" wrap="VIRTUAL"><?php echo CSupportPage::$holidaysFields->getFieldForOutput("DESCRIPTION", CSupportTableFields::ATTRIBUTE); ?> </textarea></td> </tr> <?php $adminForm->EndCustomField("DESCRIPTION"); }
CFileMan::AddHTMLEditorFrame("FORM_DESCRIPTION", $str_DESCRIPTION, "FORM_DESCRIPTION_TYPE", $str_DESCRIPTION_TYPE, array('height' => 450, 'width' => '100%')); ?> </td> </tr> <?php } else { ?> <tr> <td align="center" colspan="2"><?php echo InputType("radio", "FORM_DESCRIPTION_TYPE", "text", $str_DESCRIPTION_TYPE, false); ?> <?php echo GetMessage("FORM_TEXT"); ?> / <?php echo InputType("radio", "FORM_DESCRIPTION_TYPE", "html", $str_DESCRIPTION_TYPE, false); ?> HTML</td> </tr> <tr> <td align="center" colspan="2"><textarea name="FORM_DESCRIPTION" style="width:100%" rows="23"><?php echo $str_DESCRIPTION; ?> </textarea></td> </tr> <?php } ?> <?php //********************
/** * Shows data form in admin part when you edit or add usertype. * @param bool $arUserField * @param string $arHtmlControl * @param bool $bVarsFromForm * @return string */ function GetSettingsHTML($arUserField = false, $arHtmlControl, $bVarsFromForm) { if (!CModule::IncludeModule("vote")) return ''; $value = ""; if($bVarsFromForm) $value = $GLOBALS[$arHtmlControl["NAME"]]["CHANNEL_ID"]; elseif(is_array($arUserField)){ $value = $arUserField["SETTINGS"]["CHANNEL_ID"]; $GLOBALS[$arHtmlControl["NAME"]]["NOTIFY"] = $arUserField["SETTINGS"]["NOTIFY"]; } $value = (!empty($value) ? intval($value) : "add"); $db_res = CVoteChannel::GetList($by = "", $order = "", array("ACTIVE" => "Y"), $is_filtered); $arVoteChannels = array("reference" => array(GetMessage("V_NEW_CHANNEL")), "reference_id" => array("add")); if ($db_res && $res = $db_res->Fetch()) { do { $arVoteChannels["reference"][] = $res["TITLE"]; $arVoteChannels["reference_id"][] = $res["ID"]; } while ($res = $db_res->Fetch()); } ob_start(); ?> <tr> <td><?php echo GetMessage("V_CHANNEL_ID_COLON"); ?> </td> <td><?php echo str_replace("<select", "<select onchange='if(this.value!=\"add\"){BX.hide(BX(\"channel_create\"));BX.show(this.nextSibling);}" . "else{BX(\"channel_create\").style.display=\"\";BX.hide(this.nextSibling);}' ", SelectBoxFromArray($arHtmlControl["NAME"] . "[CHANNEL_ID]", $arVoteChannels, $value)); ?> <a style="margin-left: 1em;" href="" rel="/bitrix/admin/vote_channel_edit.php?ID=#id#" <? ?>onmousedown="this.href=this.rel.replace('#id#',this.previousSibling.value);"><?php echo GetMessage("V_CHANNEL_ID_EDIT"); ?> </a></td> </tr> <tbody id="channel_create" style="<?if ($value != "add") {?>display:none;<?}?>"> <tr class="adm-detail-required-field"> <td class="adm-detail-content-cell-l" width="40%"><?php echo GetMessage("V_CHANNEL_ID_TITLE"); ?> </td> <td class="adm-detail-content-cell-r" width="60%"><input type="text" name="<?php echo $arHtmlControl["NAME"]; ?> [CHANNEL_TITLE]" <? ?>value="<?php echo htmlspecialcharsbx($GLOBALS[$arHtmlControl["NAME"]]["CHANNEL_TITLE"]); ?> " /></td> </tr> <tr class="adm-detail-required-field"> <td class="adm-detail-content-cell-l"><?php echo GetMessage("V_CHANNEL_ID_SYMBOLIC_NAME"); ?> </td> <td class="adm-detail-content-cell-r"><input type="text" name="<?php echo $arHtmlControl["NAME"]; ?> [CHANNEL_SYMBOLIC_NAME]" <? ?>value="<?php echo htmlspecialcharsbx($GLOBALS[$arHtmlControl["NAME"]]["CHANNEL_SYMBOLIC_NAME"]); ?> " /></td> </tr> <tr> <td class="adm-detail-content-cell-l"> </td> <td class="adm-detail-content-cell-r"><input type="checkbox" name="<?php echo $arHtmlControl["NAME"]; ?> [CHANNEL_USE_CAPTCHA]" <? ?>id="CHANNEL_USE_CAPTCHA" <?if ($GLOBALS[$arHtmlControl["NAME"]]["CHANNEL_USE_CAPTCHA"] == "Y"){?> checked <?} ?>value="Y" /> <label for="CHANNEL_USE_CAPTCHA"><?php echo GetMessage("V_CHANNEL_ID_USE_CAPTCHA"); ?> </label></td> </tr><? $db_res = CGroup::GetList($by = "sort", $order = "asc", Array("ADMIN" => "N")); while ($group = $db_res->GetNext()) { if($bVarsFromForm) $value = $GLOBALS[$arHtmlControl["NAME"]]["GROUP_ID"][$group["ID"]]; else $value = ($group["ID"] == 2 ? 1 : ($group["ID"] == 1 ? 4 : 2)); ?> <tr> <td class="adm-detail-content-cell-l"><?php echo $group["NAME"] . ":"; ?> </td> <td class="adm-detail-content-cell-r"><?php echo SelectBoxFromArray("GROUP_ID[" . $group["ID"] . "]", $GLOBALS["aVotePermissions"], $value); ?> </td> </tr><? } ?> </tbody> <? if($bVarsFromForm) { $GLOBALS[$arHtmlControl["NAME"]]['UNIQUE'] = is_array($GLOBALS[$arHtmlControl["NAME"]]['UNIQUE']) ? $GLOBALS[$arHtmlControl["NAME"]]['UNIQUE'] : array(); $uniqType = 0; foreach ($GLOBALS[$arHtmlControl["NAME"]]['UNIQUE'] as $res) $uniqType |= $res; } else { $uniqType = ($arUserField["SETTINGS"]["UNIQUE"] ? $arUserField["SETTINGS"]["UNIQUE"] : 13); if (is_array($arUserField["SETTINGS"]["UNIQUE"])) { foreach ( $arUserField["SETTINGS"]["UNIQUE"] as $res) { $uniqType |= $res; } $uniqType += 5; } $uniqType -=5; } ?> <script language="javascript"> function __utch(show) { if (BX("UNIQUE_TYPE_IP").checked) BX.show(BX("DELAY_TYPE"), ""); else BX.hide(BX("DELAY_TYPE")); var show = BX("UNIQUE_TYPE_USER_ID").checked, res = BX("UNIQUE_TYPE_USER_ID_NEW"); res.disabled = !show; if (!!show) BX.show(res.parentNode.parentNode, ""); else BX.hide(res.parentNode.parentNode); } </script> <tr> <td class="adm-detail-content-cell-l adm-detail-valign-top" width="40%"><?php echo GetMessage("VOTE_NOTIFY"); ?> </td> <td class="adm-detail-content-cell-r" width="60%"><? $GLOBALS[$arHtmlControl["NAME"]]["NOTIFY"] = ( $GLOBALS[$arHtmlControl["NAME"]]["NOTIFY"] != "I" && $GLOBALS[$arHtmlControl["NAME"]]["NOTIFY"] != "Y" ? "N" : $GLOBALS[$arHtmlControl["NAME"]]["NOTIFY"]); if (IsModuleInstalled("im")){?> <?php echo InputType("radio", $arHtmlControl["NAME"] . "[NOTIFY]", "I", $GLOBALS[$arHtmlControl["NAME"]]["NOTIFY"], false, GetMessage("VOTE_NOTIFY_IM")); ?> <br /><? } else { $GLOBALS[$arHtmlControl["NAME"]]["NOTIFY"] = ($GLOBALS[$arHtmlControl["NAME"]]["NOTIFY"] == "I" ? "N" : $GLOBALS[$arHtmlControl["NAME"]]["NOTIFY"]); }?> <?php echo InputType("radio", $arHtmlControl["NAME"] . "[NOTIFY]", "Y", $GLOBALS[$arHtmlControl["NAME"]]["NOTIFY"], false, GetMessage("VOTE_NOTIFY_EMAIL")); ?> <br /> <?php echo InputType("radio", $arHtmlControl["NAME"] . "[NOTIFY]", "N", $GLOBALS[$arHtmlControl["NAME"]]["NOTIFY"], false, GetMessage("VOTE_NOTIFY_N")); ?> <? ?></td> </tr> <tr> <td class="adm-detail-content-cell-l adm-detail-valign-top"><?php echo GetMessage("V_UNIQUE"); ?> </td> <td class="adm-detail-content-cell-r"> <? if (IsModuleInstalled('statistic')) { ?> <input type="checkbox" name="<?php echo $arHtmlControl["NAME"]; ?> [UNIQUE][]" id="UNIQUE_TYPE_SESSION" value="1" <?php echo $uniqType & 1 ? " checked" : ""; ?> /> <label for="UNIQUE_TYPE_SESSION"><?php echo GetMessage("V_UNIQUE_SESSION"); ?> </label><br /> <? } ?> <input type="checkbox" name="<?php echo $arHtmlControl["NAME"]; ?> [UNIQUE][]" id="UNIQUE_TYPE_COOKIE" value="2" <?php echo $uniqType & 2 ? " checked" : ""; ?> /> <label for="UNIQUE_TYPE_COOKIE"><?php echo GetMessage("V_UNIQUE_COOKIE_ONLY"); ?> </label><br /> <input type="checkbox" name="<?php echo $arHtmlControl["NAME"]; ?> [UNIQUE][]" id="UNIQUE_TYPE_IP" onclick="__utch()" value="4" <? ?><?php echo $uniqType & 4 ? " checked" : ""; ?> /> <label for="UNIQUE_TYPE_IP"><?php echo GetMessage("V_UNIQUE_IP_ONLY"); ?> </label><br /> <input type="checkbox" name="<?php echo $arHtmlControl["NAME"]; ?> [UNIQUE][]" id="UNIQUE_TYPE_USER_ID" onclick="__utch();" value="8" <? ?><?php echo $uniqType & 8 ? " checked" : ""; ?> /> <label for="UNIQUE_TYPE_USER_ID"><?php echo GetMessage("V_UNIQUE_USER_ID_ONLY"); ?> </label><br /> </td> </tr> <tr> <td class="adm-detail-content-cell-l" width="40%"> </td> <td class="adm-detail-content-cell-r" width="60%"><input type="checkbox" name="<?php echo $arHtmlControl["NAME"]; ?> [UNIQUE][]" id="UNIQUE_TYPE_USER_ID_NEW" value="16" <? ?><?php echo $uniqType & 16 ? " checked " : ""; ?> <? ?><?php echo $uniqType & 8 ? "" : " disabled"; ?> /> <label for="UNIQUE_TYPE_USER_ID_NEW"><?php echo GetMessage("V_UNIQUE_USER_ID_NEW"); ?> </label> </td> </tr> <? if($bVarsFromForm) $value = $GLOBALS[$arHtmlControl["NAME"]]["UNIQUE_IP_DELAY"]; else $value = (is_array($arUserField) ? $arUserField["SETTINGS"]["UNIQUE_IP_DELAY"] : array("DELAY" => "10", "DELAY_TYPE" => "D")); ?> <tr id="DELAY_TYPE"> <td class="adm-detail-content-cell-l" width="40%"><?php echo GetMessage("V_UNIQUE_IP_DELAY"); ?> </td> <td class="adm-detail-content-cell-r" width="60%"> <input type="text" name="<?php echo $arHtmlControl["NAME"]; ?> [UNIQUE_IP_DELAY][DELAY]" value="<?php echo htmlspecialcharsbx($value["DELAY"]); ?> " /> <?php echo SelectBoxFromArray($arHtmlControl["NAME"] . "[UNIQUE_IP_DELAY][DELAY_TYPE]", array("reference_id" => array("S", "M", "H", "D"), "reference" => array(GetMessage("V_SECONDS"), GetMessage("V_MINUTES"), GetMessage("V_HOURS"), GetMessage("V_DAYS"))), $value["DELAY_TYPE"]); ?> <script type="text/javascript"> BX.ready(function(){ if (!!document.forms.post_form.MULTIPLE) BX.hide(document.forms.post_form.MULTIPLE.parentNode.parentNode); __utch(); }); </script> </td> </tr> <? return ob_get_clean(); }
} ?> </select> </td> </tr> <tr> <td><?php echo GetMessage("SUP_FILTER_SLA"); ?> :</td> <td> <?php $arSort = array(); $ar = CTicketSLA::GetList($arSort, array(), $is_filtered); while ($arR = $ar->Fetch()) { echo InputType("checkbox", "filter_sla_id[]", $arR["ID"], $filter_sla_id) . " " . htmlspecialcharsbx($arR["NAME"]) . "<br>"; } ?> </td> </tr> <?php $USER_FIELD_MANAGER->AdminListShowFilter("SUPPORT"); $oFilter->Buttons(array("table_id" => $sTableID, "url" => $APPLICATION->GetCurPage(), "form" => "find_form")); $oFilter->End(); ?> </form> <?php $lAdmin->DisplayList(); require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";