root/dev/templates/block_comments.tpl @ 491

Revision 388, 2.1 KB (checked in by kovell, 12 years ago)

Page cache fixes for comments.
refresh no longer reposts comment.
comments display again.
304 sent for refresh of cached pages.
html fixes

Line 
1<div class="block-header">Comments</div>
2<table class="kb-table" width="360" border="0" cellspacing="1">
3  <tr>
4    <td width="100%" align="left" valign="top">
5      <table width="100%" border="0" cellspacing="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&amp;searchtype=pilot&amp;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=admin_comments_delete&amp;c_id={$comments[i].id}', null, 480, 350, '' );">Delete Comment</a>
16<span style="position:absolute; right: 0px;"><u>Posters IP:{$comments[i].ip}</u></span>
17{/if}
18          </div></td>
19        </tr>
20{/section}
21        <tr><td><form id="postform" name="postform" method="post" action=""><table><tr>
22          <td align="center">
23            <textarea class="comment" name="comment" cols="55" rows="5" wrap="virtual" style="width: 340px;" onkeyup="limitText(this.form.comment,document.getElementById('countdown'),200);" onkeypress="limitText(this.form.comment,document.getElementById('countdown'),200);"></textarea>
24          </td>
25        </tr>
26        <tr>
27          <td>
28            <br/>
29            <span title="countdown" id="countdown">200</span> Letters left<br/>
30            <b>Name:</b>
31            <input style="position:relative; right:-3px;" class="comment-button" name="name" type="text" size="24" maxlength="24">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
32{if $config->get('comments_pw') and !$page->isAdmin()}
33            <br/>
34            <b>Password:</b>
35            <input type="password" name="password" size="19" class="comment-button">&nbsp;&nbsp;&nbsp;&nbsp;
36{/if}
37            <input class="comment-button" name="submit" type="submit" value="Add Comment">
38           
39          </td></tr></table></form></td>
40        </tr>
41      </table>
42    </td>
43  </tr>
44</table>
Note: See TracBrowser for help on using the browser.