コード例 #1
0
ファイル: administrer.php プロジェクト: r0mdau/passwo
?>
    </form>
</div>
<div class="row">
    <div class="col s10 offset-s2">
        <table id="tableau" class="bordered highlight">
            <thead>
            <tr>
                <th>Libelle</th>
                <th>Mot de passe</th>
                <th>Actions</th>
            </tr>
            </thead>
            <tbody>
            <?php 
foreach (Modele::recupererMotsDePassesDe($_SESSION['chiffree']['email']) as $ligne) {
    echo '<tr>';
    echo '<td>' . Chiffrement::dechiffrer($ligne['libelle']) . '</td>';
    echo '<td><input type="password" value="' . Chiffrement::dechiffrer($ligne['valeur']) . '" disabled/></td>';
    echo '
                <td>
                    <a class="waves-effect waves-light btn-floating blue visibility"><i class="material-icons right">visibility</i></a>
                    <a class="waves-effect waves-light btn-floating red accent-4" href="/action?delete=' . $ligne['id'] . '"><i class="material-icons right">delete</i></a>
                </td>';
    echo '</tr>';
}
?>
            </tbody>
        </table>
    </div>
</div>