Skip to content

Instantly share code, notes, and snippets.

@csessig86
Created January 28, 2013 19:56
Show Gist options
  • Save csessig86/4658491 to your computer and use it in GitHub Desktop.
Save csessig86/4658491 to your computer and use it in GitHub Desktop.
NEW: Datatables template
<html>
<head>
<link rel="stylesheet" type="text/css" href="http://wcfcourier.com/app/special/data_tables/media/css/demo_page.css">
<link rel="stylesheet" type="text/css" href="http://wcfcourier.com/app/special/data_tables/media/css/demo_table.css">
<link href="http://wcfcourier.com/app/special/grassley_sweeney/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="http://wcfcourier.com/app/crime_map/css/bootstrap-responsive.css" rel="stylesheet" type="text/css" />
<style>
table {
font-size: 12px;
}
.table th, .table td {
text-align: center;
}
.table thead th {
vertical-align: middle;
}
label, input, button, select, textarea {
line-height: 30px;
}
input, textarea, select, .uneditable-input {
height: 25px;
line-height: 25px;
}
select {
width: 100px;
}
.dataTables_length {
padding-left: 10px;
}
.dataTables_filter {
padding-right: 10px;
}
</style>
<script type="text/javascript" language="javascript" src="http://wcfcourier.com/app/special/data_tables/media/js/jquery.js"></script>
<script type="text/javascript" language="javascript" src="http://wcfcourier.com/app/special/data_tables/media/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="http://wcfcourier.com/app/crime_map/js/bootstrap-dropdown.js"></script>
<script src="http://wcfcourier.com/app/crime_map/js/bootstrap-tab.js"></script>
<script src="http://wcfcourier.com/app/crime_map/datatables/DT_bootstrap.js"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
$('#school_costs').dataTable({
"sPaginationType": "bootstrap",
"iDisplayLength": 25,
"oLanguage": {
"sLengthMenu": "_MENU_ records per page"
}
});
});
</script>
</head>
<body>
<table class="table table-striped table-bordered" id="school_costs">
</table>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment