Project

General

Profile

Defect #1253 ยป train_group_participants_pdf.html

Diana Bodnarescu, 09/11/2017 03:49 PM

 
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>Group activities</title>
6
	<style type="text/css" media="all">
7
	
8
	@page {
9
		size: A4 portrait;
10
		margin: .4in;
11
		
12
		@top-left {
13
			content: "$!timestamp";
14
			font-family: Arial;
15
			font-size: 10px;
16
		}
17
		
18
		@top-right {
19
			content: "Page " counter(page) " of " counter(pages);
20
			font-family: Arial;
21
			font-size: 10px;
22
		}
23
	}
24
	
25
	* {
26
		font-family: Arial;
27
		font-size: 10px;
28
		color: #000;
29
	}
30
	
31
	
32
	h1 {
33
		font-size: 30px;
34
		color: #150B4F;
35
		margin: 0px;
36
	}
37
	
38
	h2 {
39
		font-size: 30px;
40
		color: #150B4F;
41
		margin: 0px;
42
	}
43
	
44
	h3 {
45
		font-size: 13px;
46
		margin: 0px;
47
	}
48
	
49
	table.main {
50
		width: 100%;
51
		-fs-table-paginate: paginate;
52
		margin: 0px;
53
		padding: 0px;
54
	}
55
	
56
	table.header td {
57
		vertical-align: bottom;
58
	}
59
		
60
	table.detail {
61
		-fs-table-paginate: paginate;
62
		width: 100%;
63
		margin: 0px;
64
		padding: 0px;
65
	}
66
	
67
	tr {
68
		page-break-inside:avoid;
69
	}
70
	td {
71
		vertical-align: top;
72
		align: left;
73
		
74
	}
75
	
76
	td.border-bottom {
77
		border-bottom: 1px solid #000;  
78
	}
79
	
80
	.pageBreak {
81
		page-break-after:always;
82
	}
83
	
84
	.bold {
85
		font-family: Arial Bold;
86
	}
87
	
88
	img { border: 0px; }
89
	</style>
90
</head>
91

    
92
<body width="100%">
93
<br/>
94
<table class="main">
95
<thead>
96
	<tr>
97
		<td colspan="2">
98
			<table class="main header">
99
				<tr>
100
					<td width="220px">$!logo_small</td>
101
					<td>
102
						<h1>Participants IADC Seminar</h1>
103
						<h2>$!train_group_title</h2>
104
						<h3>$!train_group_description</h3>
105
					</td>
106
				</tr>
107
			</table>
108
		</td>
109
	</tr>
110
	<tr><td colspan="2">&nbsp;</td></tr>
111
</thead>
112
<tbody>
113
#set ($counter = 0)
114
#foreach($train_registration in $train_registration_set)
115
	#set ($counter = $counter + 1)
116
	
117
	<!-- in case of even row, create a new td only else create a new row so we can show 2 columns -->
118
	#if ($counter % 2 == 0)
119
		<td  width="50%">
120
	#else
121
	<tr>
122
		<td width="50%">		
123
	#end
124
			<table>
125
				<tr>
126
					<td width="87px">
127
					#if ($train_registration.train_train_registration_to_contact.rel_contact_to_file_storage_logo && $train_registration.train_train_registration_to_contact.rel_contact_to_file_storage_logo.thefile)
128
						$!train_registration.train_train_registration_to_contact.rel_contact_to_file_storage_logo.thefile.thefile.getImageTag( { 'w': 87 } )
129
					#else
130
						$!no_picture
131
					#end
132
					</td>
133
					<td>
134
						<span class="bold">$!train_registration.train_train_registration_to_contact.name_common #if ($train_registration.train_train_registration_to_contact.name_suffix)$train_registration.train_train_registration_to_contact.name_suffix #end$!train_registration.train_train_registration_to_contact.name_last </span><br />
135
						#if ($train_registration.iadc_train_registration_to_orgcp.occupation)$!train_registration.iadc_train_registration_to_orgcp.occupation<br/>#end
136
						#if ($train_registration.train_train_registration_to_organisation.organisation_name)$!train_registration.train_train_registration_to_organisation.organisation_name<br />#end
137
						#if ($train_registration.train_train_registration_to_contact.rel_contact_to_address.visit_country_id) 
138
							$!valueLists.getDisplayValue('core_country_name', $train_registration.train_train_registration_to_contact.rel_contact_to_address.visit_country_id)<br />
139
						#end
140
						#if ($train_registration.iadc_train_registration_to_orgcp.rel_orgcp_to_contact_item.email) 
141
							$train_registration.iadc_train_registration_to_orgcp.rel_orgcp_to_contact_item.email
142
						#elseif ($!train_registration.train_train_registration_to_contact.rel_contact_to_contact_item) 
143
							$!train_registration.train_train_registration_to_contact.rel_contact_to_contact_item.email
144
						#end
145
					</td>
146
				</tr>
147
			</table>
148
		</td>
149
	#if ($counter % 2 == 0 ||  $foundsetcount == $counter)
150
	</tr>
151
	#end
152
#end
153
</tbody>
154
</table>
155
</body>
156
</html>
    (1-1/1)