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

📄 fzdefault.asp

📁 网佳网络办公系统(以下简称OA)是一套基于B/S模式的无纸化办公系统。[显著特点:无须安装客户端] 主要功能模块:管理 公文 车辆 通知 档案 值班 人事 审批 仓库 主界面 软件下载 个
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<!--#include file="conn.asp"-->
<!--#include file="inc/const.asp"-->
<%
   	dim totalPut   
   	dim CurrentPage
   	dim TotalPages
   	dim i,j
   	dim keyword
   	dim sql
   	dim rs
	dim updown
	dim order_name
	order_name=Request("Order")
   	if not isempty(request("page")) then
      		currentPage=cint(request("page"))
   	else
      		currentPage=1
   	end if
	if request("updown")<>"" then
		updown="desc"
	else
		updown=""
	end if
	select case order_name
		case "showname"
		order_name="showname"
		case "hot"
		order_name="hot"
		case "dateandtime"
		order_name="dateandtime"
		case "hits"
		order_name="hits"
		case "orders"
		order_name="orders"
		case "size"
		order_name="size"
		case else
		order_name="id"
		updown="desc"
	end select
 	set rs=server.createobject("adodb.recordset")
	dim classid,Nclassid
	dim classname,Nclassname

	if request("classid")="" then
'		classid=""
'		classname="所有软件"
		classid="classid=1 and  "
		sql="select class from class where classid=1"
		rs.open sql,conn,1,1
		if rs.bof and rs.eof then
			response.write "还没有任何栏目,请到管理页面添加"
			response.end
		else
		classname=rs("class")
		end if
		rs.close
	else
		classid="classid="&cstr(request("classid"))&" and  "
		sql="select class from class where classid="&cstr(request("classid"))
		rs.open sql,conn,1,1
		classname=rs("class")
		rs.close
	end if
	if request("Nclassid")="" then
		Nclassid=""
		Nclassname="所有软件"
	else
		Nclassid=" Nclassid="&cstr(request("Nclassid"))&" and  "
		sql="select Nclass.Nclass,class.class from Nclass,class where Nclass.classid=class.classid and Nclass.Nclassid="&cstr(request("Nclassid"))
		rs.open sql,conn,1,1
		classname=rs("class")
		Nclassname=rs("Nclass")
		rs.close
	end if

%>
<HTML><HEAD><TITLE><%=classname%></TITLE>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<META content="Microsoft FrontPage 5.0" name=GENERATOR>
<META content=FrontPage.Editor.Document name=ProgId>
<link rel="stylesheet" href="images/style.css">

<SCRIPT language=javascript>
function popwin2(id,path)
{		window.open("openarticle.asp?id="+id+"&ppath="+path,"");
}
</SCRIPT>
<META content="Microsoft FrontPage 4.0" name=GENERATOR>
</head>
<body bgcolor="#ffffff" leftmargin="0" topmargin="0">

<table border="0" cellPadding="0" cellSpacing="0">
  <tr>
</table>
<!--#include file="../flash/fzinfo/top.htm"-->
<table width="569">
    <td align="center" bgColor="#EBEBEB" vAlign="top" width="191">
      <div align="center">
        <div align="center">
          <table border="0" cellPadding="0" cellSpacing="1" width="146">
            <tbody>
              <tr>
                <td align="center" valign="top">
                  <div align="center">
                    <table background bgColor="#FFFFFF" border="0" cellPadding="0" cellSpacing="0" width="180" height="104">
                      <tr>
                        <td align="center" style="background-image: url('images/qhss1.gif')" valign="middle"><font color="#EBEBEB"><span style="filter: DropShadow(color=black, offX=1, offY=1); position: relative; width: 100%">站内搜索</span></font></td>
                      </tr>
                      <tr vAlign="top">
                        <td align="center" height="102">
                          <table border="0" cellpadding="0" cellspacing="0" width="180" align="center">
                            <tr align="middle">
                              <td bgcolor="#999999" colspan="4" valign="top">
                                <table border="0" cellpadding="4" cellspacing="0" width="180" height="100" align="center">
                                  <tr>
                                    <td background="images/a-27.gif" bgcolor="#ffffff" valign="top" width="191"><%
dim count
set rs=server.createobject("adodb.recordset")
sql = "select * from Nclass order by Nclassid asc"
rs.open sql,conn,1,1
                                      %>
                                      <script language="JavaScript">
var onecount;
onecount=0;
subcat = new Array();
        <%
        count = 0
        do while not rs.eof 
        %>
subcat[<%=count%>] = new Array("<%= trim(rs("Nclass"))%>","<%= trim(rs("classid"))%>","<%= trim(rs("Nclassid"))%>");
        <%
        count = count + 1
        rs.movenext
        loop
        rs.close
        %>
onecount=<%=count%>;

