source: trunk/templates/recsearch.tmpl@ 802

Last change on this file since 802 was 735, checked in by Kris Deugau, 8 years ago

/trunk

Refine record search scope/permission so that users without the
location_view permission don't see that column in the record search
results. See #57.

File size: 2.6 KB
Line 
1<body>
2<div id="main">
3
4<table class="wholepage"><tr>
5<TMPL_INCLUDE NAME="menu.tmpl">
6
7<td align="center" valign="top">
8
9<TMPL_INCLUDE NAME="msgblock.tmpl">
10
11<table width="98%">
12<tr><th colspan="3"><div class="center maintitle">Record search for '<TMPL_VAR NAME=searchfor>'</div></th></tr>
13<tr>
14<td class="leftthird"><TMPL_INCLUDE NAME="pgcount.tmpl"></td>
15<td align="center"><TMPL_INCLUDE NAME="fpnla.tmpl"></td>
16<td class="rightthird">
17 <form action="<TMPL_VAR NAME=script_self>" method="post">
18 <input type="hidden" name="page" value="recsearch" />
19 <input type="hidden" name="offset" value="0" />
20 <input name="searchfor" value="<TMPL_VAR NAME=searchfor>" />
21 <input type="submit" value=" Refine search " />
22 </form>
23</td>
24</tr>
25</table>
26
27<table class="altrows" width="98%" border="0" cellpadding="3">
28<tr>
29<TMPL_LOOP NAME=colheads> <th><a href="<TMPL_VAR NAME=script_self>&amp;page=<TMPL_VAR
30 NAME=page><TMPL_IF NAME=offset>&amp;offset=<TMPL_VAR NAME=offset></TMPL_IF>&amp;sortby=<TMPL_VAR
31 NAME=sortby>&amp;order=<TMPL_VAR NAME=order>"><TMPL_VAR NAME=colname></a><TMPL_IF
32 NAME=sortorder>&nbsp;<img alt="<TMPL_VAR NAME=sortorder>" src="images/<TMPL_VAR
33 NAME=sortorder>.png" /></TMPL_IF></th>
34</TMPL_LOOP>
35</tr>
36
37<TMPL_IF searchresults>
38<TMPL_LOOP NAME=searchresults>
39<tr>
40<td><TMPL_IF domain_id><a href="<TMPL_VAR NAME=script_self>&amp;page=reclist&amp;id=<TMPL_VAR
41 NAME=domain_id>&amp;defrec=n&amp;filter=<TMPL_VAR NAME=searchfor>"><TMPL_VAR NAME=domain></a> (<TMPL_VAR
42 NAME=domgroup>)</TMPL_IF></td>
43<td><TMPL_IF rdns_id><a href="<TMPL_VAR NAME=script_self>&amp;page=reclist&amp;id=<TMPL_VAR
44 NAME=rdns_id>&amp;defrec=n&amp;revrec=y&amp;filter=<TMPL_VAR NAME=searchfor>"><TMPL_VAR
45 NAME=revzone></a> (<TMPL_VAR NAME=revgroup>)</TMPL_IF></td>
46<TMPL_IF domain_id>
47<td><a href="<TMPL_VAR NAME=script_self>&amp;page=record&amp;parentid=<TMPL_VAR
48 NAME=domain_id>&amp;defrec=n&amp;revrec=n&amp;recact=edit&amp;id=<TMPL_VAR
49 NAME=record_id>"><TMPL_VAR NAME=host></a></td>
50<TMPL_ELSE>
51<td><TMPL_VAR NAME=host></td>
52</TMPL_IF>
53<td><TMPL_VAR NAME=rectype></td>
54<TMPL_IF rdns_id>
55<td><a href="<TMPL_VAR NAME=script_self>&amp;page=record&amp;parentid=<TMPL_VAR
56 NAME=domain_id>&amp;defrec=n&amp;revrec=y&amp;recact=edit&amp;id=<TMPL_VAR
57 NAME=record_id>"><TMPL_VAR NAME=val></a></td>
58<TMPL_ELSE>
59<td><TMPL_VAR NAME=val></td>
60</TMPL_IF>
61<TMPL_IF mayloc><td><TMPL_VAR NAME=location></td></TMPL_IF>
62</tr>
63</TMPL_LOOP>
64<TMPL_ELSE>
65<tr><td colspan="<TMPL_IF mayloc>6<TMPL_ELSE>5</TMPL_IF>" align="center">No records found matching '<TMPL_VAR NAME=searchfor>'</td></tr>
66</TMPL_IF>
67</table>
68
69<TMPL_IF searchresults><div class="center vpad"><TMPL_INCLUDE NAME="fpnla.tmpl"></div></TMPL_IF>
70
71</td>
72</tr>
73</table>
Note: See TracBrowser for help on using the repository browser.