<!--#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"-->
<% kid=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="0">
  
  <%
  set rs=server.createobject("adodb.recordset")
    sql="select * from ku_newskind where id="&kid
    rs.open sql,conn,1,3
 %>

    <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 close
    set rs=nothing
    %>

</table>
<table width="99%" border="0" align="center" cellpadding="3" cellspacing="0">
<form name="thisform" method="post" action="Newsedit_Save.asp?id=<%=request("id")%>">
<%
cid=request("id")
fuhao="../"
set krs=server.createobject("adodb.recordset")
    ksql="select * from ku_news where id="&cid
    krs.open ksql,conn,1,3
    
%>
  <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" maxlength="100" value="<%=krs("title")%>" style="wIDth:412; height:22">
	(<span class="xxx">*</span>)
      推荐<input name="Kind" type="checkbox" id="kind" value="1" <%if(krs("Kind")=1) then response.Write("checked")%>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      标题颜色： <input type="text" name="yanse" size="8" value="<%=krs("yanse")%>">(默认颜色“ 
	#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" value="<%=fuhao%><%=krs("pic")%>"> </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">新闻分类：</td>
    <td height="30" bgcolor="#F7F7F4">
    <%
    set rsnews=server.createobject("adodb.recordset")
sqlnews = "select * from Ku_newskind where id="&request("class")&""
rsnews.open sqlnews,conn,1,3
    %>
    <SELECT name="class" size="1">
<OPTION value="<%=trim(rsnews("id"))%>"><%=trim(rsnews("name"))%></OPTION>    
	<%
set rsclass=server.createobject("adodb.recordset")
sqlclass = "select * from Ku_newskind"
rsclass.open sqlclass,conn,1,1
if rsclass.eof and rsclass.bof then
response.write "请叫管理先添加分类。"
response.end
else
%>
<%do while not rsclass.eof
%><OPTION value="<%=trim(rsclass("id"))%>"><%=trim(left(rsclass("name"),5))%></OPTION>
<%
rsclass.movenext
loop
end if
rsclass.close
%></SELECT>　
	
	</td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#F7F7F4">阅读积分：</td>
    <td height="30" bgcolor="#F7F7F4">
	<input type="text" name="jifen" size="4" value="<%=krs("jifen")%>" maxlength="3"> 积分(如果只是想会员登陆阅读，请设置积分=1)</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="<%=krs("zuozhe")%>">
    (可以为空)</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="<%=krs("laiyuan")%>">
    (可以为空)</td>
</tr>
  <tr>
    <td height="30" align="right" bgcolor="#F7F7F4">可以评论：</td>
    <td height="30" bgcolor="#F7F7F4">
        &nbsp;<input name="pinglun" type="radio" value="0"   <%if krs("pinglun")=0 then%>checked<%end if%>>是<input name="pinglun" type="radio"  value="1" <%if krs("pinglun")=1 then%>checked<%end if%>>否</td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#F7F7F4">是否审核： </td>
    <td height="30" bgcolor="#F7F7F4">
        <input name="shenhe" type="checkbox" id="Pw_Good0" style="border:0px" value="True" <%if krs("shenhe")=1 then%>checked<%end if%>></td>
  </tr>
  <tr>
    <td align="right" bgcolor="#F7F7F4"><span class="EasySiteText">外部链接：</span></td>
    <td bgcolor="#F7F7F4">
    <input name="Mode" type="radio" onClick="offurl()" value="0" <%if(krs("Mode")=0) then response.Write("checked")%>>
    否
    <input name="Mode" type="radio" onClick="onurl()" value="2" <%if(krs("Mode")=2) then response.Write("checked")%>>
    是</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" value="<%=krs("url")%>">
      (例如：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">
    <textarea rows="2" name="content"id="Content" style="display:none" type="hidden"><%=krs("content")%></textarea>

<IFRAME ID="eWebEditor1" src="../ku_eweb/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/>
<br>
<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>