version 1.482, 2012/04/16 19:31:57
|
version 1.483, 2012/05/06 22:09:14
|
Line 437 sub log_docs {
|
Line 437 sub log_docs {
|
sub docs_change_log { |
sub docs_change_log { |
my ($r)=@_; |
my ($r)=@_; |
my $folder=$env{'form.folder'}; |
my $folder=$env{'form.folder'}; |
$r->print(&Apache::loncommon::start_page('Course Document Change Log')); |
my $js = '<script type="text/javascript">'."\n". |
|
'// <![CDATA['."\n". |
|
&Apache::loncommon::display_filter_js('docslog')."\n". |
|
&history_tab_js()."\n". |
|
'// ]]>'."\n". |
|
'</script>'."\n"; |
|
$r->print(&Apache::loncommon::start_page('Course Document Change Log',$js)); |
$r->print(&Apache::lonhtmlcommon::breadcrumbs('Course Document Change Log')); |
$r->print(&Apache::lonhtmlcommon::breadcrumbs('Course Document Change Log')); |
my %docslog=&Apache::lonnet::dump('nohist_docslog', |
my %docslog=&Apache::lonnet::dump('nohist_docslog', |
$env{'course.'.$env{'request.course.id'}.'.domain'}, |
$env{'course.'.$env{'request.course.id'}.'.domain'}, |
Line 461 sub docs_change_log {
|
Line 467 sub docs_change_log {
|
'randomorder' => 'Randomly ordered', |
'randomorder' => 'Randomly ordered', |
'set' => 'set to', |
'set' => 'set to', |
'del' => 'deleted'); |
'del' => 'deleted'); |
$r->print(&Apache::loncommon::display_filter(). |
$r->print(&Apache::loncommon::display_filter('docslog'). |
'<input type="hidden" name="folder" value="'.$folder.'" />'. |
'<input type="hidden" name="folder" value="'.$folder.'" />'. |
'<input type="submit" value="'.&mt('Display').'" /></form>'); |
'<input type="submit" value="'.&mt('Display').'" /></form>'); |
$r->print(&Apache::loncommon::start_data_table().&Apache::loncommon::start_data_table_header_row(). |
$r->print(&Apache::loncommon::start_data_table().&Apache::loncommon::start_data_table_header_row(). |
Line 3582 function toContents(jumpto) {
|
Line 3588 function toContents(jumpto) {
|
ENDNEWSCRIPT |
ENDNEWSCRIPT |
} |
} |
|
|
|
sub history_tab_js { |
|
return <<"ENDHIST"; |
|
function toggleHistoryDisp(choice) { |
|
document.docslogform.docslog.value = choice; |
|
document.docslogform.submit(); |
|
return; |
|
} |
|
|
|
ENDHIST |
|
} |
|
|
sub resize_contentdiv_js { |
sub resize_contentdiv_js { |
my ($tabidstr) = @_; |
my ($tabidstr) = @_; |
my $viewport_js = &Apache::loncommon::viewport_geometry_js(); |
my $viewport_js = &Apache::loncommon::viewport_geometry_js(); |