📄 addnjsh.asp
字号:
<!--#include file = conn.asp-->
<%
' *** Restrict Access To Page: Grant or deny access to this page
MM_authorizedUsers="admin"
MM_authFailedURL="fair.htm"
MM_grantAccess=false
If Session("MM_Username") <> "" Then
If (false Or CStr(Session("MM_UserAuthorization"))="") Or _
(InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then
MM_grantAccess = true
End If
End If
If Not MM_grantAccess Then
MM_qsChar = "?"
If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&"
MM_referrer = Request.ServerVariables("URL")
if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString()
MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer)
Response.Redirect(MM_authFailedURL)
End If
%>
<%
dim id
dim title
dim author
dim filesize
dim photo
dim filetype
dim fileurl2
dim cont
dim kanfa
dim email
title = request("title")
id = request("id")
photo = request("photo")
author = request("author")
email = request("email")
cont = request("cont")
touxiang = request("touxiang")
set rs=server.CreateObject("ADODB.RecordSet")
sql="select * from article where id"
rs.open sql,conn,1,3
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="INCLUDE/SITE.CSS" type="text/css">
</head>
<body bgcolor="efefef">
<form action="addnjshlogin.asp" method="POST" name="addnj" id="addnj">
<table width="80%" border="0" cellspacing="0" cellpadding="1" align="center" bgcolor="#999999">
<tr>
<td>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="efefef">
<tr>
<td>
<div align="center">NJ名
<input name="name" type="text" id="name" value="<%=title%>" size="15">
</div>
</td>
<td>
<div align="center">QQ
<input name="oicq" type="text" id="oicq" value="<%=photo%>" size="15">
</div>
</td>
<td>
<div align="center">
<input name="email" type="text" id="email" value="输入EMAIL" size="25">
</div>
</td>
<td>
<div align="center"> <img src="../<%=touxiang%>" name="touxiang"><br>
<input name="touxiang" type="text" id="name" value="<%=touxiang%>" size="15">
</div>
</td>
</tr>
<tr>
<td>
<div align="center">性别
<input name="xb" type="text" id="name" value="<%=author%>" size="15">
</div>
</td>
<td>
<div align="center">城市
<input name="cs" type="text" id="name" value="<%=email%>" size="15">
</div>
</td>
<td>
<div align="center">个人简介
<input name="gr" type="text" id="name" value="<%=cont%>" size="15">
</div>
</td>
<td>
<div align="center">
<input type="submit" name="Submit" value="添加新NJ">
</div>
</td>
</tr>
<tr>
<td>
<div align="center"></div>
</td>
<td>
<div align="center"></div>
</td>
<td>
<div align="center"></div>
</td>
<td>
<div align="center"></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="addnj">
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -