コード例 #1
0
ファイル: marker_edit.php プロジェクト: jgthibault/BaseballTP
        echo $marker->getFullName();
        $marker->PageMode = Constants::PAGE_MODE_EDIT;
    } else {
        echo "[Nouveau]";
        $marker->PageMode = Constants::PAGE_MODE_ADD;
    }
}
?>
                        </h4>
                    </div>
                    <div class="row">					
                        <form action="marker_edit.php" id="form_marker" method="post">
                            <div class="row">
                                <div class="small-6 columns">
                                    <label <?php 
if ($marker->attributeHasError('firstName')) {
    echo "class='error'";
}
?>
>Prénom
                                        <input type="text" 
                                               name="firstName" 
                                               value="<?php 
echo $marker->FirstName;
?>
" />
                                    </label>
									<?php 
if ($marker->attributeHasError('firstName')) {
    echo "<small class='error'>" . $marker->getAttributeError("firstName") . "</small>";
}