Nested Loop Insert Page Break


Joined
Nov 5, 2021
Messages
1
Reaction score
0
Hi!
I am new to the forum trying to learn. I have the following script would like to insert a page break after each change in name. Any ideas ? Thank you!


Test 3rd Party<br />
<br />

<table border="1" cellpadding="5" cellspacing="0">
<tbody>
<tr>
<th>Assignment</th>
<th>Employee Name</th>
<th>Discipline</th>
<th>Date</th>
<th>Start</th>
<th>End</th>
<th>Hours</th>
<th>Time Off</th>
</tr>
<tr>
<td>{tablerow from=$_rows item=_row}{$costcentersfullpath}</td>
<td> {$_row.name}</td>
<td>{$_row.discipline}</td>
<td>{$_row.date}</td>
<td>{$_row.start}</td>
<td>{$_row.end}</td>
<td>{$_row.hours}</td>
<td>{$_row.TimeOffName}{/tablerow}</td>
</tr>
</tbody>
</table>
<br />
<br />
<br />

<div><formfeed></formfeed></div>


<table class="MsoTableGrid" style="border-collapse:collapse; border:solid windowtext 1.0pt">
<tbody>
<tr>
<td style="border:solid windowtext 1.0pt; width:116.85pt; padding:0in 5.4pt 0in 5.4pt" valign="top" width="156"><b>Employee Name</b></td>
<td style="border:solid windowtext 1.0pt; width:116.85pt; border-left:none; padding:0in 5.4pt 0in 5.4pt" valign="top" width="156"><b>Total Hours</b></td>
<td style="border:solid windowtext 1.0pt; width:116.9pt; border-left:none; padding:0in 5.4pt 0in 5.4pt" valign="top" width="156"><b>Approved</b></td>
<td style="border:solid windowtext 1.0pt; width:116.9pt; border-left:none; padding:0in 5.4pt 0in 5.4pt" valign="top" width="156"><b>Comments</b></td>
</tr>
<tr>
<td style="border:solid windowtext 1.0pt; width:116.85pt; border-top:none; padding:0in 5.4pt 0in 5.4pt" valign="top" width="156">{tablerow from=_rows item=_row}{$name}</td>
<td style="border-bottom:solid windowtext 1.0pt; width:116.85pt; border-top:none; border-left:none; border-right:solid windowtext 1.0pt; padding:0in 5.4pt 0in 5.4pt" valign="top" width="156">{$Hours1+$Hours2}</td>
<td style="border-bottom:solid windowtext 1.0pt; width:116.9pt; border-top:none; border-left:none; border-right:solid windowtext 1.0pt; padding:0in 5.4pt 0in 5.4pt" valign="top" width="156"> </td>
<td style="border-bottom:solid windowtext 1.0pt; width:116.9pt; border-top:none; border-left:none; border-right:solid windowtext 1.0pt; padding:0in 5.4pt 0in 5.4pt" valign="top" width="156"> </td>
</tr>
</tbody>
</table>
<br />
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top