Add reports page, close #7
This commit is contained in:
parent
5cf6be34a2
commit
bff5339961
@ -26,5 +26,10 @@
|
||||
"Interests": "Interests",
|
||||
"Event List": "Event List",
|
||||
"Popularity": "Popularity",
|
||||
"Event": "Event"
|
||||
"Event": "Event",
|
||||
"Download Reports": "Download Reports",
|
||||
"Member Directory": "Member Directory",
|
||||
"Office (ODT)": "Office (ODT)",
|
||||
"HTML": "HTML",
|
||||
"DOCX": "DOCX"
|
||||
}
|
||||
|
@ -5,5 +5,6 @@
|
||||
"View Family": "View Family",
|
||||
"Family": "Family",
|
||||
"Delete Family": "Delete Family",
|
||||
"Events": "Events"
|
||||
"Events": "Events",
|
||||
"Reports": "Reports"
|
||||
}
|
||||
|
@ -22,13 +22,6 @@ $familylist = $database->select("families", "familyid", ["ORDER" => ["familyname
|
||||
$families = [];
|
||||
foreach ($familylist as $f) {
|
||||
$families[] = (new Family())->load($f);
|
||||
$families[] = (new Family())->load($f);
|
||||
$families[] = (new Family())->load($f);
|
||||
$families[] = (new Family())->load($f);
|
||||
$families[] = (new Family())->load($f);
|
||||
$families[] = (new Family())->load($f);
|
||||
$families[] = (new Family())->load($f);
|
||||
$families[] = (new Family())->load($f);
|
||||
}
|
||||
|
||||
$format = "html";
|
||||
|
@ -44,6 +44,11 @@ define("PAGES", [
|
||||
"static/js/events.js"
|
||||
],
|
||||
],
|
||||
"reports" => [
|
||||
"title" => "Reports",
|
||||
"navbar" => true,
|
||||
"icon" => "fas fa-file-download"
|
||||
],
|
||||
"404" => [
|
||||
"title" => "404 error"
|
||||
]
|
||||
|
34
pages/reports.php
Normal file
34
pages/reports.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* 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/.
|
||||
*/
|
||||
|
||||
$user = new User($_SESSION['uid']);
|
||||
if (!$user->hasPermission("HACHEPORTAL_VIEW")) {
|
||||
header("Location: ../app.php?msg=no_permission");
|
||||
die();
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h3 class="card-title">
|
||||
<i class="fas fa-cloud-download-alt"></i>
|
||||
<?php $Strings->get("Download Reports"); ?>
|
||||
</h3>
|
||||
|
||||
<h4><?php $Strings->get("Member Directory"); ?></h4>
|
||||
<a class="btn btn-primary mb-1" href="./lib/mkmemberdirectory.php?format=odt">
|
||||
<i class="far fa-file-alt"></i> <?php $Strings->get("Office (ODT)"); ?>
|
||||
</a>
|
||||
<br />
|
||||
<a class="btn btn-orange btn-sm mr-1" href="./lib/mkmemberdirectory.php?format=html">
|
||||
<i class="fas fa-globe"></i> <?php $Strings->get("HTML"); ?>
|
||||
</a>
|
||||
<a class="btn btn-secondary btn-sm" href="./lib/mkmemberdirectory.php?format=docx">
|
||||
<i class="fas fa-file-word"></i> <?php $Strings->get("DOCX"); ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
Loading…
x
Reference in New Issue
Block a user