'; echo '
'; echo 'Choose Poll Question:
'; echo ''; echo ' '; echo '
'; echo '

'; echo '
'; echo '

Poll Question: ' . $row->question . '

'; $data['additionalData'] = ""; ### Show Chart Layer ### echo '
'; /* $x=0; $hits = 10; if (empty($_REQUEST['cpage'])) { $_REQUEST['cpage'] = 1; } $start = ($_REQUEST['cpage']-1)*$hits; $query = "SELECT * FROM " . _DB_WP_COMMENTS . " WHERE wid=".$row->id . " ORDER BY datum DESC " or die("ERROR ".__LINE__.": ".mysqli_error($msql)); //$query = "SELECT * FROM comments WHERE name='".$id."' ORDER BY id DESC "; $res1 = mysqli_query($msql, $query) or die("ERROR ".__LINE__.": ".mysqli_error($msql)); $num_com = mysqli_num_rows($res1); $query .= "LIMIT ".$start.",".$hits; //echo $query; echo '
'; $res1 = mysqli_query($msql, $query) or die("ERROR ".__LINE__.": ".mysqli_error($msql)); if ($num_com > 0) { echo 'User Comments About This Weekly Poll'; echo '
'; echo '
'; echo '
    '; while ($ar1 = mysqli_fetch_array($res1)) { $koment = $ar1[tekst]; $koment = eregi_replace("
    ","[br]",$koment); $koment = eregi_replace("
    ","[br]",$koment); $koment = eregi_replace("
    ","[br]",$koment); $koment = strip_tags($koment); $koment = eregi_replace("\[br\]","
    ",$koment); $koment = eregi_replace("\n","
    ",$koment); $koment = smiley($koment); $p++; $addit = 'class="myComment"'; if ($p>1) { $p= 0; $addit = 'class="myCommentOdd"'; } $res2 = mysqli_query($msql, "SELECT * FROM users WHERE uname='".$ar1[author]."'") or die("ERROR ".__LINE__.": ".mysqli_error($msql)); $ar2 = mysqli_fetch_array($res2); echo '
  • '; list($datum,$ura) = explode(" ",$ar1[datum]); echo ''.$ar2[uname].' / '.$datum.' @ '.$ura.''; echo ''; echo ''.$koment.''; echo '
  • '."\n"; } echo '
'; $pages = $num_com/$hits; echo '
'; echo '
'; } if ($_SESSION['login']['status'] == 1) { echo '

Write Comments For This Weekly Poll

'; ?>

show("footer",$data);