updated removed
[home-automation.git] / cameras.php
1 <?php
2 include("config.php");
3 if(isset($_GET['cam'])) {
4   foreach ($cameras as $id=>$camera) {
5     if ($_GET['cam'] == $id) {
6       echo "<img width='704px' height='480px' id='security' src='$camera[1]'>";
7       #echo "<img id='security' src='$camera[1]'>";
8     }
9   }
10 } else {
11   $camera=$cameras[0];
12   echo "<img width='704px' height='480px' id='security' src='$camera[1]'>";
13 }
14 ?>
15 <table border=1>
16 <tr style='background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#1E5799), color-stop(50%,#2989D8), color-stop(51%,#207cca), color-stop(100%,#7db9e8));background: -moz-linear-gradient(top, #
17 1E5799 0%, #2989D8 50%, #207cca 51%, #7db9e8 100%);filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1E5799', endColorstr='#7db9e8',GradientType=0 );'>
18 <?php
19 foreach ($cameras as $id=>$camera) {
20   echo "<td>";
21   ?>
22   <a href="javascript:clearTimeout(t);i=0;ajaxpage('<?php echo "cameras.php?cam=$id'"; ?>, 'contentarea');"  style="font-family: 'Times New Roman';font-size:16pt; color:#ffffff; filter:Glow(color=#ff0000, strength=12);"><?php echo $camera[0]; ?></a>
23   <?php
24   echo "</td>";
25 }
26 ?>
27 </tr>
28 </table>