예제 #1
0
        echo date("Y-m-d H:i", $practice->Date);
        $practice->PageMode = Constants::PAGE_MODE_EDIT;
    } else {
        echo "[Nouvelle]";
        $practice->PageMode = Constants::PAGE_MODE_ADD;
    }
}
?>
                        </h4>
                    </div>
                    <div class="row">					
                        <form action="practice_edit.php" id="form_practice" method="post">
                            <div class="row">
                                <div class="small-6 columns">
                                    <label <?php 
if ($practice->attributeHasError('date')) {
    echo "class='error'";
}
?>
>Date
                                        <input type="datetime-local" 
                                               name="date" 
                                               value="<?php 
if ($practice->Date != 0) {
    echo date("Y-m-d\\TH:i", $practice->Date);
}
?>
" 
                                        />
                                    </label>
									<?php