searchForm.vm
4.31 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
#set ($page_title="Search Form")
#set ($load_actions="document.forms[0].searchString.focus()")
#parse("pageHead.vm")
<form action="search" method="post">
<input type="hidden" name="responder" value="search"/>
Search String:
<input type="text" name="searchString" value="#if ($request.hasInput("searchString"))$request.getInput("searchString")#end"/>
<br/>
<input type="submit" name="searchType" value="Search Titles!"/>
<input type="submit" name="searchType" value="Search Content!"/>
<br/><br/>
<b>Search Titles!: </b>
Searches in page titles only. Will run fairly quickly.<br/>
<b>Search Content!: </b>
Searches in the content of every page. Don't hold your breath. </form>
<hr/>
<h2>Search Properties</h2>
<form method="post" action="$searchedRootPage">
<input type="hidden" name="responder" value="executeSearchProperties"/>
<div style="height: 200px;">
<div style="float: left; margin-right: 20px">
<table cellspacing="1" border="0">
<tr>
<th>Tags</th>
</tr>
<tr>
<td style="padding-right: 15px;">
<textarea class="searchForm" name="Suites" rows="3" cols="20">#if ($request.hasInput("Suite"))$request.getInput("Suite")#end</textarea>
</td>
</tr>
</table>
</div>
<div style="float: left; width: 180px;">
<table cellspacing="1" border="0">
<tr>
<th>PageType</th>
</tr>
<tr>
<td>
<select name="PageType" id="PageType" multiple="multiple" size="$pageTypeAttributes.size()">
#foreach ($pageType in $pageTypeAttributes)
<option#if (!$request.hasInput("PageType") || $request.getInput("PageType").contains($pageType)) selected="selected"#end>$pageType</option>
#end
</select>
</td>
</tr>
</table>
<br/>
<input type="submit" name="Search" value="Search Properties"/>
</div>
</div>
<div>
<div style="float: left; width: 175px;">
<table cellspacing="1" border="0">
<tr>
<th>Action</th>
</tr>
<tr>
<td>
#set( $numberActionAttributes = $actionAttributes.size() + 1 )
<select name="Action" id="Action" multiple="multiple" size="$numberActionAttributes">
<option value="Any"#if (!$request.hasInput("Action") || $request.getInput("Action").contains("Any")) selected="selected"#end>Don't care</option>
#foreach ($actionAttribute in $actionAttributes)
<option#if ($request.getInput("Action").contains($actionAttribute)) selected="selected"#end>$actionAttribute</option>
#end
</select>
</td>
</tr>
</table>
</div>
<div style="float: left; width: 150px;">
<table cellspacing="1" border="0">
<tr>
<th>Security</th>
</tr>
<tr>
<td>
#set( $numberSecurityAttributes = $securityAttributes.size() + 1 )
<select name="Security" id="Security" multiple="multiple" size="$numberSecurityAttributes">
<option value="Any"#if (!$request.hasInput("Security") || $request.getInput("Security").contains("Any")) selected="selected"#end>Don't care</option>
#foreach ($securityAttribute in $securityAttributes)
<option#if ($request.getInput("Security").contains($securityAttribute)) selected="selected"#end>$securityAttribute</option>
#end
</select>
</td>
</tr>
</table>
</div>
<div style="float: left; width: 150px;">
<table cellspacing="1" border="0">
<tr>
<th>Special Pages</th>
</tr>
<tr>
<td>
#set( $numberSpecialAttributes = $specialAttributes.size() + 1 )
<select name="Special" id="Special" multiple="multiple" size="$numberSpecialAttributes">
<option value="Any"#if (!$request.hasInput("Special") || $request.getInput("Special").contains("Any")) selected="selected"#end>Don't care</option>
#foreach ($specialAttribute in $specialAttributes)
<option#if ($request.getInput("Special").contains($specialAttribute)) selected="selected"#end>$specialAttribute</option>
#end
</select>
</td>
</tr>
</table>
</div>
</div>
</form>
#parse("pageFooter.vm")