Example #1
0
                <input name="firstname" class="form-control" type="text" value="<?php 
echo $user->getFirstName();
?>
"/>
            </div>
            <div class="form-group">
                <label for="mail">E-Mail</label>
                <input name="mail" class="form-control" type="email" value="<?php 
echo $user->getMail();
?>
"/>
            </div>
            <div class="form-group">
                <label for="phone">Téléphone</label>
                <input name="phone" class="form-control" type="text" value="<?php 
echo $user->getPhoneNumber();
?>
"/>
            </div>
            <div class="form-group">
                <label for="role">Rôle</label>
                <select name="role" class="form-control">
                    <?php 
foreach ($roleDao->getAll() as $role) {
    echo '<option value="' . $role->getId() . '" ' . ($role == $user->getRole() ? 'selected' : '') . ' >' . $role->getName() . '</option>';
}
?>
                </select>
            </div>
            <div class="checkbox">
                <label for="optin">