Update of /var/cvs/applications/searchrelate/templates
In directory james.mmbase.org:/tmp/cvs-serv7548

Modified Files:
        page.css.jsp page.jspx 
Log Message:
hide tfoot and thead when there are no searchresults, cellspacing for older 
browsers, 
some table attributes for css tricks



See also: http://cvs.mmbase.org/viewcvs/applications/searchrelate/templates


Index: page.css.jsp
===================================================================
RCS file: /var/cvs/applications/searchrelate/templates/page.css.jsp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- page.css.jsp        20 Oct 2008 08:26:29 -0000      1.8
+++ page.css.jsp        6 Nov 2008 15:33:40 -0000       1.9
@@ -115,7 +115,8 @@
   background-color: #e8d8d8;
 }
 
-.mm_related .searchable table .paging.notneeded {
+.mm_related .searchable table tfoot.notneeded, 
+.mm_related .searchable table thead.notneeded {
   display: none;
 }
 


Index: page.jspx
===================================================================
RCS file: /var/cvs/applications/searchrelate/templates/page.jspx,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- page.jspx   6 Nov 2008 14:59:10 -0000       1.20
+++ page.jspx   6 Nov 2008 15:33:40 -0000       1.21
@@ -9,7 +9,7 @@
       Presents a table with one page of query results. Plus paging to other 
pages (in tfoot).
       Used in ajax-calls, but can also be directly included with mm:include 
(for initial results).
       @todo Searching only happens in actual mmbase queries now. How about 
lucene queries?
-      @version $Id: page.jspx,v 1.20 2008/11/06 14:59:10 michiel Exp $
+      @version $Id: page.jspx,v 1.21 2008/11/06 15:33:40 andre Exp $
   -->
   <jsp:output omit-xml-declaration="true" />
   <mm:import externid="id" required="true" />
@@ -56,29 +56,29 @@
             </fmt:message>
           </c:otherwise>
         </c:choose>
-        <table summary="${mm:escape('tagstripper(none),text/xml', summary)}">
+        <table cellspacing="0" 
summary="${mm:escape('tagstripper(none),text/xml', summary)}">
           <caption class="${empty search ? 'emptysearch' : 'search'} ${size gt 
pagesize ? 'paging needed' : 'paging notneeded'}">${summary}</caption>
           &lt;!-- <jsp:expression>bq.toSql()</jsp:expression> --&gt;
-          <thead>
+          <thead class="${size gt 0 ? 'paging needed' : 'paging notneeded'}">
             <tr class="${query.nodeManager.name}">
               <c:choose>
                 <c:when test="${!empty fields}">
-                  <th class="node number">#</th>
+                  <th class="node number" scope="col">#</th>
                   <mm:fieldlist nodetype="${query.nodeManager.name}" 
fields="$fields" varStatus="field">
-                    <th class="fields ${field.current.name}"><mm:fieldinfo 
type="guiname" /></th>
+                    <th class="fields ${field.current.name}" 
scope="col"><mm:fieldinfo type="guiname" /></th>
                     <mm:last><mm:index write="false" id="colcount" /></mm:last>
                   </mm:fieldlist>
                 </c:when>
                 <c:otherwise>
-                  <th class="node number">#</th>
-                  <th class="node"> </th>
+                  <th class="node number" scope="col">#</th>
+                  <th class="node" scope="col"> </th>
                     <mm:fieldlist nodetype="${query.nodeManager.name}" 
type="list" varStatus="field">
-                      <th class="fields ${field.current.name}"><mm:fieldinfo 
type="guiname" /></th>
+                      <th class="fields ${field.current.name}" 
scope="col"><mm:fieldinfo type="guiname" /></th>
                       <mm:last><mm:index write="false" id="colcount" 
/></mm:last>
                     </mm:fieldlist>
                 </c:otherwise>
               </c:choose>
-              <th class="node action"> </th>
+              <th class="node action" scope="col"> </th>
             </tr>
           </thead>
           <!--  PAGING -->
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to