Displays all user pictures on one page.
[moodle.git] / userpix / index.php
CommitLineData
05f53652 1<?PHP
2
3include('../config.php');
4
5require_login();
6
7if (!$users = get_records("user", "picture", "1", "id", "id,firstname,lastname")) {
8 error("no users!");
9}
10
11$title = get_string("users");
12
13print_header($title, $title, $title);
14
15foreach ($users as $user) {
16 echo "<a href=\"$CFG->wwwroot/user/view.php?id=$user->id&course=1\" title=\"$user->firstname $user->lastname\">";
17 echo "<img border=0 src=\"$CFG->wwwroot/user/pix.php/$user->id/f1.jpg\" width=100 height=100 alt=\"$user->firstname $user->lastname\" />";
18 echo "</a> \n";
19}
20
21print_footer();
22
23?>