-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathleaders.php
More file actions
30 lines (26 loc) · 859 Bytes
/
leaders.php
File metadata and controls
30 lines (26 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
/**
* Leader
*
* @package Membao
* @author Alan Kawamaraa
* @copyright 2017
*/
define("_VALID_PHP", true);
require_once("init.php");
if (isset($_GET['leadername'])):
$leaderrow = $leader->renderLeader();
$totalSittings = $leader->totalSittings();
$generalAPc = $leader->calculateGeneralAttendance();
$leadercommittees = $committee->getMembersCommittees($leaderrow->id);
$meetingscount = $committee->totalLeadersCommitteeMeetings($leaderrow->id);
$presentcount = $committee->totalLeadersCommitteeMeetingsPresent($leaderrow->id);
$leaderAPc = getLeaderAttendancePc($leaderrow->attendance,$totalSittings);
if(!$leaderrow):
redirect_to(SITEURL . '/404.php');
endif;
else:
$allleaders = $leader->getLeaders();
endif;
?>
<?php require_once (THEMEDIR . "/leaders.tpl.php");?>