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