Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

V_viewLastImages.php 1.4 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <div style="overflow-x:auto;">
  2. <table id="passes" class="img-grid">
  3. <?php
  4. if ($page > 1) {
  5. echo "<tr><th><a href=\"?page=" . ($page-1) . "\">" . $lang['prev'] . "</a></th>";
  6. } else {
  7. echo "<tr><th></th>";
  8. }
  9. echo "<th>" . $lang['page'] . " $page " . $lang['of'] . " $page_count</th>";
  10. if ($page < $page_count) {
  11. echo "<th><a href=\"?page=" . ($page+1) . "\">" . $lang['next'] . "</a></th></tr>";
  12. } else {
  13. echo "<th></th></tr>";
  14. }
  15. $row_count=0;
  16. $col_count=0;
  17. $baseurl = $configs->base_url;
  18. foreach ($images as $image) {
  19. if($row_count%3==0) {
  20. echo "<tr>";
  21. $col_count=1;
  22. }
  23. switch($image['sat_type']) {
  24. case 0:
  25. $ending = "-122-rectified.jpg";
  26. case 1:
  27. $ending = "-MCIR.jpg";
  28. }
  29. echo "<td><div id =\"satimgdiv\"><a href=". "detail.php?id=" . $image['id'] ."><img id=\"satimg\" src=". $baseurl . "thumb/" . $image['file_path'] . $ending ."></img></a></div>";
  30. echo "<ul><li>". $image['sat_name'] ."</li>";
  31. echo "<li> " . $lang['elev'] . ": ". $image['max_elev'] ."°</li>";
  32. echo "<li>". date('d/m/Y H:i:s', $image['pass_start']) ."</li></ul></td>";
  33. if($col_count==3) {
  34. echo "</tr>";
  35. }
  36. $row_count++;
  37. $col_count++;
  38. }
  39. ?>
  40. </table>
  41. </div>
  42. </body>
  43. </html>