diff --git a/langs/en/actions.json b/langs/en/actions.json index ebeb7b0..14d51b8 100644 --- a/langs/en/actions.json +++ b/langs/en/actions.json @@ -5,5 +5,7 @@ "Save": "Save", "Delete": "Delete", "Cancel": "Cancel", - "Edit Family": "Edit Family" + "Edit Family": "Edit Family", + "View Families": "View Families", + "View Payments": "View Payments" } diff --git a/langs/en/labels.json b/langs/en/labels.json index 251cde4..3e5550f 100644 --- a/langs/en/labels.json +++ b/langs/en/labels.json @@ -21,5 +21,6 @@ "Graduated": "Graduated", "Okay to use photos?": "Okay to use photos?", "Adding Family": "Adding Family", - "Editing Family": "Editing {family} Family" + "Editing Family": "Editing {family} Family", + "Recent Payments": "Recent Payments" } diff --git a/pages/home.php b/pages/home.php index 1d44fbf..2b3c6fd 100644 --- a/pages/home.php +++ b/pages/home.php @@ -3,4 +3,30 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ ?> -

Hello World

\ No newline at end of file +
+
+
+

get("Families") ?>

+

count('families'); ?>

+
+ +
+
+
+

get("Recent Payments") ?>

+

select("payments", "amount", ["AND" => ["paid" => 1, "date[>]" => date("Y-m-d H:i:s", strtotime("-30 days"))]]); + $total = 0.0; + foreach ($amounts as $amt) { + $total += $amt; + } + echo number_format($total, 2); + ?>

+
+ +
+