Submitted by adrien37000 on
Bonjour je souhaite inclure dans le content de mon module un fichier.tpl.php
qui comporte :
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="sites/all/modules/csv/view/jquery.dataTables.js"></script>
<script type="text/css" src="sites/all/modules/csv/view/demo_table.css"></script>
<script type="text/css" src="sites/all/modules/csv/view/demo_page.css"></script>
<script type="text/javascript">
(function ($) {
$(document).ready(function() {
$('#table').dataTable( {
"sScrollY": "120px",
"bPaginate": true,
"bScrollCollapse": true
} );
} );
}(jQuery));
</script>
<div id="demo"><table id="table">
<thead>
<tr>
<th>Column 1</th>
<th>Column 2</th>
<th>etc</th>
</tr>
</thead>
<tbody>
<tr>
<td>Row 1 Data 1</td>
<td>Row 1 Data 2</td>
<td>etc</td>
</tr>
</tbody>
</table>
</div>
<div style='height:30px;'></div>
j'ai bien trouve la function get_path mais sa ne fonctionne pas