<!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/Label.js"></script>
<script type="text/javascript" src="<?=base_url()?>csdj/admin/js/ajaxrequest.js"></script>
<script type="text/javascript" src="<?=base_url()?>csdj/admin/js/dialog.js"></script>
<script type="text/javascript" src="<?=base_url()?>csdj/editor/kindeditor.js"></script>
</head>
<BODY style="margin:2px">
 
	<table align="center" border="1" cellspacing="0" cellpadding="5" bordercolor="#A2DAE7" width="100%" style="border-collapse:collapse;">
	<form name="myForm" method=post action="<?=site_url('admin/vod/topicsave/')?>">
	<tr>
   		<td align="center" height="20" colspan="2" class="title"><?=$title?>新专题</td>
	</tr>
    	<TR>
      		<TD align="right">专题分类：</TD>
      		<TD><select name="CS_CID" size="1" style="width:300px;">
<?php
                $sqlstr="select * from ".CS_SqlPrefix."vlist where CS_FID=0 and CS_YID=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_CID==$row->CS_ID){
                                    echo '<option value='.$row->CS_ID.' selected>├'.$row->CS_Name.'</option>';
                              }else{
                                    echo '<option value='.$row->CS_ID.'>├'.$row->CS_Name.'</option>';
                              }
                               $sqlstrt="select * from ".CS_SqlPrefix."vlist where CS_FID=".$row->CS_ID." and CS_YID=0 order by CS_ID desc";
		               $resultt=$this->CsdjDB->db->query($sqlstrt);
		               $recountt=$resultt->num_rows();
                               if($recountt>0){
			              foreach ($resultt->result() as $rows) {
                                           if($CS_CID==$rows->CS_ID){
                                                 echo '<option value='.$rows->CS_ID.' selected>│&nbsp;&nbsp;└ '.$rows->CS_Name.'</option>';
                                           }else{
                                                 echo '<option value='.$rows->CS_ID.'>│&nbsp;&nbsp;└ '.$rows->CS_Name.'</option>';
                                           }
                                      }
                               }
                        }
                }
?>
                    </select> <input type="checkbox" name="CS_AddTime" value="1" checked><font color=red>更新时间</font></TD>
    	</TR>
	<tr>
		<td align="right" width="20%"><font color=red>＊</font> 专题名称： </td>
		<td width="80%"><input type="text" name="CS_Name" value="<?=$CS_Name?>" style="width:330px;"></td>
	</tr>
	<tr><td align="right"><font color=red>＊</font> 标签：</td>
	<td><input type="text" style="width:330px" name="CS_Tags" id="CS_Tags" value="<?=$CS_Tags?>"> 多个用,分隔  
		<input type="button" name="Submit" value="快速选择" onClick="SelectTags('CS_Tags');" class="italk-st"></td>
	</tr>
	<tr>
		<td align="right" width="20%"><font color=red>＊</font> 英文名称： </td>
		<td width="80%"><input type="text" name="CS_AliasName" value="<?=$CS_AliasName?>" style="width:330px;">  <font color=red>专题英文名称!</font></td>
	</tr>
	<tr>
		<td align="right" width="20%">发行公司： </td>
		<td width="80%"><input type="text" name="CS_Fxgs" value="<?=$CS_Fxgs?>" style="width:330px;"> </td>
	</tr>
	<tr>
		<td align="right" width="20%">发行年份： </td>
		<td width="80%"><input type="text" name="CS_Year" value="<?=$CS_Year?>" style="width:330px;"> </td>
	</tr>
	<tr>
		<td align="right" width="20%">专题语言： </td>
		<td width="80%"><input type="text" name="CS_Yuyan" value="<?=$CS_Yuyan?>" style="width:330px;"> </td>
	</tr>
	<tr>
		<td align="right"><font color=red>＊</font> 专题图片： </td>
		<td><input type="text" name="CS_Pic" id="CS_Pic" value="<?=$CS_Pic?>" style="width:330px;"> 
		  <input type="button" name="Submit" value="图片上传" class="italk-st" onClick="Uploadpic('topic');"></td></td>
	</tr>
	<tr><td align="right"><font color=red>＊</font> 专题模板：</td>
		<td><input style="width:330px;" name="CS_Template" id="CS_Template" value="<?=$CS_Template?>" readonly>
		<input type="button" name="Submit" value="选择模板" onClick="SelectFile('CS_Template');" class="italk-st"></td>
	</tr>
	<tr>
		<td align="right" width="20%"><font color=red>＊</font> 所属会员： </td>
		<td width="80%"><input type="text" name="CS_User" value="<?=$CS_User?>" style="width:330px;"> <font color=red>必须是站内注册的会员!</font> </td>
	</tr>
	<tr>
		<td align="right">专题简介：</td>
		<td><textarea name="CS_Content" style="width:100%;Height:150px" class="textarea"><?=$CS_Content?></textarea><script type="text/javascript">AdminEditor('CS_Content');</script></td>
	</tr>
	<tr><input name="CS_ID" type="hidden" value="<?=$CS_ID?>">
		<td height="30" align="center" colspan=2>
		<input type="submit" name="Submit" value="确定操作" class="italk-bt">
		<input type="reset" name="Reset" value="清空重写" class="italk-bt">
		<INPUT TYPE=BUTTON value=" 返回 " onclick="history.back();" class="italk-bt"></td>
	</tr>
</form>
</table>
</BODY>
</HTML>

