version 1.206, 2005/09/20 07:52:03
|
version 1.208, 2005/11/04 20:52:35
|
Line 1215 sub editor {
|
Line 1215 sub editor {
|
$r->print('<table>'); |
$r->print('<table>'); |
foreach (@Apache::lonratedt::order) { |
foreach (@Apache::lonratedt::order) { |
my ($name,$url)=split(/\:/,$Apache::lonratedt::resources[$_]); |
my ($name,$url)=split(/\:/,$Apache::lonratedt::resources[$_]); |
|
$name=&Apache::lonratsrv::qtescape($name); |
|
$url=&Apache::lonratsrv::qtescape($url); |
unless ($name) { $name=(split(/\//,$url))[-1]; } |
unless ($name) { $name=(split(/\//,$url))[-1]; } |
unless ($name) { $idx++; next; } |
unless ($name) { $idx++; next; } |
$r->print(&entryline($idx,$name,$url,$folder,$allowed,$_,$coursenum)); |
$r->print(&entryline($idx,$name,$url,$folder,$allowed,$_,$coursenum)); |
Line 1719 sub checkonthis {
|
Line 1721 sub checkonthis {
|
|
|
|
|
# |
# |
|
# ----------------------------------------------------------------- List Symbs |
|
# |
|
sub list_symbs { |
|
my $r=shift; |
|
my $html=&Apache::lonxml::xmlbegin(); |
|
$r->print($html.'<head><title>Symb List</title></head>'. |
|
&Apache::loncommon::bodytag('Symb List')); |
|
my $navmap = Apache::lonnavmaps::navmap->new(); |
|
$r->print("<pre>\n"); |
|
foreach my $res ($navmap->retrieveResources()) { |
|
$r->print($res->compTitle()."\t".$res->symb()."\n"); |
|
} |
|
$r->print("\n</pre>\n"); |
|
$r->print('<a href="/adm/coursedocs">'.&mt('Return to DOCS').'</a>'); |
|
} |
|
|
|
|
|
# |
# -------------------------------------------------------------- Verify Content |
# -------------------------------------------------------------- Verify Content |
# |
# |
sub verifycontent { |
sub verifycontent { |
Line 2085 sub handler {
|
Line 2105 sub handler {
|
|
|
if ($env{'form.verify'}) { |
if ($env{'form.verify'}) { |
&verifycontent($r); |
&verifycontent($r); |
|
} elsif ($env{'form.listsymbs'}) { |
|
&list_symbs($r); |
} elsif ($env{'form.versions'}) { |
} elsif ($env{'form.versions'}) { |
&checkversions($r); |
&checkversions($r); |
} elsif ($env{'form.dumpcourse'}) { |
} elsif ($env{'form.dumpcourse'}) { |
Line 2452 ENDNEWSCRIPT
|
Line 2474 ENDNEWSCRIPT
|
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', |
|
'ls' => 'List Symbs', |
); |
); |
|
|
my $folderpath=$env{'form.folderpath'}; |
my $folderpath=$env{'form.folderpath'}; |
Line 2486 $uploadtag
|
Line 2509 $uploadtag
|
<input type="submit" name="versions" value="$lt{'cv'}" />$help{'Check_Resource_Versions'} |
<input type="submit" name="versions" value="$lt{'cv'}" />$help{'Check_Resource_Versions'} |
$dumpbut |
$dumpbut |
$exportbut |
$exportbut |
</td></tr></table> |
</td><!-- <td bgcolor="#DDDDCC"> |
|
<input type="submit" name="listsymbs" value="$lt{'ls'}" /> |
|
</td>--></tr></table> |
</form> |
</form> |
ENDCOURSEVERIFY |
ENDCOURSEVERIFY |
$r->print(&Apache::loncommon::help_open_topic('Docs_Adding_Course_Doc', |
$r->print(&Apache::loncommon::help_open_topic('Docs_Adding_Course_Doc', |