summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Search.page
blob: ab2d4ea10cfc728a5a92d429b4f86aeca5be001b (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
<com:TContent ID="body">
<div class="quicksearch">
	<div class="search">
	<com:SearchBox ID="search"  />
	</div>

	<com:TRepeater id="quickstart_results">
	<prop:HeaderTemplate>
	<div class="searchHeader">
		Found <%# $this->Parent->DataSource->Count %> results in the 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>