Subversion Repositories ALCASAR

Rev

Rev 2168 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log

Rev Author Line No. Line
2168 tom.houday 1
<?php
2
/**
3
 * Tickets template for TicketsGenerator
4
 *
5
 * @author    Tom Houdayer
6
 * @copyright Copyright (C) ALCASAR (http://www.alcasar.net)
7
 * @license   GPL-3.0
8
 * @version   $Id: tickets.template.php 2179 2017-04-25 18:07:10Z tom.houdayer $
9
 */
10
 
11
$langue_imp = $language;
12
require __DIR__ . '/../langues_imp.php';
13
 
14
$img_logoAlcasar      = __DIR__ . '/../../../../images/logo-alcasar.png';
15
$img_logoOrganization = __DIR__ . '/../../../../images/organisme.png';
16
?>
17
<!doctype html>
18
<html>
19
<head>
20
	<meta charset="utf-8">
21
	<style>
22
		body {
23
			margin: 0;
24
		}
25
		.ticket {
2179 tom.houday 26
			margin: 14px 0;
2168 tom.houday 27
			width: 50%;
28
			display: inline-block;
29
			font-family: Arial;
2179 tom.houday 30
			font-size: 8px;
31
			line-height: 16px;
2168 tom.houday 32
		}
33
		.ticket-header {
2179 tom.houday 34
			min-height:  30px;
35
			line-height: 30px;
36
			font-size: 10px;
2168 tom.houday 37
			text-align: center;
38
		}
39
		.ticket-header > .ticket-title {
40
			color: red;
41
			font-weight: bold;
42
		}
43
		.ticket-box {
44
			position: relative;
45
			border: 1px solid black;
46
			border-radius: 10px;
2179 tom.houday 47
			width: 220px;
2168 tom.houday 48
			margin: 0 auto;
49
		}
50
		.ticket-box > .logo {
51
			position: absolute;
52
			display: inline-block;
2179 tom.houday 53
			width:  60px;
54
			height: 60px;
2168 tom.houday 55
			text-align: center;
56
		}
57
		.ticket-box > .logo img {
58
			max-width:  100%;
59
			max-height: 100%;
60
		}
61
		.ticket-box > .logo-alcasar {
2179 tom.houday 62
			top:  -30px;
63
			left: -30px;
2168 tom.houday 64
		}
65
		.ticket-box > .logo-organization {
2179 tom.houday 66
			top:   -30px;
67
			right: -30px;
2168 tom.houday 68
		}
69
		.ticket-body {
70
			position: relative;
71
			z-index: 10;
72
			padding: 5px;
73
		}
74
		.ticket-body > div > span {
75
			display: inline-block;
76
		}
77
		.ticket-body > div.spacer {
2179 tom.houday 78
			height: 10px;
2168 tom.houday 79
		}
80
		.ticket-body > div > span.key {
2179 tom.houday 81
			width: 52%;
2168 tom.houday 82
			text-align: right;
83
		}
84
		.ticket-body > div > span.value {
2179 tom.houday 85
			width: 48%;
2168 tom.houday 86
			font-weight: bold;
87
		}
88
		.ticket-footer > .infos {
2179 tom.houday 89
			font-size: 7px;
90
			height: 52px;
2168 tom.houday 91
		}
92
		.center {
93
			text-align: center;
94
		}
95
	</style>
96
</head>
97
<body>
98
	<?php foreach ($users as $user):
99
	  ?><div class="ticket">
100
			<div class="ticket-header">
101
				<span class="ticket-title"><?= $l_title_imp ?></span>
102
			</div>
103
			<div class="ticket-box">
104
				<div class="logo logo-alcasar"><img src="<?= $img_logoAlcasar ?>" alt=""></div>
105
				<div class="logo logo-organization"><img src="<?= $img_logoOrganization ?>" alt=""></div>
106
				<div class="ticket-body">
107
					<div class="spacer"></div>
108
					<div><span class="key"><?= $l_login_imp ?>&nbsp;</span><span class="value"><?= $user->username ?></span></div>
109
					<div><span class="key"><?= $l_password_imp ?>&nbsp;</span><span class="value"><?= $user->password ?></span></div>
110
					<div class="spacer"></div>
111
					<div><span class="key"><?= $l_max_all_session_imp ?>&nbsp;</span><span class="value"><?= $user->maxAllSession ?></span></div>
112
					<div><span class="key"><?= $l_session_timeout_imp ?>&nbsp;</span><span class="value"><?= $user->sessionTimeout ?></span></div>
113
					<div><span class="key"><?= $l_max_daily_session_imp ?>&nbsp;</span><span class="value"><?= $user->maxDailySession ?></span></div>
114
					<div><span class="key"><?= $l_expiration_imp ?>&nbsp;</span><span class="value"><?= $user->expiration ?></span></div>
115
					<div class="spacer"></div>
116
				</div>
117
			</div>
118
			<div class="ticket-footer">
119
				<?php if ($user->isDuplicate): ?>
120
					<div class="infos center">
121
						<p><?= $l_duplicate ?></p>
122
					</div>
123
				<?php else: ?>
124
					<div class="infos">
125
						<p><?= nl2br($l_explain, false) ?></p>
126
					</div>
127
				<?php endif; ?>
128
				<div class="credits center"><?= $l_footer_imp ?></div>
129
			</div>
130
		</div><?php
131
	endforeach; ?>
132
</body>
133
</html>