You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
2.3 KiB
60 lines
2.3 KiB
<div class="well well-sm">
|
|
<h2><a href="{$smarty.const.WWW_TOP}/forum">Forum</a></h2>
|
|
{if $results|@count > 0}
|
|
<h3>{$results[0].subject|escape:"htmlall"}</h3>
|
|
<a id="top"></a>
|
|
<table style="width:100%;" class="data highlight table" id="forumtable">
|
|
<tr>
|
|
<th style="padding-top:0px; padding-bottom:0px;">By</th>
|
|
<th style="padding-top:0px; padding-bottom:0px;">Message</th>
|
|
</tr>
|
|
{foreach $results as $result name=result}
|
|
<tr class="{cycle values=",alt"}">
|
|
<td width="15%;">
|
|
{if isset($isadmin) && $isadmin == 1}<strong>{/if}
|
|
<a {if $smarty.foreach.result.last}id="last"{/if}
|
|
title="{if isset($isadmin) && $isadmin == 1}Admin{else}View profile{/if}"
|
|
href="{$smarty.const.WWW_TOP}/profile/?name={$result.username}">{$result.username}</a>
|
|
{if isset($isadmin) && $isadmin == 1}</strong>{/if}
|
|
<br/>
|
|
on <span title="{$result.createddate}">{$result.createddate|date_format}</span>
|
|
<div class="hint">({$result.createddate|timeago})</div>
|
|
{if $userdata.id == $result.user_id || $isadmin || $ismod}
|
|
<div>
|
|
<a class="btn btn-mini btn-warning"
|
|
href="{$smarty.const.WWW_TOP}/post_edit?id={$result.id}"
|
|
title="Edit Post">Edit</a>
|
|
</div>
|
|
{/if}
|
|
{if $userdata.role == 2}
|
|
<br/>
|
|
<div>
|
|
<a class="rndbtn confirm_action btn btn-mini btn-danger"
|
|
href="{$smarty.const.WWW_TOP}/admin/forum-delete.php?id={$result.id} from={$smarty.server.REQUEST_URI|escape:"url"}"
|
|
title="Delete Post">Delete</a>
|
|
</div>
|
|
{/if}
|
|
</td>
|
|
<td>{$result.message}</td>
|
|
</tr>
|
|
{/foreach}
|
|
</table>
|
|
<div id="new" tabindex="-1" role="dialog" aria-labelledby="myLabel" aria-hidden="true">
|
|
<div class="header">
|
|
<h3 id="myLabel">Reply</h3>
|
|
</div>
|
|
<div class="body">
|
|
<form id="forum-post-reply" class="form-horizontal" action="" method="post">
|
|
<div class="control-group">
|
|
<label class="control-label" for="addMessage">Message</label>
|
|
<div class="controls">
|
|
<textarea id="addMessage" name="addMessage"></textarea>
|
|
</div>
|
|
<input class="btn btn-success" type="submit" value="Submit"/>
|
|
<input class="btn btn-warning" value="Cancel" onclick="if(confirm('Are you SURE you wish to cancel?')) history.back();" />
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
|