Exemple #1
0
	<?php 
if ($page) {
    $page->head(null);
}
?>

    
  </head>

	<body>

		<?php 
//TRATA A ACTION
if ($action) {
    Proxy::mountAction($action);
    //TRATA A PAGINA
} else {
    ?>
			
			<?php 
    $hasPopup = Proxy::mountPopup();
    $hasAlert = Proxy::mountAlert();
    Proxy::mountPage($page);
    ?>
			
			<?php 
}
?>
	</body>
</html>
Exemple #2
0
 /**
  * 
  * Método que monta uma Page
  * 
  * @param Page $page Page a ser montada na tela.
  */
 public static function mountPage($page)
 {
     $args = Proxy::mountForm();
     if ($page) {
         $access = ACL::checkProfile($page->getPermissoes());
         if ($access) {
             $page->content($args);
             Proxy::mountPopup();
             Proxy::mountAlert();
         } else {
             Proxy::acessoRestrito();
         }
         unset($_GET[Proxy::encrypt('p')]);
     } else {
         Proxy::paginaInexistente();
     }
 }