[LON-CAPA-cvs] cvs: loncom /interface loncreateuser.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Thu, 29 Jun 2006 17:41:14 -0000
albertel Thu Jun 29 13:41:14 2006 EDT
Modified files:
/loncom/interface loncreateuser.pm
Log:
- reverting 1.126
Index: loncom/interface/loncreateuser.pm
diff -u loncom/interface/loncreateuser.pm:1.126 loncom/interface/loncreateuser.pm:1.127
--- loncom/interface/loncreateuser.pm:1.126 Thu Jun 29 13:38:44 2006
+++ loncom/interface/loncreateuser.pm Thu Jun 29 13:41:06 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Create a user
#
-# $Id: loncreateuser.pm,v 1.126 2006/06/29 17:38:44 albertel Exp $
+# $Id: loncreateuser.pm,v 1.127 2006/06/29 17:41:06 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -340,7 +340,7 @@
}
function setType() {
- var crstype = 'Course'
+ var crstype = document.cu.crstype.options[document.cu.crstype.selectedIndex].value;
rolevals = new Array("$rolevalslist");
if (crstype == 'Group') {
if (document.cu.currsec.options[0].text == "$pickcrsfirst") {
@@ -1883,7 +1883,7 @@
'<input type="hidden" name="origdom" value="'.$dcdom.'" />'.
'<input type="hidden" name="dccourse" value="" />';
my $courseform='<b>'.&Apache::loncommon::selectcourse_link
- ('cu','dccourse','dcdomain','coursedesc',undef,undef,'Course').'</b>';
+ ('cu','dccourse','dcdomain','coursedesc',undef,undef,'Course/Group').'</b>';
my $cb_jscript = &Apache::loncommon::coursebrowser_javascript($dcdom);
my %lt=&Apache::lonlocal::texthash(
'typ' => "Type",
@@ -1896,9 +1896,14 @@
'ssd' => "Set Start Date",
'sed' => "Set End Date"
);
- my $header = '<h4>'.&mt('Course Level').'</h4>'.
- '<table border="2"><tr><th>'.$courseform.'</th><th>'.$lt{'rol'}.'</th><th>'.$lt{'grs'}.'</th><th>'.$lt{'sta'}.'</th><th>'.$lt{'end'}.'</th></tr>';
- my $otheritems = '<tr><td><input type="text" name="coursedesc" value="" onFocus="this.blur();opencrsbrowser('."'cu','dccourse','dcdomain','coursedesc',".')" /></td>'."\n".
+ my $header = '<h4>'.&mt('Course/Group Level').'</h4>'.
+ '<table border="2"><tr><th>'.$lt{'typ'}.'</th><th>'.$courseform.'</th><th>'.$lt{'rol'}.'</th><th>'.$lt{'grs'}.'</th><th>'.$lt{'sta'}.'</th><th>'.$lt{'end'}.'</th></tr>';
+ my $otheritems = '<tr><td><select name="crstype" onChange="javascript:setType();">'."\n".
+ ' <option value="">'.&mt('Please select')."\n".
+ ' <option value="Course">'.&mt('Course')."\n".
+ ' <option value="Group">'.&mt('Group')."\n".
+ '</select>'."\n".
+ '<td><input type="text" name="coursedesc" value="" onFocus="this.blur();opencrsbrowser('."'cu','dccourse','dcdomain','coursedesc','".')" /></td>'."\n".
'<td><select name="role">'."\n";
foreach ('st','ta','ep','in','cc') {
my $plrole=&Apache::lonnet::plaintext($_);