Subversion Repositories SmartDukaan

Rev

Rev 22781 | Rev 22783 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<script type="text/javascript">
        var alldata = <?php echo json_encode($result);?> 
</script>
<div class="container">
        
        <?php if(isset($result) && !empty($result)):?>
                <div class="row">
                        <div class="col-xs-12 ">
                                <table cellpadding="0" cellspacing="0" class="table table-striped">
                                        <tr>
                                                <th>Name</th>
                                                <th>Email</th>
                                                <th>Mobile</th>
                                                <th>Business Name</th>
                                                <th>Type</th>
                                                <th>Number</th>
                                                <th>Created</th>
                                                <th>Actions</th>
                                        </tr>
                                        
                                        <?php foreach ($result as $rkey =>$rval):?>
                                        <tr>
                                                <td><?php echo $rval['u']['first_name'].' '.$rval['u']['last_name'];?></td>
                                                <td><?php echo $rval['u']['email'];?></td>
                                                <td><?php echo $rval['u']['mobile_number'];?></td>
                                                <td><?php echo $rval['a']['name'];?></td>
                                                <td><?php echo $rval['r']['type'];?></td>
                                                <td><?php echo $rval['r']['number'];?></td>
                                                <td><?php echo $rval['r']['create_timestamp'];?></td>
                                                <td><button type="button" class="btn btn-primary btn-sm" data-toggle="modal" data-target="#myModal">View Details</button> 
                                        </tr>
                                        <?php endforeach;?>
                                        
                                </table>
                        </div>
                </div>
        <?php endif;?>
        <!-- Modal -->
        <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
          <div class="modal-dialog" role="document">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">Modal title</h4>
              </div>
              <div class="modal-body">
                <input type="text" name="
              </div>
              <div class="modal-footer">
                <button type="button" class="btn btn-sm btn-default" data-dismiss="modal">Close</button>
                <button type="button" class="btn btn-sm btn-primary">Save changes</button>
              </div>
            </div>
          </div>
        </div>
</div>