[LON-CAPA-cvs] cvs: loncom /homework bridgetask.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Wed, 07 Sep 2005 22:20:36 -0000
albertel Wed Sep 7 18:20:36 2005 EDT
Modified files:
/loncom/homework bridgetask.pm
Log:
- add in the student information to the proctor validation screen
Index: loncom/homework/bridgetask.pm
diff -u loncom/homework/bridgetask.pm:1.43 loncom/homework/bridgetask.pm:1.44
--- loncom/homework/bridgetask.pm:1.43 Wed Sep 7 15:54:54 2005
+++ loncom/homework/bridgetask.pm Wed Sep 7 18:20:33 2005
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: bridgetask.pm,v 1.43 2005/09/07 19:54:54 albertel Exp $
+# $Id: bridgetask.pm,v 1.44 2005/09/07 22:20:33 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1170,7 +1170,8 @@
my ($slot) = @_;
my (undef,undef,$domain,$user) = &Apache::lonxml::whichuser();
my $url=&Apache::lonnet::studentphoto($domain,$user,'jpg');
- $user=$env{'form.proctorname'};
+ my $name=&Apache::loncommon::plainname($user,$domain);
+
if ($env{'form.proctordomain'}) { $domain=$env{'form.proctordomain'}; }
my $msg;
if ($env{'form.proctorpassword'}) {
@@ -1185,13 +1186,22 @@
<input type="hidden" name="validate" value="yes" />
<input type="hidden" name="submitted" value="yes" />
<table>
- <tr><td>Proctor's Username:</td><td><input type="string" name="proctorname" value="$user" /></td></tr>
+ <tr><td>Proctor's Username:</td><td><input type="string" name="proctorname" value="$env{'form.proctorname'}" /></td></tr>
<tr><td>Password:</td><td><input type="password" name="proctorpassword" value="" /></td></tr>
<tr><td>Proctor's Domain:</td><td><input type="string" name="proctordomain" value="$domain" /></td></tr>
</table>
<input type="submit" name="checkoutbutton" value="Validate" /><br />
-Student who should be logged in is:<br />
-<img src="$url" /><br />
+<table border="1">
+ <tr><td>
+ <table>
+ <tr><td colspan="2">Student who should be logged in is:</td></tr>
+ <tr><td>Name:</td><td>$name</td></tr>
+ <tr><td>Studnet ID:</td><td>$env{'environment.id'}</td></tr>
+ <tr><td>Usename</td><td>$user\@$domain</td></tr>
+ <tr><td colspan="2"><img src="$url" /></td></tr>
+ </table>
+ </tr></td>
+</table>
</form>
ENDCHECKOUT
return $result;