function getProfileMatch($memberID, $profileID) { global $oTemplConfig; $match_n = getProfilesMatch($memberID, $profileID); // impl $ret = ''; $ret .= DesignProgressPos(_t("_XX match", $match_n), $oTemplConfig->iProfileViewProgressBar, 100, $match_n); return $ret; }
function getProfileMatch($memberID, $profileID) { $match_n = getProfilesMatch($memberID, $profileID); // impl return DesignProgressPos(_t("_XX match", $match_n), $GLOBALS['oTemplConfig']->iProfileViewProgressBar, 100, $match_n); }
function MemberPrintPoll($ID) { $queryQuestion = "SELECT `Question` FROM `polls_q` WHERE `Active` = 'on' AND `ID` = {$ID}"; $queryAnswers = "SELECT `IDanswer`, `Answer`, `Votes` FROM `polls_a` WHERE `ID` = {$ID}"; $aQuestion = db_arr($queryQuestion); $rAnswers = db_res($queryAnswers); if (!$aQuestion or !mysql_num_rows($rAnswers)) { return _t_err("_Poll not available"); } $aVotes = db_arr("SELECT SUM(`Votes`) FROM `polls_a` WHERE `ID` = {$ID}"); $iTotalVotes = (int) $aVotes[0]; ob_start(); ?> <div class="tableVote_wrapper"> <form method="post" name="FormVote" action="poll.php"> <input type="hidden" name="ID" value="<?php echo $ID; ?> " /> <table class="tableVote"> <tr><th colspan="2"><?php echo process_line_output($aQuestion['Question']); ?> </th> </tr> <?php $j = 1; while ($aAnswer = mysql_fetch_array($rAnswers)) { if ($j % 2 == 0) { $add = '2'; } else { $add = '1'; } ?> <tr> <td> <input type="radio" onclick="javascript: this.form.submit()" name="vote" value="<?php echo $aAnswer['IDanswer']; ?> " ID="l<?php echo $aAnswer['IDanswer']; ?> " /> <label for="l<?php echo $aAnswer['IDanswer']; ?> "><?php echo process_line_output($aAnswer['Answer']); ?> </label> </td> <td><?php echo DesignProgressPos(_t("_votes") . ": " . $aAnswer['Votes'], 100, $iTotalVotes, $aAnswer['Votes'], $add); ?> </td> </tr> <?php $j++; } ?> </table> </form> </div> <?php return ob_get_clean(); }