-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.php
232 lines (201 loc) · 7.16 KB
/
main.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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
<?php
session_start();
//error_reporting(0);
//print_r($_SESSION);
require_once('dao/db_con.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Clínica Sorria</title>
<style type="text/css">
<!--
p {
text-align: center;
}
-->.warning{ color: #c09853; background-color: #fcf8e3; border-color: #fbeed5; border: 1px solid; margin: 10px 0px; padding: 10px 10px 10px 10px; font-size: 16px !important; font-weight: bold;}
body{
font:Verdana, Geneva, sans-serif;
font-size:14px;
background-color:#EEEEEE
}
.menu_label{
font-weight:bold;
}
.menu_divisao{
border-bottom: ridge 1px green;
}
.invisivel{
display:none;
}
.tabela_label{
color:black;
background-color:#e8eefa;
border-bottom:solid 1px gray;
font-weight:bold;
}
.tabela_linha{
border-bottom:solid 1px gray;
}
.tabela_lista{
border:solid 1px gray;
}
.tabela_titulo{
color:black;
background-color:#e8eefa;
font-weight:bold;
}
input{
border:thick 1px;
}
linha_selecionada{
background-color:#09F;
}
</style>
</head>
<script>
function reload_form()
{
document.getElementById('frm_menu').submit();
}
function seta_tela(str_tela)
{
document.getElementById('str_tela').value = str_tela;
reload_form();
}
function seta_acao(str_acao)
{
document.getElementById('str_acao').value = str_acao;
reload_form();
}
function seta_acao_editar_orcamento(str_acao, cd_cliente, cd_cliente_servico)
{
document.getElementById('cd_cliente').value = cd_cliente;
document.getElementById('cd_cliente_servico').value = cd_cliente_servico;
seta_acao(str_acao);
}
function seta_acao_editar_cliente(str_acao, cd_cliente)
{
document.getElementById('cd_cliente').value = cd_cliente;
seta_acao(str_acao);
}
function seta_acao_editar_usuario(str_acao, cd_usuario)
{
document.getElementById('cd_usuario').value = cd_usuario;
seta_acao(str_acao);
}
function seta_acao_editar_despesa(str_acao, cd_despesa)
{
document.getElementById('cd_despesa').value = cd_despesa;
seta_acao(str_acao);
}
function seta_acao_editar_receita(str_acao, cd_despesa)
{
document.getElementById('cd_despesa').value = cd_despesa;
seta_acao(str_acao);
}
function seta_acao_editar_tipo_material(str_acao, cd_despesa)
{
document.getElementById('cd_tipo_material').value = cd_despesa;
seta_acao(str_acao);
}
function seta_acao_editar_material_movimento(str_acao, cd_material_movimento)
{
document.getElementById('cd_material_movimento').value = cd_material_movimento;
seta_acao(str_acao);
}
</script>
<style>
img{
cursor:pointer;
}
</style>
<body marginheight="0" marginwidth="0">
<form id="frm_menu" action="main.php" enctype="multipart/form-data" method="post">
<input type="hidden" name="str_tela" id="str_tela" value="<?php echo $_POST['str_tela']; ?>" />
<input type="hidden" name="str_acao" id="str_acao" value="" />
<table width="100%" border="0">
<tr>
<td colspan="2" bgcolor="#e8eefa" style="font-size:18px" id="cabecalho"><font style="color:black; font-weight:bold">Clínica Sorria - Versão 1.3</font></td>
</tr>
<tr style="vertical-align:top">
<td width="12%" rowspan="2" style="vertical-align:top; border-right:groove;" id="menu_opcao">
<table width="100%" border="0" style="vertical-align:top; background-color:#EEEEEE">
<!--<tr>
<td class="menu_divisao"><div align="center"><img src="img/orcamento.png" width="64" height="64" onclick="seta_tela('orc');"/>
<div align="center" class="menu_label">Orçamento</div></div></td>
</tr>-->
<tr>
<td class="menu_divisao" style="border-top:solid 1px;"><div align="center"><img src="img/clientes.png" width="48" height="48" onclick="seta_tela('cli');" /></div>
<div align="center" class="menu_label">Clientes</div></td>
</tr>
<?php
if ($_SESSION['s_sn_usuario_preferencial'] == 'S')
{
?>
<tr>
<td class="menu_divisao"><div align="center"><img src="img/usuario.png" width="48" height="48" onclick="seta_tela('usu');" /></div>
<div align="center" class="menu_label">Usuários</div></td>
</tr>
<?php } ?>
<tr>
<td class="menu_divisao"><div align="center"><img src="img/renda.png" width="48" height="48" onclick="seta_tela('ren');" /></div>
<div align="center" class="menu_label">Receita</div></td>
</tr>
<tr>
<td class="menu_divisao"><div align="center"><img src="img/gastos.png" width="48" height="48" onclick="seta_tela('des');" /></div>
<div align="center" class="menu_label">Despesa</div></td>
</tr>
<tr>
<td class="menu_divisao"><div align="center"><img src="img/cheque.png" width="48" height="48" onclick="seta_tela('che');" /></div>
<div align="center" class="menu_label">Cheque</div></td>
</tr> <tr> <td class="menu_divisao"><div align="center"><img src="img/balanco.png" width="48" height="48" onclick="seta_tela('bal');" /></div> <div align="center" class="menu_label">Balanço Diário</div></td> </tr>
<?php
if ($_SESSION['s_sn_usuario_preferencial'] == 'S')
{
?>
<tr>
<td class="menu_divisao"><div align="center"><img src="img/tipo_material.png" width="48" height="48" onclick="seta_tela('mat');" /></div>
<div align="center" class="menu_label">Tipo Material</div></td>
</tr>
<?php } ?>
<tr>
<td class="menu_divisao"><div align="center"><img src="img/estoque.png" width="48" height="48" onclick="seta_tela('est');" /></div>
<div align="center" class="menu_label">Estoque</div></td>
</tr>
<?php
if ($_SESSION['s_sn_usuario_preferencial'] == 'S')
{
?>
<tr>
<td class="menu_divisao"><div align="center"><img src="img/relatorio.png" width="48" height="48" onclick="seta_tela('rel');" /></div>
<div align="center" class="menu_label">Relatório</div></td>
</tr>
<?php } ?>
</table>
</td>
<td height="23" style="border-bottom:1px solid; background-color:#EEEEEE" id="menu_acao">
<table width="287" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="57"><img src="img/novo.png" width="48" height="48" onclick="seta_acao('cad');" alt="Novo" title="Novo" /></td>
<td width="57"><img src="img/save.png" width="48" height="48" onclick="seta_acao('sal');" alt="Salvar" title="Salvar" /></td>
<td width="58"><img src="img/lista.png" width="48" height="48" onclick="seta_acao('lis');" alt="Lista" title="Lista" /></td>
<td width="57"><img src="img/excluir.png" width="48" height="48" onclick="seta_acao('exc');" alt="Excluir" title="Excluir" /></td>
<td width="58"><img src="img/pesquisar.png" width="48" height="48" onclick="seta_acao('pes');" alt="Pesquisar" title="Pesquisar" /></td>
<td width="58"><img src="img/imprimir.png" width="48" height="48" onclick="seta_acao('imp');" alt="Imprimir" title="Imprimir" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td id="main_content" valign="top">
<?php
include('inc/carrega_tela.inc.php');
?>
</td>
</tr>
</table>
</form>
</body>
</html>