<!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;">
<form method="post" Name="myForm" action="<?=site_url('admin/dance/listssave/')?>">
<tr>
<td align="center" height="20" colspan="2" class="title"><?=$title?>栏目</td>
</tr>
<tr>
<td width="20%" align="right"><strong>栏目名称：</strong></td>
<td width="80%"><input style="width:194px" name="CS_Name" value="<?=$CS_Name?>"><font color=red>*</font></td>
</tr>
<tr>
<td width="20%" align="right"><strong>英文名称：</strong></td>
<td width="80%"><input style="width:194px" name="CS_AliasName" value="<?=$CS_AliasName?>"><font color=red>*只能用英文字母</font></td>
</tr>
<tr>
<td align="right"><strong>父 栏 目：</strong></td>
<td>
<select style="width:100px" name="CS_FID">
<option value='0' title='主分类'>主分类</option>
<?php
                $sqlstr="select * from ".CS_SqlPrefix."class where CS_SID=1 and CS_FID=0 order by CS_ID desc";
		$result=$this->CsdjDB->db->query($sqlstr);
		$recount=$result->num_rows();
                if($recount>0){
			foreach ($result->result() as $row) {
                               if($CS_FID==$row->CS_ID){
                                     $strs.='<option value='.$row->CS_ID.' selected="selected">├'.$row->CS_Name.'</option>';
                               }else{
                                     $strs.='<option value='.$row->CS_ID.'>├'.$row->CS_Name.'</option>';
                               }
                        }
                }
                $strs.='</select>';

                echo $strs;
?>
</select>
</td>
</tr>
<tr>
<td align="right"><strong>分类模板：</strong></td>
<td><input style="width:194px" name="CS_Template" id="CS_Template" value="<?=$CS_Template?>" readonly>  <input type="button" name="Submit" value="选择模板" class="italk-st" onClick="SelectFile('CS_Template');"></td>
</tr>
<tr>
<td align="right"><strong>排序：</strong></td>
<td><input style="width:94px" name="CS_XID" value="<?=$CS_XID?>" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"><font color=red>*越小越前面</font></td>
</tr>
<tr>
<td align="right"><strong>META标题：</strong></td>
<td><input style="width:394px" name="CS_Title" value="<?=$CS_Title?>"></td>
</tr>
<tr>
<td align="right"><strong>META关键词：</strong></td>
<td><textarea name="CS_Keywords" style="width:600px;height:60px" rows="5"><?=$CS_Keywords?></textarea></td>
</tr>
<tr><td align="right"><strong>META网页描述：</strong></td>
<td><textarea name="CS_Description" style="width:600px;height:60px" rows="5"><?=$CS_Description?></textarea></td>
</tr>
<tr align="center"><input name="ids" type="hidden" value="<?=$CS_ID?>">
<td height="36" colspan="2"><input type="submit" name="Submit" class="italk-bt" value=" 操  作 "> <INPUT TYPE=BUTTON class="italk-bt" value=" 返  回 " onclick="history.back();"></td>
</tr>
</form>
</table>
</body>
</html>

