<%
id = Request.QueryString("id")
cat = Request.QueryString("cat")
%>
<!--#include file ="top_y_left.inc"-->
<section id="body" class="torneos">
	<div class="wrapper">
    	<a href="javascript:history.back(-1);" class=lnk1 style="color: #FFF; float: right; font-size: 12px; margin: 10px 0"><i class="fas fa-angle-double-left" style="color: #E04F26; font-size: 14px; margin-right: 10px"></i>Volver</a>
        <% 
		strSQL = "select * from propuestas_ventas where id="&id
		AbrirBD()
		objRS.Open strSQL, objConn, 1
		If Not objRS.EOF Then  
		%>
        <span class="tit_torneo2" style="clear: both"><%=Ucase(cat)%></span>
        <span class="titulo_torneo" style="cursor: auto; display: block; font-family: 'FranklinGothic', Helvetica, Arial, sans-serif; font-size: 4em; line-height: .875em; text-align: center; width: 100%"><%=Ucase(objRS("txt_torneo"))%></span>
        <span class="subtitulo_torneo" style="cursor: auto; display: block; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size:15px; margin-bottom: 25px; text-align: center; width: 100%"><%=objRS("txt_subtitulo")%></span>
        <span style="display:block; font-family: 'FranklinGothic', Helvetica, Arial, sans-serif; font-size:20px;color:#F05500; margin-bottom: 25px; text-align: center; width: 100%">SEDES</span>
		<ul style="margin-bottom: 50px; padding: 0">		  
			<%
			strSQL2 = "SELECT * FROM sedes order by sede asc;" 
			AbrirBD2()
			objRS2.Open strSQL2, objConn2
			do while not objRS2.EOF%>
			<%
			strSQL3 = "SELECT * FROM propuestas_ventas_sedes where id_sede="&objRS2("id")&" and id_ppta="&id&";" 
			AbrirBD3()
			objRS3.Open strSQL3, objConn3
			if not objRS3.EOF then
			if objRS2("id_pag") > "0" then
			%>
			<li style="list-style: none; margin-bottom: 15px">
            	<i class="fas fa-map-marker-alt" style="color: #F05500; font-size: 1.5em; margin-right: 10px"></i>
				<%=objRS2("sede")%> <a href="sedes_mapa.asp?id=<%=objRS2("id_pag")%>" style="background: #666; color: #FFF; display: block; padding: 5px; border-radius: 4px; margin: 5px 0 5px 25px; width: 126px">VER MAPA Y FOTOS</a>
            </li>		  
			<%
			else
			%>
			<li style="list-style: none; margin-bottom: 15px">
            	<i class="fas fa-map-marker-alt" style="color: #F05500; font-size: 1.5em; margin-right: 10px"></i>
				<%=objRS2("sede")%>
            </li>		  
			<%
			end if 
			end if
			CerrarBD3()
			objRS2.movenext()
			loop
			CerrarBD2()
			%>
		</ul>
		<%
		Else
		%>
		<p style="margin-bottom: 50px">Error: No se encontraron los datos de la propuesta</span>
		<%
		End If
		CerrarBD()
		%>
    </div>
    <a href="https://www.youtube.com/channel/UC5In7SOSRzX_LvKYVrW_iig" target="_blank" style="background: #8c8690; background: -moz-linear-gradient(top, #8c8690 0%, #504d54 100%); background: -webkit-linear-gradient(top, #8c8690 0%,#504d54 100%); background: linear-gradient(to bottom, #8c8690 0%,#504d54 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#8c8690', endColorstr='#504d54',GradientType=0 ); display: block; float: left; width: 100%"><img src="images/facebook.jpg" style="display: block; height: auto; margin: 0 auto; max-width: 907px; width: 100%" ></a>
</section>
<!--#include file ="footer.inc"-->	