source: server/trunk/web/root/templates/html/search/adv_search.tt @ 402

Last change on this file since 402 was 402, checked in by nanardon, 12 years ago
  • beautify search form
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1<!-- $Id$ -->
2<table border="0" id="tadvsearch">
3<tr>
4<td><b>Search rpm:</b></td>
5</tr>
6<tr>
7    <td>
8    <input type="text" name="search" value="[% c.req.param('search') | html %]">
9
10    <select name="type" OnChange="
11        if (value == 'bydep') {
12            document.getElementById('deptype').style.visibility = '';
13        } else {
14            document.getElementById('deptype').style.visibility = 'hidden';
15        }
16    ">
17    <option value="fuzzyname"[% " selected=selected" IF c.req.param('type') == 'fuzzyname' %]>rpm name match</option>
18    <option value="byname"[% " selected=selected" IF c.req.param('type') == 'byname' %]>rpm exactly named</option>
19    <option value="bydep"[% " selected=selected" IF c.req.param('type') == 'bydep' %]>dependency overlap:</option>
20    <option value="byfile"[% " selected=selected" IF c.req.param('type') == 'byfile' %]>File</option>
21    </select>
22    <span id="deptype" style="[% 'visibility:hidden;' IF c.req.param('type') != 'bydep' %]">
23    <select name="deptype">
24        <option value="P"[% " selected=selected" IF c.req.param('deptype') == 'P' %]>Provides</option>
25        <option value="R"[% " selected=selected" IF c.req.param('deptype') == 'R' %]>Requires</option>
26        <option value="C"[% " selected=selected" IF c.req.param('deptype') == 'C' %]>Conflict</option>
27        <option value="O"[% " selected=selected" IF c.req.param('deptype') == 'O' %]>Obsoletes</option>
28        <option value="T"[% " selected=selected" IF c.req.param('deptype') == 'T' %]>Trigger</option>
29        <option value="S"[% " selected=selected" IF c.req.param('deptype') == 'S' %]>Suggest</option>
30        <option value="E"[% " selected=selected" IF c.req.param('deptype') == 'E' %]>Enhanced</option>
31    </select>
32    </span>
33    </td>
34</tr>
35<tr>
36    <td>
37    Limit to distribution:
38    <span id="distribselect">
39    [% INCLUDE 'ajax/forms/distribselect.tt' form = 'sophie_adv_search' %]
40    </span>
41    </td>
42</tr>
43<tr>
44<td>
45<input type="submit">
46</td>
47</tr>
48</table>
Note: See TracBrowser for help on using the repository browser.