<!-- #include file="../inc/conexao.asp" -->
<%

subCatId = request.QueryString("subCatId")

'RELAÇÃO DE EQUIPAMENTOS DA SUBCATEGORIA SELECIONADA
'--------------------------------------------------------------------------
SQL = "select equId,equCodigo,subCatId,equNome,equDescricao,equNovo,equPublicado,equOferta from EQUIPAMENTOS where equPublicado = true and subCatId = " & subCatId & " order by equNome"
	set rsEqu = createObject("adodb.recordset")
	rsEqu.Open(SQL), DB, 1
'--------------------------------------------------------------------------

%>
<html>
<head>
<title>OPERMAK ... Produtos</title>
<META NAME="author" CONTENT="Rodrigo Alexandre Queiroz">
<script language="JavaScript" src="../inc/javaScript.js"></script>
<link rel="stylesheet" href="../inc/estilos.css" type="text/css">
</head>
<body>

<!-- #include file="../inc/cabecalho.asp" -->

<p><b>Equipamentos disponíveis em estoque.</b><br>Clique no produto para entrar em contato com a Opermak e solicitar maiores informa&ccedil;&otilde;es.</p>
<p align="center"><img src="dot_gray.gif" width="400" height="1"></p>

	<%
	while not rsEqu.EOF
	%>

	<table width="100%"  border="0" cellspacing="0" cellpadding="0">
	  <tr>
	    <td width="17" valign="top"><img src="../../produtos/seta_interna.gif" width="11" height="20"></td>
	    <td valign="top">
		  <p>
		    <a href="../contato/informacoes.asp?equId=<%= rsEqu("equId") %>" class="font1"><%= rsEqu("equNome") %></a><br>
		    <b>C&oacute;d:</b> <%= rsEqu("equCodigo") %><br>
			<%= Replace(rsEqu("equDescricao"),vbcrlf,"<br>") %>
		  </p>
		</td>
	    <td width="63" valign="top"><img src="icon_novo_<%= int(rsEqu("equNovo") * -1) %>.gif" width="53" height="15" hspace="5"></td>
	    <td width="25" align="right" valign="top">

		<%
		'RELAÇÃO DE FOTOS
		'--------------------------------------------------------------------------
		SQL = "select TOP 3 * from EQU_FOTOS where equId = " & rsEqu("equId") & " order by equFotId"
			set rsFot = createObject("adodb.recordset")
			rsFot.Open(SQL), DB, 1
		'--------------------------------------------------------------------------
		a = 0
		while not rsFot.EOF
		a = a + 1
		%>

		<a href="javascript:;" onClick="MM_openBrWindow('popup_fotos.asp?equId=<%= rsEqu("equId") %>&amp;CurrPage=<%= a %>','','status=yes,scrollbars=yes,width=640,height=550')"><img src="icon_foto.gif" width="22" height="17" border="0"></a>

		<%
		rsFot.movenext
		wend
		%>

	</td>
  </tr>
</table>
<center><img src="dot_gray.gif" width="400" height="1" vspace="15"></center>

	<%
	rsEqu.movenext
	wend
	%>

	<p><a href="categorias.asp"><img src="b_voltar.gif" width="67" height="20" border="0"></a></p>

<!-- #include file="../inc/rodape.asp" -->

</body>
</html>

	<%
		rsFot.close()
		set rsFot = nothing
	rsEqu.close()
	set rsEqu = nothing
	%>

<!-- #include file="../inc/fechar.asp" -->