
<!-- Dashboard content -->
<div class="row">

    <div class="col-lg-8"> 
        <!-- Form horizontal -->
        <div class="panel panel-flat">
            <div class="panel-heading">
                <h5 class="panel-title">Add new Back Office user</h5>
            </div>

            <div class="panel-body">

                <p class="content-group-lg">Add new back office user. Ensure that the correct permission level is set.</p>

                <form class="form-horizontal" action="/bkoadmin/adduser" method="POST">
                    <fieldset class="content-group">
                        <legend class="text-bold">New User</legend>
                        <div class="form-group">
                            <label class="control-label col-lg-2">Created by</label>
                            <div class="col-lg-10">
                                <input type="text" class="form-control" readonly="readonly" value='Web Admin'>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-lg-2">Firstname</label>
                            <div class="col-lg-10">
                                <input type="text" class="form-control" name="firstname" value="<?=$firstname?>">
                            </div>
                        </div>
                      <div class="form-group">
                            <label class="control-label col-lg-2">Lastname</label>
                            <div class="col-lg-10">
                                <input type="text" class="form-control" name="lastname"  value="<?=$lastname?>">
                            </div>
                        </div>
                        
                                              <div class="form-group">
                            <label class="control-label col-lg-2">Email</label>
                            <div class="col-lg-10">
                                <input type="text" class="form-control" name="email"  value="<?=$email?>">
                            </div>
                        </div>
                          
                     <div class="form-group">
                            <label class="control-label col-lg-2">Username</label>
                            <div class="col-lg-10">
                                <input type="text" class="form-control" placeholder="Enter the username..." name="username"  value="<?=$username?>">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-lg-2">Password</label>
                            <div class="col-lg-10">
                                <input type="password" class="form-control" name="password"  value="<?=$password?>">
                            </div>
                        </div>
                                              <div class="form-group">
                            <label class="control-label col-lg-2">Permission</label>
                            <div class="col-lg-10">
                                <select name="plevel" class="form-control">
                                    <option value="">Select Permission Level</option>
                                    <option value="10">Customer Support</option>                              
                                    <option value="40">Transport Administration</option>
                                    <option value="50">Payment Administration</option>        
                                    <option value="100">Total Administration</option>                             
                                </select>
                            </div>
                        </div>                                               
                        
                    </fieldset>
                    <div class="text-right">
                        <button type="submit" class="btn btn-primary">Create User <i class="icon-arrow-right14 position-right"></i></button>
                    </div>
                </form>
            </div>
        </div>

        <!-- /form horizontal -->


    </div>

   
        <div class="col-lg-4">
        <!-- Recent Members -->
        <div class="panel panel-flat">
            <div class="panel-heading">
                <h6 class="panel-title">Back Office User Logs</h6>                
            </div>

            <div class="panel-body">
                <div id="sales-heatmap"></div>
            </div>

            <div class="table-responsive">
                <table class="table text-nowrap">
                    <thead>
                        <tr>
                            <th>Name/Date</th>
                            <th>Action</th>
                            <th>Location</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php
                        //  print_r($recent_signup);

                        foreach ($recent_logs as $rect) {
                            ?>
                            <tr>
                                <td>                     

                                    <div class="media-body">
                                        <div class="media-heading">
                                            <a href="#" class="letter-icon-title"><? echo $rect->firstname; ?> <? echo $rect->lastname; ?></a>
                                        </div>

                                        <div class="text-muted text-size-small"><? echo $rect->added; ?></div>
                                    </div>
                                </td>
                                <td>
                                    <span class="text-muted text-size-small"><? echo $rect->action; ?></span>
                                </td>
                                <td>
                                    <h6 class="text-semibold no-margin"><? echo $rect->loc; ?></h6>
                                </td>
                            </tr>                   

                            <?
                        }
                        ?>
                        <tr>
                            <td colspan='3'>More Logs ...</td>

                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <!-- /Recent Members -->
    </div>
    
</div>
<!-- /dashboard content -->

