-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
123 lines (104 loc) · 2.85 KB
/
index.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<?php
session_start();
require_once("./Negocio/clsEmpresa.php");
require_once("./Negocio/clsPeriodo.php");
require_once("./Negocio/clsCuenta.php");
require_once("./Negocio/clsElemento.php");
require_once("./Negocio/clsTransaccion.php");
require_once("./Negocio/clsCatalago.php");
require_once("./Negocio/clsUsuario.php");
require_once("./Negocio/clsAjustes.php");
$objEmpresa = new Empresa;
$objPeriodo = new Periodo;
$objCuenta = new Cuenta;
$objElemento = new Elemento;
$objTransaccion = new Transaccion;
$objCatalago= new Catalago;
$objUsuario= new Usuario;
$objAjustes= new Ajustes;
//SESSIONES
$_SESSION['s_periodo']="1";
if ($_SESSION["ss_usuario"]){
?>
<!DOCTYPE html>
<html class="gt-ie8 gt-ie9 not-ie">
<head>
<?php
@include_once("HTML/head.php");
?>
</head>
<body class="theme-default main-menu-animated page-search">
<script>var init = [];</script>
<div id="main-wrapper">
<!-- 2. $MAIN_NAVIGATION ===========================================================================
Main navigation
-->
<?php
@include_once("HTML/main_n.php");
?>
<?php
@include_once("HTML/menu.php");
?>
<!-- /2. $END_MAIN_NAVIGATION -->
<!-- 4. $MAIN_MENU ====================-->
<?php
@include_once("HTML/main_menu.php");
?>
<!-- /4. $MAIN_MENU -->
<div id="content-wrapper">
<?php
$dato =isset($_GET['menu']) ? $_GET['menu'] : null;
if ($dato) {
if ($dato=="registrarPeriodo" || $dato=="listarPeriodo") {
include_once("Vista/$dato.php");
}
if ($dato=="registrarCuenta" || $dato=="registrarSubCuenta" || $dato=="registrarDivisionaria" || $dato=="registrarSubDivisionaria") {
include_once("Vista/$dato.php");
}
if ($dato=="registrarTransaccion") {
include_once("Vista/$dato.php");
}
if ($dato=="libroDiario") {
include_once("Vista/$dato.php");
}
if ($dato=="libroMayor") {
include_once("Vista/$dato.php");
}
if ($dato=="registrarCatalago" || $dato=="listarCatalago") {
include_once("Vista/$dato.php");
}
if ($dato=="BalanzaCADA") {
include_once("Vista/$dato.php");
}
if ($dato=="registrarUsuario" || $dato=="listarUsuario") {
include_once("Vista/$dato.php");
}
if ($dato=="ajustes") {
include_once("Vista/$dato.php");
}
if ($dato=="balanzaComprobacionAjustada") {
include_once("Vista/$dato.php");
}
if ($dato=="estadoDeResultados" || $dato=="estadoSituacionFinanciera") {
include_once("Vista/$dato.php");
}
}else{
include_once("Vista/inicio.php");
}
?>
</div> <!-- / #content-wrapper -->
<div id="main-menu-bg"></div>
</div> <!-- / #main-wrapper -->
<?php
@include_once("HTML/footer.php");
?>
<script src="Js/SubCuenta.js"></script>
<script src="Js/Divisionaria.js"></script>
<script src="Js/SubDivisionaria.js"></script>
</body>
</html>
<?php
}else {
header('Location: login.php');
}
?>