<form method="post" action="prc_palpadm.php" name="frm_palpadm"> <table id="tabform" border="0" cellspacing="0"> <?php $camp = $_GET['camp']; $rod = $_GET['rod']; $usr = $_GET['usr']; echo " <tr>" . "\n"; campeonato($camp); rodada($rod); echo " </tr>" . "\n"; echo '<tr> <td colspan=10>'; include "traco.php"; echo '</td></tr>' . "\n"; echo '<tr style="font-weight:bold;"><td>Jogo</td> <td align="right">Mandante</td><td></td><td align="center">X</td> <td></td><td align="left">Visitante</td> <td>Data/Hora Início</td></tr>' . "\n"; listajogos($camp, $rod, $usr); echo '<input type=hidden name="camp" value="' . $camp . '">' . "\n"; echo '<input type=hidden name="rodada" value="' . $rod . '">' . "\n"; echo '<input type=hidden name="usr" value="' . $usr . '">' . "\n"; ?> </table> </form> <?php function listajogos($camp, $rod, $usr) { $dw = array("Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sab"); echo "<tr>" . "\n"; include 'conectadb.php'; $sql = sprintf("select grupo,count(*) qtde from cad_grupo\n\t\t\t\t\t\twhere campeonato = %d\n\t\t\t\t\t\t\tgroup by grupo" . " order by grupo", $camp); $rs1 = mysql_query($sql) or die('\\nErro consultando banco de dados: ' . mysql_error());
<table id="tabform" border="0" cellspacing="0" cellpadding="0" width="500px" style="width:500px"> <?php require_once $_SESSION['DOCROOT'] . "/classes/class.time.php"; $camp = $_GET['camp']; $rod = $_GET['rod']; $chv = $_GET['key']; echo " <tr>" . "\n"; campeonato($camp); rodada($rod); echo " </tr>" . "\n"; echo '<tr> <td colspan=10>'; include "traco.php"; echo '</td></tr>' . "\n"; echo '<tr class="cabec"><td>Jogo</td> <td align="right">Mandante</td><td align="center">X</td> <td align="left">Visitante</td> <td>Data/Hora Início</td></tr>' . "\n"; listajogos($camp, $rod); echo '<input type=hidden name="camp" value="' . $camp . '">' . "\n"; echo '<input type=hidden name="rodada" value="' . $rod . '">' . "\n"; echo '<input type=hidden name="key" value="' . $chv . '">' . "\n"; ?> </table> </form> <?php function listajogos($camp, $rod) { $maiorjg = 0; $bloq = " "; $dw = array("Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sab"); echo "<tr>" . "\n"; include 'conectadb.php';