Bug fix: allow printing lists fully expanded without the "pager" navigation.

Also try to completely hide the main menu on the left when printing.

SVN:trunk[2675]
This commit is contained in:
Denis Flaven
2013-04-08 11:57:07 +00:00
parent 2e18c96328
commit b83d42efee
5 changed files with 17 additions and 9 deletions

View File

@@ -60,6 +60,10 @@ class DataTable
{
// Custom settings overload the default ones
$this->bUseCustomSettings = true;
if ($this->oDefaultSettings->iDefaultPageSize == 0)
{
$oCustomSettings->iDefaultPageSize = 0;
}
}
else
{
@@ -176,6 +180,8 @@ class DataTable
if ($iPageSize < 1) // Display all
{
$sPagerStyle = 'style="display:none"'; // no limit: display the full table, so hide the "pager" UI
// WARNING: mPDF does not take the "display" style into account
// when applied to a <td> or a <table> tag, so make sure you apply this to a div
}
else
{
@@ -226,7 +232,8 @@ class DataTable
$sSelectionMode = ($iNbPages == 1) ? '' : 'positive';
$sHtml =
<<<EOF
<td $sPagerStyle colspan="2">
<td colspan="2">
<div $sPagerStyle>
<table id="pager{$this->iListId}" class="pager"><tr>
<td>$sPages</td>
<td><img src="../images/first.png" class="first"/></td>
@@ -239,6 +246,7 @@ class DataTable
</td>
</tr>
</table>
</div>
</td>
EOF;
return $sHtml;