version 1.126, 2006/06/29 17:38:44
|
version 1.128, 2006/07/02 12:18:01
|
Line 340 sub print_user_modification_page {
|
Line 340 sub print_user_modification_page {
|
} |
} |
|
|
function setType() { |
function setType() { |
var crstype = 'Course' |
var crstype = document.cu.crstype.options[document.cu.crstype.selectedIndex].value; |
rolevals = new Array("$rolevalslist"); |
rolevals = new Array("$rolevalslist"); |
if (crstype == 'Group') { |
if (crstype == 'Group') { |
if (document.cu.currsec.options[0].text == "$pickcrsfirst") { |
if (document.cu.currsec.options[0].text == "$pickcrsfirst") { |
Line 378 ENDSCRIPT
|
Line 378 ENDSCRIPT
|
var str = document.cu.elements[i].name; |
var str = document.cu.elements[i].name; |
var checkcurr = str.match(re1); |
var checkcurr = str.match(re1); |
if (checkcurr != null) { |
if (checkcurr != null) { |
var re2 = /^currsec_[a-zA-Z0-9]+_[a-zA-Z0-9]+_(\\w+)\$/; |
|
if (document.cu.elements[i-1].checked == true) { |
if (document.cu.elements[i-1].checked == true) { |
var re2 = /^currsec_[a-zA-Z0-9]+_[a-zA-Z0-9]+_(\\w+)\$/; |
var re2 = /^currsec_[a-zA-Z0-9]+_[a-zA-Z0-9]+_(\\w+)\$/; |
match = re2.exec(str); |
match = re2.exec(str); |
Line 439 ENDSCRIPT
|
Line 438 ENDSCRIPT
|
} |
} |
} |
} |
} |
} |
document.cu.elements[i+2].value = sections; |
|
} |
} |
|
document.cu.elements[i+2].value = sections; |
} |
} |
} |
} |
} |
} |
Line 1883 sub course_level_dc {
|
Line 1882 sub course_level_dc {
|
'<input type="hidden" name="origdom" value="'.$dcdom.'" />'. |
'<input type="hidden" name="origdom" value="'.$dcdom.'" />'. |
'<input type="hidden" name="dccourse" value="" />'; |
'<input type="hidden" name="dccourse" value="" />'; |
my $courseform='<b>'.&Apache::loncommon::selectcourse_link |
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 $cb_jscript = &Apache::loncommon::coursebrowser_javascript($dcdom); |
my %lt=&Apache::lonlocal::texthash( |
my %lt=&Apache::lonlocal::texthash( |
'typ' => "Type", |
'typ' => "Type", |
Line 1896 sub course_level_dc {
|
Line 1895 sub course_level_dc {
|
'ssd' => "Set Start Date", |
'ssd' => "Set Start Date", |
'sed' => "Set End Date" |
'sed' => "Set End Date" |
); |
); |
my $header = '<h4>'.&mt('Course Level').'</h4>'. |
my $header = '<h4>'.&mt('Course/Group 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>'; |
'<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><input type="text" name="coursedesc" value="" onFocus="this.blur();opencrsbrowser('."'cu','dccourse','dcdomain','coursedesc',".')" /></td>'."\n". |
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"; |
'<td><select name="role">'."\n"; |
foreach ('st','ta','ep','in','cc') { |
foreach ('st','ta','ep','in','cc') { |
my $plrole=&Apache::lonnet::plaintext($_); |
my $plrole=&Apache::lonnet::plaintext($_); |