Subversion Repositories ALCASAR

Rev

Rev 2179 | Go to most recent revision | Details | 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 2168 2017-04-18 17:39:54Z 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 {
26
			margin: 20px 0;
27
			width: 50%;
28
			display: inline-block;
29
			font-family: Arial;
30
			font-size: 10px;
31
			line-height: 20px;
32
		}
33
		.ticket-header {
34
			min-height:  40px;
35
			line-height: 40px;
36
			font-size: 12px;
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;
47
			width: 275px;
48
			margin: 0 auto;
49
		}
50
		.ticket-box > .logo {
51
			position: absolute;
52
			display: inline-block;
53
			width:  80px;
54
			height: 80px;
55
			text-align: center;
56
		}
57
		.ticket-box > .logo img {
58
			max-width:  100%;
59
			max-height: 100%;
60
		}
61
		.ticket-box > .logo-alcasar {
62
			top:  -40px;
63
			left: -40px;
64
		}
65
		.ticket-box > .logo-organization {
66
			top:   -40px;
67
			right: -40px;
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 {
78
			height: 12px;
79
		}
80
		.ticket-body > div > span.key {
81
			width: 50%;
82
			text-align: right;
83
		}
84
		.ticket-body > div > span.value {
85
			width: 50%;
86
			font-weight: bold;
87
		}
88
		.ticket-footer > .infos {
89
			font-size: 9px;
90
			height: 70px;
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>
134