我正在使用jquery tabletools导出m个报告。我的老板要求我在报告中设置页眉和页脚。在标题部分我想显示另一个包含values的表.Anyone Pls hELP mE
这是我的编码
$(document).ready(function(){
var Table = $('#SalesCollectionReportList').dataTable({
"bJQueryUI": "true",
"sDom": '<"H"Tfr>t<"F"ilp>',
// copy, print, excel, with select all
"oLanguage": {
"sInfo": "Displaying <b>_TOTAL_</b> records for <b> Biocare</b>"
},
"oTableTools": {
// "sRowSelect": "multi",
"sSwfPath": "/swf/copy_csv_xls_pdf.swf",
"aButtons": ["copy", "csv", "xls", "pdf"]
},
"sPaginationType": "bootstrap",
"aaSorting": []
});
});
此表要显示在文档的标题部分
<table id="one">
<colgroup style="width: 15%"></colgroup>
<colgroup style="width: 35%"></colgroup>
<colgroup style="width: 15%"></colgroup>
<colgroup style="width: 35%"></colgroup>
<tr>
<td style="width:50%">
<table>
<tr>
<td style="width:5%">
@Html.Label("Company Name :")
</td>
<td style="width:20%">
@Infoline.Biocare.UI.Web.Controllers.AdminController.GlobalCompany.CompanyName
</td>
</tr>
<tr>
<td style="width:5%">
@Html.Label("Address :")
</td>
<td style="width:20%">
@Infoline.Biocare.UI.Web.Controllers.AdminController.GlobalCompany.Address1 <br />
</td>
</tr>
</table>
</td>
<td style="width:50%">
<table>
<tr>
<td style="width:45%; text-align:right">
@Html.Label("Date :")
</td>
<td style="width:5%">
@DateTime.Today.Date.ToShortDateString()
</td>
</tr>
<tr>
<td style="width:45%; text-align:right">
@Html.Label("Page No :")
</td>
<td style="width:5%">
1
</td>
</tr>
<tr>
<td style="width:45%; text-align:right">
</td>
<td style="width:5%">
</td>
</tr>
</table>
</td>
</tr>
@Html.Hidden("CompanyId", Infoline.Biocare.UI.Web.Controllers.AdminController.GlobalCompany.CompanyId)
</table>