<%
Option Explicit
Session.LCID = 2058
'***** SI NO HA INICIADO SESION ***
If Session("Mybussiness") = "" then
Response.redirect("default.asp")
Session("ID")=Cint(0)
Else
Session("ID")= 1000
Session.Timeout = 1200
'******* EN CASO DE ERROR ****
Err.Clear
On Error Resume Next
'*** REMPLAZA
Function Sanea(Texto)
Sanea = Replace(Texto, "'", "''")
End Function
%>
<html>
<head>
<title>Sistema MIM </title>
<meta charset="ISO-8859-1" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
</head>
<body class="homepage is-preload">
<!-- Header -->
<header id="header">
<div class="logo container">
<div>
<h1><a href="" id="logo">NOTIFICADO</a></h1>
</div>
</div>
</header>
<!-- Menu -->
<nav id="nav">
<!--#INCLUDE FILE="CPMenu.asp"-->
</nav>
<%
'***** Variables a la base de datos ****
Dim Cn1
Dim Rs11, Rs12, Rs13, Rs14
Dim Sql11, Sql12, Sql13, Sql14
Dim IdNot
IdNot = Request("IdNot")
'***** 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
'***** Conexion A la Tabla OPERADORES ****
Set Rs12 = Server.CreateObject("ADODB.Recordset")
Sql12="Select * from CPNotificado where IdNot = "& IdNot &";"
Rs12.Open Sql12,Cn1,1,2
%>
<section id="main">
<Form action="CPNotificadoUp.asp" method="post">
<!-- Highlight -->
<section class="box highlight">
<input tabindex="2" type="text" placeholder="RFCNotificado" Title="RFCNotificado" name="RFCNotificado" Size="14" id="RFCNotificado" value="<%= Rs12("RFCNotificado") %>" maxlength="14" onChange="javascript:this.value=this.value.toUpperCase();">
<input tabindex="4" type="text" placeholder="NombreNotificado" Title="NombreNotificado" name="NombreNotificado" Size="254" id="NombreNotificado" value="<%= Rs12("NombreNotificado") %>" Size="14px" maxlength="254" onChange="javascript:this.value=this.value.toUpperCase();" required />
<input tabindex="5" type="text" placeholder="NumRegIdTribNotificado" Title="NumRegIdTribNotificado" name="NumRegIdTribNotificado" Size="15" id="NumRegIdTribNotificado" value="<%= Rs12("NumRegIdTribNotificado") %>" maxlength="40" onChange="javascript:this.value=this.value.toUpperCase();">
<input tabindex="6" type="text" placeholder="ResidenciaFiscalNotificado" Title="ResidenciaFiscalNotificado" name="ResidenciaFiscalNotificado" Size="15" id="ResidenciaFiscalNotificado" value="<%= Rs12("ResidenciaFiscalNotificado") %>" maxlength="50" onChange="javascript:this.value=this.value.toUpperCase();">
<input tabindex="7" type="text" placeholder="Calle" Title="Calle" name="Calle" Size="15" id="Calle" value="<%= Rs12("CalleNot") %>" maxlength="100" onChange="javascript:this.value=this.value.toUpperCase();">
<input tabindex="8" type="text" placeholder="NumeroExterior" Title="NumeroExterior" name="NumeroExterior" Size="15" id="NumeroExterior" value="<%= Rs12("NumeroExteriorNot") %>" maxlength="40" onChange="javascript:this.value=this.value.toUpperCase();">
<input tabindex="9" type="text" placeholder="NumeroInterior" Title="NumeroInterior" name="NumeroInterior" Size="15" id="NumeroInterior" value="<%= Rs12("NumeroInteriorNot") %>" maxlength="40" onChange="javascript:this.value=this.value.toUpperCase();">
<input tabindex="10" type="text" placeholder="Colonia" Title="Colonia" name="Colonia" Size="15" id="Colonia" value="<%= Rs12("ColoniaNot") %>" maxlength="120" onChange="javascript:this.value=this.value.toUpperCase();">
<input tabindex="11" type="text" placeholder="Localidad" Title="Localidad" name="Localidad" Size="15" id="Localidad" value="<%= Rs12("LocalidadNot") %>" maxlength="120" onChange="javascript:this.value=this.value.toUpperCase();">
<input tabindex="12" type="text" placeholder="Referencia" Title="Referencia" name="Referencia" Size="15" id="Referencia" value="<%= Rs12("ReferenciaNot") %>" maxlength="120" onChange="javascript:this.value=this.value.toUpperCase();">
<input tabindex="13" type="text" placeholder="Municipio" Title="Municipio" name="Municipio" Size="15" id="Municipio" value="<%= Rs12("MunicipioNot") %>" maxlength="120" onChange="javascript:this.value=this.value.toUpperCase();">
<input tabindex="14" type="text" placeholder="Estado" Title="Referencia" name="Estado" Size="15" id="Estado" value="<%= Rs12("EstadoNot") %>" maxlength="50" onChange="javascript:this.value=this.value.toUpperCase();">
<input tabindex="15" type="text" placeholder="Pais" Title="Pais" name="Pais" Size="15" id="Pais" value="<%= Rs12("PaisNot") %>" maxlength="30" onChange="javascript:this.value=this.value.toUpperCase();">
<input tabindex="16" type="text" placeholder="CodigoPostal" Title="CodigoPostal" name="CodigoPostal" Size="15" id="CodigoPostal" value="<%= Rs12("CodigoPostalNot") %>" maxlength="12" onChange="javascript:this.value=this.value.toUpperCase();">
<input tabindex="17" type="hidden" placeholder="IdNot" Title="IdNot" name="IdNot" Size="15" id="IdNot" value="<%= Rs12("IdNot") %>" maxlength="5" onChange="javascript:this.value=this.value.toUpperCase();">
<br>
<br>
<button tabindex="8" type="submit" name="Actualizar" id="Actualizar"/>Actualizar</button>
<br><br>
<h3><a href="CPNotificadoDel.asp?IdNot=<%= Rs12("IdNot") %>">Eliminar</a></h3>
</section>
</Form>
</section>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.dropotron.min.js"></script>
<script src="assets/js/jquery.scrolly.min.js"></script>
<script src="assets/js/browser.min.js"></script>
<script src="assets/js/breakpoints.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
<%
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
%>