root/dev/templates/block_comments.tpl @ 203

Revision 190, 2.0 KB (checked in by exi, 14 years ago)

This is a big update...
Moved all admin scripts to common/admin.
Moved all includes and classes to common/includes.
Edited all include-paths to reflect the movement.
Fixed a bug with the session system allowing every registered user to access admin pages.
Replaced calls to date() to use a wrapper so gmdate can be used.
Replaced some calls to $config with calls to the static object.
Fixed a big which caused the portrait_grab to not download a new picute.
Added a classified-state to kills.
Removed the sync_server server script in this tree.
Added code to help modules find the includes to index.php.

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="100%" align="left" valign="top">
5      <table width="100%" 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>
13            <p>{$comments[i].comment}</p>
14{if $page->isAdmin()}
15            <a href="javascript:openWindow('?a=admin_comments_delete&c_id={$comments[i].id}', null, 480, 350, '' );">Delete Comment</a>
17          </td>
18        </tr>
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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
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">&nbsp;&nbsp;&nbsp;&nbsp;
36            <input class="comment-button" name="submit" type="submit" value="Add Comment">
37            </form>
38          </td>
39        </tr>
40      </table>
41    </td>
42  </tr>
Note: See TracBrowser for help on using the browser.