Subversion Repositories SmartDukaan

Rev

Rev 33305 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<style>
    .table-striped > tbody > tr:nth-child(odd) > td {
        background: white;
        background-color: white;
    }

    .table-striped > tbody > tr:nth-child(even) > td {
        background: white;
        background-color: white;
    }

    .table-striped > tbody > tr:hover > td,
    .table-striped > tbody > tr:hover {
        background-color: #e98c8f;
        color: white;
    }
</style>
<section class="wrapper">
    <div class="row">
        <div class="col-lg-12">
            <h3 class="page-header"><i class="icon_genius"></i>Customer List</h3>
            <ol class="breadcrumb">
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
                <li><i class="icon_genius"></i>B2C Registered List</li>
            </ol>
        </div>
    </div>

    <div id="catalog-table">
        <div class="row">
            <div class="col-lg-12">
                <input type="date" id="startDate-b2c-user" placeholder="" name="" value="$startDate">

                <input type="date" id="endDate-b2c-user" placeholder="" value="$endDate">
                <button type="button" class="btn btn-sm btn-info fetch-data">Fetch Data</button>
                <button type="button" class="btn btn-sm btn-info downloadB2CList-mk">Download Data</button>
                <table class="table table-striped table-advance table-hover" id="b2cUsersList">
                    <thead>
                    <tr>
                        <th>Name</th>
                        <th>Mobile Number</th>
                        <th>Email</th>
                        <th>City</th>
                        <th>Pincode</th>
                        <th>State</th>
                        <th>Created Date</th>
                    </tr>
                    </thead>
                    <tbody>
                        #foreach($user in $verifiedB2CUsersModels )
                        <tr>
                            <td>
                                $user.getFirstName() $user.getLastName()

                            </td>
                            <td>
                                $user.getMobileNumber()
                            </td>
                            <td>
                                #if($user.getEmailId())
                                    <span>$user.getEmailId()</span>
                                #else
                                    <span></span>
                                #end
                            </td>
                            <td>
                                #if($user.getCity())
                                    <span>$user.getCity()</span>
                                #else
                                    <span></span>
                                #end
                            </td>
                            <td>
                                #if($user.getPinCode())
                                    <span>$user.getPinCode()</span>
                                #else
                                    <span></span>
                                #end
                            </td>
                            <td>
                                #if($user.getState())
                                    <span>$user.getState()</span>
                                #else
                                    <span></span>
                                #end
                            </td>
                            <td>
                                <span>$user.getFormattedCreateTimestamp()</span>
                            </td>
                        </tr>
                        #end
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</section>
<script>

    var dtable = $('#b2cUsersList').DataTable(
            {

                "bPaginate": true,
                "bLengthChange": true,
                "bFilter": true,
                "bInfo": false,
                "bAutoWidth": false,
                "pageLength": 20,

            });

</script>