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

📄 faq.asp

📁 后台默认管理账号密码:admin 后台主要功能如下:一、系统管理:管理员管理
💻 ASP
字号:
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<!--#include file="Inc/syscode.asp"-->
<%
'=================================
'   良精科技企业管理系统
'   www.liangjing.net
'  copyright(c)2001-2008 良精科技
'=================================
%>
<!-- #include file="Inc/Head.asp" -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td bgcolor="#9DBBD4"><table width="779" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="120" align="right" background="Skins/Default/CnImg/faqTop.jpg"><object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="778" height="120">
              <param name="movie" value="Skins/Default/Cnimg/top.swf">
              <param name="quality" value="High">
              <param name="wmode" value="transparent">
              <embed src="Skins/Default/Cnimg/top.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="778" height="120" quality="High" wmode="transparent"> </embed>
          </object></td>
        </tr>
    </table></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="30" background="Skins/Default/CnImg/naviBg2.gif"><table width="778" height="30" border="0" cellpadding="0" cellspacing="0" bgcolor="#E2E7ED">
        <tr>
          <td width="180" align="center" background="Skins/Default/CnImg/LeftBg.gif"><table width="172" height="30" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td width="1" bgcolor="#999999"></td>
                <td width="170" bgcolor="#E7E7E7">&nbsp;</td>
                <td width="1" bgcolor="#999999"></td>
              </tr>
          </table></td>
          <td width="597" align="center"><table width="570" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="19" align="left"><img src="Skins/Default/CnImg/FlagLine.gif" width="4" height="21"></td>
                <td width="277" class="12font"><span class="Regester_title">解决方案</span></td>
                <td width="264" align="right">&nbsp;</td>
              </tr>
          </table></td>
          <td width="1" bgcolor="#CCCCCC"></td>
        </tr>
    </table></td>
  </tr>
</table>
<table width="778" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td width="180" height="259" align="center" valign="top" bgcolor="#F5F5F5"><table width="172" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="1" rowspan="3" bgcolor="#cccccc"></td>
          <td width="142" height="1" bgcolor="#FFFFFF"></td>
          <td width="1" rowspan="3" bgcolor="#cccccc"></td>
        </tr>
        <tr>
          <td align="center" valign="top" bgcolor="#F9F9F9" >
<!-- 解决方案开始 -->
<table width="100%" border="0"   cellpadding="0" cellspacing="0"  >
<%
flag="尚未处理"
set rs_faq=server.createobject("adodb.recordset")
sqltext="select top 8 * from  Hover_faq Order BY time desc"
rs_faq.open sqltext,conn,1,1

'假如没有数据时
If rs_faq.eof and rs_faq.bof then
response.write "<p align='center'><font color='#ff0000'>还没任何解决方案</font></p>"

else
%>              <%do while not rs_faq.eof%>
              <tr> 
                <td height="25" valign="middle">&nbsp;&nbsp;&nbsp;<img src="Skins/Default/CnImg/flag.gif" width="11" height="9">&nbsp;&nbsp;<a href="faqInfo.asp?id=<%=rs_faq("id")%>" ><%=left(rs_faq("title"),11)%></a>
				</td>
              </tr>
	<TR> 
		<TD height=1   background= "Skins/Default/CnImg/1x1_pix.gif"  ></TD>
	</TR>
	<%
rs_faq.movenext
loop
%>
<%
End if
rs.close:set rs=nothing
%>
	<TR> 
		<TD height=15    ></TD>
	</TR>
</table>
<!-- 解决方案结束 -->
</td>
        </tr>
        <tr>
          <td height="1" colspan="3" bgcolor="#cccccc"></td>
        </tr>
      </table>        <table width="172" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="5" bgcolor="#DEDEDE"></td>
          </tr>
      </table></td>
    <td width="597" align="center" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="100%" height="2" bgcolor="#D5DBE3"></td>
        </tr>
      </table>
        <TABLE width="578" border=0 cellPadding=0 cellSpacing=0 bgcolor="#FFFFFF">
          <TR>
            <TD width="578" height="27" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td><img src="Skins/Default/Cnimg/yytop_top.gif" width="570" height="27"></td>
                </tr>
                <tr>
                  <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="32" valign="top"><img src="Skins/Default/Cnimg/yytop_left.gif" width="32" height="315"></td>
                        <td width="506" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td height="25" valign="top"><table width="100%"  border="0" cellpadding="0" cellspacing="0" >
                                  <tr>
                                    <td width="6%">&nbsp;</td>
                                    <td width="94%"><a href="/">首 页</a> >> <span class="Regester_title">解 决 方 案</span></td>
                                  </tr>
                              </table></td>
                            </tr>
                            <tr>
                              <td style="line-height: 150%"><TABLE width="100%" border=0 align="right" cellPadding=0 cellSpacing=2><TD height=1   background=Skins/Default/CnImg/1x1_pix.gif></TD>
  </TR>
  <TR>
    <TD  ><br><table width="100%" height="50" border="0" cellpadding="0" cellspacing="0"   style="border: 1px solid #eeeeee"  >
      <tr>
        <td width="5%" height="25" align="center" bgcolor="#F3F7FA"><table width="100%"  border="0" cellpadding="0" cellspacing="0" background="Skins/Default/CnImg/naviBg.jpg" >
            <tr>
              <td width="31" height="29" align="center" ><img src="Skins/Default/Cnimg/arrow_down.gif" width="16" height="15" /></td>
              <td width="463" style="color:#555555"><strong>解决方案列表&gt;&gt;</strong></td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td colspan="2" align="center"    >
		<%
flag="尚未处理"
set rs=server.createobject("adodb.recordset")
sqltext="select * from  Hover_faq Order BY id desc"
rs.open sqltext,conn,1,1
dim PerPage
PerPage=20
'假如没有数据时
If rs.eof and rs.bof then
call showpages
response.write "<p align='center'><font color='#ff0000'>还没任何解决方案</font></p>"

End if
'取得页数,并判断用户输入的是否数字类型的数据,如不是将以第一页显示
text="0123456789"
Rs.PageSize=PerPage
for i=1 to len(request("page"))
checkpage=instr(1,text,mid(request("page"),i,1))
if checkpage=0 then
exit for
end if
next

If checkpage<>0 then
If NOT IsEmpty(request("page")) Then
CurrentPage=Cint(request("page"))
If CurrentPage < 1 Then CurrentPage = 1
If CurrentPage > Rs.PageCount Then CurrentPage = Rs.PageCount
Else
CurrentPage= 1
End If
If not Rs.eof Then Rs.AbsolutePage = CurrentPage end if
Else
CurrentPage=1
End if

call showpages
call list

If Rs.recordcount > PerPage then
call showpages
end if

'显示帖子的子程序
Sub list()
%>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <%
if not rs.eof then
do while not rs.eof
%><tr>
                <td width="100%" height="22">&nbsp;·&nbsp;<a href="faqInfo.asp?id=<%=rs("id")%>"><%=rs("title")%></a>&nbsp;&nbsp;<font color="#0066CC" face="Arial"><%=rs("time")%></font>&nbsp;
                    <%if rs("time")=date() then%>
                    <img src="Skins/Default/Cnimg/new_icon.gif" width="23" height="9">
                    <%end if%></td>
                </tr>
				<%
i=i+1
if i >= Perpage then exit do
rs.movenext
loop
end if
%>
            </table></td>
      </tr>
      <tr valign="bottom">
        <td     align="center" ><table width="100%" height="19" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr >
              <td width="81%" height="18" align="center"><%
Response.write "<strong>-> 全部-</font>"
Response.write "共</font>" & "<font color=#FF0000>" & Cstr(Rs.RecordCount) & "</font>" & "条方案</font></strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
Response.write "<strong>第" & "<font color=#FF0000>" & Cstr(CurrentPage) &  "</font>" & "/" & Cstr(rs.pagecount) & "</font></strong>&nbsp;"
If currentpage > 1 Then
response.write "<strong><a href='faq.asp?&page="+cstr(1)+"'>首页</font></a></strong>"
Response.write "<strong><a href='faq.asp?page="+Cstr(currentpage-1)+"'>上一页</a></strong>"
Else
Response.write "<strong>上一页 </font></strong>"
End if
If currentpage < Rs.PageCount Then
Response.write "<strong><a href='faq.asp?page="+Cstr(currentPage+1)+"'>下一页</a><font color='#ffffff'> </font>"
Response.write "<a href='faq.asp?page="+Cstr(Rs.PageCount)+"'>尾页</a></strong>&nbsp;&nbsp;"
Else
Response.write ""
Response.write "<strong>下一页</strong>&nbsp;&nbsp;"
End if
'response.write "</td><td align='right'>"
'response.write "转到:<input type='text' name='page' size=4 maxlength=4 class=smallInput value="&Currentpage&">&nbsp;"
'response.write "<input class=buttonface type='submit'  value='Go'  name='cndok'>&nbsp;&nbsp;"
%>              </td>
            </tr>
          </table>
            <%
End sub
rs.close
%>
        </td>
      </tr>
    </table></TD>
  </TR>
                      </TABLE></td>
                            </tr>
                        </table></td>
                        <td width="40" valign="top"><img src="Skins/Default/Cnimg/yytop_right.gif" width="32" height="263"></td>
                      </tr>
                    </table>
                      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td align="center"><img src="Skins/Default/Cnimg/yybottom_bottom.gif" width="570" height="85"></td>
                        </tr>
                    </table></td>
                </tr>
            </table></TD>
          </TR>
      </TABLE></td>
    <td width="1" bgcolor="#CCCCCC"></td>
  </tr>
</table>
<!-- #include file="Inc/Foot.asp" -->
</BODY></HTML>

⌨️ 快捷键说明

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