求助!CI框架中如何使用一个form两个提交按钮?
求教,CI框架中如何使用一个form两个提交按钮呢?麻烦各位了!
代码如下:
<script>
$(document).ready(function() {
$('#fileData').dataTable( {
"aLengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]],
"sPaginationType": "full_numbers",
"aaSorting": [[ 0, "desc" ]],
"iDisplayLength": <?php echo ROWS_PER_PAGE; ?>,
"bJQueryUI": true,
"sDom": '<"H"frlT><"clear">t<"clear"><"F"ip>',
//<"H"T><"clear">
//"sDom": '<"top"i>rt<"bottom"flp><"clear">',
'bProcessing' : true,
'bServerSide' : true,
'sAjaxSource' : '<?php echo base_url(); ?>index.php?module=order&view=getdatatableajax',
'fnServerData': function(sSource, aoData, fnCallback)
{
$.ajax
({
'dataType': 'json',
'type' : 'POST',
'url' : sSource,
'data' : aoData,
'success' : fnCallback
});
},
"oTableTools": {
"sSwfPath": "smlib/media/swf/copy_csv_xls_pdf.swf",
"aButtons": [
// "copy",
"csv",
"xls",
{
"sExtends": "pdf",
"sPdfOrientation": "landscape",
"sPdfMessage": ""
},
"print"
]
},
"oLanguage": {
"sSearch": "Filter: "
},
"aoColumns": [
{ "sClass": "center", "bSortable": false},
null,
null,
null,
null,
null,
null,
null,
{ "bSortable": false }
],
"aaSorting": [[1, 'asc']]
} );