version 1.251, 2006/11/13 17:20:29
|
version 1.252, 2006/11/13 22:32:56
|
Line 1027 sub log_docs {
|
Line 1027 sub log_docs {
|
my ($plain)=@_; |
my ($plain)=@_; |
my %storehash=('folder' => $plain); |
my %storehash=('folder' => $plain); |
if ($parmidx) { |
if ($parmidx) { |
$storehash{'parameter_idx'}=$parmidx; |
|
$storehash{'parameter_res'}=$oldresources[$parmidx]; |
$storehash{'parameter_res'}=$oldresources[$parmidx]; |
foreach my $parm (keys %parmaction) { |
foreach my $parm (keys %parmaction) { |
$storehash{'parameter_action_'.$parm}=$parmaction{$parm}; |
$storehash{'parameter_action_'.$parm}=$parmaction{$parm}; |
Line 1045 sub log_docs {
|
Line 1044 sub log_docs {
|
$changedflag=1; |
$changedflag=1; |
} |
} |
if ($LONCAPA::map::order[$idx] ne $oldorder[$idx]) { |
if ($LONCAPA::map::order[$idx] ne $oldorder[$idx]) { |
$storehash{'before_order_'.$idx}=$oldorder[$idx]; |
$storehash{'before_order_res_'.$idx}=$oldresources[$oldorder[$idx]]; |
$storehash{'after_order_'.$idx}=$LONCAPA::map::order[$idx]; |
$storehash{'after_order_res_'.$idx}=$LONCAPA::map::resources[$LONCAPA::map::order[$idx]]; |
$storehash{'before_order_res_'.$idx}=$oldresources[$idx]; |
|
$storehash{'after_order_res_'.$idx}=$LONCAPA::map::resources[$idx]; |
|
$changedflag=1; |
$changedflag=1; |
} |
} |
} |
} |
Line 1125 sub docs_change_log {
|
Line 1122 sub docs_change_log {
|
my $oldname=(split(/\:/,$docslog{$id}{'logentry'}{'before_resources_'.$idx}))[0]; |
my $oldname=(split(/\:/,$docslog{$id}{'logentry'}{'before_resources_'.$idx}))[0]; |
my $newname=(split(/\:/,$docslog{$id}{'logentry'}{'after_resources_'.$idx}))[0]; |
my $newname=(split(/\:/,$docslog{$id}{'logentry'}{'after_resources_'.$idx}))[0]; |
if ($oldname ne $newname) { |
if ($oldname ne $newname) { |
$r->print(&LONCAPA::map::qtunescape($oldname)); |
$r->print(&LONCAPA::map::qtescape($oldname)); |
} |
} |
} |
} |
|
$r->print('<ul>'); |
|
for (my $idx=0;$idx<=$docslog{$id}{'logentry'}{'maxidx'};$idx++) { |
|
if ($docslog{$id}{'logentry'}{'before_order_res_'.$idx}) { |
|
$r->print('<li>'.&LONCAPA::map::qtescape((split(/\:/,$docslog{$id}{'logentry'}{'before_order_res_'.$idx}))[0]).'</li>'); |
|
} |
|
} |
|
$r->print('</ul>'); |
# After |
# After |
$r->print('</td><td>'); |
$r->print('</td><td>'); |
|
|
Line 1135 sub docs_change_log {
|
Line 1139 sub docs_change_log {
|
my $oldname=(split(/\:/,$docslog{$id}{'logentry'}{'before_resources_'.$idx}))[0]; |
my $oldname=(split(/\:/,$docslog{$id}{'logentry'}{'before_resources_'.$idx}))[0]; |
my $newname=(split(/\:/,$docslog{$id}{'logentry'}{'after_resources_'.$idx}))[0]; |
my $newname=(split(/\:/,$docslog{$id}{'logentry'}{'after_resources_'.$idx}))[0]; |
if ($oldname ne $newname) { |
if ($oldname ne $newname) { |
$r->print(&LONCAPA::map::qtunescape($newname)); |
$r->print(&LONCAPA::map::qtescape($newname)); |
} |
} |
} |
} |
|
$r->print('<ul>'); |
|
for (my $idx=0;$idx<=$docslog{$id}{'logentry'}{'maxidx'};$idx++) { |
|
if ($docslog{$id}{'logentry'}{'after_order_res_'.$idx}) { |
|
$r->print('<li>'.&LONCAPA::map::qtescape((split(/\:/,$docslog{$id}{'logentry'}{'after_order_res_'.$idx}))[0]).'</li>'); |
|
} |
|
} |
|
$r->print('</ul>'); |
|
if ($docslog{$id}{'logentry'}{'parameter_res'}) { |
|
$r->print(&LONCAPA::map::qtescape((split(/\:/,$docslog{$id}{'logentry'}{'parameter_res'}))[0]).':<ul>'); |
|
foreach my $parameter ('randompick','hiddenresource','encrypturl]') { |
|
if ($docslog{$id}{'logentry'}{'parameter_action_'.$parameter}) { |
|
$r->print('<li>'.$parameter.' '.$docslog{$id}{'logentry'}{'parameter_action_'.$parameter}.' '. |
|
$docslog{$id}{'logentry'}{'parameter_value_'.$parameter}.'</li>'); |
|
} |
|
} |
|
$r->print('</ul>'); |
|
} |
# End |
# End |
$r->print('</td>'.&Apache::loncommon::end_data_table_row()); |
$r->print('</td>'.&Apache::loncommon::end_data_table_row()); |
$shown++; |
$shown++; |