<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<title>栏目目录树管理</title>
<LINK href="<?=base_url()?>csdj/admin/images/admin.css" type="text/css" rel="stylesheet">
<SCRIPT type="text/javascript" src="<?=base_url()?>csdj/admin/js/admin.js"></script>
<script type="text/javascript" src="<?=base_url()?>csdj/admin/js/dialog.js"></script>
</head>
<BODY style="margin:2px">
<table align="center" border="1" cellspacing="0" cellpadding="5" bordercolor="#C4DFF4" width="950" style="border-collapse:collapse;">
<tr><td align="center" height="20" colspan="2" class="title">[歌曲]模块分类管理&nbsp;|&nbsp;<a href="<?=site_url('admin/news/listsadd/')?>"><b>添加分类</b></a></td></tr>
<tr>
<td width="20" bgcolor="#F0EFEC">&nbsp;</td>
<td width="99%">
<form id="form1" name="form1" method="post" action="<?=site_url('admin/news/listspledit/')?>">
<table width="100%" border="1" cellspacing="0" cellpadding="5" bordercolor="#C4DFF4">
<tr>
      <td><table border="0" cellspacing="0" cellpadding="0">
               <tr align="left"><td width="50"><img src="<?=base_url()?>csdj/admin/images/folderk.gif" align="absmiddle"></td>
                         <td width="40"><b>排序</b>&nbsp;&nbsp;</td>
                         <td width="355"><b>分类名称</b></td>
                         <td width="100">&nbsp;<b>状态</b></td>
                         <td width="150">&nbsp;<b>别名</b></td>
                         <td width="120">&nbsp;<b>数量</b></td>
                         <td width="80">&nbsp;<b>操作</b></td>
               </tr>
          </table>
       </td>
</tr>
<?php
                $sqlstr="select * from ".CS_SqlPrefix."class where CS_SID=2 and CS_FID=0 order by CS_XID asc";
		$result=$this->CsdjDB->db->query($sqlstr);
		$recount=$result->num_rows();
                if($recount>0){
			foreach ($result->result() as $row) {
?>
                          <tr><input name="CS_ID[]" type="hidden" value="<?=$row->CS_ID?>" />
                              <td><table border="0" cellspacing="0" cellpadding="0">
                                    <tr align="left"><td width="50"><img src="<?=base_url()?>csdj/admin/images/folder-.gif" width="18" height="18"><img src="<?=base_url()?>csdj/admin/images/folder.gif" align="absmiddle"></td>
                                       <td width="375"><input size="3" name="CS_XID<?=$row->CS_ID?>" value="<?=$row->CS_XID?>">&nbsp;&nbsp;
                                       <input size="18" name="CS_Name<?=$row->CS_ID?>" value="<?=$row->CS_Name?>">&nbsp;(ID:<?=$row->CS_ID?>)</td>
                                       <td width="100">&nbsp;<select name="CS_YID<?=$row->CS_ID?>"><option value='0' <?php if($row->CS_YID==0) echo " selected='selected'";?>>显示</option><option value='1' <?php if($row->CS_YID==1) echo " selected='selected'";?>>隐藏</option></select></td>
                                       <td width="150">&nbsp;<input size="15" name="CS_AliasName<?=$row->CS_ID?>" value="<?=$row->CS_AliasName?>"></td>
                                       <td width="122">&nbsp;共：<?=$this->CsdjSkins->getclasscount($row->CS_ID,$row->CS_SID)?>篇</td>
                                       <td width="80">&nbsp;&nbsp;<a href="<?=site_url('admin/news/listsedit/'.$row->CS_ID)?>" title="编辑栏目"><img src="<?=base_url()?>csdj/admin/images/fadd.gif"></a>&nbsp;&nbsp;<a href="<?=site_url('admin/news/listsdel/'.$row->CS_ID)?>" title="删除栏目" onClick="return ConfirmDel()"><img src="<?=base_url()?>csdj/admin/images/fdel.gif"></a></td>
                                    </tr>
                                  </table>
                              </td>
                          </tr>
<?php

                               $sqlstrt="select * from ".CS_SqlPrefix."class where CS_SID=2 and CS_FID=".$row->CS_ID." order by CS_XID asc";
		               $resultt=$this->CsdjDB->db->query($sqlstrt);
		               $recountt=$resultt->num_rows();
                               if($recountt>0){
			              foreach ($resultt->result() as $rows) {
?>
                          	              <tr><input name="CS_ID[]" type="hidden" value="<?=$rows->CS_ID?>" />
                             	              <td><table align="left" border="0" cellspacing="0" cellpadding="0">
                                  	              <tr><td align="right" width="90">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="<?=base_url()?>csdj/admin/images/folder-.gif" width="18" height="18"><img src="<?=base_url()?>csdj/admin/images/folder.gif" width="18" height="18" align="absmiddle">
                                      	              <td width="335">&nbsp;&nbsp;<input size="3" name="CS_XID<?=$rows->CS_ID?>" value="<?=$rows->CS_XID?>">&nbsp;&nbsp;
                                                      <input size="14" name="CS_Name<?=$rows->CS_ID?>" value="<?=$rows->CS_Name?>">&nbsp;(ID:<?=$rows->CS_ID?>)</td>
                                      	              <td width="100">&nbsp;<select name="CS_YID<?=$rows->CS_ID?>"><option value='0' <?php if($rows->CS_YID==0) echo " selected='selected'";?>>显示</option><option value='1' <?php if($rows->CS_YID==1) echo " selected='selected'";?>>隐藏</option></select></td>
                                      	              <td width="150">&nbsp;<input size="15" name="CS_AliasName<?=$rows->CS_ID?>" value="<?=$rows->CS_AliasName?>"></td>
                                                      <td width="122">&nbsp;共：<?=$this->CsdjSkins->getclasscount($rows->CS_ID,$row->CS_SID)?>篇</td>
                                                      <td width="80">&nbsp;&nbsp;<a href="<?=site_url('admin/news/listsedit/'.$rows->CS_ID)?>" title="编辑栏目"><img src="<?=base_url()?>csdj/admin/images/fadd.gif"></a>&nbsp;&nbsp;<a href="<?=site_url('admin/news/listsdel/'.$rows->CS_ID)?>" title="删除栏目" onClick="return ConfirmDel()"><img src="<?=base_url()?>csdj/admin/images/fdel.gif"></a></td>
                                  	              </tr>
                                 	              </table>
                              	              </td>
                          	              </tr>
<?php
                                      }
                               }
                        }
                }
?>
<tr>
   <td><input type="submit" name="Submit" class="italk-bt" value=" 批量修改 ">&nbsp;&nbsp;&nbsp;
       提示：&nbsp;<img src="<?=base_url()?>csdj/admin/images/fadd.gif">&nbsp;修改栏目&nbsp;&nbsp;&nbsp;&nbsp;<img src="<?=base_url()?>csdj/admin/images/fdel.gif">&nbsp;删除栏目&nbsp;&nbsp;&nbsp;&nbsp;
   </td>
</tr>
</form>
</table>
</body>
</html>

