Project

General

Profile

Defect #816 » report_organisation.html

velocity template - Jos de Bruijn, 07/11/2014 12:14 PM

 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml">
3
<head>
4
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
<title>$!title</title>
6
<style type="text/css" media="screen">
7
	td { text-align:center; margin-top:0 auto;}
8

    
9
	.table_main{ width:100%;}
10

    
11
	.table_1{ width: 1000px;}
12
	table{ border-collapse:collapse; font-family:Arial, Helvetica, sans-serif; font-size:15px; text-align:left;}
13
	table th{ background-color:#96b9dc; vertical-align:bottom; padding:5px;height: 20px; border:1px solid #000;}
14
	table td{ padding:5px; font-size:12px; border:1px solid #000;}
15
	.table_1_main{ float:left}
16
	.spacer_row { border: 0px; height: 10px;}
17
</style>
18
<style type="text/css" media="print">
19
    @page { size: A4 landscape; }
20

    
21
	.table_main{ width:100%;}
22
	table{ border-collapse:collapse; font-family:Arial, Helvetica, sans-serif; font-size:15px; text-align:left; -fs-table-paginate: paginate;}
23
	table th{ background-color:#96b9dc; vertical-align:bottom; padding:5px;height: 20px; border:1px solid #000;}
24
	table td{ padding:5px; font-size:12px; border:1px solid #000;}
25
	.spacer_row { border: 0px; height: 10px;}
26
</style>
27

    
28
</head>
29

    
30
<body>
31
  <div class="table_main">
32
    <table class="table_1" >
33
      <tr>  
34
        <th style=" border:0px; background-color:transparent">&nbsp;</th>
35
        <th style=" border:0px; background-color:transparent">&nbsp;</th>
36
        <th style=" border:0px; background-color:transparent">&nbsp;</th>
37
        <th style=" border:0px; background-color:transparent">&nbsp;</th>
38
        <th style=" border:0px; background-color:transparent">&nbsp;</th>
39
        <th style=" border:0px; background-color:transparent">&nbsp;</th>
40
        <th style=" border:0px; background-color:transparent">&nbsp;</th>
41
        <th style=" border:0px; background-color:transparent">&nbsp;</th>
42
        <th style=" border:0px; background-color:transparent">&nbsp;</th>
43
        <th style=" border:0px; background-color:transparent">&nbsp;</th>
44
        <th style=" border:0px; background-color:transparent">&nbsp;</th>
45
        <th style=" border:0px; background-color:transparent">&nbsp;</th>
46
        <th style=" border:0px; background-color:transparent">&nbsp;</th>
47
        <th style=" border:0px; background-color:transparent">&nbsp;</th>
48
        <th style=" border:0px; background-color:transparent">&nbsp;</th>
49
        <th style="text-align:center" colspan="3">--- ry ---</th>
50
        <th style="text-align:center"  colspan="3">--- rm ---</th>
51
      </tr>
52
       
53
      <tr>  
54
        <th>Service order type</th>
55
        <th>Area</th>
56
        <th>Technician Group</th>
57
        <th>1</th>
58
        <th>2</th>
59
        <th>3</th>
60
        <th>4</th>
61
        <th>5</th>
62
        <th>6</th>
63
        <th>7</th>
64
        <th>8</th>
65
        <th>9</th>
66
        <th>10</th>
67
        <th>11</th>
68
        <th>12</th>
69
        <th style="text-align:center">BJ VJ</th>
70
     	<th style="text-align:center">BJ</th>	
71
        <th style="text-align:center">Ist/VJ [%]</th>
72
        <th style="text-align:center">  BM VJ</th>
73
      	<th style="text-align:center">BM</th>	
74
        <th style="text-align:center">Ist/VJ [%]</th>
75
      </tr>
76
       
77
#foreach($record in $dataset)      
78
      <tr #if($record.isTotal == 1) style="background-color: #bfbfbf;" #elseif($record.isTotal == 2) style="background-color: #d8d8d8;" #end>
79
        <td>$!record.sot</td>
80
        <td>$!record.area</td>
81
        <td>$!record.techgrp</td>
82
        <td>$!math.round($math.mul(100, $record.mnd_1))</td>
83
        <td>$!math.round($math.mul(100, $record.mnd_2))</td>
84
        <td>$!math.round($math.mul(100, $record.mnd_3))</td>
85
        <td>$!math.round($math.mul(100, $record.mnd_4))</td>
86
        <td>$!math.round($math.mul(100, $record.mnd_5))</td>
87
        <td>$!math.round($math.mul(100, $record.mnd_6))</td>
88
        <td>$!math.round($math.mul(100, $record.mnd_7))</td>
89
        <td>$!math.round($math.mul(100, $record.mnd_8))</td>
90
        <td>$!math.round($math.mul(100, $record.mnd_9))</td>
91
        <td>$!math.round($math.mul(100, $record.mnd_10))</td>
92
        <td>$!math.round($math.mul(100, $record.mnd_11))</td>
93
        <td>$!math.round($math.mul(100, $record.mnd_12))</td>
94
        <td>$!math.round($math.mul(100, $record.rm_vj))</td>
95
        <td>$!math.round($math.mul(100, $record.rm_bm))</td>
96
        <td>$number.percent($!record.rm_lst)</td>
97
        <td>$!math.round($math.mul(100, $record.ry_vj))</td>
98
        <td>$!math.round($math.mul(100, $record.ry_bj))</td>
99
        <td>$number.percent($!record.ry_lst)</td>
100
      </tr>
101
  #if($record.isTotal == 1)
102
	  <tr class="spacer_row" style="height: 10px;">
103
	    <td colspan="21" style="border: 0px;">&nbsp;</td>
104
	  </tr>
105
  #end
106
#end
107
      </table>
108
   </div>
109

    
110
</body>
111
</html>
(2-2/3)