Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var date = $('#date-id').val();
- $('#cash-out-records').dataTable( {
- "sDom": 'T<"clear">lfrtip',
- "sPaginationType": "bootstrap",
- "iDisplayLength": 10,
- "oTableTools": {
- "sSwfPath": '/js/datatable/swf/copy_csv_xls_pdf.swf',
- "aButtons": [
- "copy",
- "csv",
- "xls",
- {
- "sExtends": "pdf",
- "sPdfOrientation": "landscape",
- "sFileName": "<?php echo $lang['cash_out_report']; ?>"+date+".pdf",
- "sPdfMessage": "Your custom message would go here."
- }
- ]
- },
- "oLanguage": {
- "sUrl": '/js/datatable/lang_<?php echo $_SESSION['language']; ?>.txt'
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement