<?php require __DIR__ . '/vendor/autoload.php'; $objEvento = new Evnts\Adm\Evento($_GET["id"]); $_arr_evento = $objEvento->buscaEvento(); $objHotel = new Evnts\Adm\Hotel(); $objHotel->_evento = $objEvento->getEvento(); $_arr_hotel = $objHotel->buscaHoteisQuartosEvento('', 4); // BreadCrumb $arr_breadcrumbs[] = array('titulo' => 'Eventos', 'url' => 'index.php'); $arr_breadcrumbs[] = array('titulo' => $_arr_evento['titulo'], 'url' => ''); // Montando a Pagina Principal $objSmarty = new Smarty(); $objSmarty->template_dir = 'templates/'; $objSmarty->compile_dir = 'templates_c/'; $objSmarty->assign('arr_breadcrumbs', $arr_breadcrumbs); $objSmarty->assign('arr_evento', $_arr_evento); $objSmarty->assign('arr_hotel', $_arr_hotel); $_APP = $objSmarty->fetch('lista_hotel.tpl'); $objSmarty->assign('APP', $_APP); $objSmarty->display('index.tpl');
<?php require __DIR__ . '/vendor/autoload.php'; $objHotel = new Evnts\Adm\Hotel(); $_arr_hotel = $objHotel->listaHotel(); // Montando a Pagina Principal $objSmarty = new Smarty(); $objSmarty->template_dir = 'templates/'; $objSmarty->compile_dir = 'templates_c/'; // BreadCrumb $arr_breadcrumbs[] = array('titulo' => 'Hotéis', 'url' => ''); $objSmarty->assign('arr_breadcrumbs', $arr_breadcrumbs); $objSmarty->assign('arr_hotel', $_arr_hotel); $_APP = $objSmarty->fetch('listaHoteis.tpl'); $objSmarty->assign('APP', $_APP); $objSmarty->display('index.tpl');
<?php require __DIR__ . '/vendor/autoload.php'; $objEvento = new Evnts\Adm\Evento($_GET["id_evento"]); $_arr_evento = $objEvento->buscaEvento(); $objHotel = new Evnts\Adm\Hotel(); $objHotel->_evento = $objEvento->getEvento(); $objHotel->_hotel = $_GET['id_hotel']; // Hoteis $_arr_hotel = $objHotel->buscaHotelEvento(); $_arr_quarto = $objHotel->buscaQuartos(); // BreadCrumb $arr_breadcrumbs[] = array('titulo' => 'Eventos', 'url' => 'index.php'); $arr_breadcrumbs[] = array('titulo' => $_arr_evento['titulo'], 'url' => 'evento.php?id=' . $_arr_evento['id_evento']); $arr_breadcrumbs[] = array('titulo' => $_arr_hotel['titulo'], 'url' => ''); // Montando a Pagina Principal $objSmarty = new Smarty(); $objSmarty->template_dir = 'templates/'; $objSmarty->compile_dir = 'templates_c/'; $objSmarty->assign('arr_breadcrumbs', $arr_breadcrumbs); $objSmarty->assign('arr_evento', $_arr_evento); $objSmarty->assign('arr_hotel', $_arr_hotel); $objSmarty->assign('arr_quarto', $_arr_quarto); $_APP = $objSmarty->fetch('evento_hotel.tpl'); $objSmarty->assign('APP', $_APP); $objSmarty->display('index.tpl');
<?php require __DIR__ . '/vendor/autoload.php'; $objHotel = new Evnts\Adm\Hotel(); $objHotel->_hotel = $_GET['id_hotel']; $_arr_hotel = $objHotel->buscaHotel(); $_arr_quarto = $objHotel->buscaHotelQuartos(); // BreadCrumb $arr_breadcrumbs[] = array('titulo' => 'Hotéis', 'url' => 'hotel.php'); $arr_breadcrumbs[] = array('titulo' => $_arr_hotel['titulo'], 'url' => ''); // Montando a Pagina Principal $objSmarty = new Smarty(); $objSmarty->template_dir = 'templates/'; $objSmarty->compile_dir = 'templates_c/'; $objSmarty->assign('arr_breadcrumbs', $arr_breadcrumbs); $objSmarty->assign('arr_hotel', $_arr_hotel); $objSmarty->assign('arr_quarto', $_arr_quarto); $_APP = $objSmarty->fetch('hotelEdit.tpl'); $objSmarty->assign('APP', $_APP); $objSmarty->display('index.tpl');