Skip to content

Commit

Permalink
Break after 3th grafic - new page
Browse files Browse the repository at this point in the history
  • Loading branch information
cvictorjose committed Nov 14, 2017
1 parent db17c1d commit 69b3633
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
13 changes: 12 additions & 1 deletion resources/views/admin/report/pdf_ref.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,10 @@

<table>
{!! Charts::scripts() !!}
<?php $ch=1; ?>
@foreach($code_arr as $who)


<tr>
<td style="width: 50%;">
<div class="box box-primary">
Expand Down Expand Up @@ -1041,7 +1044,15 @@
</div>
</td>
</tr>
<tr><td style="padding-top: 40px;"> </td><td style="padding-top: 40px;"> </td></tr>


<?php
if ($ch>2 && $ch<4){
echo "</table><div class=\"newpage\"></div><table>";
}
$ch=$ch+1; ?>


@endforeach
</table>
</body>
Expand Down
8 changes: 7 additions & 1 deletion resources/views/admin/report/pdf_rot.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -1123,6 +1123,7 @@

<table>
{!! Charts::scripts() !!}
<?php $ch=1; ?>
@foreach($code_arr as $who)
@if($who!=="pag")
<tr>
Expand Down Expand Up @@ -1164,8 +1165,13 @@
</div>
</td>
@endif

</tr>

<?php
if ($ch>2 && $ch<4){
echo "</table><div class=\"newpage\"></div><table>";
}
$ch=$ch+1; ?>
@endif
@endforeach
</table>
Expand Down

0 comments on commit 69b3633

Please sign in to comment.