PHP Classes

File: application/views/admincp/userList.php

Recommend this page to a friend!
  Classes of Minh Tien  >  Noblesse CMS  >  application/views/admincp/userList.php  >  Download  
File: application/views/admincp/userList.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Noblesse CMS
Content management system with custom plugins
Author: By
Last change: Improve system
Date: 5 years ago
Size: 3,732 bytes
 

Contents

Class file image Download
<div class="panel panel-default">
  <div class="panel-heading">
    <h3 class="panel-title">User list</h3>
  </div>
  <div class="panel-body">
    <div class="row">
        <div class="col-lg-12">
        <?php echo $alert;?>
<form action="" method="post" enctype="multipart/form-data">
            <!-- row -->
            <div class="row">
                <div class="col-lg-4">
                    <div class="input-group input-group-sm">
                        <select class="form-control" name="action">
                            <option value="delete">Delete</option>
                            <option value="activate">Activate</option>
                            <option value="banned">Banned</option>
                            <option value="changepassword">Change Password</option>
                        </select>
                       <span class="input-group-btn">
                        <button class="btn btn-primary" name="btnAction" type="submit">Apply</button>
                      </span>

                    </div><!-- /input-group -->
                </div>
                <div class="col-lg-4 col-lg-offset-4 text-right">
                    <div class="input-group input-group-sm">
                        <input type="text" class="form-control" name="txtKeywords" placeholder="Search..." />
                       <span class="input-group-btn">
                        <button class="btn btn-primary" name="btnSearch" type="submit">Search</button>
                      </span>

                    </div><!-- /input-group -->
                </div>

            </div>
            <!-- row -->
             <!-- row -->
            <div class="row">
                <div class="col-lg-12 table-responsive">
                    <table class="table table-hover">
                        <thead>
                            <tr>
                                <td class="col-lg-1"><input type="checkbox" id="selectAll" /></td>
                                <td class="col-lg-2">Date added</td>
                                <td class="col-lg-8"></td>
                                <td class="col-lg-1">#</td>
                            </tr>
                        </thead>

                        <tbody>
                        <?php
                            $total
=count($theList);

                           
$li='';

                            if(isset(
$theList[0]['userid']))
                            for (
$i=0; $i < $total; $i++) {
                               
$li.='
                                <!-- tr -->
                                <tr>
                                    <td class="col-lg-1">
                                        <input type="checkbox" id="cboxID" name="id[]" value="'
.$theList[$i]['userid'].'" />
                                    </td>
                                    <td class="col-lg-2"><span style="color:#888;">'
.date('M d, Y H:i',strtotime($theList[$i]['date_added'])).'</span></td>
                                    <td class="col-lg-8 text-left">'
.$theList[$i]['firstname'].' '.$theList[$i]['lastname'].' ('.$theList[$i]['username'].')
                                    <br>
                                    <div style="font-size:13px;color:#888;margin-right:10px;"><small>Group: '
.$theList[$i]['group_title'].'</small>&nbsp;&nbsp;<small>Email: '.$theList[$i]['email'].'</small></div>
                                    </td>
                                    <td class="col-lg-1 text-right">
                                    <a href="'
.System::getAdminUrl().'users/edit/'.$theList[$i]['userid'].'" class="btn btn-warning btn-xs">Edit</a>
                                    </td>
                                </tr>
                                <!-- tr -->
                                '
;
                            }

                            echo
$li;
                       
?>

                        </tbody>
                    </table>
                </div>

                <div class="col-lg-5 text-left">
                    <span>Total: <?php echo $totalPost.' of '.$totalPage.' page(s)';?></span>
                </div>
                <div class="col-lg-7 text-right">
                    <?php echo $pages; ?>
</div>
            </div>
            <!-- row -->
        </form>
        </div>
       
    </div>
  </div>
</div>

<script>

$(document).ready(function(){


});
</script>

For more information send a message to info at phpclasses dot org.