www.gusucode.com > 共享世纪内容管理系统 2.1 build 080704 全站开源版 > admin/html_add1.asp

    <%Admin="InfoAdd"%>
<!--#include file="check.asp"-->
<%
'==========================================
'
'  晓宇听幽新闻文章管理系统 2004
'
'  主页地址:http://www.xoYu.com
'
'==========================================
'程序名称:晓宇听幽新闻文章管理系统
'英文名称:xoYu News 2004 Professional
'程序创建时间:2003-7-10
'程序完成时间:2003-9-11
'最后修改时间:2003-10-10
'==========================================
if request("addok")="" then
if request("k")="" then
response.write "请输入查找内容"
response.end
else
if request("d")<>"add" then
response.redirect "Html_List.asp?k="&request("k")&"&id="&request("id")&""
response.end
end if
%>
<!--#include file="mdb_path_info.asp"-->
<%
set rs=server.CreateObject("ADODB.RecordSet")
rs.open "select id,title from info where title like '%"&request("k")&"%' order by date desc",conn,1,1
    if not rs.eof then
      do while not rs.EOF
        oldcx=oldcx&"[<a target=""_blank"" href=""../Html/"&rs("id")&"-1.Html"">HTM页</a>][<a href=""javascript:makeHTML("&rs("id")&")"">生成</a>]·<a href=Html_edit.asp?id="&rs("id")&">"&rs("title")&"</a><br>"
      rs.MoveNext
      loop
    else
      rs.close
      set rs=nothing
      conn.close
      set conn=nothing
      response.redirect "Html_add.asp?title="&request("k")&"&id="&request("id")&""
    end if
  rs.close
  set rs=nothing
  conn.close
  set conn=nothing
end if
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta copy="WWW.2KY.CN 共享世纪">
<title>共享世纪新闻文章管理系统—添加文章</title>
<link rel="stylesheet" href="admin.css" type="text/css">
<!--#include file="top.asp"-->
<script language="javascript">
function makeHTML(id)
{window.open("makehtml.asp?type=page&id="+id,"","width=200,height=100,resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no");}
</script>
</head>
<body topmargin="1" leftmargin="1">
<p align="center">
  <form action="Html_add1.asp?d=add&id=<%=request("id")%>" method=post>
    <table width="95%" border="0" cellspacing="1" cellpadding="3"  align=center class="tableBorder">
      <tr>                                                                                                                      
        <th width="200%"><b>
        <img border="0" src="images/ICON1.GIF"> 添加文章 
        1/2</font></b></th>                                                                                                                                                                                                                                                                                                   
      </tr>
      <tr>
        <td width="200%" align="right" class="forumrow">
        <p align="center">文章标题:<input type="text" size=40 name="k" value="<%=request("k")%>">
        <input name="change" value="重新查找" type="submit">&nbsp; <input type="button" onclick="location.href='Html_add.asp?title=<%=request("k")%>&id=<%=request("id")%>'" value="添加文章"></td>                                                                                                                                                                                                                                                                                                   
      </tr>
   <%if oldcx<>"" then%>
      <tr>
        <td width="200%" class=forumHeaderBackgroundAlternate><font color="#000080"><b>查找到数据库中已有相同的文章</b></font></td>                                                                                      
      </tr>
      <tr>                                                                                                                      
        <td width="200%" class="forumrow"><%=oldcx%></td>                                                                                                                                                                                                                                                                                                   
      </tr> 
    <%end if%>                                                                               
    </table>
</form>         
</body>              
</html>