瀏覽代碼

Add support for "past due" markers in Map Overview

Alan Lam 8 年之前
父節點
當前提交
e43b8f8781
共有 3 個文件被更改,包括 7 次插入 和 0 次删除
  1. 7 0
      controllers/map_overview_ajax.php
  2. 二進制
      public/img/markers/bacta_past_due.png
  3. 二進制
      public/img/markers/praesepe_past_due.png

+ 7 - 0
controllers/map_overview_ajax.php

@@ -55,8 +55,15 @@ if($submit) {
 					$icon_file = "{$customer_slug}_none.png";
 
 					if($test) {
+
+						$unix_due = Util::getUnixTimeFromUTC($test->dts_due);
+
 						if(is_null($test->pass)) {
 							$icon_file = "{$customer_slug}_pending.png";
+
+							if(time() > $unix_due) {
+								$icon_file = "{$customer_slug}_past_due.png";
+							}
 						}
 						else if($test->pass) {
 							$icon_file = "{$customer_slug}_pass.png";

二進制
public/img/markers/bacta_past_due.png


二進制
public/img/markers/praesepe_past_due.png