/**
* vote_function.php
*
- * Copyright 1999-2001 (c) VA Linux Systems
+ * Copyright 1999-2001 (c) VA Linux Systems
* Copyright 2010, FusionForge Team
* http://fusionforge.org
*
$rating=((16*vote_get_rating ($vote_on_id,$flag))-15);
?>
-
+
<form action="/survey/rating_resp.php" method="post">
<input type="radio" name="vote_on_id" value="<?php echo $vote_on_id; ?>" />
<input type="radio" name="redirect_to" value="<?php echo urlencode(getStringFromServer('REQUEST_URI')); ?>" />
<input type="submit" name="submit" value="Rate" />
</div>
</form>
-
+
<?php
}
$quest_array=explode(',', $questions);
$count=count($quest_array);
echo '
- <table border="0">';
+ <table>';
$q_num=1;
for ($i=0; $i<$count; $i++) {
*/
echo '
- <tr><td valign="top"> </td><td>';
+ <tr><td class="top"> </td><td>';
} else {
echo '
- <tr><td valign="top"><strong>';
+ <tr><td class="top"><strong>';
/*
If it's a 1-5 question box and first in series, move Quest
number down a bit
echo ' '.stripslashes(db_result($result, 0, 'question'));
- } else if ($question_type == '2') {
+ } elseif ($question_type == '2') {
/*
This is a text-area question.
*/
echo '
<textarea name="_'.$quest_array[$i].'" rows="5" cols="60"></textarea>';
- } else if ($question_type == '3') {
+ } elseif ($question_type == '3') {
/*
This is a Yes/No question.
*/
echo ' '.stripslashes(db_result($result, 0, 'question'));
- } else if ($question_type == '4') {
+ } elseif ($question_type == '4') {
/*
This is a comment only.
*/
echo '
<input type="hidden" name="_'.$quest_array[$i].'" value="-666" />';
- } else if ($question_type == '5') {
+ } elseif ($question_type == '5') {
/*
This is a text-field question.
*/
}
?>
- <tr><td style="text-align:center" colspan="2">
+ <tr><td class="align-center" colspan="2">
<input type="submit" name="submit" value="<?php echo _('Submit') ?>" />
<br />
global $USER_RATING_VALUES,$USER_RATING_QUESTIONS,$USER_RATING_POPUP1,$USER_RATING_POPUP2,$USER_RATING_POPUP3,$USER_RATING_POPUP4,$USER_RATING_POPUP5;
echo '
- <form action="/developer/rate.php" method="post">
- <table class="align-left">';
-
+ <table>
+ <form action="/developer/rate.php" method="post">
+ <input type="hidden" name="rated_user" value="'.$user_id.'" />
+';
for ($i=1; $i<=count($USER_RATING_QUESTIONS); $i++) {
$popup="USER_RATING_POPUP$i";
if (!isset($prev_vote[$i])) {
$prev_vote[$i] = '';
- }
+ }
echo '
- <tr>
- <td><strong>'. $USER_RATING_QUESTIONS[$i] .':</strong></td>
- <td>'. html_build_select_box_from_arrays($USER_RATING_VALUES,$$popup,"Q_$i",$prev_vote[$i]/*'xzxz'*/,true,'Unrated').'</td>
- </tr>';
+ <tr>
+ <td><strong>'. $USER_RATING_QUESTIONS[$i] .':</strong></td>
+ <td>'. html_build_select_box_from_arrays($USER_RATING_VALUES,$$popup,"Q_$i",$prev_vote[$i]/*'xzxz'*/,true,'Unrated').'</td>
+ </tr>';
}
echo '
<tr><td colspan="2">
- <input type="submit" name="submit" value="Rate User" />
- <input type="hidden" name="rated_user" value="'.$user_id.'" />
- </td></tr>
+ <input type="submit" name="submit" value="Rate User" />
+ </td></tr>
</table>
</form>';
}
// mode: php
// c-file-style: "bsd"
// End:
-
-?>