0) { $match = false; $index = join(" ", $usr); foreach ($tokens as $t) if (stristr($index, trim($t))) { $match = true; break; } if (! $match) continue; } $table .= ''; $table .= '' . User_Nick_render($usr) . ''; $usr['nick'] = User_Nick_render($usr); $usr['planned_arrival_date'] = date('Y-m-d', $usr['planned_arrival_date']); $usr['arrival_date'] = $usr['arrival_date'] > 0 ? date('Y-m-d', $usr['arrival_date']) : "-"; $usr['arrived'] = $usr['Gekommen'] == 1 ? _("yes") : ""; $usr['actions'] = $usr['Gekommen'] == 1 ? '' . _("reset") . '' : '' . _("arrived") . ''; if ($usr['Gekommen'] == 1) $table .= 'yesreset'; else $table .= 'arrived'; $table .= ''; $users_matched[] = $usr; } return page_with_title(admin_arrive_title(), array( msg(), form(array( form_text('search', _("Search"), $search), form_submit('submit', _("Search")) )), table(array( 'nick' => _("Nickname"), 'planned_arrival_date' => _("Planned date"), 'arrived' => _("Arrived?"), 'arrival_date' => _("Arrival date"), 'actions' => "" ), $users_matched) )); } ?>