示例#1
0
文件: horario.php 项目: netor27/Efood
                            <select name="finH" class="span3">
                                <?php 
$i = 0;
for ($i = 0; $i < 24; $i++) {
    echo '<option value=' . $i . '>' . getNumber2Digits($i) . '</option>';
}
?>
                            </select>:
                            <select name="finM" class="span3">
                                <?php 
$i = 0;
for ($i = 0; $i < 60; $i += 10) {
    echo '<option value=' . $i . '>' . getNumber2Digits($i) . '</option>';
}
echo '<option value=59>' . getNumber2Digits(59) . '</option>';
?>
                            </select>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <select name="horario">
                            <option value="0">Horario establecido arriba</option>
                            <option value="1">Abierto todo el día</option>
                            <option value="2">Cerrado</option>
                        </select>
                    </div>
                    <div class="row-fluid">
                        <input type="submit" value="Actualizar">
                    </div>                    
                </div>                    
示例#2
0
function getTimeHHMM($strTime)
{
    $aux = explode(":", $strTime);
    return getNumber2Digits(intval($aux[0])) . ":" . getNumber2Digits(intval($aux[1]));
}