[LON-CAPA-cvs] cvs: loncom /interface londocs.pm
ehlerst
ehlerst@source.lon-capa.org
Wed, 04 Feb 2009 14:45:51 -0000
ehlerst Wed Feb 4 14:45:51 2009 EDT
Modified files:
/loncom/interface londocs.pm
Log:
implemented another maintab which contains additional options.
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.336 loncom/interface/londocs.pm:1.337
--- loncom/interface/londocs.pm:1.336 Wed Feb 4 13:03:44 2009
+++ loncom/interface/londocs.pm Wed Feb 4 14:45:51 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: londocs.pm,v 1.336 2009/02/04 13:03:44 schafran Exp $
+# $Id: londocs.pm,v 1.337 2009/02/04 14:45:51 ehlerst Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2872,8 +2872,19 @@
$containertag = '<input type="hidden" name="folderpath" value="" />';
$uploadtag = '<input type="hidden" name="folderpath" value="'.&HTML::Entities::encode($folderpath,'<>&"').'" />';
}
-
- $r->print(&generate_admin_options($containertag,$uploadtag,\%lt,\%help,\%env));
+ $r->print(<<HIDDENFORM);
+ <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>
+HIDDENFORM
}
# --------------------------------------------------------- Main tab structure
my $activeClass = 1;
@@ -2893,6 +2904,7 @@
}
$r->print('<li '.$active.'onclick="javascript:showPage(this,\'Supplemental Course Documents\',\'mainnav\',\'maincoursedoc\');">'.&mt('Supplemental Course Documents').'</li>');
}
+ $r->print('<li onclick="javascript:showPage(this,\'Special Admin Options\',\'mainnav\',\'maincoursedoc\');">'.&mt('Special Admin Options').'</li>');
$r->print('</ul><div id="maincoursedoc" style="margin:0 0;padding:0 0;">');
# --------------------------------------------------------- Standard documents
if (($standard) && ($allowed) && (!$forcesupplement)) {
@@ -3264,9 +3276,12 @@
if ($error) {
$r->print('<p><span class="LC_error">'.$error.'</span></p>');
}
-$r->print('</div)');
+$r->print('</div>');
}
}
+$r->print('<div class="LC_ContentBox" id="Special Admin Options" style="display: none;">');
+$r->print(&generate_admin_options($containertag,$uploadtag,\%help,\%env));
+$r->print('</div>');
$r->print('</div>');
if ($allowed) {
$r->print('
@@ -3292,24 +3307,18 @@
}
sub generate_admin_options {
- my ($containertag,$uploadtag,$lt_ref,$help_ref,$env_ref) = @_;
- my %lt = %{$lt_ref};
+ my ($containertag,$uploadtag,$help_ref,$env_ref) = @_;
+ my %lt=&Apache::lonlocal::texthash(
+ 'vc' => 'Verify Content',
+ 'cv' => 'Check/Set Resource Versions',
+ 'ls' => 'List Symbs',
+ 'sl' => 'Show Log'
+ );
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>
@@ -3333,7 +3342,7 @@
</li>
</ul>
</form>
- <div style="clear: both; height: 0px;"> </div>
+<!-- <div style="clear: both; height: 0px;"> </div>-->
ENDOPTIONFORM
}