Пример #1
0
}
?>
>Date
                                        <input type="datetime-local" 
                                               name="date" 
                                               value="<?php 
if ($practice->Date != 0) {
    echo date("Y-m-d\\TH:i", $practice->Date);
}
?>
" 
                                        />
                                    </label>
									<?php 
if ($practice->attributeHasError('date')) {
    echo "<small class='error'>" . $practice->getAttributeError("date") . "</small>";
}
?>
									
                                </div>
                                <div class="small-6 columns">
                                    <label>Saison
                                        <select name="seasonId">
                                        
                                        <?php 
if ($result = $mySql->execute("SELECT * FROM Season ORDER BY IsCurrent DESC, Year DESC")) {
    while ($row = $result->fetch_object("Season")) {
        ?>
                                                 <option value="<?php 
        echo $row->Year;
        ?>