<!--#include file="../../Conn.asp" -->
<!--#include file="../../Comm/Site_Class.asp" -->
<%
PagePath = "../../"

Set Qsite = New Site_Class

Qsite.SiteConfig_Master()
%>
<!--#include file="../Check_Login.asp" -->
<%
Qsite.Check_AdminFlag(arrAdminFlag(4 , 1))

Dim custom_title,custom_Content,custom_keywords,custom_Description,custom_order,viewNum
Dim rs,custom_url
If Request.Form <> "" Then
	custom_title = Qsite.chgStr(Trim(Request.Form("custom_title")))
	custom_keywords = Qsite.chgStr(Trim(Request.Form("custom_keywords")))
	custom_Description = Qsite.chgStr(Trim(Request.Form("custom_Description")))
	custom_Content = Qsite.chgStrHtml(Trim(Request.Form("custom_Content")))
	custom_order =  Qsite.chgStr(Trim(Request.Form("custom_order")))
	custom_url = Qsite.chgStr(Trim(Request.Form("custom_url")))
	
	If custom_title = "" Or IsNull(custom_title) Then
		Qsite.ShowMsg "请输入单页标题" , ""
	End If
	If custom_order = "" Or Not IsNumeric(custom_order) Then
		Qsite.ShowMsg "请输入排序" , ""
	End If
	
	Set rs = server.CreateObject("adodb.recordset")
    	rs.Open "select * from custom", conn, 1, 3
    	rs.addnew
    	rs("custom_title") = custom_title
    	rs("custom_keywords") = custom_keywords
    	rs("custom_Description") = custom_Description
		rs("custom_content") = custom_content
		rs("custom_order") = custom_order
		rs("custom_url") = custom_url
    	rs.update
		rs.close
	set rs = nothing
	
	Qsite.ShowMsg "单页添加成功" , "about_Add.asp"
End If
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--文本编辑器部分start-->
<link href="../news/kindeditor/themes/default/default.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="../news/kindeditor/plugins/code/prettify.css" />
<script charset="utf-8" src="../news/kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="../news/kindeditor/lang/zh_CN.js"></script>
<script charset="utf-8" src="../news/kindeditor/plugins/code/prettify.js"></script>
	<script>
		KindEditor.ready(function(K) {
			var editor1 = K.create('textarea[name="custom_Content"]', {
				cssPath : '../news/kindeditor/plugins/code/prettify.css',
				uploadJson : '../news/kindeditor/upload_json.asp',
				fileManagerJson : '../news/kindeditor/file_manager_json.asp',
				allowFileManager : true,
				afterCreate : function() {
					var self = this;
					K.ctrl(document, 13, function() {
						self.sync();
						K('form[name=PosForm]')[0].submit();
					});
					K.ctrl(self.edit.doc, 13, function() {
						self.sync();
						K('form[name=PosForm]')[0].submit();
					});
				}
			});
			prettyPrint();
		});
	</script>
      
<!--文本编辑器部分end-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>新闻管理</title>
<link href="../style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.STYLE2 {color: #FF0000; font-size: 12px;}
-->
</style>
</head>

<body>
<form name="PosForm" method="post" action="about_Add.asp" style="margin:0">
	<table width="100%" border="0" cellspacing="1" cellpadding="5">
		<tr>
			<td height="25" colspan="2" class="td_title">单页添加</td>
		</tr>

		<tr>
			<td height="23" class="td_content">单页标题：</td>
			<td height="23" class="td_content"><input name="custom_title" type="text" class="input_1" id="custom_title" size="60"></td>
		</tr>
        <tr>
			<td height="23" class="td_content">单页关键字：</td>
			<td height="23" class="td_content"><input name="custom_keywords" type="text" class="input_1" id="custom_keywords" size="60"></td>
		</tr>
        <tr>
			<td height="23" class="td_content">单页描述：</td>
			<td height="23" class="td_content"><input name="custom_Description" type="text" class="input_1" id="custom_Description" size="60"></td>
		</tr>
        <tr>
			<td height="23" class="td_content">链接地址：</td>
			<td height="23" class="td_content"><input name="custom_url" type="text" class="input_1" id="custom_url" size="60">
			无链接请为空,非本地链接，前面必须加http://</td> 
		</tr>
        <tr>
			<td height="23" class="td_content">排序：</td>
			<td height="23" class="td_content"><input name="custom_order" type="text" class="input_1" id="custom_order" size="10"></td>
		</tr>
		<tr>
			<td height="23" class="td_content">单页内容：</td>
			<td height="23" class="td_content"><textarea name="custom_Content" class="input_1" id="custom_Content" style="width:750px;height:350px;visibility:hidden;"></textarea>
			</td>
		</tr>
        
		<tr>
			<td height="23" class="td_content">&nbsp;</td>
			<td height="23" class="td_content"><input name="Submit" type="submit" class="input_1" value=" 添  加 "> &nbsp;
			<input name="Submit" type="reset" class="input_1" value=" 重  置 "></td>
		</tr>
	</table>
    
</form>
</body>
</html>
