[LON-CAPA-cvs] cvs: loncom /interface loncommunicate.pm lonmsg.pm doc/loncapafiles loncapafiles.lpml

www lon-capa-cvs@mail.lon-capa.org
Fri, 27 Dec 2002 14:59:42 -0000


www		Fri Dec 27 09:59:42 2002 EDT

  Modified files:              
    /doc/loncapafiles	loncapafiles.lpml 
    /loncom/interface	loncommunicate.pm lonmsg.pm 
  Log:
  Toward bug #274 - recording of face-to-face discussion (look-up of all student
  communication)
  
  
Index: doc/loncapafiles/loncapafiles.lpml
diff -u doc/loncapafiles/loncapafiles.lpml:1.202 doc/loncapafiles/loncapafiles.lpml:1.203
--- doc/loncapafiles/loncapafiles.lpml:1.202	Fri Dec 13 16:45:49 2002
+++ doc/loncapafiles/loncapafiles.lpml	Fri Dec 27 09:59:42 2002
@@ -3,7 +3,7 @@
 <!-- loncapafiles.lpml -->
 <!-- Scott Harrison -->
 
-<!-- $Id: loncapafiles.lpml,v 1.202 2002/12/13 21:45:49 albertel Exp $ -->
+<!-- $Id: loncapafiles.lpml,v 1.203 2002/12/27 14:59:42 www Exp $ -->
 
 <!--
 
@@ -1504,6 +1504,15 @@
 <categoryname>handler</categoryname>
 <description>
 Handler to put up simple page
+</description>
+<status>works/unverified</status>
+</file>
+<file>
+<source>loncom/interface/lonpickstudent.pm</source>
+<target dist='default'>home/httpd/lib/perl/Apache/lonpickstudent.pm</target>
+<categoryname>handler</categoryname>
+<description>
+Handler to pick a student from classlist
 </description>
 <status>works/unverified</status>
 </file>
Index: loncom/interface/loncommunicate.pm
diff -u loncom/interface/loncommunicate.pm:1.12 loncom/interface/loncommunicate.pm:1.13
--- loncom/interface/loncommunicate.pm:1.12	Mon Sep 16 16:06:12 2002
+++ loncom/interface/loncommunicate.pm	Fri Dec 27 09:59:42 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Communicate
 #
-# $Id: loncommunicate.pm,v 1.12 2002/09/16 20:06:12 albertel Exp $
+# $Id: loncommunicate.pm,v 1.13 2002/12/27 14:59:42 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -77,8 +77,12 @@
   <b><a href="/adm/email?compose=group">Broadcast message to course</a></b>
 </td></tr>
 <tr><td bgcolor="#FFFFAA">
-  <b><a href="/adm/email?compose=upload">Upload messages to course</a></b>
+  <b><a href="/adm/email?compose=upload">Distribute messages from uploaded file to course</a></b>
 </td></tr>
+<tr><td bgcolor="#FFFFAA">
+  <b><a href="/adm/email?recordftf=query">User records of face-to-face discusssions and messages</a></b>
+</td></tr>
+
 END
     }
     $r->print('</table>');
Index: loncom/interface/lonmsg.pm
diff -u loncom/interface/lonmsg.pm:1.43 loncom/interface/lonmsg.pm:1.44
--- loncom/interface/lonmsg.pm:1.43	Mon Dec 23 13:02:44 2002
+++ loncom/interface/lonmsg.pm	Fri Dec 27 09:59:42 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines for messaging
 #
-# $Id: lonmsg.pm,v 1.43 2002/12/23 18:02:44 www Exp $
+# $Id: lonmsg.pm,v 1.44 2002/12/27 14:59:42 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -579,6 +579,50 @@
     $r->print('</form>');
 }
 
+# ---------------------------------------------------------------- Face to face
+
+sub facetoface {
+    my ($r,$stage)=@_;
+    unless (&Apache::lonnet::allowed('srm',$ENV{'request.course.id'})) {
+	return;
+    }
+    my $defdom=$ENV{'user.domain'};
+    if ($ENV{'form.recdomain'}) { $defdom=$ENV{'form.recdomain'}; }
+    my $domform = &Apache::loncommon::select_dom_form($defdom,'recdomain');
+    $r->print(<<"ENDTREC");
+<h2>User Records of Face-To-Face Discussions and Messages in Course</h2>
+<form method="post" action="/adm/email">
+<input type="hidden" name="recordftf" value="retrieve" />
+<table>
+<tr><td>Username:</td><td><input type=text size=12 name=recuname value="$ENV{'form.recuname'}"></td>
+<td rowspan="2">
+<input type="submit" value="Retrieve discussion and message records"></td>
+</tr>
+<tr><td>Domain:</td>
+<td>$domform</td></tr>
+</table>
+</form>
+ENDTREC
+    if (($stage ne 'query') &&
+        ($ENV{'form.recdomain'}) && ($ENV{'form.recuname'})) {
+        chomp($ENV{'form.newrecord'});
+        if ($ENV{'form.newrecord'}) {
+	    my $subject=
+               'Record ['.$ENV{'form.recuname'}.':'.$ENV{'form.recdomain'}.']';
+        }
+	$r->print(<<ENDRHEAD);
+<form method="post" action="/adm/email">
+<input name="recdomain" value="$ENV{'form.recdomain'}" type="hidden" />
+<input name="recuname" value="$ENV{'form.recuname'}" type="hidden" />
+ENDRHEAD
+        $r->print(<<ENDBFORM);
+<hr />New Record (record is visible to course faculty and staff)<br />
+<textarea name="newrecord" cols="80" rows="10" wrap="hard"></textarea>
+</form>
+ENDBFORM
+    }
+}
+
 # ===================================================================== Handler
 
 sub handler {
@@ -594,7 +638,8 @@
 # --------------------------- Get query string for limited number of parameters
     &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},
         ['display','replyto','forward','markread','markdel','markunread',
-         'sendreply','compose','sendmail','critical','recname','recdom']);
+         'sendreply','compose','sendmail','critical','recname','recdom',
+         'recordftf']);
 
 # ------------------------------------------------------ They checked for email
   &Apache::lonnet::put('email_status',{'recnewemail'=>0});
@@ -691,6 +736,8 @@
       &disall($r);
   } elsif ($ENV{'form.compose'}) {
       &compout($r,'',$ENV{'form.compose'});
+  } elsif ($ENV{'form.recordftf'}) {
+      &facetoface($r,$ENV{'form.recordftf'});
   } elsif ($ENV{'form.sendmail'}) {
       my %content=();
       undef %content;