Skip to content
Snippets Groups Projects
Commit 4139a716 authored by Thomas Lake's avatar Thomas Lake :wrench:
Browse files

Add sort by paid field, correct typo in title

parent 933a5994
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,6 @@ $paydate = paidUntil(time()); ...@@ -12,7 +12,6 @@ $paydate = paidUntil(time());
// Only staff can use this page // Only staff can use this page
if (isset($session->groups[$permission])) { if (isset($session->groups[$permission])) {
$smarty->assign("staff", TRUE); $smarty->assign("staff", TRUE);
// connect to sucs database // connect to sucs database
$sucsDB = NewADOConnection('postgres8'); $sucsDB = NewADOConnection('postgres8');
$sucsDB->Connect('dbname=sucs user=apache'); $sucsDB->Connect('dbname=sucs user=apache');
...@@ -93,7 +92,7 @@ if (isset($session->groups[$permission])) { ...@@ -93,7 +92,7 @@ if (isset($session->groups[$permission])) {
$query .= " WHERE paid != ?"; $query .= " WHERE paid != ?";
$query .= " AND (type = 1 OR type = 2 OR type = 5)"; $query .= " AND (type = 1 OR type = 2 OR type = 5)";
$query .= " AND type=member_type.id"; $query .= " AND type=member_type.id";
$query .= " ORDER BY type,".$sort; $query .= " ORDER BY paid,type,".$sort;
$array = array($paydate); $array = array($paydate);
$data = $sucsDB->GetAll($query, $array); $data = $sucsDB->GetAll($query, $array);
$smarty->assign("members", $data); $smarty->assign("members", $data);
...@@ -148,6 +147,6 @@ if (isset($session->groups[$permission])) { ...@@ -148,6 +147,6 @@ if (isset($session->groups[$permission])) {
$side = $smarty->fetch('membershiprenew-options.tpl'); $side = $smarty->fetch('membershiprenew-options.tpl');
$body = $smarty->fetch('membershiprenew.tpl'); $body = $smarty->fetch('membershiprenew.tpl');
$smarty->assign('secondary',$side); $smarty->assign('secondary',$side);
$smarty->assign('title', "Renew Memberhip"); $smarty->assign('title', "Renew Membership");
$smarty->assign('body', $body); $smarty->assign('body', $body);
?> ?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment