<!--#include file="../Ku_inc/Ku_sql.asp"-->
<!--#include file="../Ku_inc/Ku_config.asp"-->
<!--#include file="Ku_conn.asp"-->

<!--#include file="../Ku_inc/inc.asp"-->


<!-- #include file="Session.asp"-->
<% id=request("class")%>
<html>
<head>
<title>添加新闻</title>

<link href="include/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.news_add{
	height:22px;
	border:1px solid #BEBEBE;
	background-color:#FFF;
	padding-top: 2px;
	padding-right: 8px;
	padding-bottom: 0pt;
	padding-left: 3px;

}
input{
	height:22px;
	border:1px solid #BEBEBE;
	background-color:#FFF;
	padding-top: 2px;
	padding-right: 8px;
	padding-bottom: 0pt;
	padding-left: 3px;
}
-->
</style>
</head>
<body>
<table width="99%" border="0" align="center" cellpadding="3" cellspacing="1">
  
  <%
  set rs=server.createobject("adodb.recordset")
    sql="select * from ku_newskind where id="&id
    rs.open sql,conn,1,3

  do while not rs.eof%>

    <tr>
      <td colspan="2" bgcolor="#F2F2F2"><b>添加新闻：</b>&nbsp;[您将在“<b><%=rs("name")%></b>”中添加 
		新闻]&nbsp;&nbsp;<a href="javascript:history.back(1)" class="navigationLink">[返回]</a></td>
    </tr>
    <%
       rs.movenext
   loop
    
 rs close
    set rs=nothing
    %>

</table>
<table width="99%" border="0" align="center" cellpadding="3" cellspacing="1">
<form name="thisform" method="post" action="News_Save.asp?class=<%=request("class")%>">
  <tr>
    <td width="11%" height="30" align="right" bgcolor="#F7F7F4" class="EasySiteText">
	标　　题：</td>
    <td width="89%" height="30" bgcolor="#F7F7F4">
	<input name="title" type="text"  ID="title" style="wIDth:402; height:22" maxlength="100">
	(<span class="xxx">*</span>)推荐<input name="Kind" type="checkbox" id="kind" value="1" checked>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      标题颜色： <input type="text" name="yanse" size="8" value="#000000">(默认颜色“ 
	#000000 ” 为黑色)</td>
  </tr>
<tr>
  <td height="30" align="right" bgcolor="#F7F7F4" class="EasySiteText">图　　片：</td>
  <td height="30" bgcolor="#F7F7F4">
	<input name="pic" type="text" ID="description" style="wIDth:271; height:18" maxlength="100"> 
	 </td>
</tr>
<tr>
  <td height="30" align="right" bgcolor="#F7F7F4" class="EasySiteText">上　　传：</td>
  <td height="30" bgcolor="#F7F7F4">
  <iframe frameborder=0 width=290 height=25 scrolling=no src="upload.asp?action=art"></iframe>
	　</td>
</tr>
<tr>
  <td height="30" align="right" bgcolor="#F7F7F4" class="EasySiteText">作　　者：</td>
  <td height="30" bgcolor="#F7F7F4">
	<input name="zuozhe" type="text" ID="description" style="wIDth:123; height:18" maxlength="100" value="<%=session("ku_admin")%>">
    (可以为空)</td>
</tr>
<tr>
  <td height="30" align="right" bgcolor="#F7F7F4" class="EasySiteText">来　　源：</td>
  <td height="30" bgcolor="#F7F7F4">
	<input name="laiyuan" type="text" ID="description" style="wIDth:123; height:18" maxlength="100" value="网络转载">
    (可以为空)</td>
</tr>
  <tr>
    <td height="30" align="right" bgcolor="#F7F7F4">阅读积分：</td>
    <td height="30" bgcolor="#F7F7F4">
	<input type="text" name="jifen" size="4" value="0" maxlength="3"> 积分(如果只是想会员登陆阅读，请设置积分=1)</td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#F7F7F4"><span class="EasySiteText">
	外部链接：</span></td>
    <td height="30" bgcolor="#F7F7F4">
    <input name="Mode" type="radio" onClick="onurl()" value="0" checked>
    否
    <input name="Mode" type="radio" onClick="offurl()" value="2">
    是</td>
  </tr>
  <tr id="url">
    <td height="30" align="right" bgcolor="#F7F7F4"><span class="EasySiteText">
	URL：</span></td>
    <td height="30" bgcolor="#F7F7F4"><input name="URL" type="text" ID="URL" style="wIDth:60%" maxlength="100">
      (例如：http://www.kuhang.cn)</td>
  </tr>

  <tr id="nr">
    <td height="30" align="right" bgcolor="#F7F7F4"><span class="EasySiteText">
	内　　容：</span></td>
    <td height="30" bgcolor="#F7F7F4">
<INPUT type="hidden" name="content" >
<IFRAME ID="eWebEditor1" src="../ku_web/ewebeditor.asp?id=content&style=s_light" frameborder="0" scrolling="no" width="650" height="350"></IFRAME>

</td>
  </tr>
  <tr>
    <td height="30" colspan="2" bgcolor="#F7F7F4"></td>
  </tr>
  <tr>
    <td height="30" colspan="2" align="center" bgcolor="#F7F7F4"><input type="hidden" name="pageID" value="<%=clng(Request("pageID"))%>"><input type="hidden" name="pageMode" value="<%=clng(Request("pageMode"))%>"><input type="submit" name="Submit" value="提 交">
      <label>
         <input name="button" type="reset"  id="button" value=" 重 置 ">
      </label></td>
  </tr>
  <tr>
    <td colspan="2" bgcolor="#F7F7F4">　</td>
  </tr>
</form>
</table>
<hr/>
<p align="center"><!-- #include file="Ku_bottom.asp"--></p>

</body>
</html>

<script>
function onurl()
{
	document.getElementById("url").style.display='none';

	document.getElementById("nr").style.display='';
}
function offurl()
{
	document.getElementById("url").style.display='';

	document.getElementById("nr").style.display='none';
}
onurl();
</script>