-
Notifications
You must be signed in to change notification settings - Fork 25
/
clientes.php
85 lines (67 loc) · 2.16 KB
/
clientes.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
<?php
/*-------------------------
Autor: Obed Alvarado
Web: obedalvarado.pw
Mail: [email protected]
---------------------------*/
session_start();
if (!isset($_SESSION['user_login_status']) AND $_SESSION['user_login_status'] != 1) {
header("location: login.php");
exit;
}
/* Connect To Database*/
require_once ("config/db.php");//Contiene las variables de configuracion para conectar a la base de datos
require_once ("config/conexion.php");//Contiene funcion que conecta a la base de datos
$active_facturas="";
$active_productos="";
$active_clientes="active";
$active_usuarios="";
$title="Clientes | Simple Invoice";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php include("head.php");?>
</head>
<body>
<?php
include("navbar.php");
?>
<div class="container">
<div class="panel panel-info">
<div class="panel-heading">
<div class="btn-group pull-right">
<button type='button' class="btn btn-info" data-toggle="modal" data-target="#nuevoCliente"><span class="glyphicon glyphicon-plus" ></span> Nuevo Cliente</button>
</div>
<h4><i class='glyphicon glyphicon-search'></i> Buscar Clientes</h4>
</div>
<div class="panel-body">
<?php
include("modal/registro_clientes.php");
include("modal/editar_clientes.php");
?>
<form class="form-horizontal" role="form" id="datos_cotizacion">
<div class="form-group row">
<label for="q" class="col-md-2 control-label">Cliente</label>
<div class="col-md-5">
<input type="text" class="form-control" id="q" placeholder="Nombre del cliente" onkeyup='load(1);'>
</div>
<div class="col-md-3">
<button type="button" class="btn btn-default" onclick='load(1);'>
<span class="glyphicon glyphicon-search" ></span> Buscar</button>
<span id="loader"></span>
</div>
</div>
</form>
<div id="resultados"></div><!-- Carga los datos ajax -->
<div class='outer_div'></div><!-- Carga los datos ajax -->
</div>
</div>
</div>
<hr>
<?php
include("footer.php");
?>
<script type="text/javascript" src="js/clientes.js"></script>
</body>
</html>