⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 info_add.asp

📁 京云下载系统
💻 ASP
字号:
<%Admin="InfoAdd"%>
<!--#include file="check.asp"-->
<!--#include file="mdb_path_info.asp"-->
<!--#include file="config.asp"-->
<%
savetime=Now()+webtime/24
set rs=server.CreateObject("ADODB.RecordSet")
TT=TT & "<a class=JyDownSort href=info_sort.asp>文章首页</a>"
if request("id")<>"" then
  rs.open "select * from infotype where id="&request("id"),conn,1,1
    if not rs.EOF then
        TN=split(rs("tname"),"|")
        TI=split(rs("ts"), ",")
          for i = 0 to ubound(TN)-1
            TT=TT & ">> <a class=JyDownSort href=info_sort.asp?id="&TI(i)&">"&TN(i)&"</a>"
          next
    tj=rs("tj")
    end if
    rs.close
end if
thistype=TT
rs.open ("select * from infotype where tj>1 order by ts"),conn,1,1
tn=""
do while not rs.eof
tname=replace(rs("tname"),"|","->")
if rs("tj")=2 and rs("tn")<>tn then
i=i+1
  if i=2 then
  i=0
     color="#808000"
  else
     color="#000000"
  end if
end if
tn=rs("tn")
typelist=typelist&"<option style='COLOR:"&color&"' value='"&rs("id")&"'>"&tname&"</option>"
rs.MoveNext
loop
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
<SCRIPT LANGUAGE="JavaScript">

function AddText(NewCode) {
document.frmAnnounce.body.value+=NewCode
}

function openscriphtml()
{
if (navigator.appName!="Microsoft Internet Explorer")
   alert("此功能 Netscape 用户不能使用!")
else
   {newwin=window.open('html_editor.htm','','width=544,height=294');
    newwin.focus();
   }
}
function runEx(){
//alert('请注意,按下确定将生成页面,按下后请稍后....');
var winEx = window.open("", "winEx", "width=300,height=200,status=yes,menubar=yes,scrollbars=yes,resizable=yes"); winEx.document.open("text/html", "replace"); 
winEx.document.write(unescape(event.srcElement.parentElement.children[2].value)); 
winEx.document.close(); 
}
</SCRIPT>
<script language="Javascript">
<!-- hide

function insertsmilie(smilieface){

	document.frmAnnounce.body.value+=smilieface;
}
// -->
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta copy="程序制作 [惊云,网址www.65658.com] ; 盗版必究!">
<title>添加文章</title>
<style>
td{font-size:9pt;line-height:140%} 
body{font-size:9pt;line-height:140%} 
a:link       { color: #0033CC; text-decoration: none }
a:visited    { color: #0033CC; text-decoration: none }
a:active     { color: #FF0000; text-decoration: none }
a:hover      { color: #000000; text-decoration: underline}
a.JyDownSort:link    { color: #FFFFFF; text-decoration: none }
a.JyDownSort:visited { color: #FFFFFF; text-decoration: none }
a.JyDownSort:hover   { color: #DFDFDF; text-decoration: underline}
</style>
</head>
<body topmargin="1" leftmargin="1">
  <form action="info_add_save.asp?d=addsave&id=<%=request("id")%>" method=post name="frmAnnounce">
    <div align="center">
      <center>
    <table border="0" width="638" bgcolor="#555555" cellspacing="1" style="border-collapse: collapse">
      <tr>
        <td width="100%" bgcolor="#6A6A6A"><b><%=thistype%> ++(添加文章 2/2)++</b></td>
      </tr>
      <tr>
        <td width="100%" bgcolor="#FFFFFF">
        <table border="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111" cellspacing="0">
          	<tr>
        <td nowrap><font color="#FF0000">文章类别</font>:</td>                                                                                      
        <td nowrap><select size="1" name="tid">
<%if request("id")<>"" then
response.write("<option selected value='"&request("id")&"'>"&thistype&"("&request("id")&")</option>")
else
response.write("<option selected value=''>- - = = = 请选择文章分类 = = = - -</option>")
end if%><%=typelist%>
</select>
      </tr>                                                                                                                      
            </tr>
          	<tr>
        <td nowrap><font color="#FF0000">文章标题</font>:</td>                                                                                                                                                                                                                                                                                                   
        <td nowrap>
        <input type="text" size=51 name="title" value="<%=request("title")%>"> 
        关键字:<input type="text" size=19 name="se"></td>                                                                                                                                                                                             
            </tr>
          	<tr> 
    <center>
            </tr>
            <tr>
        <td nowrap>相关信息:</td>                                                                                                                                                                                             
        <td nowrap>作者:<input type="text" size=23 name="form_user">&nbsp; 
        来源:<input type="text" size=23 name="form_url">&nbsp;  </td>                                                                                                                                                                                             
            </tr>                                                                           
            <tr>
        <td valign="top" nowrap>文章内容:<br>
          <input type="checkbox" name="html" value="yes">HTML<br>
          <a href="javascript:openscriphtml()">HTML编辑</a></td>                                                                                                                                                                                            
        <td nowrap><textarea rows="17" name="body" cols="78"></textarea></td>                                                                                                                                                                                            
            </tr> 
            <tr>
        <td nowrap bgcolor="#F9F9F9">图片上传:</td>                                                                                                                                                                                            
        <td nowrap bgcolor="#F9F9F9"><iframe name="JyDownUpload" frameborder="0" width="100%" height="25" scrolling="no" src="upload.htm"></iframe></td>                                                                                                                                                                                            
            </tr>                                                                          
    </table> 
    </td>
      </tr>
      <tr>
        <td width="100%" bgcolor="#DFDFDF">
        <p align="center"><input name="change" value="添加" type="submit">&nbsp;   
          <input name="change1" value="重置" type="reset"> <input type="checkbox" name="makehtml" value="yes" checked>自动生成HTML页&nbsp; 现在时间:<%=savetime%></td>
      </tr>
    </table>
      </center>
    </div>
</form>              
</body>              
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -