| 1 |
<!doctype html> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<meta charset="utf-8"> |
| 5 |
<link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/favicon.ico" /> |
| 6 |
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0, user-scalable=no"> |
| 7 |
|
| 8 |
<title>{software} example - {title}</title> |
| 9 |
|
| 10 |
{css-libs} |
| 11 |
<style type="text/css" class="init"> |
| 12 |
{css} |
| 13 |
</style> |
| 14 |
{js-libs} |
| 15 |
<script type="text/javascript" language="javascript" class="init"> |
| 16 |
{js} |
| 17 |
</script> |
| 18 |
</head> |
| 19 |
<body class="dt-example {body-class}"> |
| 20 |
<div class="container"> |
| 21 |
<section> |
| 22 |
<h1>{software} example <span>{title}</span></h1> |
| 23 |
<div class="info"> |
| 24 |
{info} |
| 25 |
</div> |
| 26 |
|
| 27 |
<div class="demo-html"> |
| 28 |
{demo-html} |
| 29 |
{table} |
| 30 |
</div> |
| 31 |
|
| 32 |
<ul class="tabs"> |
| 33 |
<li class="active">Javascript</li> |
| 34 |
<li>HTML</li> |
| 35 |
<li>CSS</li> |
| 36 |
<li>Ajax</li> |
| 37 |
<li>Server-side script</li> |
| 38 |
</ul> |
| 39 |
|
| 40 |
<div class="tabs"> |
| 41 |
<div class="js"> |
| 42 |
<p>The Javascript shown below is used to initialise the table shown in this example:</p> |
| 43 |
<code class="multiline language-js">{js-esc}</code> |
| 44 |
|
| 45 |
<p>In addition to the above code, the following Javascript library files are loaded for use in this example:</p> |
| 46 |
{js-lib-files} |
| 47 |
</div> |
| 48 |
<div class="table"> |
| 49 |
<p>The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:</p> |
| 50 |
</div> |
| 51 |
<div class="css"> |
| 52 |
<div> |
| 53 |
<p>This example uses a little bit of additional CSS beyond what is loaded from the library files (below), in order to correctly display the table. The additional CSS used is shown below:</p> |
| 54 |
<code class="multiline language-css">{css-esc}</code> |
| 55 |
</div> |
| 56 |
|
| 57 |
<p>The following CSS library files are loaded for use in this example to provide the styling of the table:</p> |
| 58 |
{css-lib-files} |
| 59 |
</div> |
| 60 |
<div class="ajax"> |
| 61 |
<p>This table loads data by Ajax. The latest data that has been loaded is shown below. This data will update automatically as any additional data is loaded.</p> |
| 62 |
</div> |
| 63 |
<div class="php"> |
| 64 |
<p>The script used to perform the server-side processing for this table is shown below. Please note that this is just an example script using PHP. Server-side processing scripts can be written in any language, using <a href="//datatables.net/manual/server-side">the protocol described in the DataTables documentation</a>.</p> |
| 65 |
</div> |
| 66 |
</div> |
| 67 |
</section> |
| 68 |
|
| 69 |
|
| 70 |
</div> |
| 71 |
|
| 72 |
<section> |
| 73 |
<div class="footer"> |
| 74 |
<div class="gradient"></div> |
| 75 |
<div class="liner"> |
| 76 |
<h2>Other examples</h2> |
| 77 |
<div class="toc"> |
| 78 |
{toc} |
| 79 |
</div> |
| 80 |
|
| 81 |
<div class="epilogue"> |
| 82 |
<p> |
| 83 |
Please refer to the <a href="http://www.datatables.net">DataTables documentation</a> for full information about its API properties and methods.<br> |
| 84 |
Additionally, there are a wide range of <a href="http://www.datatables.net/extensions">extensions</a> and <a href="http://www.datatables.net/plug-ins">plug-ins</a> which extend the capabilities of DataTables. |
| 85 |
</p> |
| 86 |
|
| 87 |
<p class="copyright"> |
| 88 |
DataTables designed and created by <a href="http://www.sprymedia.co.uk">SpryMedia Ltd</a> © 2007-{year}<br> |
| 89 |
DataTables is licensed under the <a href="http://www.datatables.net/mit">MIT license</a>. |
| 90 |
</p> |
| 91 |
</div> |
| 92 |
</div> |
| 93 |
</div> |
| 94 |
</section> |
| 95 |
</body> |
| 96 |
</html> |