gforge-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gforge-commits] gforge/www/include vote_function.php,1.13,1.14


From: gsmet
Subject: [Gforge-commits] gforge/www/include vote_function.php,1.13,1.14
Date: Wed, 31 Mar 2004 10:53:50 -0600

Update of /cvsroot/gforge/gforge/www/include
In directory db.perdue.net:/tmp/cvs-serv26609/www/include

Modified Files:
        vote_function.php 
Log Message:
no need for a form if there's no survey


Index: vote_function.php
===================================================================
RCS file: /cvsroot/gforge/gforge/www/include/vote_function.php,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- vote_function.php   2 Mar 2003 05:14:13 -0000       1.13
+++ vote_function.php   31 Mar 2004 16:53:46 -0000      1.14
@@ -130,12 +130,6 @@
 function show_survey ($group_id,$survey_id) {
   global $Language;
 
-?>
-<form action="/survey/survey_resp.php" method="post">
-<input type="hidden" name="group_id" value="<?php echo $group_id; ?>" />
-<input type="hidden" name="survey_id" value="<?php echo $survey_id; ?>" />
-<?php
-
 /*
        Select this survey from the database
 */
@@ -146,7 +140,11 @@
 
 if (db_numrows($result) > 0) {
        echo '
-               <h3>'.db_result($result, 0, 'survey_title').'</h3>';
+               <h3>'.db_result($result, 0, 'survey_title').'</h3>
+               <form action="/survey/survey_resp.php" method="post">
+               <input type="hidden" name="group_id" value="'.$group_id.'" />
+               <input type="hidden" name="survey_id" value="'.$survey_id.'" 
/>';
+
        /*
                Select the questions for this survey
        */
@@ -278,7 +276,7 @@
        <?php
 
 } else {
-       echo 
"<strong>".$Language->getText('survey','survey_not_found')."</strong></form>";
+       echo 
"<strong>".$Language->getText('survey','survey_not_found')."</strong>";
 }
 
 }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]