summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Search.page
blob: d339122260016390d5501289726473420fee48e7 (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
39
40
41
42
43
44
45
46
47
<com:TContent ID="body">
<div class="quicksearch">
	<div class="search">
	<com:SearchBox ID="search"  />
	</div>

	<com:TRepeater id="api_results">
	<prop:HeaderTemplate>
	<div class="searchHeader">
		Found <%# $this->Parent->Data->Count %> classes in API documentation.
	</div>
	</prop:HeaderTemplate>
	<prop:ItemTemplate>
	<div class="searchAPIItem">		
		<div class="searchItemLink">
		<%# $this->ItemIndex + 1 %>.
		<a href="http://www.pradosoft.com/docs/manual/<%# $this->DataItem->link %>">
			<%# $this->DataItem->title %>
		</a>
		</div>
	</div>
	</prop:ItemTemplate>
	</com:TRepeater>

	<com:TRepeater id="quickstart_results">
	<prop:HeaderTemplate>
	<div class="searchHeader">
		Found <%# $this->Parent->Data->Count %> results in quickstart tutorial.
	</div>
	</prop:HeaderTemplate>
	<prop:ItemTemplate>
	<div class="searchItem">		
		<div class="searchItemLink">
		<%# $this->ItemIndex + 1 %>.
		<a href="<%# $this->DataItem->link %>">
			<%# $this->DataItem->title %>
		</a>
		</div>
		<p class="searchItemBody"><%# $this->Page->HighlightSearch($this->DataItem->text) %></p>
	</div>
	</prop:ItemTemplate>
	</com:TRepeater>
	<com:TPanel id="emptyResult" CssClass="empty_search_result" Visible="false">
	No results available for "<%= htmlentities($this->Page->search->Text) %>".
	</com:TPanel>
</div>	
</com:TContent>