cvs commit: www/test/cgi-bin lfscounter.cgi

jeroen at linuxfromscratch.org jeroen at linuxfromscratch.org
Thu Aug 21 16:34:13 PDT 2003


jeroen      03/08/21 17:34:13

  Modified:    test     search.html
               test/cgi-bin lfscounter.cgi
  Log:
  Some more reworkings on the search page; add some labels and correct validation.
  
  Revision  Changes    Path
  1.22      +4 -4      www/test/search.html
  
  Index: search.html
  ===================================================================
  RCS file: /home/cvsroot/www/test/search.html,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- search.html	21 Aug 2003 23:22:08 -0000	1.21
  +++ search.html	21 Aug 2003 23:34:13 -0000	1.22
  @@ -61,12 +61,12 @@
   		<option value="swishtitle">Title</option>
   		<option value="swishdocpath">Document Path</option>
   	</select>
  -	<input type="checkbox" name="reverse" value="on" />Reverse Sort
  +	<label title="Ascending or descending output"><input type="checkbox" name="reverse" value="on" />Reverse Sort</label>
   	</td>
   </tr><tr>
   	<th><label for="query">Search with swish:</label></th>
   	<td>
  -		<input maxlength="200" size="32" type="text" name="query" onfocus="if(this.value==this.defaultValue) this.value='';" value="Enter text here" />
  +		<label title="Enter the text to search for"><input maxlength="200" size="32" type="text" id="query" onfocus="if(this.value==this.defaultValue) this.value='';" value="Enter text here" /></label>
   		<label title="Submit the search query">
   			<button type="submit">Go!</button>
   		</label>
  @@ -89,9 +89,9 @@
   	<label title="Search WWW on google"><input type="radio" name="sitesearch" value="WWW" />WWW</label>
   	</td>
   </tr><tr>
  -	<th><label for="query">Search with google:</label></th>
  +	<th><label for="inputField">Search with google:</label></th>
   	<td>
  -		<label title="Enter the search terms"><input type="text" size="32" tabindex="3" id="inputField" name="q" maxlength="255"  onfocus="if(this.value==this.defaultValue) this.value='';" value="Enter text here" /></label> 
  +		<label title="Enter the text to search for"><input type="text" size="32" tabindex="3" id="inputField" name="q" maxlength="255"  onfocus="if(this.value==this.defaultValue) this.value='';" value="Enter text here" /></label> 
   		<label title="Submit the search query">
   				<button type="submit">Go!</button></label>
   		<input type="hidden" name="domains" value="linuxfromscratch.org" />
  
  
  
  1.9       +2 -2      www/test/cgi-bin/lfscounter.cgi
  
  Index: lfscounter.cgi
  ===================================================================
  RCS file: /home/cvsroot/www/test/cgi-bin/lfscounter.cgi,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- lfscounter.cgi	21 Aug 2003 23:22:08 -0000	1.8
  +++ lfscounter.cgi	21 Aug 2003 23:34:13 -0000	1.9
  @@ -239,7 +239,7 @@
   </tr>
   
   <tr>
  -	<th colspan="2" class="button"><input type="submit" value="Register me" /></th>
  +	<th colspan="2" class="button"><button type="submit">Register me</button></th>
   </tr>
   </tbody>
   </table>
  @@ -354,7 +354,7 @@
   </tr>
   
   <tr>
  -	<th colspan="2" class="button"><input type="submit" value="Query" /></th>
  +	<th colspan="2" class="button"><button type="submit">Query</button></th>
   </tr>
   
   </tbody>
  
  
  



More information about the website mailing list