version 1.353, 2013/11/17 14:40:31
|
version 1.358.2.1, 2015/05/11 17:18:36
|
Line 176 sub dragmath_js {
|
Line 176 sub dragmath_js {
|
function mathedit(textarea, doc) { |
function mathedit(textarea, doc) { |
targetEntry = textarea; |
targetEntry = textarea; |
targetDoc = doc; |
targetDoc = doc; |
newwin = window.open("/adm/dragmath/applet/$popup.html","","width=565,height=500,resizable"); |
newwin = window.open("/adm/dragmath/$popup.html","","width=565,height=500,resizable"); |
} |
} |
// ]]> |
// ]]> |
</script> |
</script> |
Line 482 the date/time fields are left empty.
|
Line 482 the date/time fields are left empty.
|
=item $state |
=item $state |
|
|
Specifies the initial state of the form elements. Either 'disabled' or empty. |
Specifies the initial state of the form elements. Either 'disabled' or empty. |
Defaults to empty, which indiciates the form elements are not disabled. |
Defaults to empty, which indicates the form elements are not disabled. |
|
|
|
=item $no_hh_mm_ss |
|
|
|
If true, text boxes for hours, minutes and seconds are omitted. |
|
|
|
=item $defhour |
|
|
|
Default value for hours (a default of 0 is used otherwise). |
|
|
|
=item $defmin |
|
|
|
Default value for minutes (a default of 0 is used otherwise). |
|
|
|
=item defsec |
|
|
|
Default value for seconds (a default of 0 is used otherwise). |
|
|
|
=item $nolink |
|
|
|
If true, a "Select calendar" link (to pop-up a calendar) is not displayed |
|
to the right of the items. |
|
|
|
=item $no_mm_ss |
|
|
|
If true, text boxes for minutes and seconds are omitted. |
|
|
|
=item $no_ss |
|
|
|
If true, text boxes for seconds are omitted. |
|
|
=back |
=back |
|
|
Line 496 The method used to restrict user input w
|
Line 525 The method used to restrict user input w
|
############################################## |
############################################## |
sub date_setter { |
sub date_setter { |
my ($formname,$dname,$currentvalue,$special,$includeempty,$state, |
my ($formname,$dname,$currentvalue,$special,$includeempty,$state, |
$no_hh_mm_ss,$defhour,$defmin,$defsec,$nolink) = @_; |
$no_hh_mm_ss,$defhour,$defmin,$defsec,$nolink,$no_mm_ss,$no_ss) = @_; |
my $now = time; |
my $now = time; |
|
|
my $tzname; |
my $tzname; |
Line 649 ENDJS
|
Line 678 ENDJS
|
$result .= &mt('[_1] [_2] [_3] ', |
$result .= &mt('[_1] [_2] [_3] ', |
$monthselector,$dayselector,$yearselector). |
$monthselector,$dayselector,$yearselector). |
$tzone; |
$tzone; |
if (!$nolink) { |
} elsif ($no_mm_ss) { |
$result .= &mt('[_1]Select Date[_2]',$cal_link,'</a>'); |
$result .= &mt('[_1] [_2] [_3] [_4]', |
} |
$monthselector,$dayselector,$yearselector, |
|
$hourselector). |
|
$tzone; |
|
} elsif ($no_ss) { |
|
$result .= &mt('[_1] [_2] [_3] [_4] [_5]m', |
|
$monthselector,$dayselector,$yearselector, |
|
$hourselector,$minuteselector). |
|
$tzone; |
} else { |
} else { |
$result .= &mt('[_1] [_2] [_3] [_4] [_5]m [_6]s ', |
$result .= &mt('[_1] [_2] [_3] [_4] [_5]m [_6]s ', |
$monthselector,$dayselector,$yearselector, |
$monthselector,$dayselector,$yearselector, |
$hourselector,$minuteselector,$secondselector). |
$hourselector,$minuteselector,$secondselector). |
$tzone; |
$tzone; |
if (!$nolink) { |
} |
$result .= &mt('[_1]Select Date[_2]',$cal_link,'</a>'); |
if (!$nolink) { |
} |
$result .= &mt('[_1]Select Date[_2]',$cal_link,'</a>'); |
} |
} |
$result .= "</span>\n<!-- end $dname date setting form -->\n"; |
$result .= "</span>\n<!-- end $dname date setting form -->\n"; |
return $result; |
return $result; |
Line 1227 ENDEDITOR
|
Line 1263 ENDEDITOR
|
<script type="text/javascript" src="/adm/jpicker/js/jpicker-1.1.6.min.js" > |
<script type="text/javascript" src="/adm/jpicker/js/jpicker-1.1.6.min.js" > |
</script> |
</script> |
<link rel="stylesheet" type="text/css" href="/adm/jpicker/css/jPicker-1.1.6.min.css" /> |
<link rel="stylesheet" type="text/css" href="/adm/jpicker/css/jPicker-1.1.6.min.css" /> |
<script type="text/javascript" src="/adm/countdown/js/jquery.countdown.js"></script> |
<script type="text/javascript" src="/adm/countdown/js/jquery.countdown.min.js"></script> |
<link rel="stylesheet" type="text/css" href="/adm/countdown/css/jquery.countdown.css" /> |
<link rel="stylesheet" type="text/css" href="/adm/countdown/css/jquery.countdown.css" /> |
|
|
<script type="text/javascript" src="/adm/spellchecker/js/jquery.spellchecker.min.js"></script> |
<script type="text/javascript" src="/adm/spellchecker/js/jquery.spellchecker.min.js"></script> |
Line 1706 returns: nothing
|
Line 1742 returns: nothing
|
my $links; |
my $links; |
if ((&show_return_link) && (!$CourseBreadcrumbs) && (ref($last) eq 'HASH')) { |
if ((&show_return_link) && (!$CourseBreadcrumbs) && (ref($last) eq 'HASH')) { |
my $alttext = &mt('Go Back'); |
my $alttext = &mt('Go Back'); |
|
my $hashref = { href => '/adm/flip?postdata=return:', |
|
title => &mt('Back to most recent content resource'), |
|
class => 'LC_menubuttons_link', |
|
}; |
|
if ($env{'request.noversionuri'} eq '/adm/searchcat') { |
|
$hashref->{'target'} = '_top'; |
|
} |
$links=&htmltag( 'a','<img src="/res/adm/pages/tolastloc.png" alt="'.$alttext.'" class="LC_icon" />', |
$links=&htmltag( 'a','<img src="/res/adm/pages/tolastloc.png" alt="'.$alttext.'" class="LC_icon" />', |
{ href => '/adm/flip?postdata=return:', |
$hashref); |
title => &mt('Back to most recent content resource'), |
|
class => 'LC_menubuttons_link', |
|
}); |
|
$links=&htmltag('li',$links); |
$links=&htmltag('li',$links); |
} |
} |
$links.= join "", |
$links.= join "", |
Line 3246 sub jump_to_editres {
|
Line 3286 sub jump_to_editres {
|
if ($forcereg) { |
if ($forcereg) { |
$cfile .= '&register=1'; |
$cfile .= '&register=1'; |
} |
} |
$jscall = "need_switchserver('$cfile');"; |
$jscall = "need_switchserver('".&Apache::loncommon::escape_single($cfile)."');"; |
} |
} |
} else { |
} else { |
unless ($cfile =~ m{^/priv/}) { |
unless ($cfile =~ m{^/priv/}) { |
Line 3277 sub jump_to_editres {
|
Line 3317 sub jump_to_editres {
|
$cfile .= (($cfile=~/\?/)?'&':'?').'todocs=1'; |
$cfile .= (($cfile=~/\?/)?'&':'?').'todocs=1'; |
} |
} |
} |
} |
$jscall = "go('$cfile')"; |
$jscall = "go('".&Apache::loncommon::escape_single($cfile)."')"; |
} |
} |
return $jscall; |
return $jscall; |
} |
} |
Line 3344 END
|
Line 3384 END
|
sub htmltag{ |
sub htmltag{ |
return |
return |
qq|<$_[0]| |
qq|<$_[0]| |
. join( '', map { qq| $_="${$_[2]}{$_}"| if ${$_[2]}{$_} } keys %{ $_[2] } ) |
. join( '', map { qq| $_="${$_[2]}{$_}"| if ${$_[2]}{$_} } keys(%{ $_[2] }) ) |
. ($_[1] ? qq|>$_[1]</$_[0]>| : qq|/>|). "\n"; |
. ($_[1] ? qq|>$_[1]</$_[0]>| : qq|/>|). "\n"; |
}; |
}; |
|
|
Line 3607 add_item_funclist
|
Line 3647 add_item_funclist
|
Inputs: ./. |
Inputs: ./. |
|
|
Returns: HTML code with function list end |
Returns: HTML code with function list end |
|
|
=cut |
=cut |
|
|
sub end_funclist { |
sub end_funclist { |
Line 3650 sub funclist_from_array {
|
Line 3691 sub funclist_from_array {
|
|
|
=pod |
=pod |
|
|
|
=over |
|
|
=item &actionbox( \@array ) |
=item &actionbox( \@array ) |
|
|
Constructs a XHTML list from \@array with the first item being visually |
Constructs a XHTML list from \@array with the first item being visually |
Line 3667 A reference to the array containing text
|
Line 3710 A reference to the array containing text
|
|
|
=back |
=back |
|
|
Returns: XHTML div as string. |
Returns: XHTML div as string. |
|
|
=back |
=back |
|
|