1
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
<head>
|
5
|
<title>TEST</title>
|
6
|
$baseHREF
|
7
|
<style type="text/css" media="print">
|
8
|
div.header { display: none }
|
9
|
div.header { display: block; position: running(header); }
|
10
|
|
11
|
@page {
|
12
|
size: legal landscape;
|
13
|
@bottom-right { content: "Page " counter(page) " of " counter(pages);
|
14
|
font-family: Helvetica, Arial, Sans-Serif; font-size: 10pt; }
|
15
|
@bottom-left { content: "Generated with VelocityReport Plugin $!plugin.version for Servoy";
|
16
|
font-family:helvetica, arial, sans-serif; font-size: 10pt; }
|
17
|
margin: 1.2in .4in .4in .4in;
|
18
|
@top-left { content: element(header); }
|
19
|
}
|
20
|
table {
|
21
|
-fs-table-paginate: paginate;
|
22
|
}
|
23
|
td.RecordObject {
|
24
|
text-align:center;
|
25
|
margin-top:0 auto;
|
26
|
page-break-inside: avoid;
|
27
|
}
|
28
|
</style>
|
29
|
<link rel="stylesheet" type="text/css" media="all" href="css/styles.css"/>
|
30
|
</head>
|
31
|
|
32
|
<body width="100%">
|
33
|
|
34
|
<div class="header">
|
35
|
<table width="100%" border="0">
|
36
|
<tr>
|
37
|
<td><img src="images/firma_saroni.png" /></td>
|
38
|
<td><h1>Hello $firstRecord.name_first $firstRecord.name_last!</h1></td>
|
39
|
<td align="right">$!mediaStuff</td>
|
40
|
</tr>
|
41
|
</table>
|
42
|
</div>
|
43
|
|
44
|
<h2>Contacts:</h2>
|
45
|
#parse($plugin.wrapTemplate($subTemplate))
|
46
|
|
47
|
<h2>Product types:</h2>
|
48
|
#tablizer($dataset, "datasetTable", true)
|
49
|
<table>
|
50
|
#foreach($record in $dataset)
|
51
|
<tr>
|
52
|
<td><a href="javascript:bla($record.product_type_id)">$record.product_type_id</a></td>
|
53
|
<td>$record.description</td>
|
54
|
</tr>
|
55
|
#end
|
56
|
</table>
|
57
|
|
58
|
<h2>Products:</h2>
|
59
|
#tablizer($products, "productTable", true)
|
60
|
|
61
|
|
62
|
<h2>My Object</h2>
|
63
|
#foreach($some in $test)
|
64
|
$some
|
65
|
$some.image.getImageTag({'width':300})
|
66
|
#end
|
67
|
|
68
|
<h2>Countries:</h2>
|
69
|
#tablizer($countries, "countryTable", true, true)
|
70
|
|
71
|
<b>$!date.format("yyyy-MM-dd",$!globals.dateTest)</b><br/>
|
72
|
<strong>$math.getTotal([1,2,3,4])</strong><br/>
|
73
|
$number.currency(99.99)<br/>
|
74
|
$!callbackTest<br/>
|
75
|
$!testI18n<br/>
|
76
|
<b>$number.integer($!jsObject.number2)</b><br/>
|
77
|
<h2>$!jsObject.objectProp</h2>
|
78
|
<a href="javascript:component_test.testCallback('hello',3, true)">LINK BACK</a><br/>
|
79
|
|
80
|
$!pieChart<br/>
|
81
|
$!barChart<br/>
|
82
|
$!scatterChart<br/>
|
83
|
$!lineChart<br/>
|
84
|
$!xyLineChart<br/>
|
85
|
$!radarChart<br/>
|
86
|
$!googleOMeterChart<br/>
|
87
|
$!dialChart<br/>
|
88
|
$!blob<br/>
|
89
|
$!barcode<br/>
|
90
|
<br/>
|
91
|
#set($img = "D:/Clients/icons/"+"batik.png")
|
92
|
$!func.call($img).getImageTag( { 'width': 100, 'class': "imgClass", 'id': "batik" } )<br/>
|
93
|
#set($img = "D:/Clients/icons/"+"cnr.png")
|
94
|
$!func.call($img).getImageTag( { 'width': 100, 'class': "imgClass", 'id': "cnr" } )<br/>
|
95
|
</body>
|
96
|
</html>
|