コード例 #1
0
ファイル: abmcanal.php プロジェクト: B-Rich/zafiro
        }
    </script>

    <form name="datos" action="?ac=guardar" method="post">
        <table>
            <tr>
                <th>Nombre</th>
                <td>
                    <? f_HTML_Hidden("canalesid", $canalesid); ?>
                    <? f_HTML_TextBox("canalesnom", $canalesnom, $extras["TextBoxABM"], 45); ?>
                </td>
            </tr>
            <tr>
                <th>Subida</th>
                <td><? f_HTML_SelectCantidad("canalessub", $canalessub, $extras["SelectCantidadABM"], 1, 4096); ?></td>
            </tr>
            <tr>
                <th>Bajada</th>
                <td><? f_HTML_SelectCantidad("canalesbaj", $canalesbaj, $extras["SelectCantidadABM"], 1, 4096); ?></td>
            </tr>
            <tr>
                <th>Estado</th>
                <td><? f_HTML_Estado("canalesest", $canalesest, $extras["EstadoABM"]); ?></td>
            </tr>
        </table>
    </form>
<center>
    <? f_HTML_Button("boGuardar", "Guardar", $extras["ButtonABM"] . " onclick=\"guardar();\""); ?>
</center>
</body>
コード例 #2
0
ファイル: funciones.php プロジェクト: B-Rich/zafiro
function f_HTML_SelectFecha($nombre, $valor=null, $extras="") {

    $valor = is_null($valor) ? date("Ymd") : $valor;

    if ($valor) {
        $anio = substr($valor, 0, 4);
        $mes = substr($valor, 4, 2);
        $dia = substr($valor, 6, 2);
    } else {
        $anio = -1;
        $mes = -1;
        $dia = -1;
    }

    f_HTML_SelectCantidad($nombre . "_1", $dia, $extras = "", 1, 31, 2, TRUE);
    f_HTML_SelectCantidad($nombre . "_2", $mes, $extras = "", 1, 12, 2, TRUE);
    f_HTML_SelectCantidad($nombre . "_3", $anio, $extras = "", date("Y") - 10, date("Y") + 1, 4, TRUE);
}