main_login.php
4.94 KB
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
<?php
require 'includes/functions.php';
session_start();
if (isset($_SESSION['username'])) {
header("location:../index.php");
}
?>
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<title>SIGEM WEB | LOGIN</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- INICIO CSS LTE -->
<!-- Bootstrap 3.3.2 -->
<link href="../bower_components/admin-lte/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<!-- Font Awesome Icons 4.3.0 -->
<link href="../bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<!-- Ionicons 2.0.0 -->
<link href="../bower_components/Ionicons/css/ionicons.min.css" rel="stylesheet" type="text/css" />
<!-- Theme style -->
<link href="../bower_components/admin-lte/dist/css/AdminLTE.min.css" rel="stylesheet" type="text/css" />
<!-- TODO: SKIN DINAMICO -->
<!-- SKIN LTE -->
<link href="../bower_components/admin-lte/dist/css/skins/skin-blue.min.css" rel="stylesheet" type="text/css" />
<!-- Pace style -->
<link rel="stylesheet" href="../bower_components/admin-lte/plugins/pace/pace.min.css">
<!-- FIN CSS LTE -->
<link href="../dist/css/main.css" rel="stylesheet" media="screen">
</head>
<body>
<div class="container">
<form class="form-signin" name="form1" method="post" action="checklogin.php">
<div class="form-group">
<h2 align="center" class="form-signin-heading"><b>SIGEM</b>WEB</h2>
<p align="center"><label class="form-control-select-heading-entidad">LICENCIA DE USO OTORGADO A:</label></p>
<select name="myentidad" id="myentidad" class="form-control-select-entidad">
<option value="" style="text-align: center">SELECCIONAR ENTIDAD</option>
<?php
//PREPARA EL QUERY Y TRAE LAS ENTIDADES POR PDO
try {
$listar = new DbConn();
$tbl_members = $listar->tbl_members;
$err = '';
} catch (PDOException $e) {
$err = "Error: " . $e->getMessage();
}
$lstent = $listar->conn->prepare("SELECT entidad,nombre FROM ".$tbl_members." WHERE activo = true");
$lstent->execute();
// Si el listado de entidades no esta vacio arrastra los elementos asociados
if (($lstent->rowCount()) == 0)
{echo "<option>No existen entidades activas</option>";
} else {
while($row_list = $lstent->fetch(PDO::FETCH_ASSOC)){
?>
<option value=<?php echo $row_list["entidad"]; ?>><?php echo $row_list["nombre"]; ?></option>
<?php
}
}
?>
</select>
<h2 class="form-signin-heading"> </h2>
<p align="center"><label class="form-signin-heading-entidad">Sistema de Gestion Municipal</label></p>
<input name="myusername" id="myusername" type="text" class="form-control" align="center" placeholder="Usuario" autofocus>
<input name="mypassword" id="mypassword" type="password" class="form-control" placeholder="Contraseña">
<!-- The checkbox remember me is not implemented yet...
<label class="checkbox"> <input type="checkbox" value="remember-me"> Remember me </label>
-->
<button name="Submit" id="submit" class="btn btn-lg btn-primary btn-block" type="submit">Iniciar sesión</button>
<div align="center" id="message"></div>
</div>
</form>
<div align="center" id="message2">
<b>SIGEM</b> - Sistema de Gestion Municipal<br>
<h4><b>REGISTRO MIC/DINAPI</b> 593 del 7/Julio/2016</h4>
<b>Registro General de Derechos de Autor</b><br>
<b>Todos los Derechos Reservados</b><br>
</div>
</div> <!-- /container -->
<!-- FILA SUPERIOR -->
<div class="row">
<div class="col-md-3 .hidden-xs"></div>
<div class="col-md-3 col-sm-6 col-xs-6">
<img style="height: 75px; width: 179px;" src="../dist/img/sigem/logo_le_ssl.png">
</div><!-- /.col -->
<div class="col-md-1 .hidden-xs"></div>
<div class="col-md-3 col-sm-6 col-xs-6">
<img style="height: 75px; width: 161px;" src="../dist/img/sigem/logo_dinapi.png">
</div><!-- /.col -->
<div class="col-md-2 .hidden-xs"></div>
</div><!-- /FILA SUPERIOR -->
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="js/jquery-2.2.4.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script type="text/javascript" src="js/bootstrap.js"></script>
<!-- The AJAX login script -->
<script src="js/login.js"></script>
</body>
</html>