Skip to content
Snippets Groups Projects
Commit 9a828808 authored by Tim Clark's avatar Tim Clark
Browse files

made the signup admin page prittier

parent 5bc29dcc
No related branches found
No related tags found
No related merge requests found
...@@ -10,11 +10,12 @@ if (isset($session->groups[$permission])) { ...@@ -10,11 +10,12 @@ if (isset($session->groups[$permission])) {
$sucsDB->Connect('dbname=sucs'); $sucsDB->Connect('dbname=sucs');
$sucsDB->SetFetchMode(ADODB_FETCH_ASSOC); $sucsDB->SetFetchMode(ADODB_FETCH_ASSOC);
//get unused signup slips //get unused signup slips
$query = "SELECT id, sid, type, issuedby, card FROM signup"; $query = "SELECT signup.id, signup.sid, member_type.typename, members.username, signup.card";
$query .= " FROM signup LEFT JOIN member_type ON signup.type = member_type.id LEFT JOIN members ON signup.issuedby=members.uid";
$query .= " WHERE"; $query .= " WHERE";
$query .= " activated is NULL"; $query .= " signup.activated is NULL";
$query .= " or username is NULL"; $query .= " or signup.username is NULL";
$query .= " ORDER BY id"; $query .= " ORDER BY signup.id";
$query .= ";"; $query .= ";";
$data = $sucsDB->GetAll($query); $data = $sucsDB->GetAll($query);
// process responces // process responces
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
<tr> <tr>
<td>{$signup.id|escape}</td> <td>{$signup.id|escape}</td>
<td><input type="text" size="10" name="sid:{$signup.id|escape}" value="{$signup.sid|escape}" /></td> <td><input type="text" size="10" name="sid:{$signup.id|escape}" value="{$signup.sid|escape}" /></td>
<td>{$signup.type|escape}</td> <td>{$signup.typename|escape}</td>
<td>{$signup.issuedby|escape}</td> <td>{$signup.username|escape}</td>
<td>{$signup.card|escape}</td> <td>{$signup.card|escape}</td>
</tr> </tr>
{/foreach} {/foreach}
......
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