diff --git a/includes/pages/admin_arrive.php b/includes/pages/admin_arrive.php
index 2a6791e8..e55a2e6f 100644
--- a/includes/pages/admin_arrive.php
+++ b/includes/pages/admin_arrive.php
@@ -1,6 +1,9 @@
0) {
+ $match = false;
+ $index = join("", $usr);
+ foreach ($tokens as $t)
+ if (strstr($index, trim($t))) {
+ $match = true;
+ break;
+ }
+ if (!$match)
+ continue;
+ }
$table .= '
';
$table .= '' . $usr['Nick'] . ' | ';
if ($usr['Gekommen'] == 1)
- $table .= 'yes | reset | ';
+ $table .= 'yes | reset | ';
else
- $table .= ' | arrived | ';
+ $table .= ' | arrived | ';
$table .= '
';
}
return template_render('../templates/admin_arrive.html', array (
- 'search' => "",
+ 'search' => $search,
'table' => $table,
- 'msg' => $msg
+ 'msg' => $msg,
+ 'link' => page_link_to('admin_arrive')
));
}
?>
\ No newline at end of file
diff --git a/templates/admin_arrive.html b/templates/admin_arrive.html
index 2711371d..5bc8c32b 100644
--- a/templates/admin_arrive.html
+++ b/templates/admin_arrive.html
@@ -1,9 +1,8 @@
-
-%msg%
+%msg%