\n";
}
}
$results=1;
if ($gallery->album->getPollShowResults())
{
list($buf, $results)=showResultsGraph( $gallery->album->getPollNumResults());
print $buf;
if ($results)
{
print ' $gallery->session->albumName)).
'">' ._("See full poll results") . ' ';
}
}
if ($showAdminForm) {
echo makeFormIntro("view_album.php",array("name" => "vote_form", "method" => "POST"));
}
if (canVote())
{
// Should be above as this form is needed for admin stuff :)) MD
// echo makeFormIntro("view_album.php",array("name" => "vote_form", "method" => "POST"));
$nv_pairs=$gallery->album->getVoteNVPairs();
if ($gallery->album->getPollScale()==1)
{
$options = $nv_pairs[0]["name"];
}
else
{
/* note to translators:
This produces (in English) a list of the form: "a, b, c or d". Correct translation
of ", " and " or " should produce a version that makes sense in your language.
*/
$options = "";
for ($count=0; $count < $gallery->album->getPollScale()-2 ; $count++)
{
$options .= $nv_pairs[$count]["name"]._(", ");
}
$options .= $nv_pairs[$count++]["name"]._(" or ");
$options .= $nv_pairs[$count]["name"];
}
print '';
print sprintf(_("To vote for an image, click on %s."), $options);
print " ".sprintf(_("You MUST click on %s for your vote to be recorded."),
""._("Vote")."");
if ($gallery->album->getPollType() == "rank")
{
print " ".sprintf(_("You have a total of %s and can change them if you wish."),
pluralize_n($gallery->album->getPollScale(),
_("1 vote"), _("votes"),
_("no votes"))) .
'
';
}
else
{
print " "._("You can change your choices if you wish."). "
";
}
?>
">
album->fields["summary"];
} ?>
album->numPhotos(1);
$displayCommentLegend = 0; // this determines if we display "* Item contains a comment" at end of page
if ($numPhotos) {
$rowCount = 0;
// Find the correct starting point, accounting for hidden photos
$rowStart = 0;
$cnt = 0;
$form_pos=0; // counts number of images that have votes below, ie withou albums;
while ($cnt < $start) {
$rowStart = getNextPhoto($rowStart);
$cnt++;
}
while ($rowCount < $rows) {
/* Do the inline_albumthumb header row */
$i = $rowStart;
$j = 1;
$printTableRow = false;
if ($j <= $cols && $i <= $numPhotos) {
$printTableRow = true;
echo('