blob: 32c7bcae534af80d83562392b8d3c04828a97f4a (
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
|
<com:TContent ID="body">
<com:TDataList
ID="comments"
DataKeyField="id"
OnEditCommand="editComment"
OnCancelCommand="cancelEdit"
OnUpdateCommand="updateComment"
OnDeleteCommand="deleteComment"
OnSelectedIndexChanged="approveComment"
ItemStyle.BackColor="#BFCFFF"
AlternatingItemStyle.BackColor="#E6ECFF"
EditItemStyle.BackColor="lightgreen">
<prop:HeaderTemplate>
Comments awaiting approval
</prop:HeaderTemplate>
<prop:ItemTemplate>
<span class="page"><%# $this->DataItem['page'] %></span>
<span class="date">
<com:TDateFormat Value=<%# intval($this->DataItem['date_added']) %> />
</span>
<span class="email">
<%# $this->DataItem['email'] %>
</span>
<div class="comment">
<com:TSafeHtml>
<%# $this->DataItem['comment']%>
</com:TSafeHtml>
</div>
<com:TLinkButton Text="Edit" CommandName="edit" />
<com:TLinkButton Text="Delete" CommandName="delete"
Attributes.onclick="if(!confirm('Are you sure?')) return false;" />
<com:TLinkButton Text="Approve" CommandName="select" />
</prop:ItemTemplate>
<prop:EditItemTemplate>
<com:TTextBox ID="email" Text=<%# $this->DataItem['email'] %> />
<com:TTextBox ID="page" Text=<%# $this->DataItem['page'] %> />
<com:TTextBox ID="content" Text=<%# $this->DataItem['comment'] %> TextMode="MultiLine"/>
<com:TLinkButton Text="Save" CommandName="update" />
<com:TLinkButton Text="Cancel" CommandName="cancel" />
</prop:EditItemTemplate>
</com:TDataList>
</com:TContent>
|