<thead> <th> </th> <th>Nome</th> <th>Preço</th> <th>Preço promocional</th> <th>Data início</th> <th>Data final</th> <th>Cidade</th> </thead> <tbody> <?php $controller = new packageDAO(); $packages = $controller->getPackages($page, $qty); foreach ($packages as $key => $value) { $controller2 = new cityDAO(); $city = $controller2->getCityById($packages[$key]->getIdCity()); ?> <tr> <td><input type="radio" name="update_id" value="<?php echo $packages[$key]->getIdPackage(); ?> " /></td> <td><?php echo $packages[$key]->getName(); ?> </td> <td><?php echo $packages[$key]->getPrice(); ?> </td> <td><?php
getMenuAdmin($privilege); ?> </div> <div id="sidebar"> <ul> <li> </li> </ul> </div> <div id="content"> <?php $controller = new formDAO(); $form = $controller->getForm($_GET['form']); $controller2 = new packageDAO(); $package = $controller2->getPackageById($form->getIdPackage()); $controller3 = new cityDAO(); $city = $controller3->getCityById($package->getIdCity()); ?> <table id="reserve"> <tbody> <tr> <td width="200px">Pacote: </td> <td><?php echo $package->getName(); ?> </td> </tr> <tr> <td>Cidade: </td> <td><?php echo $city->getName(); ?>