<? if(!defined('UC_ROOT')) exit('Access Denied');?>
<? include $this->gettpl('header');?>

<script src="js/common.js" type="text/javascript"></script>
<div class="container">
	<h3>通知列表</h3>
	<? if($status == 2) { ?>
		<div class="correctmsg"><p>通知列表成功更新。</p></div>
	<? } ?>
	<div class="mainbox">
		<? if($notelist) { ?>
			<form action="admin.php?m=note&a=ls" method="post">
			<input type="hidden" name="formhash" value="<?=FORMHASH?>">
			<table class="datalist" onmouseover="addMouseEvent(this);" style="overflow-x:scroll;table-layout:fixed;">
				<tr>
					<th width="60"><input type="checkbox" name="chkall" id="chkall" onclick="checkall('delete[]')" class="checkbox" /><label for="chkall">删除</label></th>
					<th width="130">操作</th>
					<th width="60">通知次数</th>
					<th width="50">参数</th>
					<th width="140">最后通知时间</th>
					<? foreach((array)$applist as $app) {?>
						<? if($app['recvnote']) { ?>
							<th width="50"><?=$app['name']?></th>
						<? } ?>
					<? } ?>
				</tr>
				<? foreach((array)$notelist as $note) {?>
					<tr>
						<td><input type="checkbox" name="delete[]" value="<?=$note['noteid']?>" class="checkbox" /></td>
						<td><strong><?=$note['operation']?></strong></td>
						<td><?=$note['totalnum']?></td>
						<td><a href="###" onclick="alert('<?=$note['getdata']?><?=$note['postdata2']?>');">查看</a></td>
						<td><?=$note['dateline']?></td>
						<? foreach((array)$applist as $appid=>$app) {?>
							<? if($app['recvnote']) { ?>
								<td><?=$note['status'][$appid]?></td>
							<? } ?>
						<?}?>
					</tr>
				<? } ?>
				<tr class="nobg">
					<td><input type="submit" value="提 交" class="btn" /></td>
					<td class="tdpage" colspan="<? echo count($applist) + 4;?>"><?=$multipage?></td>
				</tr>
			</table>
			</form>
		<? } else { ?>
			<div class="note">
				<p class="i">目前没有相关记录!</p>
			</div>
		<? } ?>
	</div>
</div>

<? include $this->gettpl('footer');?>