public function exportAction($args)
    {
        header('Content-Type: text/csv;');
        header('Content-Disposition: attachment; filename="Export Concours.csv"');
        $verif = new memberModel();
        $verif->getAll(true);
        //var_dump($verif);
        ?>
"Nom";"Prenom";"Id Facebook";"Email"<?php 
        echo "\n";
        foreach ($verif as $data) {
            echo utf8_decode($data['lastname'] . ";" . $data['firstname'] . ";" . $data['id_member'] . ";" . $data['email'] . "\n");
        }
    }
示例#2
0
<?php

include "dashboardHead.php";
$memberObj = new memberModel();
$memberObj->getAll(true);
?>

<div id="wrapper">
    <div id="page-wrapper">
        <div class="container-fluid">
            <!-- Page Heading -->
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">Gestion des utilisateurs</h1>
                    <ol class="breadcrumb">
                        <li><i class="fa fa-dashboard"></i> <a href="/dashboard">Dashboard</a></li>
                        <li class="active"><i class="fa fa-edit"></i> Gestion des utilisateurs</li>
                    </ol>
                </div>
            </div><!-- /.row -->

            <div id="user-list" class="row">
                <div class="col-md-10 col-md-offset-1">
                    <table class="table">
                        <thead>
                        <tr>
                            <th>Nom</th>
                            <th>Prénom</th>
                            <th>Adresse Email</th>
                            <th>Profil Facebook</th>
                        </tr>