[Fusionforge-commits] r8660 - in trunk/gforge/www: forum/admin search/include/renderers survey/include

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Sat Jan 9 09:59:22 CET 2010


Author: aljeux
Date: 2010-01-09 09:59:22 +0100 (Sat, 09 Jan 2010)
New Revision: 8660

Modified:
   trunk/gforge/www/forum/admin/ForumAdmin.class.php
   trunk/gforge/www/search/include/renderers/AdvancedSearchHtmlSearchRenderer.class.php
   trunk/gforge/www/survey/include/SurveyHTML.class.php
Log:
Misc xhtml, utf8 and indent changes

Modified: trunk/gforge/www/forum/admin/ForumAdmin.class.php
===================================================================
--- trunk/gforge/www/forum/admin/ForumAdmin.class.php	2010-01-09 08:59:16 UTC (rev 8659)
+++ trunk/gforge/www/forum/admin/ForumAdmin.class.php	2010-01-09 08:59:22 UTC (rev 8660)
@@ -479,8 +479,8 @@
 						} else {
 							if ($fm->isError()) {
 							    if ( $fm->getErrorMessage() == (_('Couldn\'t Update Master Thread parent with current time')) ) {
-							    	//the thread which the message was replying to doesn�t exist any more
-							    	$feedback .= "( " . $subject . " ) " . _('The thread which the message was posted to doesn\'t exist anymore, please delete the message.') . "<br>";
+							    	//the thread which the message was replying to doesn't exist any more
+							    	$feedback .= "( " . $subject . " ) " . _('The thread which the message was posted to doesn\'t exist anymore, please delete the message.') . "<br />";
 							    } else {
 									$feedback .= "$msg_id - " . $fm->getErrorMessage() . "<br />";
 							    }

Modified: trunk/gforge/www/search/include/renderers/AdvancedSearchHtmlSearchRenderer.class.php
===================================================================
--- trunk/gforge/www/search/include/renderers/AdvancedSearchHtmlSearchRenderer.class.php	2010-01-09 08:59:16 UTC (rev 8659)
+++ trunk/gforge/www/search/include/renderers/AdvancedSearchHtmlSearchRenderer.class.php	2010-01-09 08:59:22 UTC (rev 8660)
@@ -76,7 +76,7 @@
 		site_project_header(array('title' => _('Advanced search'), 'group' => $this->groupId, 'toptab'=>'none'));
 		$sectionarray = $this->getSectionArray();
 		$this->handleTransferInformation($sectionarray);
-		
+
 		$GLOBALS['HTML']->advancedSearchBox($sectionarray, $this->groupId, $this->words, $this->isExact);
 	}
 	

Modified: trunk/gforge/www/survey/include/SurveyHTML.class.php
===================================================================
--- trunk/gforge/www/survey/include/SurveyHTML.class.php	2010-01-09 08:59:16 UTC (rev 8659)
+++ trunk/gforge/www/survey/include/SurveyHTML.class.php	2010-01-09 08:59:22 UTC (rev 8660)
@@ -125,7 +125,7 @@
 		$ret.='<input type="hidden" name="post" value="Y" />';
 		$ret.='<input type="hidden" name="group_id" value="'.$group_id.'" />';
 		$ret.='<input type="hidden" name="question_id" value="'.$question_id.'" />';
-		$ret.='<input type="hidden" name="form_key" value="' . form_generate_key() . '">';
+		$ret.='<input type="hidden" name="form_key" value="' . form_generate_key() . '" />';
 		$ret.=_('Question').':<br />';
 		$ret.='<input type="text" name="question" value="'.$question.'" size="60" maxlength="150" />';
 		$ret.='<p>'. _('Question type').':<br />';
@@ -134,7 +134,7 @@
 					   array());
 		$ret.= html_build_select_box($result,'question_type',$question_type,false);
 
-		$ret.='</p><p><input type="submit" name="submit" value="'.$question_button.'"></p>';
+		$ret.='</p><p><input type="submit" name="submit" value="'.$question_button.'" /></p>';
 		$ret.='</form>';
 		
 		return $ret;
@@ -267,7 +267,7 @@
 		$ret.='<br /><input type="text" name="survey_questions" value="" length="90" maxlength="1500" /></p>';
 		*/
 				
-		$ret.='<p><input type="submit" name="submit" value="'.$survey_button.'"></p>';
+		$ret.='<p><input type="submit" name="submit" value="'.$survey_button.'" /></p>';
 		$ret.='</form>';
 		
 		return $ret;
@@ -370,7 +370,7 @@
 				echo $surveys[$i]->getErrorMessage();
 				continue;
 			}
-			
+
 			if (!$surveys[$i]->isActive()) {
 				if ($show_inactive) {
 					$strike_open="<strike>";
@@ -505,7 +505,7 @@
 				
 			case 2:	/* This is a text-area question. */
 				$ret.= $question_title.'<br />';
-				$ret.='<textarea name="_'.$question_id.'" rows="5" cols="60" wrap="soft"></textarea>';
+				$ret.='<textarea name="_'.$question_id.'" rows="5" cols="60"></textarea>';
 				break;
 			case 3:	/* This is a Yes/No question. 
                            Show the Yes/No only if this is the first in a series */
@@ -635,7 +635,7 @@
 		case 5:	/* This is a text-field question. */
 			if ($show_comment) {
 				for($j=0; $j<$totalCount; $j++) {
-					$ret.='<hr.><strong>'._('Comments').
+					$ret.='<hr /><strong>'._('Comments').
 						' # '.($j+1).'/'.$totalCount. '</strong><p/>';
 					$ret.='<pre>';
 					$words = explode(" ",$results[$j]);
@@ -648,13 +648,13 @@
 							$chunks = $this->split_str($word,50);
 							foreach ($chunks as $chunk) {
 								$ret .= $chunk;
-								$ret .= "<br>";
+								$ret .= "<br />";
 							}
 							$linelength = 0;
 						} else { 
 							$linelength += strlen($word);
 							if ($linelength>100) {
-								$ret .= "<br>";
+								$ret .= "<br />";
 								$linelength = 0;
 							} else {
 								$ret .= $word . " ";
@@ -709,7 +709,7 @@
 			$ret.='<td width="90%" bgcolor="'.$color.'">&nbsp;</td>';
 		}
 		
-		$ret.= '<td>'.sprintf("%.2f", $percent).'%</td></tr></table></td></tr\>'."\n";
+		$ret.= '<td>'.sprintf("%.2f", $percent).'%</td></tr></table></td></tr>'."\n";
 		
 		return $ret;
 	}




More information about the Fusionforge-commits mailing list