Displays all user pictures on one page.
[moodle.git] / userpix / index.php
1 <?PHP
3 include('../config.php');
5 require_login();
7 if (!$users = get_records("user", "picture", "1", "id", "id,firstname,lastname")) {
8     error("no users!");
9 }
11 $title = get_string("users");
13 print_header($title, $title, $title);
15 foreach ($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 }
21 print_footer();
23 ?>