$(document).ready( function () {
TableToolsInit.sPrintMessage = "Print header message!";
$('#example').dataTable( {
"sDom": 'T<"clear">lfrtip'
} );
} );
<link rel="stylesheet" href="style.css" type="text/css" />
<script type="text/javascript" charset="utf-8" src="/include/javascript/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="/include/javascript/jquery.dataTables.js"></script>
<script type="text/javascript" charset="utf-8" src="/include/javascript/ZeroClipboard.js"></script>
<script type="text/javascript" charset="utf-8" src="/include/javascript/TableTools.js"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
$('#results').dataTable( {
"sPaginationType": "full_numbers",
"aaSorting": [[0,'asc']],
"sDom": 'T<"clear">pfrtli',
"bProcessing": true,
"iDisplayLength": 50
} );
} );
</script>
var TableToolsInit = {
"oFeatures": {
"bCsv": true,
"bXls": true,
"bCopy": true,
"bPrint": true
},
"sPrintMessage": "",
"sTitle": "",
"sSwfPath": "../swf/ZeroClipboard.swf",
"iButtonHeight": 30,
"iButtonWidth": 30
};
Main Folder |---include | | | |---javascript | |---php | |---swf | |---images
echo "<table id='results' class='display'>";
echo "<thead>
<tr><th rowspan='2'>Serial Number</a></th>
<th rowspan='2'>Tester</a></th>
<th rowspan='2'>Date</a></th>
<th rowspan='2'>Board Status</a></th>
<th colspan='2'>Boundary Scan</th>
<th colspan='2'>Board Programming</th>
<th colspan='4'>Power Tests</th><th colspan='3'>Bootstrap and Autoscr</th>
<th colspan='3'>GPS Test</th>
<th colspan='2'>Audio Test</th>
<th colspan='2'>Video Test</th>
<th colspan='2'>USB Test</th></tr>";
echo "<tr><td>Test</td><td>Notes</td>
<td>Test</td><td>Notes</td>
<td>1.3V</td><td>1.8V</td><td>3.3V</td><td>Notes</td>
<td>Bootstrap</td><td>Autoscr</td><td>Notes</td>
<td>Lock</td><td>Power</td><td>Notes</td>
<td>Test</td><td>Notes</td>
<td>Test</td><td>Notes</td>
<td>Test</td><td>Notes</td></tr>
</thead> It looks like you're new here. If you want to get involved, click one of these buttons!
Get useful and friendly help straight from the source.