From 4de11ee54782dec14896fa207a54c232f62867f8 Mon Sep 17 00:00:00 2001 From: Jonathan Rosenbaum Date: Wed, 16 May 2018 21:27:06 +0000 Subject: [PATCH] Closes #71, shows if member in individual history. --- individual_history_log.php | 2 +- js/reports.js | 56 +++++++++++++++++++++++++++++++++++++- 2 files changed, 56 insertions(+), 2 deletions(-) diff --git a/individual_history_log.php b/individual_history_log.php index 89407c6..64880fc 100644 --- a/individual_history_log.php +++ b/individual_history_log.php @@ -17,7 +17,7 @@ include("include_header.html"); ?> -
+
diff --git a/js/reports.js b/js/reports.js index b3d5d88..aa08716 100644 --- a/js/reports.js +++ b/js/reports.js @@ -43,10 +43,11 @@ $(function(){ }); // name + var date; $.post("json/reports.php", { name: 1, contact_id: contact_id }, function (data) { if (data) { var d = new Date(); - var date = d.toISOString().split('T')[0]; + date = d.toISOString().split('T')[0]; var obj = $.parseJSON(data); var full_name_with_link = '= expiration_date) { + var membership = '' + "Expired Membership"; + $("#membership_status").prop("title",title).html(membership).children(). + css({color: "rgb(27, 105, 30)", textAlign: "center", cursor: "help", textDecoration: "none"}); + } else if (d < expiration_date) { + var membership = '' + "Paid Membership"; + $("#membership_status").prop("title",title).html(membership).children(). + css({color: "rgb(27, 105, 30)", textAlign: "center", cursor: "help", textDecoration: "none"}); + + } + + } + + + }); // Is contact a member + } // if contact_id // stats_userhours