function changelocation(locationid)
    {
    document.myform.Nclassid.length = 0; 

    var locationid=locationid;
    var i;
    for (i=0;i < onecount; i++)
        {
            if (subcat[i][1] == locationid)
            { 
                document.myform.Nclassid.options[document.myform.Nclassid.length] = new Option(subcat[i][0], subcat[i][2]);
            }        
        }
        
    }    
                                    </script>
                                      <form method="post" name="myform" action="query.asp">
                                        <input type="radio" name="action" value="title" checked>程序名称 
                                        <input type="radio" name="action" value="content"> 
                                        程序简介<br>
                                        栏目: <select name="classid" onChange="changelocation(document.myform.classid.options[document.myform.classid.selectedIndex].value)" size="1" style="color:#008080;font-size: 9pt">
                                          <option selected value>未指定条件</option>
                                          <% sql = "select * from class"
        rs.open sql,conn,1,1
        do while not rs.eof
                                          %>
                                          <option value="<%=trim(rs("classid"))%>"><%=trim(rs("class"))%></option>
                                          <%
        rs.movenext
        loop
        rs.close
                                          %>
                                        </select><br>
                                        分类: <select name="Nclassid" style="color:#008080;font-size: 9pt">
                                          <option selected value>未指定条件</option>
                                        </select><br>
                                        <input type="text" name="keyword" class="smallinput" size="14" value="关键字" maxlength="50" style="color:#008080;font-size: 9pt"> 
                                        <input type="submit" name="Submit2" value="搜索" class="buttonface">
                                      </form>
                                    </td>
                                  </tr>
                                </table>
                                <img height="1" src="images/a-0.gif" width="1"></td>
                            </tr>
                          </table>
                        </td>
                      </tr>
                    </table>
                  </div>
              </tr>
              <tr>
                <td align="center" valign="top">
                  <div align="center">
                    <table background bgColor="#FFFFFF" border="0" cellPadding="0" cellSpacing="0" width="180" height="64">
                      <tr>
                        <td align="center" style="background-image: url('images/qhss1.gif')" valign="middle" height="17"><font color="#EBEBEB"><span style="filter: DropShadow(color=black, offX=1, offY=1); position: relative; width: 100%">内容列表</span></font></td>
                      </tr>
                      <tr vAlign="top">
                        <td align="center" height="47">
                          <table border="0" cellpadding="0" cellspacing="0" width="168" align="center">
                            <tr align="middle">
                              <td bgcolor="#999999" colspan="4" valign="top">
                                <table border="0" cellpadding="4" cellspacing="0" width="180" align="center">
                                  <tr>
                                    <td background="images/a-27.gif" bgcolor="#ffffff" valign="top" width="191" align="center">
                                      <form action="fzDefault.asp" method="get">
                                        <select name="classid" size="1" style="color:#008080;font-size: 9pt" onChange="javascript:submit()">
                                          <%               
	sql="select class,classid from class"
	rs.open sql,conn,1,1
	if rs.bof and rs.eof then
                                          %>
                                          <option value>Not Record!</option>
                                          <%else%>
                                          <%               
	do while not rs.eof
                                          %>
                                          <option <%if request("classid")<>"" then%><%if cint(rs("classid"))=cint(request("classid")) then%> selected <%end if%><%end if%>value="<%=rs("classid")%>"><%=rs("class")%></option>
                                          <%
	rs.movenext
	loop
	end if
	rs.close
                                          %>
                                        </select>              
                                      </form>
                                    </td>
                                  </tr>
                                </table>
                                <img height="1" src="images/a-0.gif" width="1"></td>
                            </tr>
                          </table>
                        </td>
                      </tr>
                    </table>
                  </div>
              </tr>
              <tr>
                <td align="center" valign="top">
                  <div align="center">
                    <center>
                    <table background bgColor="#FFFFFF" border="0" cellPadding="0" cellSpacing="0" width="180" height="104">
                      <tr>
                        <td align="center" style="background-image: url('images/qhss1.gif')" valign="middle"><font color="#EBEBEB"><span style="filter: DropShadow(color=black, offX=1, offY=1); position: relative; width: 100%">内容查看</span></font></td>
                      </tr>
                      <tr vAlign="top">
                        <td align="center" height="102">
                          <table border="0" cellpadding="0" cellspacing="0" width="180" align="center">
                            <tr align="middle" bgcolor="#999999">
                              <td colspan="4" valign="top">
                                <div align="center">
                                  <center>
                                  <table border="0" cellpadding="4" cellspacing="0" width="180" height="100">
                                    <tr>
                                      <td background="images/a-27.gif" bgcolor="#ffffff" valign="top" width="191"><font style="line-height:150%"><%
	if request("classid")="" then
	sql="select Nclass,Nclassid from Nclass where classid=1"
	else
	sql="select Nclass,Nclassid from Nclass where classid="&request("classid")
	end if
	rs.open sql,conn,1,1%>
                                        </font>

⌨️ 快捷键说明

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