home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
221.214.14.186
/
221.214.14.186.tar
/
221.214.14.186
/
zb
/
Notepad-zb
/
edit.asp
< prev
next >
Wrap
Text File
|
2005-12-26
|
5KB
|
170 lines
<!--#include file="conn.asp"-->
<!--#include file=const.asp -->
<%
dim xxid
dim exec, rs
xxid=encodestr(request.querystring("id"))
if xxid="" or not theUser.reged then
connclose()
session("errmsg")="╖╟╖¿▓┘╫≈úíúíúí"
response.redirect "admin_error.asp"
end if
%>
<html>
<head>
<META name="Author" content="─╛─±">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=sitetitle%></title>
<link rel="stylesheet" href="style/<%=skin%>.css" type="text/css">
</head>
<body onkeydown="if(event.keyCode==13 && event.ctrlKey)check()">
<!--#include file="head.asp"-->
<form method="POST" action="editsave.asp" name="form1">
<script>
function check()
{
if (document.form1.title.value=="")
{
alert("╟δ╠ε╨┤╓≈╠Γúí");
document.form1.title.focus();
return;
}
if (document.form1.nei.value=="")
{
alert("╟δ╠ε╨┤┴⌠╤╘─┌╚▌úí");
document.form1.nei.focus();
return;
}
document.forms[0].submit();
}
</script>
<%
exec="select * from ly where id="&xxid
set rs=conn.execute(exec)
if rs.eof and rs.bof then
rsclose()
connclose()
session("errmsg")="╕├┴⌠╤╘▓╗┤µ╘┌úíúíúí"
response.redirect "admin_error.asp"
end if
if rs("bl")<>1 and not theUser.master then
rsclose()
connclose()
session("errmsg")="╒Γ╕÷┴⌠╤╘▓╗╩╟╫ó▓ß╙├╗º╖ó╡─úíúíúí"
response.redirect "admin_error.asp"
end if
if rs("name")<>theUser.name and not theUser.master then
rsclose()
connclose()
session("errmsg")="╒Γ╕÷┴⌠╤╘▓╗╩╟─π╖ó╡─úíúíúí"
response.redirect "admin_error.asp"
end if
%>
<table class=table004 width="650" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td>
<table class=table001 border="0" width="650" cellspacing="0" cellpadding="3" align="center">
<tr>
<td width="19%" align="center">╖ó ╤╘ ▒Ω ╠Γú║</td>
<td width="81%">
<input type="text" name="title" size="40" class="input1" value="<%=rs("title")%>" maxlength=40>
<font color="#FF0000">*</font>ú¿▒Ω╠Γ╧▐╓╞ <b>20</b> ╕÷║║╫╓╥╘─┌ú⌐</td>
</tr>
<tr>
<td width="19%" align="center">╖ó ▒φ ╚╦ú║</td>
<td width="81%"><%=rs("name")%></td>
</tr>
<tr>
<td width="19%" align="center">╡τ ╫╙ ╙╩ ╝■ú║</td>
<td width="81%">
<input type="text" name="email" size="20" class="input1" value="<%=rs("email")%>">
</td>
</tr>
<tr>
<td width="19%" align="center">ííííQ Qííííú║</td>
<td width="81%">
<input type="text" name="qq" size="20" class="input1" value="<%=rs("qq")%>">
</td>
</tr>
<tr>
<td width="19%" align="center">╓≈ ╥│ ╡╪ ╓╖ú║</td>
<td width="81%">
<input type="text" name="url" size="30" value="<%=rs("url")%>" class="input1">
</td>
</tr>
<tr>
<td width="19%" align="center">
<a href=### onclick=showUbb() title="╡π╗≈┐¬╣╪">Ubb▒Ω╟⌐ (┐¬)</a>ú║
</td>
<td width="81%" valign="top">
<script src=code.js></script>
<script>
function showUbb()
{
if(document.all.ubbDiv.innerText!="")
{window.ubbFrame.location="about:blank";document.all.ubbDiv.innerText="";window.event.srcElement.innerText="Ubb▒Ω╟⌐ (┐¬)";}
else
{window.ubbFrame.location="ubb.htm";window.event.srcElement.innerText="Ubb▒Ω╟⌐ (╣╪)";}
}
</script>
<IFRAME NAME="ubbFrame" width=0 height=0 marginwidth=0 marginheight=0 frameborder=0 scrolling=no SRC="about:blank" ></IFRAME>
<div id="ubbDiv"></div>
</td>
</tr>
<tr>
<td width="19%" align="center">
Q ╠√═╝ú║
</td>
<td width="81%" valign="top">
<a href=### onclick=window.open("Qpic.asp?num=20&path=qpic/1","q","width=400,height=400,resizable=1")>Q╠√═╝╥╗</a>
íí<a href=### onclick=window.open("Qpic.asp?num=30&path=qpic/2","q","width=400,height=400,resizable=1")>Q╠√═╝╢■</a>
íí<a href=### onclick=window.open("Qpic.asp?num=19&path=qpic/3","q","width=400,height=400,resizable=1")>Q╠√═╝╚²</a>
</td>
</tr>
<tr>
<td width="19%" align="center">
<p style="line-height: 200%">┴⌠<br>
╤╘<br>
─┌<br>
╚▌
</td>
<td width="81%" valign="top">
<textarea rows="10" name="nei" cols="70" class="input1" ><%=replace(rs("nei"),"</textarea>","</textarea>")%></textarea>
<input type="hidden" name="id" value="<%=rs("id")%>">
<%
rsclose()
connclose()
%>
</td>
</tr>
<tr>
<td width="100%" colspan="2">
<p align="center">
íííííííííííí
<input type="button" value="╠ß╜╗" name="B1" onclick=check() class="input2" >
<input type="reset" value="╟σ│²" name="B2" class="input2" >
(Ctrl+Enter╠ß╜╗)
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<!--#include file="foot.asp"-->
</body>
</html>