Commit initial
This commit is contained in:
		
							
								
								
									
										34
									
								
								server/webplatform/apps/CameraMonitor/View/Default/index.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								server/webplatform/apps/CameraMonitor/View/Default/index.php
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,34 @@ | ||||
| <h1>Site web Projet L3</h1> | ||||
|  | ||||
| <a href="connexion/disconnect"><button type="submit">Deconnexion</button></a> | ||||
| <a href="default/settings"><button type="submit">Paramètre</button></a> | ||||
|  | ||||
| <h2>Mes caméras</h2> | ||||
|  | ||||
| <?php if($cameras != null): ?> | ||||
|     <ul> | ||||
|         <?php foreach($cameras as $camera): ?> | ||||
|             <li> | ||||
|                 <form method="post" action="camera/swapState/<?=$camera->getId()?>"> | ||||
|                     <a href="<?= "camera/" . $this->clean($camera->getId()) ?>"> | ||||
|                         <?= $camera->getName() ?> | ||||
|                     </a> | ||||
|  | ||||
|                     <?php if($camera->getAvailable() == true):?> Joignable - | ||||
|                     <?php else: ?> Non joignable - | ||||
|                     <?php endif ?> | ||||
|  | ||||
|                     <?php if($camera->getEnabled() == true):?> Activée <button type="submit">Désactiver</button> | ||||
|                         <?php $swap = "disable";?> | ||||
|                     <?php else: ?> Désactivée <button type="submit">Activer</button> | ||||
|                         <?php $swap = "enable";?> | ||||
|                     <?php endif ?> | ||||
|                     <a href="camera/delayed/<?=$camera->getId()?>"><button type="button">Regarder le différé</button></a> | ||||
|                     <input type="hidden" name="swap" value="<?=$swap?>"> | ||||
|                 </form> | ||||
|             </li> | ||||
|         <?php endforeach; ?> | ||||
|     </ul> | ||||
| <?php else: ?> | ||||
|     <p>Vous n'avez accès à aucune caméra</p> | ||||
| <?php endif ?> | ||||
		Reference in New Issue
	
	Block a user