<!--#include file="Top.asp"-->
<%SmallClassName=request("SmallClassName")%>
<script language="JavaScript"> 
<!-- 
var flag=false; 
function DrawImage1(ImgD){ 
 var image=new Image(); 
 image.src=ImgD.src; 
 if(image.width>0 && image.height>0){ 
  flag=true; 
  if(image.width/image.height>= 150/120){ 
   if(image.width>150){
    ImgD.width=150; 
    ImgD.height=(image.height*150)/image.width; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   
  } 
  else{ 
   if(image.height>120){
    ImgD.height=120; 
    ImgD.width=(image.width*120)/image.height; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   
  } 
 }
}
//--> 
</script>
<table width="977" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="192" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td bgcolor="#f4f4f4" class="table_text2"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="5"></td>
            </tr>
            <tr>
              <td bgcolor="#FFFFFF"><table width="94%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td height="30"><a href="Case.asp"><img src="image/index_25.gif" width="87" height="23" border="0"></a></td>
                </tr>
                <tr>
                  <td background="image/line.gif" height="1"></td>
                </tr>                
                <tr>
                  <td height="8"></td>
                </tr>
                <tr>
                  <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="50%"><table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
                        <%sql="select * from SmallClass where BigClassName='经典案例'"
						rs.open sql,conn,1,1
						do while not rs.eof%>
                        <tr>
                          <td width="20%" height="25" align="center"><img src="image/more.gif" width="11" height="11"></td>
                          <td width="80%"><a href="Case.asp?SmallClassName=<%=server.URLEncode(rs("SmallClassName"))%>" class="a3"><%=rs("SmallClassName")%></a></td>
                        </tr>
                        <tr>
                          <td height="1" colspan="2" background="image/line.gif"></td>
                        </tr>
                        <%rs.movenext
						loop
						rs.close%>
                      </table></td>
                    </tr>
                  </table></td>
                </tr>                               
                <tr>
                  <td height="8"></td>
                </tr>
              </table></td>
            </tr>
            <tr>
              <td height="5"></td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td height="8"></td>
        </tr>
      </table>
      <!--#include file="right.asp"-->
    </td>
    <td width="4" valign="top"></td>
    <td width="786" valign="top" bgcolor="#f3f3f3"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="220" valign="top" background="image/index_09.gif" style="background-repeat:repeat-x"><table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="9"></td>
            </tr>
            <tr>
              <td><table width="48%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td><table width="96%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="14%" align="center"><img src="image/index_10.gif" width="21" height="20"></td>
                      <td width="86%" class="text6">当前位置：首页 -> 经典案例 -> <%if SmallClassName="" then response.Write "全部案例" else response.Write SmallClassName end if%></td>
                    </tr>
                  </table></td>
                </tr>
                <tr>
                  <td height="1" bgcolor="#6d6d6d"></td>
                </tr>
              </table></td>
            </tr>
            <tr>
              <td height="10"></td>
            </tr>
            <tr>
              <td class="text2"><table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" >
      
          <tr>
            <td height="300" valign="top"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
<%
   sql="select * from product where BigClassName='经典案例'"
     if SmallClassName<>"" then
			sql=sql + " and SmallClassName='"&SmallClassName&"'"
			end if
			
			sql=sql + " order by articleid desc"
				rs.PageSize = 12 
				rs.open sql,conn,1,1
				pre = true
				last = true
				page = trim(Request.QueryString("page"))
 				if len(page) = 0 then
    				intpage = 1
    				pre = false
 				else
    			if cint(page) =< 1 then
      			 	intpage = 1
       			 	pre = false
    			else
        			if cint(page)>=rs.PageCount then
        				intpage = rs.PageCount
        				last = false
        			else
        				intpage = cint(page)
     				end if
   				end if
				end if
   				if not rs.eof then
         			rs.AbsolutePage = intpage
   				end if
				if rs.bof then Response.write "<div align='center' font style='font-size:10pt;font-family: 宋体;color=black'><br><b>还没有相关的内容！</b><br></div><br><br>"
				for i=1 to rs.PageSize
				if rs.EOF or rs.BOF then  exit for
			  %>
			  
                <td><table width="150" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="150" height="60" background="images/index_28.jpg"><table width="90%" border="0" align="center" cellpadding="0" cellspacing="2">
                       <tr>
                         <td height="10"></td>
                       </tr>
                          <tr>
                            <td width="150" height="100" border="1" style="border:solid 1px #999999"><div align="center"><a href="Case_Show.asp?id=<%=rs("articleid")%>"  ><img src="<%=rs("defaultpicurl")%>" onload="javascript:DrawImage1(this);" width="150"  border="0"/></a></div></td>
                          </tr>
                          <tr>
                            <td align="center" class="text4" style="word-break:break-all"><a href="Case_Show.asp?id=<%=rs("articleid")%>" class="a1"  ><%=left(rs("Title"),12)%></a></td>
                          </tr>
                      </table></td>
                    </tr>
                    
                </table></td>
				<%if i mod 4 = 0 then%>
              </tr>
			  <%
			  	end if
				rs.movenext
				next
			  %>
            </table></td>
          </tr>
          <tr>
            <td><table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" bordercolorlight="#808080" bordercolordark="#ffffff">
                              <tr valign="middle">
                               <%url="BigClassName="& server.URLEncode(request.QueryString("BigClassName")) &"&SmallClassName="& server.URLEncode(request.QueryString("SmallClassName")) &"&Spec="& server.URLEncode(request.QueryString("spec"))%>
                                <%if rs.pagecount>0 then%>
                                <td  height="20" align="center" class="text4">当前页:<font color="red"><%=intpage%></font>/<%=rs.PageCount%>&nbsp;&nbsp;&nbsp;&nbsp;
                                <%else%>                                </td>
                                <td  height="20" align="center" class="text4">当前页0/0&nbsp;&nbsp;&nbsp;
                                    <%end if%>
                  每页<%=rs.PageSize%>条&nbsp;&nbsp;&nbsp;<a href="Case.asp?page=1&<%=url%>" class="a1">首页</a>&nbsp;
                  <%if pre then%>
                  <a href="Case.asp?page=<%=intpage -1%>&j=<%=jpage-1%>&<%=url%>" class="a1">上一页</a>&nbsp;
                  <%end if%>
                  <%if last then%>
                  <a href="Case.asp?page=<%=intpage +1%>&j=<%=jpage+1%>&<%=url%>" class="a1">下一页</a>&nbsp;
                  <%end if%>
                  <a href="Case.asp?page=<%=rs.PageCount%>&j=<%=jpage%>&<%=url%>" class="a1">尾页</a>&nbsp;转到
                  <select name="sel_page" onChange="javascript:location=this.options[this.selectedIndex].value;">
                    <%
       for i = 1 to rs.PageCount
       if i = intpage then%>
                    <option value="Case.asp?page=<%=i%>&j=<%=jpage%>&<%=url%>" selected="selected"><%=i%></option>
                    <%else%>
                    <option value="Case.asp?page=<%=i%>&j=<%=jpage%>&<%=url%>"><%=i%></option>
                    <%
       end if
        next
		rs.close
        %>
                  </select>
                 页</td>
                              </tr>
                      </table></td>
          </tr>
        </table></td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td height="2"></td>
        </tr>
      </table>
    </td>    
  </tr>
</table>
<!--#include file="Foot.asp"-->
