source: trunk/grails-app/views/advancedQuery/sampleresults.gsp @ 1458

Last change on this file since 1458 was 1458, checked in by robert@…, 12 years ago
  • Implemented a cache for module rest calls, to increase performance (see moduleCommunicationService)
  • Implemented searching in module data.
  • Property svn:keywords set to Rev Author Date
File size: 1.4 KB
Line 
1<html>
2<head>
3        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
4        <meta name="layout" content="main"/>
5        <title>Query results</title>
6        <link rel="stylesheet" href="<g:resource dir="css" file="advancedQuery.css" />" type="text/css"/>
7        <g:javascript src="advancedQuery.js" />
8</head>
9<body>
10
11<h1>Query results</h1>
12
13<p>
14        Your search for studies with:
15</p>
16<ul id="criteria">
17        <g:each in="${search.getCriteria()}" var="criterion">
18                <li>
19                        <span class="entityfield">${criterion.entity}.${criterion.field}</span>
20                        <span class="operator">${criterion.operator}</span>
21                        <span class="value">${criterion.value}</span>
22                </li>
23        </g:each>
24</ul>
25<p> 
26        resulted in ${search.getNumResults()} <g:if test="${search.getNumResults() == 1}">sample</g:if><g:else>samples</g:else>.
27</p>
28
29
30<g:if test="${search.getNumResults() > 0}">
31
32        <table id="searchresults" class="paginate">
33                <thead>
34                <tr>
35                        <th>Study</th>
36                        <th>Name</th>
37                </tr>
38                </thead>
39                <tbody>
40                <g:each in="${search.getResults()}" var="sampleInstance" status="i">
41                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
42
43                                <td><g:link controller="study" action="show" id="${sampleInstance?.parent?.id}">${sampleInstance?.parent?.title}</g:link></td>
44                                <td>${fieldValue(bean: sampleInstance, field: "name")}</td>
45                        </tr>
46                </g:each>
47                </tbody>
48        </table>
49
50</g:if>
51<p>
52        <g:link action="index">Search again</g:link>
53</p>
54</body>
55</html>
Note: See TracBrowser for help on using the repository browser.