<? include mymps_tpl('inc_head')?>
<form name="form_mymps" action="?part=list" method="post">
<div id="mymps">
<table border="0" cellspacing="0" cellpadding="0" class="vbm">
  <tr class="firstr">
      <td>编号</td>
      <td width="60"><input name="chkall" type="checkbox" onclick="AllCheck('prefix', this.form, 'if_viewids')" class="checkbox"/>启用?</td>
	  <td width="60">排列顺序</td>
      <td>名称</td>
      <td>操作</td>
      <td>&nbsp;</td>
    </tr>
<?php
foreach($f_cat AS $cat)
{
?>
  <tr <?php if($cat['level'] == 0){?>bgcolor="#f5fbff" <?}else{?>  bgcolor="#ffffff" <?}?>>
  <td width="40"><?=$cat[catid]?></td>
  <td><input id="<?=$cat[catid]?>" class="checkbox" name="if_viewids[]" value="<?=$cat[catid]?>" type="checkbox" <?if ($cat[if_view] == 2) echo 'checked';?> /></td>
  <td><input name="catorder[<?=$cat[catid]?>]" value="<?=$cat[catorder]?>" class="txt" type="text"/></td>
  <td><li class="margin<?=$cat['level']?> <?php if($cat['parentid'] != '0') echo 'son'?>" style="color:<?=$cat['color']?>"><a href="../category.php?catid=<?php echo $cat['catid']; ?> "<?php if($cat['level'] == 0){?>style="font-weight:bold" <?}?> target="_blank"><?=$cat[catname]?></a></li></td>
  <td><a href="category.php?part=edit&catid=<?=$cat[catid]?>">编辑</a> / <a href="category.php?part=del&catid=<?=$cat[catid]?>" onClick="if(!confirm('确定要删除栏目吗？\n\n该操作将删除隶属该栏目的子栏目以及分类信息！'))return false;">删除</a>      </td>
  <td width="30">&nbsp;<?php if($cat['level'] == 0){?><a onclick="window.scrollTo(0,0);" style="cursor:pointer" title="至页面顶端">TOP</a><?}?></td>
</tr>
<?php
}?>
</table>
</div>
<center><input name="<?=CURSCRIPT?>_submit" type="submit" value="提交" class="mymps large"/></center>
</form>
<?=mymps_admin_tpl_global_foot()?>