root/dev/templates/block_comments.tpl @ 133

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

Reduced one potential sql-bug.
Added ability to identify items as t2 via their techlevel rather than just 'II'.
Fixed item location 0 to not cause skipping that item.
Added anzahl/quantity-replace for the german killpreparser.
Fixed final blow award to show correct numbers.
Removed unnecessary code from db.php.
Added a table data check to the sql importer and made the importer more verbose, this should minimize support requests caused by empty table data.
Fixed a small misalignment of the comment block.

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=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.