-
Notifications
You must be signed in to change notification settings - Fork 0
/
anp.php
executable file
·89 lines (85 loc) · 2.71 KB
/
anp.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
<?php
include("includes.php");
require_once("cls/class.anps.php");
$menu = array(0,1,0,0,0,0);
if(!$_SESSION['session'][3] == "SI" ){
header("location: error_permisos.php");
}
?>
<!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>
<?php include("includes/inc.header.php"); ?>
<title>Administración</title>
</head>
<body>
<table id="principal" align="left" cellpadding="0" cellspacing="0" width="100%" style="margin:0px; vertical-align:top">
<tr>
<td align="left" colspan="2"><?php Plantilla::PlantillaEncabezado("ADMINISTRACION DE ANPS");?> </td>
</tr>
<tr>
<td class="menu"><?php Plantilla::PlantillaIzquierdo();?></td>
<td style="width:100%">
<table class="contenido" cellpadding="0" cellspacing="0" width="100%" align="left">
<tr>
<td><?php Plantilla::menuSuperior("anp.php",$menu,$_GET['id'],false);?></td>
</tr>
<tr>
<td style="width:100%; height:417px">
<div id="cuerpo" > <?php
if( $_SESSION['session'][3] == "SI" ){
switch($_GET['opcion']){
case 'new':
Anps::AnpsNew();
break;
case 'add':
Anps::AnpsAdd();
Anps::AnpsList();
break;
case 'edit':
Anps::AnpsEdit($_GET['id']);
break;
case 'update':
Anps::AnpsUpdate($_GET['id'], $_POST);
Anps::AnpsList();
break;
case 'delete':
Areas::AnpsDelete($_GET['id']);
Areas::AnpsList();
break;
case 'detailUser':
Anps::AreasDetalleUsuario($_GET['id']);
break;
case 'detailArea':
Anps::AreasDetalleArea($_GET['id']);
break;
case 'addArea':
Anps::GuardarDetalleArea($_GET['id'],$_POST);
break;
case 'addUser':
Anps::GuardarDetalleUsuario($_GET['id'],$_POST);
break;
case 'list':
Anps::AnpsList();
break;
default:
Anps::AnpsList();
break;
}
}else if($_SESSION['session'][3]=="NO") {
echo "<div id='error'> CUIDADO: Usted es Usuario del sistema pero no esta Autorizado para ver esta informacin </div><br><br>";
}else{
echo " ERROR: Usted esta entrando de manera Incorrecta !!! " ;
} ?>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" class="pie"><?php Plantilla::PlantillaPie();?> </td>
</tr>
</table>
</body>
</html>