/lenasys/0.1

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/0.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<style>
table{
	font-size:15pt;
    border-collapse:collapse;
    border-spacing: 0px;
    clear:both;
}

td,th{
    border:1px solid #000;
    padding:5px 35px;
    white-space: nowrap;
    height: 20px;
}

caption{
	font-weight:bold;
	padding:20px;
}
</style>
<?php
//print.html.php
// echo "<pre>";
// print_r($_POST);
// echo "</pre>";
$students=unserialize($_POST['students']);
// echo "<pre>";
// print_r($students);
// echo "</pre>";
echo "<table>";
echo "<caption>".$_POST['courseName']." ".$_POST['courseOccasion']."</caption>";
echo "<tr><th>Name</th><th>Login name</th><th>Password</th></tr>";
foreach($students as $student){
	if($student['passw']=="HAS PASSWORD") $student['passw']='-';
	echo "<tr><td>".$student['name']."</td><td>".$student['login']."</td><td>".$student['passw']."</td></tr>";
}
echo "</table>";

?>