Projet

Général

Profil

Paste
Statistiques
| Branche: | Révision:

root / views / mur_view.php @ 232b0a2c

Historique | Voir | Annoter | Télécharger (6,03 ko)

1
<?php
2
function afficheMur($mur,$theme,$affiches,$aValider,$login) {
3
  ?>
4

    
5
<!doctype html>
6
<html>
7
<head>
8

    
9
    <?php include_once 'views/includes/head.php'?>
10
    <link rel="stylesheet" href="<?= PATH?>assets/styles/css/cssMurs/<?=$theme->getFichier()?>"/>
11
    <title><?= ucfirst($page) ?></title>
12
</head>
13

    
14
<body>
15

    
16
    <?php include_once 'views/includes/header.php'?>
17

    
18
    <div class="container">
19

    
20
      <div class="row" id="titre">
21
        <div class="col-sm-2 element" id="icone_admin" data-toggle="tooltip" data-placement="top" title="Connexion">
22
           &nbsp;
23
        </div>
24
        <div class="col-sm-9" id="titre_mur">
25
          <?=$mur->getNom()?>
26
          <input type="hidden" id="hiddenRole" value="<?=$login['role']?>">
27
          <input type="hidden" id="hiddenIdMur" value="<?=$mur->getId()?>">
28
        </div>
29
         <div class="col-sm-1" data-toggle="tooltip" data-placement="top" title="Ajouter une brique">
30
          <i class="fas fa-plus-circle element" id="ajoute_brique"></i>
31
         </div>
32
      </div> <!-- row id="titre" -->
33

    
34
      <div class="row" id="identification">
35
        <div class="col-sm-12">
36
          <form class="form-inline" method="post" action="">
37
              <span class="erreur"><?=$login['message']?></span>
38
              <input type="password" class="form-control"
39
               name="password" id="password"
40
               placeholder="Mot de passe administrateur">
41
             <button type="submit" class="btn btn-primary" id="bt_password">
42
               OK
43
             </button>
44
          </form>
45
        </div>
46
      </div> <!-- row id="identification" -->
47

    
48
      <div class="row" id="parametres">
49
        <div class="col-sm-12">
50
          <span id="isAdmin" data-toggle="tooltip" data-placement="top" title="Déconnexion">
51
            <i class="fas fa-sign-out-alt element" id="logout"></i>
52
             Vous êtes connecté en tant qu'administrateur du mur
53
          </span>
54
        </div>
55
        <div class="col-sm-1" id="icone_parametres" data-toggle="tooltip" data-placement="top" title="Paramètres du mur">
56
          <a href="<?=PATH?>index.php?page=admin&id=<?=$mur->getId()?>">
57
            <i class="fas fa-cogs element"></i>
58
          </a>
59
        </div>
60
        <div class="col-sm-11">
61
          <span id="aValider">Il y a <?= $aValider?> brique(s) à valider</span>
62
        </div>
63
      </div> <!-- row id="parametres" -->
64

    
65
      <div class="row" id="contenu">
66
        <div class="col-sm-12" id="descriptif_mur">
67
           <?=$mur->getDescriptif()?>
68
        </div>
69

    
70
        <?php
71
          foreach($affiches as $affiche) {
72
            print "<div class='col-sm-3 mt-4'>";
73
            print "<div class='card mb-2'>";
74

    
75
              print "<div class='card-header briqueTitre'>";
76
                print $affiche->getIcone()." ".$affiche->getTitre();
77
              print "</div>"; // class = card header
78

    
79
              print "<div class='card-body'>";
80

    
81
                print "<p class=briqueDescriptif>";
82
                  print $affiche->getDescriptif();
83
                print "</p>";
84

    
85
                print "<p class=briqueContenu>";
86
                  print $affiche->getDocument();
87
                  print $affiche->getImage();
88
                  print $affiche->getAudio();
89
                  print $affiche->getUrl();
90
                  print $affiche->getIframe();
91
                print "</p>";
92
              print "</div>"; // class = card body
93

    
94
            print "</div>"; // class = card
95
            print "</div>"; // class = col
96
          }
97
        ?>
98
      </div>
99

    
100
    </div> <!-- container -->
101

    
102
    <?php include_once 'views/includes/footer.php'?>
103
    <script src="<?= PATH?>assets/js/mur.js"></script>
104

    
105
</body>
106
</html>
107
<?php
108
}
109
?>
110

    
111

    
112
<?php
113
function afficheAuthentification($message) {
114
?>
115
<!doctype html>
116
<html>
117
<head>
118

    
119
<?php include_once 'views/includes/head.php'?>
120
<link rel="stylesheet" href="<?= PATH?>assets/styles/css/cssMurs/test.css"/>
121
<title><?= ucfirst($page) ?></title>
122
</head>
123

    
124
<body>
125

    
126
  <?php include_once 'views/includes/header.php'?>
127

    
128
  <div class="container">
129
    <div class="row">
130
      <div class="col-sm-12 mb-4 mt-4">
131
        <form method="post" action="">
132
          <span class="erreur"><?=$message?></span>
133
          <div class="form-group">
134
            <label for="mdp_acces">Code d'accès :</label>
135
            <input type="password" class="form-control" id="mdp_acces" name="mdp_acces" aria-describedby="mdpHelp">
136
            <small id="emailHelp" class="form-text text-muted">Ce mur est privé et l'accès est soumis à mot de passe</small>
137
          </div>
138
          <button type="submit" class="btn btn-primary">OK</button>
139
        </form>
140
      </div>
141
    </div>
142
  </div>
143

    
144
</body>
145
</html>
146
<?php
147
}
148
?>
149

    
150

    
151
<?php
152
function afficheAccesInterdit() {
153
?>
154
<!doctype html>
155
<html>
156
<head>
157

    
158
<?php include_once 'views/includes/head.php'?>
159
<link rel="stylesheet" href="<?= PATH?>assets/styles/css/cssMurs/test.css"/>
160
<title><?= ucfirst($page) ?></title>
161
</head>
162

    
163
<body>
164

    
165
  <?php include_once 'views/includes/header.php'?>
166

    
167
  <div class="container">
168
    <div class="row">
169
      <div class="col-sm-12 mb-4 mt-4">
170
        <span class="erreur">
171
          Vous n'avez pas l'autorisation d'administrer ce mur.
172
        </span>
173
      </div>
174
      <div class="col-sm-12 mb-4 mt-4">
175
        <a href="<?=PATH/index.php?>">
176
          <button class="btn btn-primary">
177
            Accueil
178
          </button>
179
        </a>
180
      </div>
181
    </div>
182
  </div>
183

    
184
</body>
185
</html>
186
<?php
187
}
188
?>
189

    
190

    
191
<?php
192
function afficheMurInexistant() {
193
?>
194
<!doctype html>
195
<html>
196
<head>
197

    
198
<?php include_once 'views/includes/head.php'?>
199
<link rel="stylesheet" href="<?= PATH?>assets/styles/css/cssMurs/test.css"/>
200
<title><?= ucfirst($page) ?></title>
201
</head>
202

    
203
<body>
204

    
205
  <?php include_once 'views/includes/header.php'?>
206

    
207
  <div class="container">
208
    <div class="row">
209
      <div class="col-sm-12 mb-4 mt-4">
210
        <span class="erreur">
211
          Ce mur n'existe pas.
212
        </span>
213
      </div>
214
      <div class="col-sm-12 mb-4 mt-4">
215
        <a href="<?=PATH.'index.php'?>">
216
          <button class="btn btn-primary">
217
            Accueil
218
          </button>
219
        </a>
220
      </div>
221
    </div>
222
  </div>
223

    
224
</body>
225
</html>
226
<?php
227
}
228
?>
Redmine Appliance - Powered by TurnKey Linux