Source

wcf-shoutbox / acptemplates / shoutboxMessageList.tpl

{include file='header'}

<div class="mainHeadline">
	<img src="../icon/shoutboxIcon48x48.png" alt="" />
	<div class="headlineContainer">
		<h1>{lang}wcf.acp.shoutbox.title{/lang}</h1>
	</div>
</div>

{if $users|count > 0}
	<form action="index.php?page=ShoutboxMessageList" method="POST">
		<div class="border tabMenuContent">
			<input type="hidden" name="packageID" value="{@PACKAGE_ID}"/>
			<input type="hidden" name="s" value="{@SID}"/>
			<input type="submit" value="{lang}wcf.acp.shoutbox.delete{/lang}"/>
			{lang}wcf.acp.shoutbox.deleteMessagesFromUser{/lang}
			<select name="selectedUser">
				{foreach from=$users item=user}
					<option value="{@$user['userID']}">{$user['username']}</option>
				{/foreach}
			</select>
		</div>
	</form>
	<br/>
	<br/>
{/if}

{if $messages|count > 0}
	<form action="index.php?page=ShoutboxMessageList" method="POST">
		<div class="border tabMenuContent">
			<input type="hidden" name="packageID" value="{@PACKAGE_ID}"/>
			<input type="hidden" name="s" value="{@SID}"/>
			
			<table class="tableList" width="100%">
			<thead class="cat">
				<tr class="tableHead">
					<th>&nbsp;</th>
					<th>{lang}wcf.acp.shoutbox.listheader.id{/lang}</th>
					<th>{lang}wcf.acp.shoutbox.listheader.time{/lang}</th>
					<th>{lang}wcf.acp.shoutbox.listheader.from{/lang}</th>
					<th>{lang}wcf.acp.shoutbox.listheader.message{/lang}</th>
				</tr>
			</thead>
			
			{foreach from=$messages item=message}
				<tr class="container-{cycle values='1,2'}" style="text-align:left;">
				  <td><input type="checkbox" name="selectedMessages[]" value="{@$message['message_id']}"/></td>
				  <td>{@$message['message_id']}</td>
				  <td>{@$message['message_time']|shorttime}</td>
				  <td>{$message['username']}</td>
				  <td>{$message['message_text']}</td>
				</tr>
			{/foreach}
			</table>
		</div>
		<input type="submit" value="{lang}wcf.acp.shoutbox.deleteSelectedMessages{/lang}"/>
	</form>
{else}
	<div class="border tabMenuContent">
		<br/>{lang}wcf.acp.shoutbox.nomessages{/lang}<br/><br/>
	</div>
{/if}

{include file='footer'}