-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprincipal.php
executable file
·87 lines (72 loc) · 3.22 KB
/
principal.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
<?php
/*
COPYRIGHT 2008 - 2010 DO PORTAL PUBLICO INFORMATICA LTDA
Este arquivo e parte do programa E-ISS / SEP-ISS
O E-ISS / SEP-ISS e um software livre; voce pode redistribui-lo e/ou modifica-lo
dentro dos termos da Licenca Publica Geral GNU como publicada pela Fundacao do
Software Livre - FSF; na versao 2 da Licenca
Este sistema e distribuido na esperanca de ser util, mas SEM NENHUMA GARANTIA,
sem uma garantia implicita de ADEQUACAO a qualquer MERCADO ou APLICACAO EM PARTICULAR
Veja a Licenca Publica Geral GNU/GPL em portugues para maiores detalhes
Voce deve ter recebido uma copia da Licenca Publica Geral GNU, sob o titulo LICENCA.txt,
junto com este sistema, se nao, acesse o Portal do Software Publico Brasileiro no endereco
www.softwarepublico.gov.br, ou escreva para a Fundacao do Software Livre Inc., 51 Franklin St,
Fith Floor, Boston, MA 02110-1301, USA
*/
?>
<?php
session_name("emissores_iss");
session_start();
if($_SESSION["empresa"]){
$tipo = $_SESSION["TIPO"];
// arquivo de conexão com o banco
include("include/conect.php");
// arquivo com funcoes uteis
include("funcoes/util.php");
//print("<a href=index.php target=_parent><img src=../img/topos/$TOPO></a>");
?>
<!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>E-ISS</title>
<script src="scripts/java_site.js" language="javascript" type="text/javascript"></script>
<script src="scripts/padrao.js" language="javascript" type="text/javascript"></script>
<link href="css/padrao_site.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td><?php include("include/topo.php"); ?></td>
</tr>
<tr>
<td bgcolor="#FFFFFF" height="400" valign="top" align="center">
<table height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" background="img/menus/menu_fundo.jpg" valign="top" width="170"><?php include("include/menu.php"); ?></td>
<td width="590" align="center" valign="top" background="img/fundos/login.jpg" style="background-repeat:repeat-x"><?php if(!isset($_GET['pag'])){?><img src="img/isslogo.jpg" width="590" height="161" /><?php }?><br />
<!-- <img src="layout/como_funciona.jpg" /> -->
<?php
$link = base64_decode($_GET["pag"]);
$sql=mysql_query("SELECT tipo FROM menus_cadastro WHERE link='$link' AND tipo = '$tipo'");
list($tipo_link)=mysql_fetch_array($sql);
if($tipo_link == $tipo){
echo "<br><br><br>";
include("include/".$tipo."/".$link.".php");
}elseif($link == "logout"){
include($link.".php");
}
?>
</td>
</tr>
</table>
</td>
</tr>
</table>
<?php include("include/rodape.php"); ?>
</body>
</html>
<?php
}else{
print("<script language=JavaScript>parent.location='site/index.php';</script>");
}?>