-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodeliste.html
More file actions
138 lines (128 loc) · 3.64 KB
/
codeliste.html
File metadata and controls
138 lines (128 loc) · 3.64 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<html lang="en">
<head>
<title>My UTC</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<style>
.table, .th, .td {
border: 0 px;
}
.navbar-brand {
font-family: arial;
font-weight: bolder;
font-size: 30;
}
</style>
</head>
<body data-spy="scroll" data-target=".navbar" data-offset="100">
<nav class="navbar navbar-inverse navbar-fixed-top" style="background-color:#FACC2E">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" style="color:#fff;text-align:left" href="index.php" class="btn btn-info" role="button">MYUTC</a>
</div>
<div class="col-xs-3"><a src="" type="button" class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown" style="background-color:#61380B; border-color:#FACC2E">Login
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="#">Déconnexion</a></li>
<li><a href="#">Profil</a></li>
</ul>
</div>
</div>
</nav>
////////
<?php echo $module['img']; ?>
display_modules($modules);
function display_modules($modules) {
?>
<br>
<br>
<br>
<div class="container">
<table class="table table-striped">
<thead>
<tr>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<?php
$n=count($modules);
$i=0;
while($i<$n){
echo 'coucou'; //write_module(modules[$i]);
$i++;
} ?>
</table>
<?php
function write_module($module){
?>
<tr>
<td>
<img src="https://i.gyazo.com/592adf3420b792e26e74c16b600b113c.png" class="img-rounded" width=60% style="max-width:450px; min-width:100px" height=width>
</td>
<td>
<table style="width:100%">
<thead>
<tr>
<th><?php echo $module['titre']; ?></th>
<?php
if ($module['isAdded']==0) {
?>
<th><button type="button" class="btn btn-success">Ajouter</button></th>
<?php
}
else { ?>
<th><button type="button" class="btn btn-danger">Supprimer</button></th>
<?php } ?>
</tr>
</thead>
</table>
}
//////////////
<tr>
<td><img src="https://i.gyazo.com/592adf3420b792e26e74c16b600b113c.png" class="img-rounded" width=60% style="max-width:450px; min-width:100px" height=width></td>
<td>
<table style="width:100%">
<thead>
<tr>
<th>NomAsso 1</th>
<th><button type="button" class="btn btn-success">ajouter</button></th>
</tr>
</thead>
<tbody>
<tr>
<td>Description</td>
</tr>
</tbody>
</table>
</td>
<td></td>
</tr>
<tr>
<td><img src="https://i.gyazo.com/592adf3420b792e26e74c16b600b113c.png" class="img-rounded" width=60% style="max-width:450px; min-width:100px" height=width></td>
<td>
<table style="width:100%">
<thead>
<tr>
<th>NomAsso 2</th>
<th><button type="button" class="btn btn-success">ajouter</button></th>
</tr>
</thead>
<tbody>
<tr>
<td>Description</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>