<%
Option Explicit
Session.LCID = 2058
'***** SI NO HA INICIADO SESION ***
If Session("Mybussiness") = "" then
Response.redirect("default.asp")
Else
Session.Timeout = 1200
'******* EN CASO DE ERROR ****
Err.Clear
On Error Resume Next
'*** REMPLAZA
Function Sanea(Texto)
Sanea = Replace(Texto, "'", "''")
End Function
%>
<!DOCTYPE html>
<HTML>
<HEAD>
<meta charset="UTF-8" />
<TITLE>SISTEMA MIM <%= Session("Mybussiness") %> USUARIO: <%= Session("MyName") %></TITLE>
<link href="css/Modulos.css" rel="stylesheet" />
<link href="css/Buscador.css" rel="stylesheet" />
<script LANGUAGE="JavaScript">
<!--
var cuenta=0;
function enviado() {
if (cuenta == 0)
{
cuenta++;
return true;
}
else
{
alert("El formulario ya esta siendo enviado, por favor aguarde un instante.");
return false;
}
}
// -->
</script>
</script>
<!--- PARA ABRIR LAS VENTANAS EMERGENTES --->
<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>
<%
'***** Variables a la base de datos ****
Dim Cn1, Cn2
Dim Rs11, Rs12, Rs13, Rs14, Rs15, Rs16, Rs17, Rs18, Rs19
Dim Sql11, Sql12, Sql13, Sql14, Sql15, Sql16, Sql17, Sql18, Sql19
'***** Conexion a la Base de Datos
Set Cn1 = Server.CreateObject( "ADODB.Connection" )
Cn1.Open "DRIVER={SQL Server};SERVER=172.17.0.5;UID="& Session("MyName") &";PWD="& Session("MyPass") &";Database="& Session("Mybussiness") &""
'***** Conexion A la Tabla Empresa ****
Set Rs11 = Server.CreateObject("ADODB.Recordset")
Sql11="Select * from Empresa;"
Rs11.Open Sql11,Cn1,1,2
%>
<SECTION Class="HeaderGes">
<div Id="DivHeadGes">
<%= Rs11("Nombre") %><br>
<%= Rs11("Direccion") %>, <%= Rs11("colonia") %><br>
<%= Rs11("Poblacion") %>
</div>
</SECTION>
<SECTION>
<!--#include file="Fpedm.asp"-->
</SECTION>
<SECTION>
<CENTER>
<B>***** REPORTE DE CONTABILIDAD *****</B>
<BR>
<BR>
<Table Class="Pedido">
<Tr>
<Td>Nombre Reporte:</Td>
<Td> </Td>
<Td >PDF</Td>
<Td> </Td>
<Td>XLS</Td>
</Tr>
<Tr>
<Td>Diario de Facturación</Td>
<Td> </Td>
<Td>
<a href="FrDFpA.asp" onclick="NewWindow(this.href,'Factura','790','470','yes');return false;">
<img src="image/Pdf.gif" border="0" Height="25PX" Title="Pdf">
</Td>
<Td> </Td>
<Td>
<a href="Frdfpe.asp" onclick="NewWindow(this.href,'Factura','790','470','yes');return false;">
<img src="image/excel.gif" border="0" Height="20px" Alt="Diario de Facturacion" height="25px">
</Td>
</Tr>
<Tr>
<Td>Diario de Facturación Pagos / Anticipos</Td>
<Td> </Td>
<Td>
<a href="Frdap.asp" onclick="NewWindow(this.href,'Factura','790','470','yes');return false;">
<img src="image/pdf.gif" height="25px" border="0" Alt="Diario de Anticipos">
</Td>
<Td> </Td>
<Td>
</Td>
</Tr>
</Table>
</SECTION>
<%
If Err.Number <> 0 Then
%>
<br><br>
Número de Error: <%= Err.Number %><BR>
Descripción: <%= Err.Description %><BR>
Origen: <%= Err.Source %><BR>
Linea: <%= Err.Line %><BR>
<br>
<%
Else
'****** FIN DE LOS ERRORES ***
End If
%>
</BODY>
</HTML>
<%
'FIN DE SESION
End If
%>