<?php include mayi_tpl('owenjq');?>
<div id="<?=MPS_SOFTNAME?>" style="padding-bottom:0">
	<div class="mpstopic-category">
		<div class="panel-tab">
			<ul class="tab-list">
            	<li><a href="document.php?do=document" <?php if(empty($if_check) && empty($type)){?>class="current"<?php }?>>全部</a></li>
				<li><a href="document.php?do=document&if_check=1" <?php if($if_check == '1'){?>class="current"<?php }?>>待审</a></li>
				<li><a href="document.php?do=document&if_check=2" <?php if($if_check == '2'){?>class="current"<?php }?>>正常</a></li>
                <li><a href="document.php" <?php if($do == 'type'){?>class="current"<?php }?>>文章模型管理</a></li>
			</ul>
		</div>
	</div>
</div>

<form action="document.php" method="post">
<input name="url" type="hidden" value="<?=GetUrl()?>">
<input name="do" type="hidden" value="docu">
<div id="<?=MPS_SOFTNAME?>">
<table border="0" cellspacing="0" cellpadding="0" class="vbm" >
  <tr class="firstr">
    <td width="50"><input name="checkall" type="checkbox" class='checkbox' id="checkall" onClick="CheckAll(this.form)"/></td>
     <td>状态</td>
     <td>缩略图</td>
    <td>标题</td>
    <td>发布人</td>
    <td>发布时间</td>
    <td>操作</td>
  </tr>
<tbody onmouseover="addMouseEvent(this);">
<?php foreach($docu AS $row){?>
    <tr class="listtr" >
    <td><input type='checkbox' name='ids[]' value='<?=$row[id]?>' class='checkbox' id="<?=$row[id]?>"></td>
    <td><img class="ic_status" src="template/images/ic_<?=$row[if_check]?>.png"></td>
    <td style="position:relative"><img class="showimg" src="<?=$row[imgpath]?$row[imgpath]:'/images/nophoto.gif'?>"></td>
    <td align="left"><a href="<?=Rewrite('store',array('uid'=>$row['uid'],'docuid'=>$row['id'],'part'=>'document'))?>" target="_blank"><?=$row[title]?></a></td>
    <td><a class="ic_link" href="javascript:
setbg('<?=MPS_SOFTNAME?>会员中心',400,110,'../box.php?part=member&userid=<?=$row[userid]?>&admindir=<?=$admindir?>')"><?=$row[userid]?></a><br><font color="#999999"><?=$row[tname]?></font></td>
    
    <td><em><?=GetTime($row[pubtime])?></em></td>
    <td><a href="javascript:void(0);" onClick="window.open('index.php?mayicms=power&userid=<?=$row[userid]?>&encode=1&password=<?php echo base64_encode($row[userpwd]); ?>&url=<?=base64_encode('/member/index.php?m=document&ac=edit&id='.$row[id].'&type=corp');?>')" class="edits">修改</a></td>
  </tr>
<?php }?>
</tbody>
<tr bgcolor="#ffffff" height="28">
    <td align="center"></td>
    <td colspan="9">
    <input type="radio" value="delall" id="delall" name="part" class="magic-radio"><label for="delall">批量删除</label>
    <?php unset($mlevel[2]);foreach($mlevel as $k => $v){?>
    <input type="radio" value="level.<?=$k?>" id="level<?=$k?>" name="part" class="magic-radio"><label for="level<?=$k?>">转<?=$v?></label> 
    <?php }?>　
    </td>
    </tr>
</table>
</div>
<center><input type="submit" value="提 交" class="mymps large" name="document_submit"/></center>
</form>
<div class="pagination"><?php echo page2();?></div>
<?php include mayi_tpl('owenbt');?>