version 1.14, 2005/10/27 18:19:36
|
version 1.16, 2006/03/23 23:17:46
|
Line 156 sub handler {
|
Line 156 sub handler {
|
# does this user have privileges to post, etc? |
# does this user have privileges to post, etc? |
my $allowed=&Apache::lonnet::allowed('mdc',$env{'request.course.id'}); |
my $allowed=&Apache::lonnet::allowed('mdc',$env{'request.course.id'}); |
unless ($allowed) { |
unless ($allowed) { |
$r->print("<html><head><title>The LearningOnline Network with CAPA</title></head>"); |
$r->print(&Apache::loncommon::start_page('Import IMS package',undef, |
$r->print(&Apache::loncommon::bodytag('Import IMS package',undef,'',1)); |
{'only_body' => 1,})); |
$r->print('<h3>'.&mt('Modification of Course Contents Disallowed').'</h3>'.&mt('Your current role does not grant you the right to modify course content in this course.').'</body></html>'); |
$r->print('<h3>'.&mt('Modification of Course Contents Disallowed').'</h3>'.&mt('Your current role does not grant you the right to modify course content in this course.'). |
|
&Apache::loncommon::end_page()); |
return OK; |
return OK; |
} |
} |
|
|
Line 173 sub handler {
|
Line 174 sub handler {
|
&jscript_three(\$javascript); |
&jscript_three(\$javascript); |
} |
} |
|
|
|
$javascript = |
|
"<script type=\"text/javascript\">\n". |
|
"//<!--\n$javascript\n// --></script>\n"; |
|
my $start_page = &Apache::loncommon::start_page('Import IMS package', |
|
$javascript, |
|
{'only_body' => 1,}); |
# print screen |
# print screen |
$r->print(<<ENDHEAD); |
$r->print($start_page); |
<html> |
|
<head> |
|
<title>The LearningOnline Network with CAPA</title> |
|
<script type="text/javascript"> |
|
<!-- |
|
$javascript |
|
--> |
|
</script> |
|
</head> |
|
ENDHEAD |
|
# -------------------------------------------------------------------- Body tag |
|
$r->print(&Apache::loncommon::bodytag('Import IMS package',undef,'',1)); |
|
if ($env{'form.phase'} eq 'one') { |
if ($env{'form.phase'} eq 'one') { |
&display_one($r); |
&display_one($r); |
} elsif ($env{'form.phase'} eq 'two') { |
} elsif ($env{'form.phase'} eq 'two') { |
Line 194 ENDHEAD
|
Line 190 ENDHEAD
|
} elsif ($env{'form.phase'} eq 'three') { |
} elsif ($env{'form.phase'} eq 'three') { |
&display_three($r,$coursenum,$coursedom,$uname,$udom,\@areas,%cmsmap); |
&display_three($r,$coursenum,$coursedom,$uname,$udom,\@areas,%cmsmap); |
} |
} |
$r->print("</body><html>"); |
$r->print(&Apache::loncommon::end_page()); |
return OK; |
return OK; |
} |
} |
|
|
Line 230 sub display_one {
|
Line 226 sub display_one {
|
<font face='Arial,Helvetica,sans-serif'> |
<font face='Arial,Helvetica,sans-serif'> |
Please choose the CMS used to create your IMS content package. |
Please choose the CMS used to create your IMS content package. |
<select name="source"> |
<select name="source"> |
<option value='-1' selected="true">Please select |
<option value='-1' selected="true">Please select</option> |
<option value='bb5'>Blackboard 5 |
<option value='bb5'>Blackboard 5</option> |
<option value='bb6'>Blackboard 6 |
<option value='bb6'>Blackboard 6</option> |
<option value='angel'>ANGEL |
<option value='angel'>ANGEL</option> |
<option value='webct4'>WebCT 4 |
<option value='webct4'>WebCT 4</option> |
</select> |
</select> |
</font> |
</font> |
</td> |
</td> |
Line 278 Please choose the CMS used to create you
|
Line 274 Please choose the CMS used to create you
|
<table border='0' cellspacing='0' cellpadding='0' width="100%"> |
<table border='0' cellspacing='0' cellpadding='0' width="100%"> |
<tr> |
<tr> |
<td align='left'> |
<td align='left'> |
<input type="button" name="exitpage" value="Exit now" onClick="javascript:self.close()"> |
<input type="button" name="exitpage" value="Exit now" onClick="javascript:self.close()" /> |
</td> |
</td> |
<td align='right'> |
<td align='right'> |
<input type="button" name="nextpage" value="Upload IMS package" onClick="javascript:nextPage()"> |
<input type="button" name="nextpage" value="Upload IMS package" onClick="javascript:nextPage()" /> |
</td> |
</td> |
</tr> |
</tr> |
</table> |
</table> |
Line 403 ENDBLOCK
|
Line 399 ENDBLOCK
|
if ($area eq 'board') { |
if ($area eq 'board') { |
$r->print(" <td align='left'><font face='arial,helvetica,sans-serif'> |
$r->print(" <td align='left'><font face='arial,helvetica,sans-serif'> |
<select name='db_handling'> |
<select name='db_handling'> |
<option value='-2'><-- Check Import first |
<option value='-2'><-- Check Import first</option> |
</select></font> |
</select></font> |
</td>"); |
</td>"); |
} elsif ($area eq 'users') { |
} elsif ($area eq 'users') { |
$r->print(" <td align='left'><font face='arial,helvetica,sans-serif'> |
$r->print(" <td align='left'><font face='arial,helvetica,sans-serif'> |
<select name='user_handling'> |
<select name='user_handling'> |
<option value='-2'><-- Check Import first |
<option value='-2'><-- Check Import first</option> |
</select> |
</select> |
</font> |
</font> |
</td>"); |
</td>"); |
Line 449 ENDBLOCK
|
Line 445 ENDBLOCK
|
<td> |
<td> |
<table border='0'> |
<table border='0'> |
<tr> |
<tr> |
<td><font face='arial,helvetica,sans-serif'><input type="radio" name="toplevel" value="newfolder" />Display listing of contents in a new folder, with folder name: <input type="text" name="foldername" size="15" value="Type Name Here" /></font></td> |
<td><font face='arial,helvetica,sans-serif'><label><input type="radio" name="toplevel" value="newfolder" />Display listing of contents in a new folder, with folder name:</label> <input type="text" name="foldername" size="15" value="Type Name Here" /></font></td> |
</tr> |
</tr> |
<tr> |
<tr> |
<td><font face='arial,helvetica,sans-serif'><input type="radio" name="toplevel" value="oldfolder" />Append listing of contents of top level of package to contents list for the current folder.</font></td> |
<td><font face='arial,helvetica,sans-serif'><label><input type="radio" name="toplevel" value="oldfolder" />Append listing of contents of top level of package to contents list for the current folder.</label></font></td> |
</tr> |
</tr> |
</table> |
</table> |
</td> |
</td> |
Line 477 ENDBLOCK
|
Line 473 ENDBLOCK
|
<table border='0' cellspacing='0' cellpadding='0' width="100%"> |
<table border='0' cellspacing='0' cellpadding='0' width="100%"> |
<tr> |
<tr> |
<td align='left'> |
<td align='left'> |
<input type='button' name='exitpage' value='Exit now' onClick="javascript:self.close()"> |
<input type='button' name='exitpage' value='Exit now' onClick="javascript:self.close()" /> |
</td> |
</td> |
<td align='right'> |
<td align='right'> |
<input type="button" name="nextpage" value="Complete Import" onClick="javascript:nextPage($counter)"> |
<input type="button" name="nextpage" value="Complete Import" onClick="javascript:nextPage($counter)" /> |
</td> |
</td> |
</tr> |
</tr> |
</table> |
</table> |
Line 690 ENDBLOCK
|
Line 686 ENDBLOCK
|
<input type="hidden" name="$env{'request.role'}" value="1" /> |
<input type="hidden" name="$env{'request.role'}" value="1" /> |
<input type="button" value="|; |
<input type="button" value="|; |
$initblock .= &mt('re-initializing course'); |
$initblock .= &mt('re-initializing course'); |
$initblock .= qq|" onClick="javascript:init(this.form)"/>|; |
$initblock .= qq|" onClick="javascript:init(this.form)" />|; |
$initblock .= ', '.&mt('or the next time you log in.'); |
$initblock .= ', '.&mt('or the next time you log in.'); |
$initblock .= qq|</font></h3></form>|; |
$initblock .= qq|</font></h3></form>|; |
$r->print($initblock); |
$r->print($initblock); |