瀏覽代碼

fix breaks

tags/v1.7
Nico Rey 3 年之前
父節點
當前提交
cf89a9ab21
共有 2 個檔案被更改,包括 4 行新增0 行删除
  1. +2
    -0
      templates/webpanel/Model/Conn.php
  2. +2
    -0
      templates/webpanel/Views/V_viewLastImages.php

+ 2
- 0
templates/webpanel/Model/Conn.php 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存