<?php include pTemplate("header");?>
     <div id="loadingbar"></div>
     
     <div id="main" class="mainPanel wd txt_left">
    <div class="company">
        <aside class="left_panel" un="leftNavBar">
            <ul class="sidetd">
                <?php echo $left_menu_html;?>
            </ul>
        </aside>
        <div class="right_panel">
        <div class="content_block" un="addr">
        <div style="position:relative"><h1>公告管理</h1>
        
        <div class="tool_box" style="position:absolute; right:2px; top:1px;">
        <a id="btnAddMbr" href="<?php echo SITEURL;?>?mod=school&do=class_affairs&c=addann" class="btn btn_add ">
        <span class="btnNotice"></span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;发布公告</a>
        </div>
       
        
     <div class="content">
<table class="notice_table">
<tbody>

<?php foreach((array)$arrann as $key=>$item) {?>
<tr class="notice_send">
<td width="33px" align="left">
<span class="ico_noti_pre"></span>
</td>
<td align="left">
<a href="<?php echo SITEURL;?>?mod=school&do=class_affairs&c=ann_content&id=<?php echo $item['id'];?>&authcode=<?php echo $item['idauthcode'];?>" style="text-decoration:none">
<div class="notice_t" style="width:500px;">
<h2 style="font-weight:lighter; width:400px;"><?php echo $item['title'];?></h2>
<span class="graytext">&nbsp;</span></div>
</a></td>
<td width="100px" align="left"><?php echo get_format_time($item['dateline'])?></td>
<td width="104px" align="left">
<?php if($item['bid']==1) { ?>
<a class="bt_del" title="删除" href="javascript:''" onclick="return alert('系统公告禁止删除')"></a>
&nbsp;&nbsp;
<a class="bt_rename" title="编辑" href="javascript:''" onclick="return alert('系统公告禁止删除')"></a>
<?php } else { ?>
<a class="bt_del" title="删除" href="?mod=school&do=class_affairs&c=delann&id=<?php echo $item['id'];?>&authcode=<?php echo $item['idauthcode'];?>" onclick="return confirm('您确定要删除吗，如不确定请点取消')"></a>
&nbsp;&nbsp;
<a class="bt_rename" title="编辑" href="#compose/mail/compose,ZA0308K9qNmuT6RaqSzBjHcPH~pg2a,0"></a>
<?php } ?>
</td></tr>
 <?php }?>



</tbody>
</table>

<div class="notice_page">
	
	<div class="pagination">
		<?php echo $pageinfo;?>
		</div>
</div>

</div>
        
        </div></div>
    </div>
</div>
</div>

<?php include pTemplate("footer");?>

</body>
</html>