blob: 831938f2f24c6266230dd131b9dee246d02fecf0 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
<com:TStyleSheet StyleSheetUrl=<%~ comments.css %> />
<!--
<%~ right_back.png %>
<%~ right_tag.png %>
<%~ tag.gif %>
-->
<h2 style="margin-bottom: 0.4em; margin-top: 2em; border-bottom: 0 none" id="comments-header">User Comments</h2>
<div id="user-comments">
<ul id="comment-nav">
<li><a href="#comment-list" style="display:none" id="show-comment-link" >View Comments</a></li>
<li><a href="#add-comment" class="active" id="add-comment-link">Add New Comment</a></li>
</ul>
<a href="javascript:;" class="right-tab" style="display:none" id="close-comments">Close</a>
<a href="#" class="right-tab" id="to-top">Top</a>
<div id="comment-list">
<com:TRepeater ID="comments">
<prop:ItemTemplate>
<%# $this->parent->parent->format_message($this->DataItem) %>
</prop:ItemTemplate>
</com:TRepeater>
</div>
<div id="add-comment">
<div class="username">
<div>
<com:TLabel ForControl="username" Text="Username/Password:" />
<span class="hint">(must have 5 or more posts in forum)</span>
<com:TRequiredFieldValidator
Style="font-weight: bold"
ControlToValidate="username"
ErrorMessage="*" />
</div>
<com:TTextBox ID="username" /> /
<com:TTextBox ID="password" TextMode="Password" />
<com:TActiveCustomValidator
ID="credential_validator"
ControlToValidate="password"
OnServerValidate="validate_credential"
ErrorMessage="Incorrect username/password" />
</div>
<div class="content">
<div>
<com:TLabel ForControl="content" Text="Comment:" />
<com:TRequiredFieldValidator
Style="font-weight: bold"
ControlToValidate="content"
ErrorMessage="*" />
</div>
<com:TTextBox TextMode="MultiLine" ID="content" />
<com:THiddenField ID="block_id" Value="top-content"/>
</div>
<div class="submit">
<com:TActiveButton Text="Add Comment" OnClick="add_comment" />
</div>
</div>
</div>
<div id="modal-background"></div>
<com:TClientScript PradoScripts="prado" ScriptUrl=<%~ comments.js %> >
var hidden_block_id = '<%= $this->block_id->ClientID %>';
var content_textare_id = '<%= $this->content->ClientID %>';
</com:TClientScript>
|