version 1.130, 2006/08/16 19:47:42
|
version 1.131, 2006/11/09 22:25:27
|
Line 313 sub print_user_modification_page {
|
Line 313 sub print_user_modification_page {
|
alert("Section designations do not apply to Course Coordinator roles.\\nA course coordinator role will be added with access to all sections."); |
alert("Section designations do not apply to Course Coordinator roles.\\nA course coordinator role will be added with access to all sections."); |
section = ""; |
section = ""; |
} |
} |
|
var coursename = "_$dcdom"+"_"+course+"_"+userrole |
var numcourse = getIndex(document.cu.dccourse); |
var numcourse = getIndex(document.cu.dccourse); |
if (numcourse == "-1") { |
if (numcourse == "-1") { |
alert("There was a problem with your course selection"); |
alert("There was a problem with your course selection"); |
return |
return |
} |
} |
else { |
else { |
var coursename = "_$dcdom"+"_"+course+"_"+userrole |
document.cu.elements[numcourse].name = "act"+coursename; |
document.cu.elements[numcourse].name = "act"+coursename |
var numnewsec = getIndex(document.cu.newsec); |
document.cu.elements[numcourse+5].name = "sec"+coursename |
if (numnewsec != "-1") { |
document.cu.elements[numcourse+5].value = section |
document.cu.elements[numnewsec].name = "sec"+coursename; |
document.cu.elements[numcourse+7].name = "start"+coursename |
document.cu.elements[numnewsec].value = section; |
document.cu.elements[numcourse+8].name = "end"+coursename |
} |
|
var numstart = getIndex(document.cu.start); |
|
if (numstart != "-1") { |
|
document.cu.elements[numstart].name = "start"+coursename; |
|
} |
|
var numend = getIndex(document.cu.end); |
|
if (numend != "-1") { |
|
document.cu.elements[numend].name = "end"+coursename |
|
} |
} |
} |
} |
} |
document.cu.submit(); |
document.cu.submit(); |
Line 1503 sub custom_role_editor {
|
Line 1512 sub custom_role_editor {
|
} |
} |
my %lt=&Apache::lonlocal::texthash( |
my %lt=&Apache::lonlocal::texthash( |
'prv' => "Privilege", |
'prv' => "Privilege", |
'crl' => "Course/Group Level", |
'crl' => "Course Level", |
'dml' => "Domain Level", |
'dml' => "Domain Level", |
'ssl' => "System Level" |
'ssl' => "System Level" |
); |
); |
Line 1653 sub course_level_table {
|
Line 1662 sub course_level_table {
|
'new' => "Define new section", |
'new' => "Define new section", |
'ssd' => "Set Start Date", |
'ssd' => "Set Start Date", |
'sed' => "Set End Date", |
'sed' => "Set End Date", |
'crl' => "Course/Group Level", |
'crl' => "Course Level", |
'act' => "Activate", |
'act' => "Activate", |
'rol' => "Role", |
'rol' => "Role", |
'ext' => "Extent", |
'ext' => "Extent", |
Line 1798 sub course_level_dc {
|
Line 1807 sub course_level_dc {
|
my %customroles=&my_custom_roles(); |
my %customroles=&my_custom_roles(); |
my $hiddenitems = '<input type="hidden" name="dcdomain" value="'.$dcdom.'" />'. |
my $hiddenitems = '<input type="hidden" name="dcdomain" value="'.$dcdom.'" />'. |
'<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="'.$dcdom.'" />'; |
my $courseform='<b>'.&Apache::loncommon::selectcourse_link |
my $courseform='<b>'.&Apache::loncommon::selectcourse_link |
('cu','dccourse','dcdomain','coursedesc',undef,undef,'Course/Group').'</b>'; |
('cu','dccourse','dcdomain','coursedesc',undef,undef,'Course').'</b>'; |
my $cb_jscript = &Apache::loncommon::coursebrowser_javascript($dcdom); |
my $cb_jscript = &Apache::loncommon::coursebrowser_javascript($dcdom,'currsec','cu'); |
my %lt=&Apache::lonlocal::texthash( |
my %lt=&Apache::lonlocal::texthash( |
'typ' => "Type", |
'typ' => "Type", |
'rol' => "Role", |
'rol' => "Role", |
Line 1813 sub course_level_dc {
|
Line 1822 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/Group Level').'</h4>'. |
my $header = '<h4>'.&mt('Course 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>'; |
'<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". |
my $otheritems = '<tr><td><select name="crstype" onChange="javascript:setType();">'."\n". |
' <option value="">'.&mt('Please select')."\n". |
' <option value="">'.&mt('Please select')."\n". |
' <option value="Course">'.&mt('Course')."\n". |
' <option value="Course">'.&mt('Course')."\n". |
' <option value="Group">'.&mt('Group')."\n". |
' <option value="Non-standard course">'.&mt('Non-standard course')."\n". |
'</select>'."\n". |
'</select>'."\n". |
'<td><input type="text" name="coursedesc" value="" onFocus="this.blur();opencrsbrowser('."'cu','dccourse','dcdomain','coursedesc','".')" /></td>'."\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($_); |