<a href="frm_cadenquetes.php?enq=0">Inclur Nova Enquete</a> </td> <td> <a href="menu_admin.php">Menu Principal</a> </td> </tr> <tr> <td> <br> </td> </tr> <?php require_once $_SESSION['DOCROOT'] . "/classes/class.enquete.php"; $enqs = Enquete::getEnquetes("T"); echo ' <tr class="cabec" align=left> <td>Pergunta</td> <td>Inicio</td><td>Fim</td></tr>' . "\n"; if (count($enqs) == 0) { echo "<tr ><td colspan=7>Nenhuma enquete cadastrada.</td></tr>"; } foreach ($enqs as $e) { if ($fllin == 0) { $fllin = 1; echo ' <tr class="rel1"' . '>'; } else { $fllin = 0; echo ' <tr class="rel2"' . '>'; } $dtini = sprintf('<a href="frm_cadenquetes.php?enq=%s">%s</a>', $e['numero'], date("d/m/Y", strtotime($e['datainicio']))); $dtfim = sprintf('<a href="frm_cadenquetes.php?enq=%s">%s</a>', $e['numero'], date("d/m/Y", strtotime($e['datafim']))); $per = sprintf('<a href="frm_cadenquetes.php?enq=%s">%s</a>', $e['numero'], $e['pergunta']);
<?php include "sessao.php"; require_once $_SESSION['DOCROOT'] . "/classes/class.enquete.php"; $lst = Enquete::getEnquetes("A"); if (count($lst) == 0) { return; } ?> <div class="painel"> <div class="LeftCorner"> </div> <div class="TitPainel">.:: Enquetes ::.</div> <div class="RightCorner"> </div> <div class="corpo"> <table cellpadding="0" cellspacing="0" frame="box" rules="none"> <?php $vez = 0; foreach ($lst as $e) { $enq = new Enquete($e['numero']); if ($vez != 0) { echo '<tr> <td colspan=2>' . "\n"; echo '<hr style="height: 1px; width: 100%;" align="left">' . "\n"; echo '</td></tr>' . "\n"; } $nomeform = sprintf("enq%04d", $enq->getCodigo()); echo ' <form method="post" action="prc_votaenq.php" name="' . $nomeform . '">' . "\n"; echo '<input type=hidden name="enquete" value="' . $enq->getCodigo() . '">' . "\n"; echo "<tr><td colspan=2>" . $enq->getPergunta() . "</td></tr>\n"; for ($x = 1; $x < 11; $x++) { if ($enq->getOpcao($x) != NULL) {