Skip to content

Instantly share code, notes, and snippets.

@philcon93
Created August 2, 2017 03:29
Show Gist options
  • Save philcon93/e65e511f517daceea88fcc2ae214d36a to your computer and use it in GitHub Desktop.
Save philcon93/e65e511f517daceea88fcc2ae214d36a to your computer and use it in GitHub Desktop.
forloop

B@SE Forloop

[%FORLOOP to:'[@total_excesslabels@]'%]
	[%PARAM header%]
		<table cellpadding="4px" cellspacing="0" border="0" width="100%" align="center">
			<tr><td style="padding-left:8px; padding-right:8px;" nowrap><font style="font-size:11px;padding-left:25px;">Excess Labels</font></td></tr>
			<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
	[%/ PARAM%]
	[%PARAM *body%]
		[%DATA id:'count' calc:'%' cvalue:'2' if:'=' value:'0'%]
			[%PARAM *if_true%]
				<tr><td width="50%" style="padding-right:8px;padding-left:25px;" valign="top" >
					<img src="[%BARCODE_URL fn:'article' height:'25' cngmt:'[@cngmt_id@]' art:'[@art_id@]'%][%DATA id:'excesslabel_[@count@]'%][%/ DATA%]P[%/ BARCODE_URL%]" border="0"/><br>
					<font style="font-size:11px; font-weight:bold;">[%DATA id:'excesslabel_[@count@]'%][%/ DATA%]P</font><br>
					<img src="[%BARCODE_URL fn:'article' height:'25' cngmt:'[@cngmt_id@]' art:'[@art_id@]'%][%DATA id:'excesslabel_[@count@]'%][%/ DATA%][%/ BARCODE_URL%]" border="0"/><br>
					<font style="font-size:11px; font-weight:bold;">[%DATA id:'excesslabel_[@count@]'%][%/ DATA%]</font>
					<br>
				</td>
			[%/ PARAM%]
			[%PARAM *if_false%]
				<td width="50%" valign="top">
					<img src="[%BARCODE_URL fn:'article' height:'25' cngmt:'[@cngmt_id@]' art:'[@art_id@]'%][%DATA id:'excesslabel_[@count@]'%][%/ DATA%]P[%/ BARCODE_URL%]" border="0"/><br>
					<font style="font-size:11px; font-weight:bold;">[%DATA id:'excesslabel_[@count@]'%][%/ DATA%]P</font><br>				
					<img src="[%BARCODE_URL fn:'article' height:'25' cngmt:'[@cngmt_id@]' art:'[@art_id@]'%][%DATA id:'excesslabel_[@count@]'%][%/ DATA%][%/ BARCODE_URL%]" border="0"/><br>
					<font style="font-size:11px; font-weight:bold;">[%DATA id:'excesslabel_[@count@]'%][%/ DATA%]</font>
					<br>
				</td>
				</tr>
			[%/ PARAM%]
		[%/ DATA%]
	[%/ PARAM%]
	[%PARAM footer%]
		</table>
		</td></tr>
		</table>
	[%/ PARAM%]
[%/ FORLOOP%]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment