/** * HTML do layout do painel * * @param $objeto $cliente * @param $objeto $usuario * @param $objeto $menu * @param $objeto $acao */ public function Painel($cliente, $usuario, $menu, $acao) { $layout = new Layout(); ?> <HTML> <HEAD> <TITLE> Administração - <?php echo $cliente->getNome(); ?> </TITLE> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="css/admin.css" type="text/css"> <link rel="stylesheet" href="lib/dsrte.css" type="text/css"/> <script src="script/admin.js" language="JavaScript"/></script> <script type="text/javascript" src="<?php echo $layout->image_path; ?> js/jquery.js"></script> <script type="text/javascript" src="<?php echo $layout->image_path; ?> js/jquerycalendar.js"></script> <script type="text/javascript" src="../js/jquery.validate.js"></script> <style type="text/css">@import url(<?php echo $layout->image_path; ?> css/jquery-calendar.css);</style> <script> $(document).ready(function(){ $(".data").calendar(); }); <!-- // keyboard shortcut keys for current language var ctrlb='b',ctrli='i',ctrlu='u'; //--> </script> </HEAD> <body bgcolor="#EFEFEF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="Mascaras.carregar();"> <table width="778" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tbody> <tr> <td width="1" bgcolor="#CCCCCC"><img src="img/regua1x1.gif" height="1"></td> <td valign="top"> <!--##################################################################################--> <table width="778" height="100%" cellspacing="0" cellpadding="0" border="0" align="center"> <tbody> <tr> <td height="45" colspan="2"> <table width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody> <tr> <td width="180" height="70" align="center" style="padding-bottom: 10px; padding-top: 10px;"> <img src="img/<?php echo $cliente->getLogo(); ?> " width="75" height="50"/> </td> <td> </td> <td> <table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0"> <tbody> <tr> <td align="right" style="padding: 10px;"><strong><font color="#666666"><?php echo $cliente->getNome() . " - " . $cliente->getVersao(); ?> <br/></font><font size="2" color="#666">Sistema de Administração</font></strong></td> <td></td> </tr> <tr> <td valign="bottom" align="right" style="padding-right: 10px;"> <table cellspacing="0" cellpadding="4" border="0"> <tbody> <tr align="center"> <td width="60" class="abas"><a href="principal.php" class="abasTexto">HOME</a></td> <td width="60" class="abas"><a href="?menu=1&act=altera&id=<?php echo $usuario->getIdadministracao(); ?> " class="abasTexto">MEU PERFIL</a></td> <td width="60" class="abas"><a href="logout.php" class="abasTexto">SAIR</a></td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> <tr> <td height="1" bgcolor="#cccccc" colspan="2"><img height="1" src="img/regua1x1.gif"/></td> </tr> <tr> <td width="180" valign="top" bgcolor="#f9f9f9" align="center"> <table width="180" cellspacing="0" cellpadding="0" border="0"> <tbody> <tr> <td valign="center" style="padding-left: 6px; padding-right: 6px;"><br/> <? $this->Menu(); ?> </td> </tr> </tbody> </table> </td> <td width="596" valign="top" bgcolor="#ffffff" style="padding: 10px;"> <? if(!isset($menu)) { $this->CorpoIndex($usuario); }else{ switch ($menu) { //Administracao case 1: $layoutAdministracao = new LayoutAdministracao(); $layoutAdministracao->EstruturaAdministracao($acao); break; //Departamento case 2: $layoutDepartamento = new LayoutDepartamento(); $layoutDepartamento->EstruturaDepartamento($acao); break; //Banner case 3: $layoutBanner = new LayoutBanner(); $layoutBanner->EstruturaBanner($acao); break; //Iformativo case 4: $layoutInformativo = new LayoutInformativo(); $layoutInformativo->EstruturaInformativo($acao); break; //Enquete case 5: $layoutEnquete = new LayoutEnquete(); $layoutEnquete->EstruturaEnquete($acao); break; //Rodape case 6: $layoutRodape = new LayoutRodape(); $layoutRodape->EstruturaRodape($acao); break; //Anuncio case 7: $layoutAnuncio = new LayoutAnuncio(); $layoutAnuncio->EstruturaAnuncio($acao); break; } } ?> </td> </tr> <tr> <td height="1" bgcolor="#cccccc" colspan="2"><img height="1" src="img/regua1x1.gif"/></td> </tr> <tr> <td height="20" bgcolor="#f2f2f2" align="center" colspan="2"><?php echo $cliente->getNome() . " - " . $cliente->getVersao(); ?> </td> </tr> </tbody> </table> <!--##################################################################################--> </td> <td width="1" bgcolor="#cccccc"><img height="1" src="img/regua1x1.gif"/></td> </tr> </tbody> </table> <? }
<? function __autoload($classe) { require_once "../class/".$classe.".class.php"; } $acao = "uso"; $layoutRodape = new LayoutRodape(); $layoutRodape->EstruturaRodape($acao); ?>