<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>REPORTE SALAS</title>
</head>
<!--#include Virtual ="Reservaciones\connsql.asp"-->
<body>
<%
Mes = Request.QueryString("Meses")
Anio = Request.QueryString("Anio")
fechaini = "01/"& Mes &"/"& Anio
fechafin = "31/"& Mes&"/"& Anio
sql1 = "SELECT * FROM reservsala "
sql2 = "WHERE fecha_inicio>= '"&fecini&"' and fecha_inicio<= '"&fecfin&"' "
sql3 = "ORDER by fecha_inicio;"
sqls = sql1 & sql2 & sql3
Response.Write "<table border='0' width='100%' cellspacing='0' cellpadding='0'>"
Response.Write "<tr>"
Response.Write "<td width='12%' align='center' font face='Cambria' align='center'><p><Strong>REPORTE GENERAL DE SALAS</Strong></p></td>"
Response.Write "</tr>"
Response.Write "</table>"
Response.Write "<div align='center'><center>"
Response.Write "<table width='100%' class='style1' style='border-color: #000000; border-style: solid' cellspacing='1' cellpadding='1'>"
Response.Write "<tr>"
Response.Write "<td width='6%' align='center' bgcolor='#000000'><small><font face='Arial' color='#FFFFFF'><strong> SALA </strong></font></small></td>"
Response.Write "<td width='6%' align='center' bgcolor='#000000'><font face='Cambria' color='#FFFFFF'><small><strong> USUARIO </strong></small></font></td>"
Response.Write "<td width='6%' align='center' bgcolor='#000000'><font face='Cambria' color='#FFFFFF'><small><strong> GERENCIA </strong></small></font></td>"
Response.Write "<td width='6%' align='center' bgcolor='#000000'><font face='Cambria' color='#FFFFFF'><small><strong>DEPARTAMENTO</strong></small></font></td>"
Response.Write "<td width='6%' align='center' bgcolor='#000000'><font face='Cambria' color='#FFFFFF'><small><strong>FECHA DE SOLICITUD</strong></small></font></td>"
Response.Write "<td width='6%' align='center' bgcolor='#000000'><font face='Cambria' color='#FFFFFF'><small><strong>FECHA INICIO</strong></small></font></td>"
Response.Write "<td width='6%' align='center' bgcolor='#000000'><font face='Cambria' color='#FFFFFF'><small><strong>FECHA TERMINO</strong></small></font></td>"
Response.Write "<td width='6%' align='center' bgcolor='#000000'><font face='Cambria' color='#FFFFFF'><small><strong>HORA INICIO</strong></font></small></td>"
Response.Write "<td width='6%' align='center' bgcolor='#000000'><font face='Cambria' color='#FFFFFF'><small><strong>HORA FINAL</strong></small></font></td>"
Response.Write "<td width='6%' align='center' bgcolor='#000000'><font face='Cambria' color='#FFFFFF'><small><strong>CURSO</strong></small></font></td>"
Response.Write "<td width='6%' align='center' bgcolor='#000000'><font face='Cambria' color='#FFFFFF'><small><strong>CANTIDAD DE PERSONAS</strong></small></font></td>"
Response.Write "<td width='6%' align='center' bgcolor='#000000'><font face='Cambria' color='#FFFFFF'><small><strong>SERVICIO</strong></small></font></td>"
Response.Write "<td width='6%' align='center' bgcolor='#000000'><font face='Cambria' color='#FFFFFF'><small><strong>PROPORCIONADO POR</strong></small></font></td>"
Response.Write "<td width='6%' align='center' bgcolor='#000000'><font face='Cambria' color='#FFFFFF'><small><strong>OBSERVACIONES</strong></small></font></td>"
Response.Write "<td width='6%' align='center' bgcolor='#000000'><font face='Cambria' color='#FFFFFF'><small><strong>TIPO DE SALA</strong></font></small></td>"
Response.Write "</tr>"
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open sqls, conn, 3, 3
do while not rs.EOF
nom_sala = rs.fields("nom_sala")
nombre = rs.fields("nombre")
gerencia = rs.fields("gerencia")
depto = rs.fields("departamento")
fecha_soli = rs.fields("fecha_soli")
fecha_inicio = rs.fields("fecha_inicio")
fecha_termi = rs.fields("fecha_termi")
inicial_hrs = rs.fields("dur_inicial_hrs")
inicial_min = rs.fields("dur_inicial_min")
dur_inicial = inicial_hrs + ":" + inicial_min
final_hrs = rs.fields("dur_final_hrs")
final_min = rs.fields("dur_final_min")
dur_final = final_hrs + ":" + final_min
curso = rs.fields("curso")
cantidad_pers = rs.fields("cantidad")
servicio = rs.fields("serv_cafe")
proporcionado = rs.fields("proporcionado_por")
observaciones = rs.fields("observaciones")
tipo_sala = rs.fields("tipo_sala")
Response.Write "<tr>"
Response.Write "<td width='6%' align='Left' style='border: 2px solid #000000' ><strong><font face='Arial'><small>" & nom_sala & "</small></font></strong></td>"
Response.Write "<td width='6%' align='Left' style='border: 2px solid #000000'><strong><font face='Arial'><small>" & nombre & "</small></font></strong></td>"
Response.Write "<td width='6%' align='Left' style='border: 2px solid #000000'><strong><font face='Arial'><small>" & gerencia & "</small></font></strong></td>"
Response.Write "<td width='6%' align='Left' style='border: 2px solid #000000'><strong><font face='Arial'><small>" & depto & "</small></font></strong></td>"
Response.Write "<td width='6%' align='Left' style='border: 2px solid #000000'><strong><font face='Arial'><small>" & fecha_soli & "</small></font></strong></td>"
Response.Write "<td width='6%' align='Left' style='border: 2px solid #000000'><strong><font face='Arial'><small>" & fecha_inicio & "</small></font></strong></td>"
Response.Write "<td width='6%' align='Left' style='border: 2px solid #000000'><strong><font face='Arial'><small>" & fecha_termi & "</small></font></strong></td>"
Response.Write "<td width='6%' align='Left' style='border: 2px solid #000000'><strong><font face='Arial'><small>" & dur_inicial & "</small></font></strong></td>"
Response.Write "<td width='6%' align='Left' style='border: 2px solid #000000'><strong><font face='Arial'><small>" & dur_final & "</small></font></strong></td>"
Response.Write "<td width='6%' align='Left' style='border: 2px solid #000000'><strong><font face='Arial'><small>" & curso & "</small></font></strong></td>"
Response.Write "<td width='6%' align='Left' style='border: 2px solid #000000'><strong><font face='Arial'><small>" & cantidad_pers & "</small></font></strong></td>"
Response.Write "<td width='6%' align='Left' style='border: 2px solid #000000'><strong><font face='Arial'><small>" & servicio & "</small></font></strong></td>"
Response.Write "<td width='6%' align='Left' style='border: 2px solid #000000'><strong><font face='Arial'><small>" & proporcionado & "</small></font></strong></td>"
Response.Write "<td width='6%' align='Left' style='border: 2px solid #000000'><strong><font face='Arial'><small>" & observaciones & "</small></font></strong></td>"
Response.Write "<td width='6%' align='Left' style='border: 2px solid #000000'><strong><font face='Arial'><small>" & tipo_sala & "</small></font></strong></td>"
Response.Write "</tr>"
rs.MoveNext
loop
rs.Close
%>
</body>
</html>