📄 do.asp
字号:
<!--#include file="conn.asp" -->
<%
if session("admin")<>"liyu" then
Response.Write("<center><font color=red>你没有登陆!请<a href=login.asp>登陆</a>!或者<a href=index.asp>返回首页</a>!</font></center>")
response.End()
end if
%>
<%
id=Trim(Request.QueryString("id"))
action=Trim(Request.QueryString("action"))
sql="select * from dairy where id="&id
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,1,3
if action="del" then
rs.delete
response.Redirect("index.asp")
end if
if action="edit" then
%>
<HTML>
<HEAD>
<TITLE><%=liyutitle%></TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.3059" name=GENERATOR>
<STYLE type=text/css>
BODY {
BACKGROUND-POSITION: left bottom; BACKGROUND-ATTACHMENT: fixed; BACKGROUND-REPEAT: no-repeat;
SCROLLBAR-FACE-COLOR: #ffffff; SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; SCROLLBAR-SHADOW-COLOR: #ffffff; SCROLLBAR-3DLIGHT-COLOR: #333333; SCROLLBAR-ARROW-COLOR: #222222; SCROLLBAR-TRACK-COLOR: #f5f5f5; SCROLLBAR-DARKSHADOW-COLOR: #c0c0c0
}
TH {FONT-SIZE: 9pt}
TD {FONT-SIZE: 9pt}
A:link {COLOR: #c7c7c7}
A:visited {COLOR: #c7c7c7}
A:hover {COLOR: #ffffff; BACKGROUND-COLOR: #3fb3e7}
A:active {COLOR: #bde3fe}
#menu UL {PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none}
#muse LI {FLOAT: left; MARGIN: 0px}
#muse LI A {PADDING-RIGHT: 5px; PADDING-LEFT: 5px; BACKGROUND: #3fb3e7; PADDING-BOTTOM: 5px; PADDING-TOP: 5px}
#muse LI A:link {CURSOR: help; COLOR: #bde3fe}
#muse LI A:visited {CURSOR: help; COLOR: #bde3fe}
#muse LI A:hover {CURSOR: help; COLOR: #ffffff; BACKGROUND-COLOR: #3fb3e7}
#muse LI A:active {CURSOR: help; COLOR: #bde3fe}
#muse LI A:hover {BACKGROUND: #3fb3e7; COLOR: #ffffff; BORDER-BOTTOM: #bde3fe 4px solid; POSITION: relative; TOP: -7px}
.opacityit IMG {FILTER: progid:DXImageTransform.Microsoft.Alpha(opacity=85); moz-opacity: 0.4}
.opacityit:hover IMG {FILTER: progid:DXImageTransform.Microsoft.Alpha(opacity=100); moz-opacity: 1}
</STYLE>
<script language="JavaScript">
function CheckForm()
{
if (document.WriteForm.title.value.length == 0) {
alert("请填写标题.");
document.WriteForm.title.focus();
return false;
}
if (document.WriteForm.tianqi[0].checked == false&&document.WriteForm.tianqi[1].checked == false&&document.WriteForm.tianqi[2].checked == false&&document.WriteForm.tianqi[3].checked == false&&document.WriteForm.tianqi[4].checked == false&&document.WriteForm.tianqi[5].checked == false) {
alert("请选择天气.");
return false;
}
if (document.WritefForm.Content.value.length == 0) {
alert("请输入日记内容.");
document.WriteForm.Content.focus();
return false;
}
return true;
}
</script>
</HEAD>
<BODY bgColor=#ffffff background="LY2LF/bg.gif" text=#787878 leftMargin=0 topMargin=0 marginwidth="0" marginheight="0">
<TABLE cellSpacing=0 cellPadding=0 width=590 align=center border=0>
<TBODY>
<TR>
<TD width=590 height="558"><TABLE cellSpacing=0 cellPadding=0 width=590 align=center background="LY2LF/bg1.png" border=0>
<TBODY>
<TR>
<TD height=57>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0><TBODY><TR><TD></TD></TR></TBODY>
</TABLE>
<DIV align=center>
<table width="430" height="20" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left"><%=now()%></td>
<td align="right">
<!--#include file="blinkinc.asp" --></td>
</tr>
</table>
<TABLE height=32 cellSpacing=0 cellPadding=0 width=430 align=center border=0>
<TBODY>
<TR>
<TD>
<DIV align=center><IMG height=85 src="LY2LF/clover.png"border=0 ></DIV></TD>
</TR>
</TBODY>
</TABLE>
</DIV></TD>
</TR>
<TR>
<TD>
<DIV align=center>
<TABLE height=175 cellSpacing=0 cellPadding=0 width=550 align=center border=0>
<TBODY>
<TR>
<TD height=167> <DIV align=center></DIV>
<TABLE height=17 cellSpacing=0 cellPadding=0 width=190 align=center border=0><TBODY><TR> <TD></TD></TR></TBODY>
</TABLE>
<DIV align=center>
<table width="550" border="0" cellpadding="0" cellspacing="0">
<form language="javascript" name="WriteForm" method="post" action="do2.asp" onSubmit="return CheckForm()">
<tr>
<td>标题: </td>
<td colspan="6"> <input name="title" type="text" id="title3" value="<%=rs("title")%>" size="30">
<font color="#FF0000"><input name="userid" type="text" id="title3" value="<%=rs("userid")%>" size="4">的日记</font>
<input name="sdk" type="text" id="title3" value="<%=rs("sdk")%>" size="4">1为不公开 </td>
</tr>
<tr>
<td valign="top">天气: </td>
<td height="5" valign="top"> <input name="tianqi" type="radio" title="今天天气晴" value="images/1.gif" <% if rs("tianqi")="images/1.gif" then Response.Write("checked")%>>
<img src="images/1.gif" alt="今天天气晴" width="19" height="19" align="absmiddle"> </td>
<td valign="top"> <input title="阴啦,有云" type="radio" name="tianqi" value="images/2.gif" <% if rs("tianqi")="images/2.gif" then Response.Write("checked")%>>
<img src="images/2.gif" alt="阴啦,有云" width="19" height="19" align="absmiddle"></td>
<td valign="top"> <input title="雨一直下" type="radio" name="tianqi" value="images/3.gif" <% if rs("tianqi")="images/3.gif" then Response.Write("checked")%>>
<img src="images/3.gif" alt="雨一直下" width="19" height="19" align="absmiddle"></td>
<td valign="top"> <input title="打雷咯……" type="radio" name="tianqi" value="images/4.gif" <% if rs("tianqi")="images/4.gif" then Response.Write("checked")%>>
<img src="images/4.gif" alt="打雷咯……" width="19" height="19" align="absmiddle"></td>
<td valign="top"> <input title="星星在眨眼睛呢" type="radio" name="tianqi" value="images/0.gif" <% if rs("tianqi")="images/0.gif" then Response.Write("checked")%>>
<img src="images/0.gif" alt="星星在眨眼睛呢" width="20" height="18" align="absmiddle"> </td>
<td valign="top"> </td>
</tr>
<tr>
<td valign="top">心情:</td>
<td valign="top"> <input type="radio" name="xq" value="xq/f.gif" <% if rs("xq")="xq/f.gif" then Response.Write("checked")%>>
<img src="xq/f.gif" width="19" align="absmiddle"> </td>
<td valign="top"><input type="radio" name="xq" value="xq/f1.gif" <% if rs("xq")="xq/f1.gif" then Response.Write("checked")%>>
<img src="xq/f1.gif" width="19" align="absmiddle"> </td>
<td valign="top"><input type="radio" name="xq" value="xq/f2.gif" <% if rs("xq")="xq/f2.gif" then Response.Write("checked")%>>
<img src="xq/f2.gif" width="19" align="absmiddle"></td>
<td valign="top"><input type="radio" name="xq" value="xq/f3.gif" <% if rs("xq")="xq/f3.gif" then Response.Write("checked")%>>
<img src="xq/f3.gif" width="19" align="absmiddle"></td>
<td valign="top"><input type="radio" name="xq" value="xq/f4.gif" <% if rs("xq")="xq/f4.gif" then Response.Write("checked")%>>
<img src="xq/f4.gif" width="19" align="absmiddle"> </td>
<td valign="top"><input type="radio" name="xq" value="xq/f5.gif">
<img src="xq/f5.gif" width="19" align="absmiddle"></td>
</tr>
<tr>
<td colspan="7"> <!--#include file="getubb.asp" --> <script language="JavaScript" src="code.js"></script> </td>
</tr>
<tr>
<td height="47" colspan="7" align="center" valign="top"><textarea id="Content" name="Content" cols="80" rows="20" style="border:0;border-bottom:1 solid black;background:;width=460px;"><%content=rs("content")
response.write content
%>
</textarea>
<input name="id" type="hidden" id="id" value="<%=id%>"></td>
</tr>
<tr>
<td style="Word-Wrap:break-word" width=460 height="20" colspan="7" valign="top">
<%dim ii
for i=1 to 30
response.write "<img src="""&"pic/em"&i&".gif"&""" border=0 onclick=""insertsmilie('[em"&i&"]')"" style=""CURSOR: hand""> "
next%> </td>
</tr>
<tr>
<td colspan="7">
<table width="350" border="0" align="center">
<tr>
<td align="right"><input type="submit" name="Submit" value="写好了">
<input type="reset" name="Submit2" value="重新来"> </td>
</tr>
</table> </tr>
</form>
</table>
</DIV>
<DIV align=right></DIV></TD></TR></TBODY></TABLE></DIV>
<DIV align=center></DIV></TD></TR>
</TBODY></TABLE></TD></TR>
</TBODY></TABLE>
</BODY>
</HTML>
<%
end if
%>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -