
<div class="modal fade" id="print" tabindex="-1" role="dialog" aria-labelledby="print" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel">Print Preview</h4>
            </div>
            <form name="print">
                <div class="print_preview">
                    <div class="table-responsive col-lg-11 col-md-8 col-sm-7" id="user_list">
                        <form name="myform" action=""  method="post">
                            <table class="table table-striped">
                                <thead>
                                    <tr>
                                        <th><input type="checkbox" name="all_user" id="all_user" onchange="toggleAllUserSelection(document.myform.user_id)"/></th>
                                        <th>User ID</th>
                                        <th>Profile Picture</th>
                                        <th>User Name</th>
                                        <th>User Email</th>
                                        <th>Contact Number</th>
                                        <th>Role</th>
                                        <th>Status</th>
                                        <th>Actions</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php
                                    $i = 1;
                                    foreach ($users as $v_user) {
                                        ?>
                                        <tr>
                                            <td><?php echo $v_user->user_id ?></td>
                                            <td><img src="<?php echo base_url() . $v_user->user_image_thumb; ?>" width="50" height="50"> </td>
                                            <td><?php echo $v_user->first_name . ' ' . $v_user->last_name; ?></td>
                                            <td><?php echo $v_user->user_email ?></td>
                                            <td><?php echo $v_user->contact_number ?></td>
                                            <td><?php
                                                if ($v_user->status == '1') {
                                                    echo '<p style="color:limegreen;">Active</p>';
                                                    ?>
                                                    <a href="<?php echo base_url(); ?>super_admin/make_user_inactive/<?php echo $v_user->user_id; ?>"><i class="fa fa-user-times" title="Inactive"></i></a>
                                                    <?php
                                                } else if ($v_user->status == '2') {
                                                    echo '<p style="color:red;">Inactive</p>';
                                                    ?>

                                                    <a href="<?php echo base_url(); ?>super_admin/make_user_active/<?php echo $v_user->user_id; ?>">
                                                        <i class="fa fa-user-plus" title="Active"></i></a>
                                                    <?php
                                                } else {
                                                    echo '<p style="color:blue;">Archived';
                                                    ?>
                                                    <a href="<?php echo base_url(); ?>super_admin/make_user_active/<?php echo $v_user->user_id; ?>"><i class="fa fa-user-plus" title="Active"></i> </a>
                                                <?php } ?>
                                            </td>
                                        </tr>
                                    <?php } ?>
                                </tbody>
                            </table>
                            <br>
                        </form>

                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" onclick="printDiv('user_list');">print</button>
                    <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                </div>
            </form>
        </div>
    </div>
</div>

