list.php 1.87 KB
Newer Older
Nathan ROCHER's avatar
Up  
Nathan ROCHER committed
1
2
3
4
5
6
7
<!DOCTYPE html>
<html lang="fr">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
Nathan ROCHER's avatar
Nathan ROCHER committed
8
    <title>Liste des capteurs - LockHome</title>
Kylian ou Nathan's avatar
Kylian ou Nathan committed
9
10
    <link rel="stylesheet" href="<?= base_url("/static/liste_capteur.css") ?>">
    <link rel="stylesheet" href="<?= base_url("/static/commun.css") ?>">
Nathan ROCHER's avatar
Nathan ROCHER committed
11
    <link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap" rel="stylesheet">
Nathan ROCHER's avatar
Up  
Nathan ROCHER committed
12
13
14
15
16
17
    <link rel="stylesheet" href="https://unicons.iconscout.com/release/v2.0.1/css/unicons.css">
</head>

<body>
    <header class="l_r">
        <div class="left">
Kylian lecomte's avatar
Up    
Kylian lecomte committed
18
            <a href="<?= base_url("/accueil") ?>">
Nathan ROCHER's avatar
Nathan ROCHER committed
19
20
21
                <i class='uil uil-angle-left'></i>
            </a>
            <div class="title">Liste des capteurs</div>
Nathan ROCHER's avatar
Up  
Nathan ROCHER committed
22
23
24
25
        </div>
    </header>
    <main>
        <h6>Vous souhaitez ajouter un capteur ?</h6>
Kylian ou Nathan's avatar
Up    
Kylian ou Nathan committed
26
        <a href="<?= base_url("/capteur/edit/new") ?>" class="simple_button_link l_r blue">
Nathan ROCHER's avatar
Up  
Nathan ROCHER committed
27
28
29
30
31
32
33
34
            <div class="left">
                <i class='uil uil-plus-circle'></i>
                <div class="title">Ajouter un capteur</div>
            </div>
            <div class="right">
                <i class='uil uil-angle-right'></i>
            </div>
        </a>
Nathan ROCHER's avatar
Nathan ROCHER committed
35

Nathan ROCHER's avatar
Nathan ROCHER committed
36
        <h6 class="big">Liste des capeurs</h6>
Kylian lecomte's avatar
Up    
Kylian lecomte committed
37

Kylian ou Nathan's avatar
Up    
Kylian ou Nathan committed
38
39
40
41
42
43
44
        <?php if(isset($error)) {
            echo $error;
        } else {
            foreach($capteurs as $cap) {
            ?>

        <a href="<?= base_url("capteur/edit/".$cap->id)?>" class="simple_button_link l_r">
Nathan ROCHER's avatar
Up  
Nathan ROCHER committed
45
46
            <div class="left">
                <div class="indicateur green"></div>
Kylian ou Nathan's avatar
Up    
Kylian ou Nathan committed
47
                <div class="title"><?= $cap->nom ?></div>
Nathan ROCHER's avatar
Up  
Nathan ROCHER committed
48
49
50
51
52
            </div>
            <div class="right">
                <i class='uil uil-angle-right'></i>
            </div>
        </a>
Kylian ou Nathan's avatar
Up    
Kylian ou Nathan committed
53
54
55

        <?php } } ?>

Nathan ROCHER's avatar
Up  
Nathan ROCHER committed
56
57
    </main>
</body>
kylian's avatar
kylian committed
58
</html>