-
Notifications
You must be signed in to change notification settings - Fork 0
/
estado_carga.php
51 lines (50 loc) · 1.57 KB
/
estado_carga.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
<?php
require_once('globales_sistema.php');
if (!isset($_COOKIE['nombre_usuario'])) {
header('Location: index.php');
}
$titulo_pagina = 'Estado Carga';
$titulo_sistema = 'Mamut Peru';
require_once('recursos/componentes/header.php');
?>
<input type='hidden' id='id' name='id' value='0'/>
<div class='control-group'>
<label>Nombre</label>
<input class='form-control' placeholder='Nombre' id='nombre' name='nombre' autofocus/>
</div>
<div class='control-group'>
<p></p>
<button type='button' class='btn btn-primary' onclick='save()'>Guardar</button>
<button type='reset' class='btn'>Limpiar</button>
</div>
</form>
<hr/>
<?php
include_once('nucleo/estado_carga.php');
$obj = new estado_carga();
$objs = $obj->listDB();
?>
<div class='contenedor-tabla'>
<table id='tb' class='display' cellspacing='0' width='100%'>
<thead>
<tr>
<th>Id</th><th>Nombre</th>
<th>OPC</th>
</tr>
</thead>
<tbody>
<?php
if (is_array($objs)):
foreach ($objs as $o):
?>
<tr><td><?php echo $o['id']; ?></td><td><?php echo $o['nombre']; ?></td>
<td><a href='#' onclick='sel(<?php echo $o['id']; ?>)'>MOD</a> - <a href='#' onclick='del(<?php echo $o['id']; ?>)'>DEL</a></td>
</tr>
<?php
endforeach;
endif;
?>
<?php
$nombre_tabla = 'estado_carga';
require_once('recursos/componentes/footer.php');
?>