Skip to content

Commit

Permalink
updates for 0.17.2
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@958 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
prescience committed May 13, 2002
1 parent 824dd49 commit 7b47fa6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
4 changes: 2 additions & 2 deletions index.php3
Expand Up @@ -97,7 +97,7 @@
<tr>
<td class="survey">
<?
$query = "SELECT UNIX_TIMESTAMP(date_submitted) as date_submitted
$query = "SELECT id, UNIX_TIMESTAMP(date_submitted) as date_submitted
FROM questions
ORDER BY id DESC
LIMIT 1";
Expand All @@ -106,7 +106,7 @@
extract( $row );
$date_submitted = date( "m-d", $date_submitted );
?>
<a class="small_bold" href="survey.php3?f_id=4">Answer Survey (<? echo $date_submitted ?>)</a>
<a class="small_bold" href="survey.php3?f_id=<?php echo $id ?>">Answer Survey (<? echo $date_submitted ?>)</a>
</td>
</tr>
</table>
Expand Down
20 changes: 17 additions & 3 deletions polls.php3
Expand Up @@ -44,14 +44,28 @@ These polls and surveys help chart the direction Mantis takes.
<br />
</td>
</tr>

<tr>
<td colspan=3>
<br />
<span class="section">Surveys</span>
<a name="survey"><span class="section">Surveys</span></a>
<p>
<ul>
<li><a href="survey.php3?f_id=3">General Questionaire</a></li>
<li><a href="survey.php3?f_id=4">Annoyances</a></li>
<?php
$query = "SELECT *
FROM questions
ORDER BY date_submitted DESC";
$result = mysql_query( $query );
$question_count = mysql_num_rows( $result );
for ($i=0;$i<$question_count;$i++) {
$row = mysql_fetch_array( $result );
$t_id = $row["id"];
$t_subject = stripslashes( $row["subject"] );
?>
<li><a href="survey.php3?f_id=<?php echo $t_id ?>"><?php echo $t_subject ?></a></li>
<?php
}
?>
</ul>
</td>
</tr>
Expand Down
2 changes: 2 additions & 0 deletions survey.php3
Expand Up @@ -31,4 +31,6 @@
<input type=submit value=" Send ">
</form>

<p>
<a href="polls.php3#survey">More Surveys</a>
<? include( "bot.php3" ); ?>

0 comments on commit 7b47fa6

Please sign in to comment.