[Fusionforge-commits] FusionForge branch master updated. 4350ec29908fdd8376247410e4f9800bb4499622

Marc-Etienne VARGENAU vargenau at fusionforge.org
Thu Nov 27 15:28:26 CET 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  4350ec29908fdd8376247410e4f9800bb4499622 (commit)
      from  cee8de1f820c16a8bf7a6e8e8ac30712cb5de767 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 4350ec29908fdd8376247410e4f9800bb4499622
Author: Marc-Etienne Vargenau <Marc-Etienne.Vargenau at alcatel-lucent.com>
Date:   Thu Nov 27 15:28:18 2014 +0100

    Add <label>

diff --git a/src/www/search/include/renderers/AdvancedSearchHtmlSearchRenderer.class.php b/src/www/search/include/renderers/AdvancedSearchHtmlSearchRenderer.class.php
index 5942ab5..10e3d44 100644
--- a/src/www/search/include/renderers/AdvancedSearchHtmlSearchRenderer.class.php
+++ b/src/www/search/include/renderers/AdvancedSearchHtmlSearchRenderer.class.php
@@ -337,7 +337,7 @@ class AdvancedSearchHtmlSearchRenderer extends HtmlGroupSearchRenderer {
 			<input class="ff" type="hidden" name="search" value="1"/>
 			<input class="ff" type="hidden" name="group_id" value="'.$group_id.'"/>
 			<div align="center"><br />
-			<table>
+			<table id="advsearchinput">
 				<tr class="ff">
 				<td class="ff" colspan ="2">
 					<input class="ff" type="text" size="60" name="words" value="'.stripslashes(htmlspecialchars($words)).'" />
@@ -346,10 +346,10 @@ class AdvancedSearchHtmlSearchRenderer extends HtmlGroupSearchRenderer {
 				</tr>
 				<tr class="ff">
 				<td class="ff top">
-					<input class="ff" type="radio" name="mode" value="'.SEARCH__MODE_AND.'" '.($isExact ? 'checked="checked"' : '').' />'._('with all words').'
+					<input class="ff" id="all_words" type="radio" name="mode" value="'.SEARCH__MODE_AND.'" '.($isExact ? 'checked="checked"' : '').' /><label for="all_words">'._('with all words').'</label>
 				</td>
 				<td class="ff">
-					<input class="ff" type="radio" name="mode" value="'.SEARCH__MODE_OR.'" '.(!$isExact ? 'checked="checked"' : '').' />'._('with one word').'
+					<input class="ff" id="one_word" type="radio" name="mode" value="'.SEARCH__MODE_OR.'" '.(!$isExact ? 'checked="checked"' : '').' /><label for="one_word">'._('with one word').'</label>
 				</td>
 				</tr>
 			</table><br />'
@@ -422,21 +422,24 @@ EOS;
 
 			$return .= '<fieldset>'."\n";
 			$return .= '<legend>';
-			$return .= '<input type="checkbox" name="'.$key.'_checkall"';
-			if (getStringFromRequest($key.'_checkall')) $return .= ' checked="checked"';
-			$return .= ' class="checkall" /><a href="#'.$key.'">'.$group_subsection_names[$key].'</a>';
+			$return .= '<input type="checkbox" id="'.$key.'_checkall" name="'.$key.'_checkall"';
+			if (getStringFromRequest($key.'_checkall'))
+				$return .= ' checked="checked"';
+			$return .= ' class="checkall" /><label for="'.$key.'_checkall">'.$group_subsection_names[$key].'</label>';
 			$return .= "\n";
 			$return .= '</legend>';
 
 			if (!is_array($section)) {
-				$return .= '		<input type="checkbox" name="'.$key.'"';
-				if (getStringFromRequest($key))	$return .= ' checked="checked"';
-				$return .= ' class="childCheckBox" />'.$group_subsection_names[$key].'<br />'."\n";
+				$return .= '		<input type="checkbox" id="'.$key.'" name="'.$key.'"';
+				if (getStringFromRequest($key))
+					$return .= ' checked="checked"';
+				$return .= ' class="childCheckBox" /><label for="'.$key.'">'.$group_subsection_names[$key].'</label><br />'."\n";
 			} else {
 				foreach($section as $underkey => $undersection) {
-					$return .= '	<input type="checkbox" name="'.$key.$underkey.'"';
-					if (getStringFromRequest($key.$underkey)) $return .= ' checked="checked"';
-					$return .= ' />'.$undersection.'<br />'."\n";
+					$return .= '	<input type="checkbox" id="'.$key.$underkey.'" name="'.$key.$underkey.'"';
+					if (getStringFromRequest($key.$underkey))
+						$return .= ' checked="checked"';
+					$return .= ' /><label for="'.$key.$underkey.'">'.$undersection.'</label><br />'."\n";
 				}
 			}
 

-----------------------------------------------------------------------

Summary of changes:
 .../AdvancedSearchHtmlSearchRenderer.class.php     |   27 +++++++++++---------
 1 file changed, 15 insertions(+), 12 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list