summaryrefslogtreecommitdiff
path: root/templates/results.gtpl
blob: ce2b99d4b5d13281c9c34236e135842999d62f76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!DOCTYPE html>
<html>
<body>
<h1>Search Results</h1>
<p>Showing results for <b>{{.OriginalQuery.Query}}</b></p>
<p>Go <a href="/">home</a></p>
<p>Showing {{.NumResults}} of {{.TotalResults}}</p>
    <table border="1">
        <tr>
            <th>510(k) Number</th>
            <th>Title</th>
            <th>Applicant</th>
            <th>Hit Details</th>
            <th>Submission Date</th>
            <th>Predicates</th>
        </tr>
    {{ range .SearchResults }}
    <tr>
        <td><a href="https://www.accessdata.fda.gov/scripts/cdrh/cfdocs/cfPMN/pmn.cfm?ID={{.id}}">{{ .id }}</a></td>
        <td>{{ .title }}</td>
        <td>{{ .applicant }}</td>
        <td>{{unescapeHTML ._formatted.full_text}}</td>
        <td>{{ .submission_date }}</td>
        <td>{{ range .predicates}}
            <a href="https://www.accessdata.fda.gov/scripts/cdrh/cfdocs/cfPMN/pmn.cfm?ID={{.}}">{{ . }}</a>,
            {{ end }}
        </td>
    </tr>
    {{ end }}
    </table>
    {{if .ShowPrev }}
    <a href="/classic/search?query={{.OriginalQuery.Query}}&page={{.PrevPage}}&maxHits={{.MaxResults}}"> <p>Previous Page</p></a>
    {{ end }}
    {{ if .MoreResults }}
    <a href="/classic/search?query={{.OriginalQuery.Query}}&page={{.PrevPage}}&maxHits={{.MaxResults}}"> <p>Next Page</p></a>
    {{ end }}
</body>
</html>