<?php include mayi_tpl('inc_header');?><link rel="stylesheet" type="text/css" href="template/css/new.exchange.css" /><script language="javascript" src="template/javascript.js"></script></head><body class="blue"><div class="container"><div id="main" class="main section-setting"><div class="clearfix main-inner"><div class="content"><div class="clearfix content-inner"><div class='location'><?=$location?></div><div class="content-main"><div class="content-main-inner"><div class="pwrap"><div class="pbody">
<div class="cleafix pagetab-wrap">
<ul class="pagetab">
<li><a href="javascript:;" onClick="window.location.href='?m=document'"<?php if($m == 'document'){?>class="current"<?php }?>><span>店铺新闻</span></a></li>
</ul>
</div>
<div class="cleafix pagetab-wrap smallnav"><ul class="pagetab"><?php foreach($documenttype as $key => $val){?><li><a href="?m=document&tid=<?=$val['typeid']?>" <?php if($tid == $val['typeid']){?>class="current"<?php }?>><span><?=$val['typename']?></span></a></li><?php }?><li><a class="addnew" href="?m=document&tid=<?=$tid?>&ac=new"><span>发布<?=$documenttype[$tid]['typename']?></span></a></li></ul></div><div id="msg_success"></div><div id="msg_error"></div><div id="msg_alert"></div><form method="post" action="?m=<?=$m?>&tid=<?=$tid?>&page=<?=$page?>"><div class="datatablewrap"><table class="datatable"><thead><tr><td width="30"><input class="checkall" name="checkall" type="checkbox" id="checkall" onClick="CheckAll(this.form)"/></td><td width="40">状态</td><td width="700">标题</td><td>发布时间</td><td></td></tr></thead><tbody><?php if($rows_num == 0 ){?><tr><td colspan="5"><div class="nodata">您尚未添加<?=$documenttype[$tid]['typename']?></div></td></tr><?php } else {
                $i = 1;
                foreach($document as $d){
                ?><tr <?php if($i%2 == 0) echo 'class="row-even"'?>><td><input class="checkbox" type='checkbox' name='selectedids[]' value='<?=$d[id]?>' id="<?=$d[id]?>'"></td><td><?=$ifcheck_arr[$d['if_check']]?></td><td><a href="<?=Rewrite('store',array('uid'=>$row['id'],'docuid'=>$d['id'],'part'=>'document'))?>" target="_blank" title="<?=$d['title']?>"><?=cutstr($d['title'],52)?></a><?php if($d['imgpath']) echo '<span class="imgnum">图</span>'?></td><td><?=GetTime($d['pubtime'])?></td><td><a href="?m=document&ac=edit&id=<?=$d['id']?>" class="editme" title="编辑"></a></td></tr><?php 
                	$i++;
                    }
                    unset($i);
                }
                ?></tbody></table><div class="clearfix datacontrol"><div class="dataaction"><span class="minbtn-wrap"><span class="btn"><input type="submit" value="删除" class="button" name="document_submit" onClick="if(!confirm('您确定要删除这些<?=$documenttype[$tid]['typename']?>吗?一旦删除将不可恢复'))return false;"/></span></span></div><div class="pagination"><?php echo page2(); ?></div></div></div></form></div><div class="pfoot"><p><b>-</b></p></div></div></div></div></div></div></div></div><?php include mayi_tpl('inc_foot');?></div></body></html>