<div class="list m-tableinfo">
	<div class="hint"><h4>总消息数：<em>{?$msgcount?}&nbsp;</em>条</h4></div>
	<div class="tabs">
		<ul>
			<li class="ll{?if $box=='inbox'?} crt{?/if?}"><a href="?box=inbox&menuid=15">收件箱</a></li>
			<li class="{?if $box=='outbox'?} crt{?/if?}"><a href="?box=outbox&menuid=16">发件箱</a></li>
		</ul>
	</div>
	<div class="contents">
		<form action="{?$url_delete?}" method="post" name="checkform" id="checkform">
		<input name="checkaction" type="hidden" id="checkaction" value="0">
		<table class="border">
			<colgroup valign="middle">
				<col width="22">
				<col>
				<col>
				<col>
				<col>
			</colgroup>
			<thead>
				<tr>
					<td width="22px"><input type="checkbox" id="checkall" name="checkall" value="checkall" onclick="javascript: for(var i=0;i<this.form.elements.length;i++){ if(this.form.elements[i].name != 'checkkall') this.form.elements[i].checked = form.checkall.checked; }" /></td>
					<td>状态</td>
					<td>{?$usertitle?}</td>
					<td>标题</td>
					<td>日期</td>
				</tr>
			</thead>
			<tbody>
				{?section name=i loop=$messagerows?}
				<tr>
					<td><input type="checkbox" id="checkid[]" name="checkid[]" value="{?$messagerows[i].messageid?}"></td>
					<td>{?if $messagerows[i].toid == 0?}<img src="{?$saxue_skin_url?}/images/icon/msg.gif" align="absmiddle" title="全站用户">{?elseif $messagerows[i].isread == 0?}<span class="red">未读</span>{?else?}<span class="green">已读</span>{?/if?}</td>
					<td>{?if $messagerows[i].uid == 0?}<span class="red">系统消息</span>{?else?}{?$messagerows[i].uname?}{?/if?}</td>
					<td><a href="{?$messagerows[i].detail?}">{?$messagerows[i].title?}</a></td>
					<td>{?$messagerows[i].postdate|date:'Y-m-d H:i'?}</td>
				</tr>
				{?/section?}
			</tbody>
		</table>
		<input class="subbtn" type="button" value="删除选中" onclick="javascript:if(confirm('确实要删除选中消息吗？')){this.form.checkaction.value='1'; this.form.submit();}" />
		<input class="subbtn" type="button" value="清空{?$boxname?}" onclick="javascript:if(confirm('确实要清空{?$boxname?}所有消息吗？')) document.location='{?$url_empty?}'" />
		</form>
		{?if $totalpage>1?}{?$url_jumppage?}{?/if?}
	</div>
</div>