This repository has been archived by the owner on Aug 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
tablas_basicas.php
63 lines (53 loc) · 1.68 KB
/
tablas_basicas.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
<?php
// vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker fileencoding=utf-8:
/**
* Tablas básicas
*
* PHP version 5
*
* @category SIVeL
* @package SIVeL
* @author Vladimir Támara <[email protected]>
* @copyright 2004 Dominio público. Sin garantías.
* @license https://www.pasosdejesus.org/dominio_publico_colombia.html Dominio Público. Sin garantías.
* @link http://sivel.sf.net
*/
/**
* Presenta tablas básicas
*/
require_once 'aut.php';
if (!isset($_SESSION['dirsitio'])) {
print_r($_SESSION);
die("NO está dirsitio");
}
require_once $_SESSION['dirsitio'] . '/conf.php';
require_once 'misc.php';
$aut_usuario = "";
autentica_usuario($dsn, $aut_usuario, 11);
require_once $_SESSION['dirsitio'] . '/conf_int.php';
require_once 'misc_caso.php';
encabezado_envia(_("Tablas Básicas"));
require_once 'HTML/Menu.php';
require_once 'HTML/Menu/DirectTreeRenderer.php';
act_globales();
$menu = new HTML_Menu($GLOBALS['menu_tablas_basicas'], 'sitemap');
$rend = new HTML_Menu_DirectTreeRenderer();
$rend->setEntryTemplate(
HTML_MENU_ENTRY_INACTIVE,
'<a href = "tabla.php?tabla={url}">{title}</a>'
);
$menu->render($rend);
echo '<table border = "0" width = "100%"><tr>' .
'<td style = "white-space: nowrap;background-color:#CCCCCC;" ' .
'align="center" valign="top" colspan="2"><b>'
. _('Tablas Básicas') . '</b>' .
'</td></tr></table>';
print $rend->toHtml();
echo '<pr> </pr><table border="0" width="100%" ' .
'style="white-space: nowrap; background-color:#CCCCCC;"><tr>' .
'<td align="right">' .
'<a href="index.php"><b>' .
_('Menú Principal') . '</b></a>' .
'</td></tr></table>';
pie_envia();
?>