<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-default" style="width:100%;">
            <!-- /.panel-heading -->
            <div class="panel-body">
                <div class="table-responsive">
                    <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                        <thead>
                            <tr>
                                <th style="text-align:center">No</th>
                                <th style="text-align:center">
                                    Image
                                </th>
                                <th style="text-align:center">
                                    Name
                                </th>
                                <th style="text-align:center">
                                    Url
                                </th>
                                <th style="text-align:center">
                                    order
                                </th>
                                <th style="text-align:center" width="30">Edit</th>
                                <th style="text-align:center" width="30">Delete</th>
                                
                            </tr>
                        </thead>
                        <tbody>
                        	
                            <?php
								$selects=mysqli_query($conn,"SELECT * FROM tbl_banner order by ban_order DESC"); 
								while($row_p=mysqli_fetch_array($selects)){
								$i=0;
								?>
                                <tr>
                                <td style="font-size:12px; width:40px;" align="center"><?php echo $i+=1; ?></td>
                                <td style="font-size:12px;">
									<img src="../images/banner/<?php echo $row_p['ban_file'];?>" width="150"/>
                                </td>
                                <td style="font-size:12px;"><?php echo $row_p['ban_name'];?></td>
                                <td style="font-size:12px;"><?php echo $row_p['ban_url'];?></td>
                                <td style="font-size:12px;"><?php echo $row_p['ban_order'];?></td>
                                <td align="center"><a href="?page=editbanner&ban_id=<?=$row_p['ban_id'];?>" title="edit"><div class="fa fa-edit fa-fw"></div></a></td>
                                <td align="center">
                                	<?php
										if($row_p['ban_id']==5){echo "";}else{
									?>
                                    <a href="#myModal<?php echo $row_p['ban_id']; ?>" data-toggle="modal" title="delete"><div class="fa fa-trash-o fa-fw"></div></a>
                                    <?php
										}
									?>
                                </td>
                            </tr>
                            <div class="modal small fade" id="myModal<?php echo $row_p['ban_id']; ?>" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" 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">×</button>
                                        <h3 id="myModalLabel">EURO ASIA CAMBODIA</h3>
                                    </div>
                                    <div class="modal-body">
                                        <p class="error-text"><i class="fa fa-warning modal-icon"></i>Are you sure you want to delete this record?</p><br/>
                                        <label style="font-size:19px; color:#09F;">Camera Name : <?php echo $row_p['ban_name']; ?></label><br/>			<center>	
                                        <img src="../images/banner/<?php echo $row_p['ban_file'];?>" width="150"/>
                                        </center>
                                    </div>
                                    <div class="modal-footer">
                                        <a class="btn btn-danger" href="include/banner/delete_banner.php<?php echo '?ban_id='.$row_p['ban_id'];?>" ><i class="icon-check"></i>&nbsp;Yes</a>
                                        <button class="btn" data-dismiss="modal" aria-hidden="true"><i class="icon-remove"></i> Close</button>
                                    </div>
                                  </div>
                                </div>
                            </div>
                            <?php
								}		
							?>                             
                       </tbody>
                    </table>
                </div>
                <!-- /.table-responsive -->
                
            </div>
            <!-- /.panel-body -->
        </div>
        <!-- /.panel -->
    </div>
    <!-- /.col-lg-12 -->
</div>
<!-- /.row -->