You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

49 lines
1.6 KiB

  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: // Meteor-M2
  25. $ending = "-122-rectified.jpg";
  26. break;
  27. case 1: // NOAA
  28. $ending = "-MCIR.jpg";
  29. break;
  30. case 2: // ISS
  31. $ending = "-0.png";
  32. break;
  33. }
  34. 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>";
  35. echo "<ul><li>". $image['sat_name'] ."</li>";
  36. echo "<li> " . $lang['elev'] . ": ". $image['max_elev'] ."°</li>";
  37. echo "<li>". date('d/m/Y H:i:s', $image['pass_start']) ."</li></ul></td>";
  38. if($col_count==3) {
  39. echo "</tr>";
  40. }
  41. $row_count++;
  42. $col_count++;
  43. }
  44. ?>
  45. </table>
  46. </div>
  47. </body>
  48. </html>