Browse Source

fix breaks

tags/v1.7
Nico Rey 3 years ago
parent
commit
cf89a9ab21
2 changed files with 4 additions and 0 deletions
  1. +2
    -0
      templates/webpanel/Model/Conn.php
  2. +2
    -0
      templates/webpanel/Views/V_viewLastImages.php

+ 2
- 0
templates/webpanel/Model/Conn.php View File

@@ -53,12 +53,14 @@
switch($pass['sat_type']) {
case 0:
$ending = "-122-rectified.jpg";
break;
case 1:
if ($pass['daylight_pass'] == 1) {
$enhacements = ['-ZA.jpg','-MCIR.jpg','-MCIR-precip.jpg','-MSA.jpg','-MSA-precip.jpg','-HVC.jpg','-HVC-precip.jpg','-HVCT.jpg','-HVCT-precip.jpg'];
} else {
$enhacements = ['-ZA.jpg','-MCIR.jpg','-MCIR-precip.jpg'];
}
break;
}
return $enhacements;
}


+ 2
- 0
templates/webpanel/Views/V_viewLastImages.php View File

@@ -23,8 +23,10 @@
switch($image['sat_type']) {
case 0:
$ending = "-122-rectified.jpg";
break;
case 1:
$ending = "-MCIR.jpg";
break;
}
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>";
echo "<ul><li>". $image['sat_name'] ."</li>";


Loading…
Cancel
Save