Revision 130, 2.0 KB
(checked in by exi, 16 years ago)
|
Moved comments to a small class and made it use smarty.
Fixed an error message output of the parser.
|
Line | |
---|
1 | <div class="block-header">Comments</div> |
---|
2 | <table class="kb-table" width="360" border="0" cellspacing="1" border="0"> |
---|
3 | <tr> |
---|
4 | <td width="360" align="left" valign="top"> |
---|
5 | <table width="360" border="0" cellspacing="0" border="0"> |
---|
6 | {cycle reset=true print=false name=ccl values="kb-table-row-even,kb-table-row-odd"}{section name=i loop=$comments} |
---|
7 | <tr class="{cycle name=ccl}"> |
---|
8 | <td> |
---|
9 | <div style="position: relative;"><a href="?a=search&searchtype=pilot&searchphrase={$comments[i].name}">{$comments[i].name}</a>: |
---|
10 | {if $comments[i].time} |
---|
11 | <span style="position:absolute; right: 0px;">{$comments[i].time}</span> |
---|
12 | {/if} |
---|
13 | <p>{$comments[i].comment}</p> |
---|
14 | {if $page->isAdmin()} |
---|
15 | <a href="javascript:openWindow('?a=comments_delete&c_id={$comments[i].id}', null, 480, 350, '' );">Delete Comment</a> |
---|
16 | {/if} |
---|
17 | </td> |
---|
18 | </tr> |
---|
19 | {/section} |
---|
20 | <tr> |
---|
21 | <td align="center"><form id="postform" name="postform" method="post" action=""> |
---|
22 | <textarea class="comment" name="comment" cols="55" rows="5" wrap="PHYSICAL" onkeyup="limitText(this.form.comment,document.getElementById('countdown'),200);" onkeypress="limitText(this.form.comment,document.getElementById('countdown'),200);"></textarea> |
---|
23 | </td> |
---|
24 | </tr> |
---|
25 | <tr> |
---|
26 | <td> |
---|
27 | <br/> |
---|
28 | <span name="countdown" id="countdown">200</span> Letters left<br/> |
---|
29 | <b>Name:</b> |
---|
30 | <input style="position:relative; right:-3px;" class="comment-button" name="name" type="text" size="24" maxlength="24"> |
---|
31 | {if $config->getConfig('comments_pw') and !$page->isAdmin()} |
---|
32 | <br/> |
---|
33 | <b>Password:</b> |
---|
34 | <input type="password" name="password" size="19" class="comment-button"> |
---|
35 | {/if} |
---|
36 | <input class="comment-button" name="submit" type="submit" value="Add Comment"> |
---|
37 | </form> |
---|
38 | </td> |
---|
39 | </tr> |
---|
40 | </table> |
---|
41 | </td> |
---|
42 | </tr> |
---|
43 | </table> |
---|