📄 index.asp
字号:
<% Option explicit %>
<!-- #Include file="./connects.inc" -->
<!-- #Include file="./locals.inc" -->
<%
Dim sSQL, rs, sResult
if request("isSubmit")="OK" and trim(request("txtSearch"))<>"" then
sSQL = "select * from idioms where Phrase like '%"& request("txtSearch") &"%'"
Set rs = Server.CreateObject("ADODB.Recordset")
rs.open sSQL, oConn, 1, 1
if not (rs.eof and rs.bof) then
while not rs.eof
sResult=sResult & ( "【" & rs("Phrase") & "】" & rs("Explain") & chr(13) & chr(10) )
rs.movenext
wend
else
sResult="没有找到匹配的词条。"
end if
set rs=nothing
end if
%>
<HTML>
<HEAD>
<meta http-equiv="Content-Language" content="zh-cn">
<TITLE><%=sPageTitleOfThis%></TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<link href="./style.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY LEFTMARGIN=0 TOPMARGIN=0 background="./images/bg.gif">
<table border="0" align="center" cellpadding="0" cellspacing="0" background="./images/window.gif" width=542 height=295 bgcolor="#EFF3FF">
<tr height="60">
<td width="15"> </td>
<td width="521"> <img src="./images/title.gif" valign=bottom><B><%=sVer%></B></td>
</tr>
<tr height="36">
<td width="15"> </td> <td width="521"> </td>
</tr>
<tr height="83">
<Form method="POST" action="./index.asp">
<input name="isSubmit" type="hidden" value="OK">
<td width="15"> </td>
<td width="521" align="left">
<textarea rows="4" name="textArea" cols="66"><%=sResult%></textarea>
</td>
</tr>
<tr>
<td height="40" width="15"> </td>
<td height="40" width="521"> </td>
</tr>
<tr>
<td height="50" width="15"> </td>
<td height="50" width="521" align="left">
<input type="text" name="txtSearch" size="25">
<input type="submit" value="查找"></p>
</td>
</tr>
<tr height="27">
<td width="15"> </td>
<td width="521"> </td>
</tr>
</table>
</form>
<center>代码提供:<a href="http://why100000.com" target="_blank">“十万个为什么”电脑学习网</a></center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -