%PDF- %PDF-
Mini Shell

Mini Shell

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

<?php
if(isset($_POST['tempo'])){
    $tempo = $_POST['tempo'];
    $inyTemp = mysql_query("INSERT INTO tiempos (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 = mysql_query("SELECT * FROM tiempos ORDER BY idtmp ASC");
            while($tRow = mysql_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']; ?>&load=ctempo&mod=pload&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