' . get_string('antitheftcontrols', 'olpcxs') . ''; print_box_start('generalbox'); echo get_string('antitheftcontrols_description', 'olpcxs'); echo ''; print_box_end(); ?>
timestolen)) { $cssstolen='class="stolen"'; } else { $cssstolen=''; } echo "'; } ?>
"; print_user_picture($user, SITEID, $user->picture, false); echo ''; $profilelink = ''.fullname($user).''; if (!empty($user->timestolen)) { echo '' . $profilelink . '' ; } else { echo $profilelink; } echo ''; p($user->serialnum); echo ''; if (!empty($user->lastlogin)) { echo p(timestamp_to_elapsed_string($user->lastlogin - $now)) . " $ago"; } echo ''; if (!empty($user->timeleasegiven)) { echo p(timestamp_to_elapsed_string($user->timeleasegiven - $now)) . " $ago"; } echo '
    '; if (!empty($user->timestolen)) { if (!empty($user->timekilled)) { echo '
  • ' . get_string('servedstopsignal', 'olpcxs') . ' ' . s(timestamp_to_elapsed_string($user->timekilled - $now)) . ' ' . $ago. '.
  • '; } else { echo '
  • ' . get_string('stolen', 'olpcxs').'
  • '; } } else { echo '
  • '; print_single_button("$CFG->wwwroot/$CFG->admin/antitheft.php", array('serialnum' => $user->serialnum, 'sesskey' => sesskey() ), get_string('markstolen', 'olpcxs'), 'post'); echo '
  • '; } if (!empty($user->alias)) { $aliasuser = get_record('user', 'id', $user->alias); if ($aliasuser) { $profilelink = '' .fullname($aliasuser).''; echo '
  • ' . get_string('aliasedto', 'olpcxs') . ' ' . $profilelink . '.
  • '; } } echo '