[LON-CAPA-cvs] cvs: loncom /interface londropadd.pm /localize/localize newphrases.txt

matthew lon-capa-cvs@mail.lon-capa.org
Wed, 11 Feb 2004 15:30:37 -0000


matthew		Wed Feb 11 10:30:37 2004 EDT

  Modified files:              
    /loncom/interface	londropadd.pm 
    /loncom/localize/localize	newphrases.txt 
  Log:
  londropadd.pm: Added display of role start and end times to "modify single
  student" display, mostly to show when the start and end dates are not set.
  Made the 'section' input box a little bigger, too.
  
  
Index: loncom/interface/londropadd.pm
diff -u loncom/interface/londropadd.pm:1.100 loncom/interface/londropadd.pm:1.101
--- loncom/interface/londropadd.pm:1.100	Tue Feb 10 17:15:53 2004
+++ loncom/interface/londropadd.pm	Wed Feb 11 10:30:36 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to drop and add students in courses 
 #
-# $Id: londropadd.pm,v 1.100 2004/02/10 22:15:53 www Exp $
+# $Id: londropadd.pm,v 1.101 2004/02/11 15:30:36 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1365,7 +1365,28 @@
         $r->print('<p>'.$starttime.'</p>');
         return;
     }
+    #
     # Deal with date forms
+    my $current_date_description = '';
+    my $textdate = '';
+
+    if (! defined($starttime) || $starttime == 0) {
+        $current_date_description = &mt('Current Starting Date: not set').
+            '<br />';
+    } else {
+        $current_date_description = 
+            &mt('Current Starting Date: [_1]',
+                &Apache::lonlocal::locallocaltime($starttime)).'<br />';
+    }
+    if (! defined($endtime) || $endtime == 0) {
+        $current_date_description.= &mt('Current Ending Date: not set').
+            '<br />';
+    } else {
+        $current_date_description.= 
+            &mt('Current Ending Date: [_1]',
+                &Apache::lonlocal::locallocaltime($endtime)).'<br />';
+
+    }
     my $date_table = &date_setting_table($starttime,$endtime);
     #
     if (! exists($ENV{'form.Status'}) || 
@@ -1398,7 +1419,6 @@
 <input type="hidden" name="state"   value="done" />
 <input type="hidden" name="sortby"  value="$sortby" />
 <input type="hidden" name="Status"  value="$ENV{'form.Status'}" />
-
 <h2>$lt{'mef'} $info{'firstname'} $info{'middlename'} 
 $info{'lastname'} $info{'generation'}, $sname\@$sdom</h2>
 <p>
@@ -1417,8 +1437,9 @@
 <input type="checkbox" name="forceid" > 
 $lt{'disn'}
 </p><p>
-<b>$lt{'sec'}</b>: <input type="text" name="section" value="$section" size="4"/>
+<b>$lt{'sec'}</b>: <input type="text" name="section" value="$section" size="14"/>
 </p>
+<p>$current_date_description</p>
 <p>$date_table</p>
 <input type="submit" value="$lt{'sm'}" />
 </body></html>
Index: loncom/localize/localize/newphrases.txt
diff -u loncom/localize/localize/newphrases.txt:1.32 loncom/localize/localize/newphrases.txt:1.33
--- loncom/localize/localize/newphrases.txt:1.32	Wed Feb  4 10:29:06 2004
+++ loncom/localize/localize/newphrases.txt	Wed Feb 11 10:30:37 2004
@@ -37,3 +37,7 @@
 Online Help
 Report a Bug
 View the FAQ
+Current Starting Date: not set
+Current Starting Date: [_1]
+Current Ending Date: not set
+Current Ending Date: [_1]