bzr branch
http://gegoxaren.bato24.eu/bzr/lenasys/trunk
|
1
by Henrik G.
First seed of Lenasys ... Needs to be Organized Further |
1 |
<style>
|
2 |
table{
|
|
3 |
font-size:15pt;
|
|
4 |
border-collapse:collapse;
|
|
5 |
border-spacing: 0px; |
|
6 |
clear:both;
|
|
7 |
} |
|
8 |
||
9 |
td,th{
|
|
10 |
border:1px solid #000; |
|
11 |
padding:5px 35px; |
|
12 |
white-space: nowrap; |
|
13 |
height: 20px; |
|
14 |
} |
|
15 |
||
16 |
caption{
|
|
17 |
font-weight:bold;
|
|
18 |
padding:20px;
|
|
19 |
} |
|
20 |
</style>
|
|
21 |
<?php
|
|
22 |
//print.html.php
|
|
23 |
// echo "<pre>";
|
|
24 |
// print_r($_POST);
|
|
25 |
// echo "</pre>";
|
|
26 |
$students=unserialize($_POST['students']); |
|
27 |
// echo "<pre>";
|
|
28 |
// print_r($students);
|
|
29 |
// echo "</pre>";
|
|
30 |
echo "<table>"; |
|
31 |
echo "<caption>".$_POST['courseName']." ".$_POST['courseOccasion']."</caption>"; |
|
32 |
echo "<tr><th>Name</th><th>Login name</th><th>Password</th></tr>"; |
|
33 |
foreach($students as $student){ |
|
34 |
if($student['passw']=="HAS PASSWORD") $student['passw']='-'; |
|
35 |
echo "<tr><td>".$student['name']."</td><td>".$student['login']."</td><td>".$student['passw']."</td></tr>"; |
|
36 |
}
|
|
37 |
echo "</table>"; |
|
38 |
||
39 |
?>
|