version 1.326, 2009/01/28 11:51:22
|
version 1.328, 2009/01/28 13:24:54
|
Line 119 sub dumpbutton {
|
Line 119 sub dumpbutton {
|
my $type = &Apache::loncommon::course_type();
|
my $type = &Apache::loncommon::course_type();
|
if ($home+$other==0) { return ''; }
|
if ($home+$other==0) { return ''; }
|
if ($home) {
|
if ($home) {
|
return '<div>'.
|
return '<input type="submit" name="dumpcourse" value="'.
|
'<input type="submit" name="dumpcourse" value="'.
|
|
&mt('Dump '.$type.' DOCS to Construction Space').'" />'.
|
&mt('Dump '.$type.' DOCS to Construction Space').'" />'.
|
&Apache::loncommon::help_open_topic('Docs_Dump_Course_Docs').
|
&Apache::loncommon::help_open_topic('Docs_Dump_Course_Docs');
|
'</div>';
|
|
} else {
|
} else {
|
return '<div>'.
|
return '<div>'.
|
&mt('Dump '.$type.
|
&mt('Dump '.$type.
|
Line 264 sub dumpcourse {
|
Line 262 sub dumpcourse {
|
|
|
sub exportbutton {
|
sub exportbutton {
|
my $type = &Apache::loncommon::course_type();
|
my $type = &Apache::loncommon::course_type();
|
return '<div>'.
|
return '<input type="submit" name="exportcourse" value="'.
|
'<input type="submit" name="exportcourse" value="'.
|
|
&mt('Export '.$type.' to IMS').'" />'.
|
&mt('Export '.$type.' to IMS').'" />'.
|
&Apache::loncommon::help_open_topic('Docs_Export_Course_Docs').'</div>';
|
&Apache::loncommon::help_open_topic('Docs_Export_Course_Docs');
|
}
|
}
|
|
|
|
|
Line 2856 ERFORM
|
Line 2853 ERFORM
|
|
|
if ($allowed) {
|
if ($allowed) {
|
&update_paste_buffer($coursenum,$coursedom);
|
&update_paste_buffer($coursenum,$coursedom);
|
my $dumpbut=&dumpbutton();
|
|
my $exportbut=&exportbutton();
|
|
my %lt=&Apache::lonlocal::texthash(
|
my %lt=&Apache::lonlocal::texthash(
|
'vc' => 'Verify Content',
|
'vc' => 'Verify Content',
|
'cv' => 'Check/Set Resource Versions',
|
'cv' => 'Check/Set Resource Versions',
|
Line 2877 ERFORM
|
Line 2872 ERFORM
|
$containertag = '<input type="hidden" name="folderpath" value="" />';
|
$containertag = '<input type="hidden" name="folderpath" value="" />';
|
$uploadtag = '<input type="hidden" name="folderpath" value="'.&HTML::Entities::encode($folderpath,'<>&"').'" />';
|
$uploadtag = '<input type="hidden" name="folderpath" value="'.&HTML::Entities::encode($folderpath,'<>&"').'" />';
|
}
|
}
|
|
$r->print(&generate_admin_options($containertag,$uploadtag,\%lt,\%help,\%env));
|
$r->print(<<ENDCOURSEVERIFY);
|
|
<form name="renameform" method="post" action="/adm/coursedocs">
|
|
<input type="hidden" name="title" />
|
|
<input type="hidden" name="cmd" />
|
|
<input type="hidden" name="markcopy" />
|
|
<input type="hidden" name="copyfolder" />
|
|
$containertag
|
|
</form>
|
|
<form name="simpleedit" method="post" action="/adm/coursedocs">
|
|
<input type="hidden" name="importdetail" value="" />
|
|
$uploadtag
|
|
</form>
|
|
<form action="/adm/coursedocs" method="post" name="courseverify">
|
|
<div class="LC_docs_course_commands">
|
|
|
|
<div>
|
|
<input type="submit" name="verify" value="$lt{'vc'}" />$help{'Verify_Content'}
|
|
</div>
|
|
<div>
|
|
<input type="submit" name="versions" value="$lt{'cv'}" />$help{'Check_Resource_Versions'}
|
|
</div>
|
|
$dumpbut
|
|
$exportbut
|
|
<div>
|
|
<input type="submit" name="listsymbs" value="$lt{'ls'}" />
|
|
</div>
|
|
<div>
|
|
<input type="hidden" name="folder" value="$env{'form.folder'}" />
|
|
<input type="submit" name="docslog" value="$lt{'sl'}" />
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<div style="clear: both; height: 0px;"> </div>
|
|
ENDCOURSEVERIFY
|
|
$r->print(&Apache::loncommon::help_open_topic('Docs_Adding_Course_Doc',
|
$r->print(&Apache::loncommon::help_open_topic('Docs_Adding_Course_Doc',
|
&mt('Editing the Table of Contents for your '.$type)));
|
&mt('Editing the Table of Contents for your '.$type)));
|
}
|
}
|
Line 3347 ENDSUPFORM
|
Line 3308 ENDSUPFORM
|
return OK;
|
return OK;
|
}
|
}
|
|
|
|
sub generate_admin_options {
|
|
my ($containertag,$uploadtag,$lt_ref,$help_ref,$env_ref) = @_;
|
|
my %lt = %{$lt_ref};
|
|
my %help = %{$help_ref};
|
|
my %env = %{$env_ref};
|
|
my $dumpbut=&dumpbutton();
|
|
my $exportbut=&exportbutton();
|
|
return (<<ENDOPTIONFORM);
|
|
<form name="renameform" method="post" action="/adm/coursedocs">
|
|
<input type="hidden" name="title" />
|
|
<input type="hidden" name="cmd" />
|
|
<input type="hidden" name="markcopy" />
|
|
<input type="hidden" name="copyfolder" />
|
|
$containertag
|
|
</form>
|
|
<form name="simpleedit" method="post" action="/adm/coursedocs">
|
|
<input type="hidden" name="importdetail" value="" />
|
|
$uploadtag
|
|
</form>
|
|
<form action="/adm/coursedocs" method="post" name="courseverify">
|
|
<ul style="list-style-type:none">
|
|
<li>
|
|
<input type="submit" name="verify" value="$lt{'vc'}" />$help{'Verify_Content'}
|
|
</li>
|
|
<li>
|
|
<input type="submit" name="versions" value="$lt{'cv'}" />$help{'Check_Resource_Versions'}
|
|
</li>
|
|
<li>
|
|
$dumpbut
|
|
</li>
|
|
<li>
|
|
$exportbut
|
|
</li>
|
|
<li>
|
|
<input type="submit" name="listsymbs" value="$lt{'ls'}" />
|
|
</li>
|
|
<li>
|
|
<input type="hidden" name="folder" value="$env{'form.folder'}" />
|
|
<input type="submit" name="docslog" value="$lt{'sl'}" />
|
|
</li>
|
|
</ul>
|
|
</form>
|
|
<div style="clear: both; height: 0px;"> </div>
|
|
ENDOPTIONFORM
|
|
}
|
|
|
|
sub generate_edit_table {
|
|
my ($optionhash_ref,$namehash_ref,$orderhash_ref) = @_;
|
|
my %optionhash = %{$optionhash_ref}; #id verlinkt mit inhalt
|
|
my %namehash = %{$namehash_ref}; #name verlinkt mit id
|
|
my %orderhash = %{$orderhash_ref}; #name mit kürzel verlinkt mit name
|
|
my $form;
|
|
$form = '<div class="LC_ContentBoxSpecial"><h4 class="LC_hcell">'.&mt('Upload Course Documents').'<h4>';
|
|
$form .= '<ul class="LC_TabContent">';
|
|
foreach my $name (sort(keys(%orderhash))){
|
|
if($name eq 'zz_hide'){
|
|
$form .= '<li><a onclick="hideAllSection();" href="#">'.&mt($orderhash{$name}).'</a></li>';
|
|
}else{
|
|
$form .= '<li><a onclick="popUpSection(\''.$namehash{$orderhash{$name}}.'\');" href="#">'.&mt($orderhash{$name}).'</a></li>';
|
|
}
|
|
}
|
|
foreach my $field (keys(%optionhash)){
|
|
$form .= '<div id="'.$field.'" class="LC_ContentBox LC_hideThis">'.$optionhash{$field}.'</div>';
|
|
}
|
|
$form .= '</div>';
|
|
return $form;
|
|
}
|
|
|
sub editing_js {
|
sub editing_js {
|
my ($udom,$uname) = @_;
|
my ($udom,$uname) = @_;
|