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

📄 freeadd.asp

📁 游戏网官方WAP站源代码,该WAP站为56GAME.COM参考多家WAP站综合开发而成. 详细使用方法请进BBS.56GAME.COM
💻 ASP
字号:
<%
if session("admin")="" then
  response.redirect "admin.asp"
end if
%>
<!--#include file="conn.asp"-->
<!--#include file="const.asp"-->
<!--#include file="code.asp"-->
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<title>添 加 文 章</title>
<link rel="stylesheet" type="text/css" href="style.css">
<%
dim rs
dim sql
dim count
set rs=server.createobject("adodb.recordset")
sql = "select * from ANclass order by Nclassid asc"
rs.open sql,conn,1,1
%>
<script language = "JavaScript">
var onecount;
onecount=0;
subcat = new Array();
        <%
        count = 0
        do while not rs.eof 
        %>
subcat[<%=count%>] = new Array("<%= trim(rs("Nclass"))%>","<%= trim(rs("classid"))%>","<%= trim(rs("Nclassid"))%>");
        <%
        count = count + 1
        rs.movenext
        loop
        rs.close
        %>
onecount=<%=count%>;

function changelocation(locationid)
    {
    document.myform.Nclassid.length = 0; 

    var locationid=locationid;
    var i;
    for (i=0;i < onecount; i++)
        {
            if (subcat[i][1] == locationid)
            { 
                document.myform.Nclassid.options[document.myform.Nclassid.length] = new Option(subcat[i][0], subcat[i][2]);
            }        
        }
        
    }    
</script>
</head>

<body>
<br><br>
<form method="POST" name="myform" action="adminsave.asp?action=add">
  <div align="center"><center><table cellspacing="0" width="80%" border="1" cellpadding="0" cellspacing="0" bordercolor="#999999">
    <tr>
      <td width="100%" bgcolor="#999999" height="20"><font color="#FFFFFF"><center><p><b>添 加 文 章</b></font></td>
    </tr>
    <tr align="center">
      <td width="100%">
	<table border="0" cellspacing="1" width="100%">
         <tr>
                <td width="30%" align="right" valign="top" height="20"><b>文章类型:</b></td>
                <td width="70%">
<%
        sql = "select * from Aclass"
        rs.open sql,conn,1,1
	if rs.eof and rs.bof then
	response.write "请先添加栏目。"
	response.end
	else
%>
<select name="classid" onChange="changelocation(document.myform.classid.options[document.myform.classid.selectedIndex].value)" size="1">
<% 
        do while not rs.eof
%>
        <option selected value="<%=trim(rs("classid"))%>"><%=trim(rs("class"))%></option>
       
<%
        rs.movenext
        loop
	end if
        rs.close
        set rs = nothing
        conn.Close
        set conn = nothing
%>
       </select> 
    
    <select name="Nclassid">                   
        <option selected value="">==请选栏目==</option>
    </select>**
		</td></tr>
        <tr>
          <td width="30%" align="right" height="30"><b>文章标题:</b></td>
          <td width="70%" height="30"><input type="text" name="txttitle" size="60"
          class="smallinput" maxlength="90"></td>
        </tr>
        <tr>
          <td width="30%" align="right" height="30"><b>UBB标签:</b></td>
          <td width="70%" height="30">
<img onclick=hyperlink() src="url.gif" width="22" height="22" alt="超级连接" border="0">
<img onclick=image() src="image.gif" width="23" height="22" alt="图片" border="0">
        <tr>
          <td width="30%" align="right" valign="top"><b>文章内容:</b></td>
          <td width="70%"><textarea rows="15" name="txtcontent" cols="60" class="smallarea"></textarea></td>
        </tr>
<tr>
          <td width="30%" align="right" height="30"><b>支持HTML:</b></td>
          <td width="70%" height="30"><input type=checkbox name="htmlable" value="yes"> 选择后文章全部支持HTML语法,UBB语法将没有任何作用</td>
        </tr>
                <tr>
          <td width="30%" align="right" height="30"><b>添加人:</b></td>
          <td width="70%" height="30"><input type="text" name="writer" size="60"
          class="smallinput" maxlength="90" value="金秋"></td>
        </tr>
          
      </table>
      </td>
    </tr>
  </table>
  </center></div><div align="center"><center><p><input type="submit" value=" 添 加 "
  name="cmdok" class="buttonface">&nbsp; <input type="reset" value=" 清 除 "
  name="cmdcancel" class="buttonface"></p>
  </center></div>
</form>
</body>
</html>

⌨️ 快捷键说明

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