Ejemplo n.º 1
0
 public static function IsOldVersion()
 {
     $res = "N";
     $arr = GetTemplateList("RV");
     if (is_array($arr) && count($arr["reference"]) > 0) {
         $res = "Y";
     } else {
         $arr = GetTemplateList("SV");
         if (is_array($arr) && count($arr["reference"]) > 0) {
             $res = "Y";
         } else {
             $arr = GetTemplateList("RQ");
             if (is_array($arr) && count($arr["reference"]) > 0) {
                 $res = "Y";
             }
         }
     }
     return $res;
 }
Ejemplo n.º 2
0
    ?>
&VOTE_ID=<?php 
    echo $ID;
    ?>
" class="tablebodylink"><?php 
    echo GetMessage("VOTE_CHOOSE");
    ?>
</a>&nbsp;]</td>
	</tr>
	<tr>
		<td><?php 
    echo GetMessage("VOTE_RESULT_TEMPLATE");
    ?>
</td>
		<td><?php 
    echo SelectBoxFromArray("RESULT_TEMPLATE", GetTemplateList("RV"), $arVote["RESULT_TEMPLATE"]);
    ?>
&nbsp;[&nbsp;<a title="<?php 
    echo GetMessage("VOTE_CHOOSE_RESULT_TITLE");
    ?>
" href="vote_results.php?lang=<?php 
    echo LANGUAGE_ID;
    ?>
&VOTE_ID=<?php 
    echo $ID;
    ?>
" class="tablebodylink"><?php 
    echo GetMessage("VOTE_CHOOSE");
    ?>
</a>&nbsp;]</td>
	</tr>
Ejemplo n.º 3
0
	
	<form name="form1" action="<?php 
    echo $APPLICATION->GetCurPage();
    ?>
" method="get">
	<input type="hidden" name="VOTE_ID" value="<?php 
    echo intval($VOTE_ID);
    ?>
">
	<input type="hidden" name="lang" value="<?php 
    echo LANGUAGE_ID;
    ?>
">
	<?php 
    echo GetMessage("VOTE_TEMPLATE");
    echo SelectBoxFromArray("TEMPLATE", GetTemplateList(), htmlspecialcharsbx($TEMPLATE), "", "", true);
    ?>
&nbsp;<input <?php 
    if ($VOTE_RIGHT < "W") {
        echo "disabled";
    }
    ?>
 type="submit" name="save" value="<?php 
    echo GetMessage("VOTE_SAVE");
    ?>
">
	<?php 
    echo bitrix_sessid_post();
    ?>
	</form>
<?php 
Ejemplo n.º 4
0
		<script type="text/javascript">OnDiagramFlagChange();</script>
		</td>
	</tr>
	<?php 
if (COption::GetOptionString("vote", "VOTE_COMPATIBLE_OLD_TEMPLATE", "Y") == "Y") {
    ?>
		<?php 
    if ($old_module_version == "Y") {
        ?>
		<tr>
			<td><?php 
        echo GetMessage("VOTE_TEMPLATE");
        ?>
</td>
			<td><?php 
        echo SelectBoxFromArray("TEMPLATE", GetTemplateList("RQ"), $arQuestion["TEMPLATE"], " ");
        ?>
</td>
		</tr>
		<?php 
    } else {
        $arr = CMainAdmin::GetTemplateList(COption::GetOptionString("vote", "VOTE_TEMPLATE_PATH_QUESTION_NEW"));
        $arrTemplates = array("reference" => $arr, "reference_id" => $arr);
        ?>
		<tr>
			<td><?php 
        echo GetMessage("VOTE_TEMPLATE");
        ?>
</td>
			<td><?php 
        echo SelectBoxFromArray("TEMPLATE_NEW", $arrTemplates, $arQuestion["TEMPLATE_NEW"], " ");
Ejemplo n.º 5
0
	<form name="form1" action="" method="get">
	<input type="hidden" name="VOTE_ID" value="<?php 
    echo intval($VOTE_ID);
    ?>
">
	<input type="hidden" name="lang" value="<?php 
    echo LANGUAGE_ID;
    ?>
">
	<?php 
    echo bitrix_sessid_post();
    ?>
	<?php 
    echo GetMessage("VOTE_TEMPLATE");
    echo SelectBoxFromArray("RESULT_TEMPLATE", GetTemplateList("RV"), htmlspecialcharsbx($RESULT_TEMPLATE), "", "", true);
    ?>
&nbsp;<input <?php 
    if ($VOTE_RIGHT < "W") {
        echo "disabled";
    }
    ?>
 type="submit" name="save" value="<?php 
    echo GetMessage("VOTE_SAVE");
    ?>
">
	</form>
	<?php 
    ShowVoteResults($VOTE_ID, $RESULT_TEMPLATE);
} else {
    $APPLICATION->IncludeComponent("bitrix:voting.result", "with_description", array("VOTE_ID" => $VOTE_ID, "CACHE_TYPE" => "N", "VOTE_ALL_RESULTS" => 'Y'));