<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="admin/admin/template/style/admin.css" rel="stylesheet" type="text/css" />
<script src="include/js/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
function closec(tid){
	if ($.browser.msie) {
		if($("."+tid).css('display')=='inline'){
			$("."+tid).css('display','none');
			$("#"+tid).attr('class', 'classico1');
		}else{
			$("."+tid).css('display','inline');
			$("#"+tid).attr('class', 'classico2');
		}
	}else{
		if($("."+tid).css('display')=='table-row'){
			$("."+tid).css('display','none');
			$("#"+tid).attr('class', 'classico1');
		}else{
			$("."+tid).css('display','table-row');
			$("#"+tid).attr('class', 'classico2');
		}
	}
}
</script>
</head>

<body>
<div class="maintop">当前位置：<?php echo $toptxt ?></div>
<div class="main">
<table width="100%" class="tablist">
  <tr class="trbg">
    <td width="40">ID</td>
    <td>栏目名称</td>
    <td width="80">功能频道</td>
    <td width="150">快捷</td>
    <td width="320">栏目操作</td>
  </tr>
<?php foreach($lists as $v){
if($auser->checkclass($v['tid'])){
if($v['n']==0)$c=$v['tid'];
?>
  <tr<?php if($v['n']>0){echo ' class="c'.$c.'" style="display:none;"';}else{echo ' class="classp"' ;} ?>>
    <td><?php echo $v['tid']; ?></td>
    <td class="tdleft"><?php if($v['n']==0){echo '<span class="classico1" id="c'.$c.'" onclick=closec("c'.$c.'")></span>';}?><?php if($auser->checkgo('ld_'.$v['molds'].'_','',1)){?>
    <span style="color:#CCC"><?php if($v['n']>0){echo '|';}echo str_repeat('—',$v['n']); ?></span><?php if($auser->checkgo('ld_classtypes','edit')){?><a href="?c=<?php echo $Get_c; ?>&a=edit&tid=<?php echo $v['tid']; ?>"><?php echo $v['name']; ?></a><?php }else{echo $v['name'];} ?>
    <?php }else{echo $v['name'];} ?></td>
    <td><?php echo moldsinfo($v['molds'],'moldname'); ?></td>
    <td><?php if($auser->checkgo('ld_classtypes','add')){?><a href="?c=<?php echo $Get_c; ?>&a=add&tid=<?php echo $v['tid']; ?>">添加下级栏目</a>&nbsp;&nbsp;<?php } ?></td>
    <td><a href="index.php?c=<?php echo $v['molds'] ?>&a=type&tid=<?php echo $v['tid']; ?>" target="_blank">预览</a>&nbsp;&nbsp;
    <?php if($auser->checkgo('ld_fields')){?><a href="?c=ld_fields&molds=<?php echo $v['molds']; ?>&tid=<?php echo $v['tid']; ?>">字段管理</a>&nbsp;&nbsp;<?php } ?>
    <?php if($auser->checkgo('ld_classtypes','edit')){?><a href="?c=<?php echo $Get_c; ?>&a=edit&tid=<?php echo $v['tid']; ?>">编辑</a>&nbsp;&nbsp;<?php } ?>
	<?php if($auser->checkgo('ld_classtypes','del')){?><a href="?c=<?php echo $Get_c; ?>&a=del&tid=<?php echo $v['tid']; ?>">删除</a><?php } ?></td>
  </tr>
<?php }} ?>
</table>
</div>
</body>
</html>
