1<?require_once(
$_SERVER[
"DOCUMENT_ROOT"].
"/bitrix/modules/vote/include.php");
10$request = \Bitrix\Main\Context::getCurrent()->getRequest();
15 "field_type" =>
"checkbox"],
16 "VOTE_COMPATIBLE_OLD_TEMPLATE" => [
18 "field_type" =>
"checkbox"],
21 "field_type" =>
"text"],
22 "VOTE_TEMPLATE_PATH" => [
23 "message" =>
GetMessage(
"VOTE_TEMPLATE_VOTES"),
24 "field_type" =>
"text"],
25 "VOTE_TEMPLATE_PATH_VOTE" => [
26 "message" =>
GetMessage(
"VOTE_TEMPLATE_RESULTS_VOTE"),
27 "field_type" =>
"text"],
28 "VOTE_TEMPLATE_PATH_QUESTION" => [
29 "message" =>
GetMessage(
"VOTE_TEMPLATE_RESULTS_QUESTION"),
30 "field_type" =>
"text"],
31 "VOTE_TEMPLATE_PATH_QUESTION_NEW" => [
32 "message" =>
GetMessage(
"VOTE_TEMPLATE_RESULTS_QUESTION_NEW"),
33 "field_type" =>
"text"]
41 throw new \Bitrix\Main\AccessDeniedException();
45 throw new \Bitrix\Main\ArgumentException(
"Bad sessid.");
47 if (
$request->getPost(
"restore") !==
null)
51 while(
$zr =
$z->Fetch())
65 catch (\Exception $exception)
70if (COption::GetOptionString(
"vote",
"VOTE_COMPATIBLE_OLD_TEMPLATE",
"N") ==
"N")
72 if (COption::GetOptionString(
"vote",
"VOTE_TEMPLATE_PATH") ==
'' &&
73 COption::GetOptionString(
"vote",
"VOTE_TEMPLATE_PATH_VOTE") ==
'' &&
74 COption::GetOptionString(
"vote",
"VOTE_TEMPLATE_PATH_QUESTION") ==
'' &&
75 COption::GetOptionString(
"vote",
"VOTE_TEMPLATE_PATH_QUESTION_NEW") ==
'')
77 unset($arDisplayOptions[
"VOTE_COMPATIBLE_OLD_TEMPLATE"]);
79 unset($arDisplayOptions[
"VOTE_DIR"]);
80 unset($arDisplayOptions[
"VOTE_TEMPLATE_PATH"]);
81 unset($arDisplayOptions[
"VOTE_TEMPLATE_PATH_VOTE"]);
82 unset($arDisplayOptions[
"VOTE_TEMPLATE_PATH_QUESTION"]);
83 unset($arDisplayOptions[
"VOTE_TEMPLATE_PATH_QUESTION_NEW"]);
87 unset($arDisplayOptions[
"VOTE_TEMPLATE_PATH_QUESTION_NEW"]);
91 unset($arDisplayOptions[
"VOTE_DIR"]);
92 unset($arDisplayOptions[
"VOTE_TEMPLATE_PATH"]);
93 unset($arDisplayOptions[
"VOTE_TEMPLATE_PATH_VOTE"]);
94 unset($arDisplayOptions[
"VOTE_TEMPLATE_PATH_QUESTION"]);
98 array(
"DIV" =>
"edit1",
"TAB" =>
GetMessage(
"MAIN_TAB_SET"),
"ICON" =>
"vote_settings",
"TITLE" =>
GetMessage(
"MAIN_TAB_TITLE_SET")),
99 array(
"DIV" =>
"edit2",
"TAB" =>
GetMessage(
"MAIN_TAB_RIGHTS"),
"ICON" =>
"vote_settings",
"TITLE" =>
GetMessage(
"MAIN_TAB_TITLE_RIGHTS")),
104<form method=
"post" action=
"<?echo $APPLICATION->GetCurPage()?>?mid=<?=htmlspecialcharsbx($mid)?>&lang=<?=LANGUAGE_ID?>">
106<input type=
"hidden" name=
"edit_vote_options" value=
"Y" />
114 <tr><td valign=
"top" width=
"50%"><?=
$Option[
"message"]?></td>
115 <td valign=
"top" width=
"50%"><?
116 if(
$Option[
"field_type"] ==
"checkbox")
118 ?><input type=
"hidden" name=
"<?=$key?>" value=
"N" ><?
119 ?><input type=
"checkbox" name=
"<?=$key?>" id=
"<?=$key?>" value=
"Y" <?
if(
$val==
"Y") { echo
" checked"; }?>><?
123 ?><input type=
"text" maxlength=
"255" value=
"<?=htmlspecialcharsbx($val)?>" name=
"<?=$key?>"><?
130<?require_once(
$_SERVER[
"DOCUMENT_ROOT"].
"/bitrix/modules/main/admin/group_rights.php");?>
132<input <?
if (
$rights<
"W") echo
"disabled" ?> type=
"submit" name=
"Update" value=
"<?=GetMessage("VOTE_SAVE
")?>">
133<input type=
"reset" name=
"reset" value=
"<?=GetMessage("VOTE_RESET
")?>">
134<input <?
if (
$rights<
"W") echo
"disabled" ?> type=
"submit" name=
"restore" title=
"<?echo GetMessage("MAIN_HINT_RESTORE_DEFAULTS
")?>" value=
"<?echo GetMessage("MAIN_RESTORE_DEFAULTS
")?>">
if(!Loader::includeModule('catalog')) if(!AccessController::getCurrent() ->check(ActionDictionary::ACTION_PRICE_EDIT)) if(!check_bitrix_sessid()) $request
static ShowMessage($message)
static GetList($by='c_sort', $order='asc', $arFilter=[], $SHOW_USERS_AMOUNT="N")
bx popup label bx width30 PAGE_NEW_MENU_NAME text width
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
$_SERVER["DOCUMENT_ROOT"]
bitrix_sessid_post($varname='sessid', $returnInvocations=false)
check_bitrix_sessid($varname='sessid')
htmlspecialcharsbx($string, $flags=ENT_COMPAT, $doubleEncode=true)
IncludeModuleLangFile($filepath, $lang=false, $bReturnArray=false)
GetMessage($name, $aReplace=null)
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
<? endif;?> window document title
if(empty($signedUserToken)) $key