version 1.1042, 2011/12/21 18:01:58
|
version 1.1047, 2011/12/25 20:41:53
|
Line 6314 ul.LC_TabContent li.active a {
|
Line 6314 ul.LC_TabContent li.active a {
|
background:#FFFFFF; |
background:#FFFFFF; |
outline: none; |
outline: none; |
} |
} |
|
|
|
ul.LC_TabContent li.goback { |
|
float: left; |
|
border-left: none; |
|
} |
|
|
#maincoursedoc { |
#maincoursedoc { |
clear:both; |
clear:both; |
} |
} |
Line 6563 a#LC_content_toolbar_changefolder_toggle
|
Line 6569 a#LC_content_toolbar_changefolder_toggle
|
background-image:url(/res/adm/pages/open-all-folders.gif); |
background-image:url(/res/adm/pages/open-all-folders.gif); |
} |
} |
|
|
|
a#LC_content_toolbar_edittoplevel { |
|
background-image:url(/res/adm/pages/edittoplevel.gif); |
|
} |
|
|
ul#LC_toolbar li a:hover { |
ul#LC_toolbar li a:hover { |
background-position: bottom center; |
background-position: bottom center; |
} |
} |
Line 6969 sub end_page {
|
Line 6979 sub end_page {
|
|
|
sub wishlist_window { |
sub wishlist_window { |
return(<<'ENDWISHLIST'); |
return(<<'ENDWISHLIST'); |
<script type="text/javascript" lang="javascript"> |
<script type="text/javascript"> |
// <![CDATA[ |
// <![CDATA[ |
// <!-- BEGIN LON-CAPA Internal |
// <!-- BEGIN LON-CAPA Internal |
function set_wishlistlink(title, path) { |
function set_wishlistlink(title, path) { |
Line 6991 ENDWISHLIST
|
Line 7001 ENDWISHLIST
|
|
|
sub modal_window { |
sub modal_window { |
return(<<'ENDMODAL'); |
return(<<'ENDMODAL'); |
<script type="text/javascript" lang="javascript"> |
<script type="text/javascript"> |
// <![CDATA[ |
// <![CDATA[ |
// <!-- BEGIN LON-CAPA Internal |
// <!-- BEGIN LON-CAPA Internal |
var modalWindow = { |
var modalWindow = { |
Line 7046 sub modal_link {
|
Line 7056 sub modal_link {
|
sub modal_adhoc_script { |
sub modal_adhoc_script { |
my ($funcname,$width,$height,$content)=@_; |
my ($funcname,$width,$height,$content)=@_; |
return (<<ENDADHOC); |
return (<<ENDADHOC); |
<script type="text/javascript" lang="javascript"> |
<script type="text/javascript"> |
// <![CDATA[ |
// <![CDATA[ |
var $funcname = function() |
var $funcname = function() |
{ |
{ |
Line 7142 sub end_togglebox {
|
Line 7152 sub end_togglebox {
|
} |
} |
|
|
sub LCprogressbar_script { |
sub LCprogressbar_script { |
|
my ($id)=@_; |
return(<<ENDPROGRESS); |
return(<<ENDPROGRESS); |
<script type="text/javascript"> |
<script type="text/javascript"> |
// <![CDATA[ |
// <![CDATA[ |
var LCprogressTxt='---'; |
\$('#progressbar$id').progressbar({ |
|
|
\$('#progressbar').progressbar({ |
|
value: 0, |
value: 0, |
change: function(event, ui) { |
change: function(event, ui) { |
var newVal = \$(this).progressbar('option', 'value'); |
var newVal = \$(this).progressbar('option', 'value'); |
Line 7167 sub LCprogressbarUpdate_script {
|
Line 7176 sub LCprogressbarUpdate_script {
|
</style> |
</style> |
<script type="text/javascript"> |
<script type="text/javascript"> |
// <![CDATA[ |
// <![CDATA[ |
function LCupdateProgress(percent,progresstext) { |
var LCprogressTxt='---'; |
|
|
|
function LCupdateProgress(percent,progresstext,id) { |
LCprogressTxt=progresstext; |
LCprogressTxt=progresstext; |
\$('#progressbar').progressbar('value',percent); |
\$('#progressbar'+id).progressbar('value',percent); |
} |
} |
// ]]> |
// ]]> |
</script> |
</script> |
Line 7177 ENDPROGRESSUPDATE
|
Line 7188 ENDPROGRESSUPDATE
|
} |
} |
|
|
my $LClastpercent; |
my $LClastpercent; |
|
my $LCidcnt; |
|
my $LCcurrentid; |
|
|
sub LCprogressbar { |
sub LCprogressbar { |
my ($r)=(@_); |
my ($r)=(@_); |
$LClastpercent=0; |
$LClastpercent=0; |
|
$LCidcnt++; |
|
$LCcurrentid=$$.'_'.$LCidcnt; |
my $starting=&mt('Starting'); |
my $starting=&mt('Starting'); |
my $content=(<<ENDPROGBAR); |
my $content=(<<ENDPROGBAR); |
<p> |
<p> |
<div id="progressbar"> |
<div id="progressbar$LCcurrentid"> |
<span class="pblabel">$starting</span> |
<span class="pblabel">$starting</span> |
</div> |
</div> |
</p> |
</p> |
ENDPROGBAR |
ENDPROGBAR |
$r->print($content.&LCprogressbar_script()); |
&r_print($r,$content.&LCprogressbar_script($LCcurrentid)); |
$r->rflush(); |
|
} |
} |
|
|
sub LCprogressbarUpdate { |
sub LCprogressbarUpdate { |
Line 7207 sub LCprogressbarUpdate {
|
Line 7221 sub LCprogressbarUpdate {
|
$LClastpercent=$val; |
$LClastpercent=$val; |
unless ($text) { $text=$val.'%'; } |
unless ($text) { $text=$val.'%'; } |
$text=&js_ready($text); |
$text=&js_ready($text); |
$r->print(<<ENDUPDATE); |
&r_print($r,<<ENDUPDATE); |
<script type="text/javascript"> |
<script type="text/javascript"> |
// <![CDATA[ |
// <![CDATA[ |
LCupdateProgress($val,'$text'); |
LCupdateProgress($val,'$text','$LCcurrentid'); |
// ]]> |
// ]]> |
</script> |
</script> |
ENDUPDATE |
ENDUPDATE |
$r->rflush(); |
|
} |
} |
|
|
sub LCprogressbarClose { |
sub LCprogressbarClose { |
my ($r)=@_; |
my ($r)=@_; |
$LClastpercent=0; |
$LClastpercent=0; |
$r->print(<<ENDCLOSE); |
&r_print($r,<<ENDCLOSE); |
<script type="text/javascript"> |
<script type="text/javascript"> |
// <![CDATA[ |
// <![CDATA[ |
\$("#progressbar").hide('slow'); |
\$("#progressbar$LCcurrentid").hide('slow'); |
// ]]> |
// ]]> |
</script> |
</script> |
ENDCLOSE |
ENDCLOSE |
$r->rflush(); |
} |
|
|
|
sub r_print { |
|
my ($r,$to_print)=@_; |
|
if ($r) { |
|
$r->print($to_print); |
|
$r->rflush(); |
|
} else { |
|
print($to_print); |
|
} |
} |
} |
|
|
sub html_encode { |
sub html_encode { |
Line 7237 sub html_encode {
|
Line 7259 sub html_encode {
|
|
|
return $result; |
return $result; |
} |
} |
|
|
sub js_ready { |
sub js_ready { |
my ($result) = @_; |
my ($result) = @_; |
|
|