version 1.4, 2009/05/12 21:20:42
|
version 1.6, 2009/08/23 17:21:22
|
Line 49 sub print_header {
|
Line 49 sub print_header {
|
my $alert = &mt('You must select at least one functionality type to display.'); |
my $alert = &mt('You must select at least one functionality type to display.'); |
my $js = ' |
my $js = ' |
<script type="text/javascript"> |
<script type="text/javascript"> |
|
// <![CDATA[ |
|
|
function changePage(formname,newphase) { |
function changePage(formname,newphase) { |
formname.phase.value = newphase; |
formname.phase.value = newphase; |
numchecked = 0; |
numchecked = 0; |
Line 81 function changePage(formname,newphase) {
|
Line 83 function changePage(formname,newphase) {
|
$js .= &color_pick_js()."\n"; |
$js .= &color_pick_js()."\n"; |
} |
} |
$js .= &Apache::loncommon::viewport_size_js().' |
$js .= &Apache::loncommon::viewport_size_js().' |
|
|
|
// ]]> |
</script> |
</script> |
'; |
'; |
if ($jscript) { |
if ($jscript) { |
Line 124 sub print_footer {
|
Line 128 sub print_footer {
|
$env{'form.width'}.'" />'. |
$env{'form.width'}.'" />'. |
'<input type="hidden" name="height" value="'. |
'<input type="hidden" name="height" value="'. |
$env{'form.height'}.'" />'); |
$env{'form.height'}.'" />'); |
|
if (defined($env{'form.origin'})) { |
|
$r->print('<input type="hidden" name="origin" value="'.$env{'form.origin'}.'" />'."\n"); |
|
} |
if (($phase eq 'display') || ($phase eq 'process')) { |
if (($phase eq 'display') || ($phase eq 'process')) { |
if (ref($actions) eq 'ARRAY') { |
if (ref($actions) eq 'ARRAY') { |
foreach my $item (@{$actions}) { |
foreach my $item (@{$actions}) { |
Line 300 sub display_choices {
|
Line 307 sub display_choices {
|
} |
} |
my %helphash; |
my %helphash; |
&print_header($r,$phase,$context); |
&print_header($r,$phase,$context); |
$r->print('<h3>'.&mt('Functionality to display/modify').'</h3>'); |
$r->print('<h3>'.&mt('Settings to display/modify').'</h3>'); |
$r->print('<script type="text/javascript">'."\n". |
$r->print('<script type="text/javascript">'."\n". |
|
'// <![CDATA['."\n". |
&Apache::loncommon::check_uncheck_jscript()."\n". |
&Apache::loncommon::check_uncheck_jscript()."\n". |
|
'// ]]>'."\n". |
'</script>'."\n".'<p><input type="button" value="'.&mt('check all').'" '. |
'</script>'."\n".'<p><input type="button" value="'.&mt('check all').'" '. |
'onclick="javascript:checkAll(document.pickactions.actions)"'. |
'onclick="javascript:checkAll(document.pickactions.actions)"'. |
' />'.(' 'x2). |
' />'.(' 'x2). |