Beispiel #1
0
    echo '<div class="card card-block">' . $boxContent . '</div>';
}
function PollMain_aff($pollID)
{
    $boxContent = '<p><strong><a href="pollBooth.php">' . translate("Past Surveys") . '</a></strong></p>';
    echo $boxContent;
}
if (!isset($pollID)) {
    include 'header.php';
    pollList();
    include 'footer.php';
}
settype($pollID, 'integer');
if (isset($forwarder)) {
    if (isset($voteID)) {
        pollCollector($pollID, $voteID, $forwarder);
    } else {
        Header("Location: {$forwarder}");
    }
} elseif ($op == 'results') {
    list($ibid, $pollClose) = pollSecur($pollID);
    if ($pollID == $ibid) {
        include "header.php";
        echo '<h2>' . translate("Survey") . '</h2><hr />';
        if (!$pollClose) {
            $block_title = '<h3>' . translate("Vote") . '</h3>';
            echo $block_title;
            pollboxbooth($pollID, $pollClose);
            echo '';
        } else {
            echo '';
Beispiel #2
0
            echo "<img src='images/arrow.gif' border='0'>&nbsp;{$pltitle} ({$plvoters} " . _LVOTES . ")<br><br>";
        } else {
            echo "<img src='images/arrow.gif' border='0'>&nbsp;<a href='modules.php?name={$module_name}&op=results&pollID={$plid}{$r_options}'>{$pltitle}</a> ({$plvoters} " . _LVOTES . ")<br><br>";
        }
    }
    echo "<a href='modules.php?name={$module_name}'><b>" . _MOREPOLLS . "</b></a>";
    CloseTable();
    echo "</td></tr></table>";
    cookiedecode($user);
    if ($pollcomm and $mode != "nocomments") {
        echo "<br><br>";
        include "modules/Surveys/comments.php";
    }
    include "footer.php";
} elseif ($voteID > 0) {
    pollCollector($pollID, $voteID);
} elseif ($pollID != pollLatest()) {
    include 'header.php';
    OpenTable();
    echo "<center><font class=\"option\"><b>" . _SURVEY . "</b></font></center>";
    CloseTable();
    echo "<br><br>";
    echo "<table border=\"0\" align=\"center\"><tr><td>";
    pollMain($pollID);
    echo "</td></tr></table>";
    include 'footer.php';
} else {
    include 'header.php';
    OpenTable();
    echo "<center><font class=\"option\"><b>" . _CURRENTSURVEY . "</b></font></center>";
    CloseTable();