"table"
Bootstrap 3.3.0 Snippet by matiaschap

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script src="http://getbootstrap.com/dist/js/bootstrap.min.js"></script> <div class="container"> <div class="row"> <div class="col-md-12"> <h4>Lista de Usuarios Pendientes</h4> <div class="table-responsive"> <table id="mytable" class="table table-bordred table-striped"> <thead> <th><input type="checkbox" id="checkall" /> Aprobar</th> <th><input type="checkbox" id="checkall" /> Rechazar</th> <th>Nombre de Usuario</th> <th>Email</th> <th>Contraseña</th> <th>Fecha de Nacimiento</th> </thead> <tbody> <tr> <td><input type="checkbox" class="checkthis" disabled/></td> <td><input type="checkbox" class="checkthis" /></td> <td>Pepe45</td> <td>pepe@gmail.com</td> <td>fñmsdfñlmq323</td> <td>15/04/1986</td> </tr> <tr> <td><input type="checkbox" class="checkthis" /></td> <td><input type="checkbox" class="checkthis" disabled/></td> <td>coco25</td> <td>coco@gmail.com</td> <td>lñasñdlkadslñ</td> <td>30/04/1999</td> </tr> <tr> <td><input type="checkbox" class="checkthis" /></td> <td><input type="checkbox" class="checkthis" disabled/></td> <td>Fulano45</td> <td>fulano@gmail.com</td> <td>598710ñlo</td> <td>05/02/1980</td> </tr> <tr> <td><input type="checkbox" class="checkthis" /></td> <td><input type="checkbox" class="checkthis" disabled/></td> <td>natalianatalia</td> <td>nn@gmail.com</td> <td>7895124633</td> <td>19/10/1992</td> </tr> <tr> <td><input type="checkbox" class="checkthis" /></td> <td><input type="checkbox" class="checkthis" /></td> <td>mati1002</td> <td>mati12341@gmail.com</td> <td>9q9w855f5rrki</td> <td>03/08/2000</td> </tr> <tr> <td><input type="checkbox" class="checkthis" /></td> <td><input type="checkbox" class="checkthis" /></td> <td>santi4567</td> <td>santi2345@gmail.com</td> <td>p1p2sdfkbp928pyh</td> <td>23/07/1995</td> </tr> </tbody> </table> <div class="clearfix"></div> <ul class="pagination pull-right"> <li class="disabled"><a href="#"><span class="glyphicon glyphicon-chevron-left"></span></a></li> <li class="active"><a href="#">1</a></li> <li><a href="#">2</a></li> <li><a href="#">3</a></li> <li><a href="#">4</a></li> <li><a href="#">5</a></li> <li><a href="#"><span class="glyphicon glyphicon-chevron-right"></span></a></li> </ul> </div> </div> </div> </div> <div class="modal fade" id="edit" tabindex="-1" role="dialog" aria-labelledby="edit" 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"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></button> <h4 class="modal-title custom_align" id="Heading">Edit Your Detail</h4> </div> <div class="modal-body"> <div class="form-group"> <input class="form-control " type="text" placeholder="Mohsin"> </div> <div class="form-group"> <input class="form-control " type="text" placeholder="Irshad"> </div> <div class="form-group"> <textarea rows="2" class="form-control" placeholder="CB 106/107 Street # 11 Wah Cantt Islamabad Pakistan"></textarea> </div> </div> <div class="modal-footer "> <button type="button" class="btn btn-warning btn-lg" style="width: 100%;"><span class="glyphicon glyphicon-ok-sign"></span> Update</button> </div> </div> <!-- /.modal-content --> </div> <!-- /.modal-dialog --> </div> <div class="row"> <div class="col-sm-2 col-md-2 col-md-offset-4"> <div class="form-group"> <button type="submit" href="#" class="btn btn-lg btn-danger btn-block"><i class="glyphicon glyphicon-save"></i>  Aplicar Cambios</button> </div> </div> </div>
th { text-align: center; } tr { text-align: center; }
$(document).ready(function(){ $("#mytable #checkall").click(function () { if ($("#mytable #checkall").is(':checked')) { $("#mytable input[type=checkbox]").each(function () { $(this).prop("checked", true); }); } else { $("#mytable input[type=checkbox]").each(function () { $(this).prop("checked", false); }); } }); $("[data-toggle=tooltip]").tooltip(); });

Related: See More


Questions / Comments: