-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAdministrador.php
119 lines (89 loc) · 3.1 KB
/
Administrador.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Tu Cuenta</title>
<link rel="stylesheet" href="Administrador.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="DataTables/media/css/jquery.dataTables.css"/>
<script src="js/jquery.js"></script>
<script src="js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" language="javascript" src="DataTables/media/js/jquery.js"></script>
<script type="text/javascript" language="javascript" src="DataTables/media/js/jquery.dataTables.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
CargarCuerpo();
function CargarCuerpo()
{
var codigo=<?php echo $_GET['id']; ?>;
$("#Cuerpo").load('Buscar2.php',{id:codigo});
}
});
</script>
<script type="text/javascript">
$(document).ready(function()
{
$("#nav a").each(function(){
var href = $(this).attr("href");
$(this).attr({ href: "#"});
$(this).click(function(){
var codigo=<?php echo $_GET['id'];?>;
$("#Cuerpo").load(href,{id:codigo});
});
});
});
</script>
</head>
<body bgcolor="#F3F3F3">
<?php
include('Conexion.php');
$cod=$_GET['id'];
$sql=$cn->prepare("SELECT * FROM cuenta WHERE CodigoCuenta=:Codigo");
$sql->execute(array(':Codigo'=>$cod));
$op=$sql->fetch();
$sq2=$cn->prepare("SELECT * FROM cuenta WHERE CodigoCuenta=:Codigo");
$sq2->execute(array(':Codigo'=>$cod));
$op2=$sq2->fetch();
$CI=$op2['NumeroDocumento'];
$sq3=$cn->prepare("SELECT * FROM persona WHERE NumeroDocumento=:CI");
$sq3->execute(array(':CI'=>$CI));
$op3=$sq3->fetch();
$sql=$cn->prepare("SELECT * FROM cuenta WHERE CodigoCuenta=:Codigo");
$sql->execute(array(':Codigo'=>$cod));
$op=$sql->fetch();
?>
<div class="cabeza">
<ul id="menu">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="174" ></td>
<td width="24"> </td>
<td width="269"> </td>
<td width="137"></td>
<td width="28"> </td>
<td width="28"> </td>
<td width="28"> </td>
<td width="104"> </td>
<td width="16"> </td>
<td width="42"><img src="Imagenes/escudo3.png" width="42" height="32"/> </td>
<td width="100"><li><strong>Cuenta</strong>
<ul id="lista1">
<li> <a href="" >Noticias</a></li>
<li> <a href="Inicio.php">Cerrar Sesion</a></li>
</ul>
</li> </td>
<td width="73">
<li><strong>Inicio</strong>
<ul id="nav">
<li> <a href="Delitos.php">Mis Datos</a></li>
<li> <a href="">Alertas</a></li>
<li> <a href="">Correos</a></li>
</ul>
</li> </td>
</tr>
</table>
</ul>
</div>
<div id="Cuerpo"></div>
</body>
</html>