<%
Option Explicit
%>
<%
Session.LCID = 2058
%>
<!--#include file="User.asp"-->
<!--#include file="general.asp"-->
<html>
<head>
<title>Grupo MIM</title>
<link rel=stylesheet href="vista.css">
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
// End -->
</script>
</head>
<BODY>
<!--#INCLUDE FILE="BARRA.asp"-->
<div class="normalw" style="position:absolute; top:1px">
<center>
<!--#include file="empresa.asp"--><br>
<hr>
</center>
</div>
<div class="normalw" style="position:absolute; top:1px;">
Bienvenido: <%= nombre %>. <br>
Hora Actual: <%= time %>
</div>
<div class="normalw" style="position:absolute; top:34px; left:1">
<!--#include file="mpro.asp"-->
</div>
<div class="normal" style="position:absolute; top:60px; left:10">
<%
dim rs5, sql5
set rs5 = server.CreateObject("ADODB.Recordset")
sql5 = "select * from Ffacm where (usuario like '" & nombre & "') order by Ffacs"
rs5.open sql5,cn1,1,2
%>
<%
do while not rs5.EOF
%>
<a href="<%=rs5.fields("Ffacm")%>.asp"><img src="Image/<%=rs5.fields("ffacn")%>.gif" border=0 Alt=<%=rs5.fields("ffacn")%>></a>
<%
rs5.MoveNext
loop
%>
</div>
<div class="normal" style="position:absolute; top:100px; left:1">
<center>
<hr>
<B>
****** REPORTE DETALLADO DE FACTURAS POR MES POR DIVISION *****
</B>
<HR>
<%
Dim Rs11, Sql11
Dim DiaA, MesA, YearA, MesH
DiaA = "01"
MesH = Month(date())
If MesH < 10 then
MesA = "0" & MesH
Else
MesA = MesH
End If
YearA = Year(Date())
Set Rs11 = server.CreateObject("ADODB.Recordset")
Sql11="SELECT DIVVEND " &_
"FROM VENDEDORES " &_
"GROUP BY DIVVEND " &_
"ORDER BY DIVVEND;"
Rs11.Open Sql11,cn1,1,2
%>
<Form action="Clifacxdivr.asp" name="Division" method="Post">
<TABLE border=0 cellspacing=1 cellpadding=2 class="normal">
<tr>
<td Class="Normalb"><br>Fecha Inicial: </td>
<td><br><input type=text class=normalb name="FechaI" size="12" Value=<%= DiaA & "/" & MesA & "/" & YearA %>> </td>
<td Class="Normalb"><br> Fecha Final: </td>
<td><br>
<input type=text class=normalb name="FechaF" size="12" Value=<%= Date() %>>
<input type="Hidden" class=normalb name="Empresa" size="12" Value=<%= Negocio %>>
</td>
</tr>
<tr>
<td Class="Normalb">Division: </td>
<td Class="Normalb">
<SELECT NAME="Division" class="Normalb">"
<%
Do While not Rs11.EOF
%>
<OPTION value="<%= Rs11("divvend") %>"><%= Rs11("divvend") %></option>"
<%
Rs11.MoveNext
Loop
%>
</select>
</td>
<td Class="Normalb" Align="Center">
</td>
</tr>
<Tr>
<td Class="Normalb" Align="Center" Colspan="4">
<input type="Submit" value="Filtrar" class="Normalb">
</td>
</Tr>
</table>
</form>
</div>
</body>
</html>
<%
End Sub
'Add the chosen course to the cart
Call AddUsuario()
'Display contents of electronic shopping cart
Call DisplayUsuario()
%>