<h1><a>Fedesipa SisCad</a></h1>
    <form id="form_1044499" class="appnitro"  method="post" action="">
        <div class="form_description">
            <h2> Painel de Controle</h2>
            <p>Lista de Associados.</p>
        </div>
        <div class="datagrid">
            <?php 
if ($query = mysqli_query($com, $sql)) {
    $linhas = 1;
    $rows = mysqli_num_rows($query);
    echo "Total de Associados: " . $rows . "  " . "Total Ativo: " . $totalAtivos;
    echo "<table><thead><tr><th>Nome</th><th>Status</th><th>Nº Cartão</th><th>Dep</th><th>Mensalidades</th><th>Editar</th></tr></thead>";
    while ($assoc = mysqli_fetch_assoc($query)) {
        echo "<tbody><tr><td>" . $assoc['nome'] . "</td><td>" . status($assoc['status']) . "</td><td>" . $assoc['registro'] . "</td><td>" . depedentes($assoc['rg']) . "</td><td>" . "<a href='#'>Mensalidades</a>" . "</td><td>" . "<a href='#'>Atualizar</a>" . "</td></tr></tbody>";
    }
    echo "</table>";
}
mysqli_close($com);
?>
        </div>
        <div id="footer">
    </div>
    </form>
</div>

<img id="bottom" src="../img/bottom.png" alt="">
</body>
</html>
</html>
Exemplo n.º 2
0
			<input type="number" id="registro" name="C_registro" placeholder="Cartão Fedesipa" >
<!-- Nome   <input type="number" id="registro" name="C_registro" placeholder="Cartão Fedesipa"> -->
            <input type="submit" value="Consultar">
            <label>Somete  numeros</label>
            </li>
        </ul>
        <div class="datagrid">
            <?php 
if (isset($_GET['C_rg']) || isset($_GET['C_registro'])) {
    if ($query = mysqli_query($com, $sql)) {
        $linhas = 1;
        $rows = mysqli_num_rows($query);
        if ($rows > 0) {
            echo "<table><thead><tr><th>Nome</th><th>Status</th><th>Nº Cartão</th><th>Dependentes</th></tr></thead>";
            while ($assoc = mysqli_fetch_assoc($query)) {
                echo "<tbody><tr><td>" . $assoc['nome'] . "</td><td>" . status($assoc['status']) . "</td><td>" . $assoc['registro'] . "</td><td>" . depedentes(0) . " dependente</td></tr></tbody>";
            }
            echo "</table><br></div>";
            echo "<h2> Dependentes</h2> <br>";
            getDep($_GET['C_rg']);
        } else {
            echo "Associado não encontrado";
        }
    }
}
mysqli_close($com);
?>
        </div>


        <div id="footer">