<!--#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>
<script language="javascript" type="text/javascript">
<!--
function changeColor(o) {
    document.getElementById("colorBox").style.color = o.value;
}
//-->
</script>
</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="130" height="30" align="right" bgcolor="#F7F7F4" class="EasySiteText">
	标　　题：</td>
    <td width="875" 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 name="dcolor" type="text" id="dcolor" size="8" onChange="changeColor(this);" readonly /> <input type="button" name="Submit" value="择色" onClick="window.open('colorpicker.html', 'colorPicker', 'width=200, height=160');" /></td>
    <td width="180" height="30" bgcolor="#F7F7F4">
	<div id="colorBox1" style="width: 180px;height: 0px"> 
                        <table width="166" border="0" cellspacing="0" cellpadding="0" height="0">
                          <tr> 
                            <td></td>
                          </tr>
                        </table>
                        <div id="colorBox">&nbsp;标题颜色演示</div>
                      </div>
</td>
  </tr>
<tr>
  <td height="30" align="right" bgcolor="#F7F7F4" class="EasySiteText">可以评论：</td>
  <td height="30" bgcolor="#F7F7F4" colspan="2">
	<input type="radio" value="1" name="pinglun">否<input type="radio" value="0" checked name="pinglun">是</td>
</tr>
<tr>
  <td height="30" align="right" bgcolor="#F7F7F4" class="EasySiteText">图　　片：</td>
  <td height="30" bgcolor="#F7F7F4" colspan="2">
	<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" colspan="2">
  <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" colspan="2">
	<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" colspan="2">
	<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" colspan="2">
	<input type="text" name="jifen" size="4" value="0" maxlength="3"> 积分(如果只是想会员登陆阅读，请设置积分=1)</td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#F7F7F4">是否审核： </td>
    <td height="30" bgcolor="#F7F7F4" colspan="2">
        <input name="shenhe" type="checkbox" id="Pw_Good0" style="border:0px" value="True" checked></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#F7F7F4"><span class="EasySiteText">
	外部链接：</span></td>
    <td height="30" bgcolor="#F7F7F4" colspan="2">
    <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" colspan="2"><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" colspan="2">
<INPUT type="hidden" name="content" >
<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="3" bgcolor="#F7F7F4"></td>
  </tr>
  <tr>
    <td height="30" colspan="3" 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="3" 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>