version 1.78, 2006/03/21 21:06:35
|
version 1.84, 2006/05/08 18:50:27
|
Line 208 sub texenginechanger {
|
Line 208 sub texenginechanger {
|
</form> |
</form> |
Examples: |
Examples: |
<p> TeX to HTML <br /> |
<p> TeX to HTML <br /> |
<iframe src="/res/adm/pages/math_example.tex?buttons=no&mode=tth" width="400" hieght="200"></iframe> |
<iframe src="/res/adm/pages/math_example.tex?inhibitmenu=yes&texengine=tth" width="400" hieght="200"></iframe> |
</p> |
</p> |
<p>jsMath <br /> |
<p>jsMath <br /> |
$jsMath_start |
$jsMath_start |
Line 228 if (jsMath.nofonts == 1) {
|
Line 228 if (jsMath.nofonts == 1) {
|
+'</font></small></div></center>'); |
+'</font></small></div></center>'); |
} |
} |
</script> |
</script> |
<iframe src="/res/adm/pages/math_example.tex?buttons=no&mode=jsMath" width="400" hieght="200"></iframe> |
<iframe src="/res/adm/pages/math_example.tex?inhibitmenu=yes&texengine=jsMath" width="400" hieght="200"></iframe> |
|
|
</p> |
</p> |
<p> Convert to Images <br /> |
<p> Convert to Images <br /> |
<br /> |
<br /> |
<iframe src="/res/adm/pages/math_example.tex?buttons=no&mode=mimetex" width="400" hieght="200"></iframe> |
<iframe src="/res/adm/pages/math_example.tex?inhibitmenu=yes&texengine=mimetex" width="400" hieght="200"></iframe> |
</p> |
</p> |
ENDLSCREEN |
ENDLSCREEN |
if ($env{'environment.texengine'} ne 'jsMath') { |
if ($env{'environment.texengine'} ne 'jsMath') { |
Line 306 People with very few roles should leave
|
Line 306 People with very few roles should leave
|
|
|
<form name="prefs" action="/adm/preferences" method="POST"> |
<form name="prefs" action="/adm/preferences" method="POST"> |
<input type="hidden" name="action" value="verify_and_change_rolespref" /> |
<input type="hidden" name="action" value="verify_and_change_rolespref" /> |
<br />Enable Recent Roles Hotlist: |
<br /><label>Enable Recent Roles Hotlist: |
<input type="checkbox" $checked name="recentroles" value="true" /> |
<input type="checkbox" $checked name="recentroles" value="true" /></label> |
<br />Number of roles in Hotlist: |
<br />Number of roles in Hotlist: |
<select name="recentrolesn" size="1"> |
<select name="recentrolesn" size="1"> |
$options |
$options |
Line 505 ENDVCMSG
|
Line 505 ENDVCMSG
|
sub colorschanger { |
sub colorschanger { |
my $r = shift; |
my $r = shift; |
# figure out colors |
# figure out colors |
my $function='student'; |
my $function=&Apache::loncommon::get_users_function(); |
if ($env{'request.role'}=~/^(cc|in|ta|ep)/) { |
|
$function='coordinator'; |
|
} |
|
if ($env{'request.role'}=~/^(su|dc|ad|li)/) { |
|
$function='admin'; |
|
} |
|
if (($env{'request.role'}=~/^(au|ca)/) || |
|
($ENV{'REQUEST_URI'}=~/^(\/priv|\~)/)) { |
|
$function='author'; |
|
} |
|
my $domain=&Apache::loncommon::determinedomain(); |
my $domain=&Apache::loncommon::determinedomain(); |
my %colortypes=('pgbg' => 'Page Background', |
my %colortypes=('pgbg' => 'Page Background', |
'tabbg' => 'Header Background', |
'tabbg' => 'Header Background', |
Line 524 sub colorschanger {
|
Line 514 sub colorschanger {
|
'link' => 'Un-Visited Link', |
'link' => 'Un-Visited Link', |
'vlink' => 'Visited Link', |
'vlink' => 'Visited Link', |
'alink' => 'Active Link'); |
'alink' => 'Active Link'); |
|
my $start_data_table = &Apache::loncommon::start_data_table(); |
my $chtable=''; |
my $chtable=''; |
foreach my $item (sort(keys(%colortypes))) { |
foreach my $item (sort(keys(%colortypes))) { |
my $curcol=&Apache::loncommon::designparm($function.'.'.$item,$domain); |
my $curcol=&Apache::loncommon::designparm($function.'.'.$item,$domain); |
$chtable.='<tr><td>'.$colortypes{$item}.'</td><td bgcolor="'.$curcol. |
$chtable.=&Apache::loncommon::start_data_table_row(). |
|
'<td>'.$colortypes{$item}.'</td><td style="background: '.$curcol. |
'"> </td><td><input name="'.$item. |
'"> </td><td><input name="'.$item. |
'" size="10" value="'.$curcol. |
'" size="10" value="'.$curcol. |
'" /></td><td><a href="javascript:pjump('."'color_custom','".$colortypes{$item}. |
'" /></td><td><a href="javascript:pjump('."'color_custom','".$colortypes{$item}. |
"','".$curcol."','" |
"','".$curcol."','" |
.$item."','parmform.pres','psub'".');">Select</a></td></tr>'; |
.$item."','parmform.pres','psub'".');">Select</a></td>'. |
|
&Apache::loncommon::end_data_table_row()."\n"; |
} |
} |
|
my $end_data_table = &Apache::loncommon::end_data_table(); |
my $pjump_def = &Apache::lonhtmlcommon::pjump_javascript_definition(); |
my $pjump_def = &Apache::lonhtmlcommon::pjump_javascript_definition(); |
$r->print(<<ENDCOL); |
$r->print(<<ENDCOL); |
<script> |
<script type="text/javascript"> |
|
|
function pclose() { |
function pclose() { |
parmwin=window.open("/adm/rat/empty.html","LONCAPAparms", |
parmwin=window.open("/adm/rat/empty.html","LONCAPAparms", |
Line 569 sub colorschanger {
|
Line 563 sub colorschanger {
|
</form> |
</form> |
<form name="prefs" action="/adm/preferences" method="POST"> |
<form name="prefs" action="/adm/preferences" method="POST"> |
<input type="hidden" name="action" value="verify_and_change_colors" /> |
<input type="hidden" name="action" value="verify_and_change_colors" /> |
<table border="2"> |
$start_data_table |
$chtable |
$chtable |
|
$end_data_table |
</table> |
</table> |
<input type="submit" value="Change Custom Colors" /> |
<input type="submit" value="Change Custom Colors" /> |
<input type="submit" name="resetall" value="Reset All Colors to Default" /> |
<input type="submit" name="resetall" value="Reset All Colors to Default" /> |
Line 581 ENDCOL
|
Line 576 ENDCOL
|
sub verify_and_change_colors { |
sub verify_and_change_colors { |
my $r = shift; |
my $r = shift; |
# figure out colors |
# figure out colors |
my $function='student'; |
my $function=&Apache::loncommon::get_users_function(); |
if ($env{'request.role'}=~/^(cc|in|ta|ep)/) { |
|
$function='coordinator'; |
|
} |
|
if ($env{'request.role'}=~/^(su|dc|ad|li)/) { |
|
$function='admin'; |
|
} |
|
if (($env{'request.role'}=~/^(au|ca)/) || |
|
($ENV{'REQUEST_URI'}=~/^(\/priv|\~)/)) { |
|
$function='author'; |
|
} |
|
my $domain=&Apache::loncommon::determinedomain(); |
my $domain=&Apache::loncommon::determinedomain(); |
my %colortypes=('pgbg' => 'Page Background', |
my %colortypes=('pgbg' => 'Page Background', |
'tabbg' => 'Header Background', |
'tabbg' => 'Header Background', |
Line 615 sub verify_and_change_colors {
|
Line 600 sub verify_and_change_colors {
|
$message.='Reset '.$colortypes{$item}.'<br />'; |
$message.='Reset '.$colortypes{$item}.'<br />'; |
} |
} |
} |
} |
|
my $now = time; |
|
&Apache::lonnet::put('environment',{'color.timestamp' => $now}); |
|
&Apache::lonnet::appenv('environment.color.timestamp' => $now); |
|
|
$r->print(<<ENDVCCOL); |
$r->print(<<ENDVCCOL); |
$message |
$message |
<form name="client" action="/adm/preferences" method="POST"> |
<form name="client" action="/adm/preferences" method="POST"> |
Line 893 sub discussionchanger {
|
Line 882 sub discussionchanger {
|
$lt{'sdpf'}<br/> $lt{'prca'} <ol><li>$lt{'whpo'}</li><li>$lt{'unwh'}</li></ol> |
$lt{'sdpf'}<br/> $lt{'prca'} <ol><li>$lt{'whpo'}</li><li>$lt{'unwh'}</li></ol> |
<br /> |
<br /> |
<br /> |
<br /> |
<table border="0" cellpadding="0" cellspacing="0"> |
END |
<tr> |
$r->print(&Apache::loncommon::start_data_table()); |
<td width="100%" bgcolor="#000000"> |
$r->print(<<"END"); |
<table width="100%" border="0" cellpadding="1" cellspacing="0"> |
<tr> |
<tr> |
<th>$lt{'pref'}</th> |
<td width="100%" bgcolor="#000000"> |
<th>$lt{'curr'}</th> |
<table border="0" cellpadding="3" cellspacing="3" bgcolor="#FFFFFF"> |
<th>$lt{'actn'}?</th> |
<tr bgcolor="$color"> |
|
<td><b>$lt{'pref'}</b></td> |
|
<td><b>$lt{'curr'}</b></td> |
|
<td><b>$lt{'actn'}?</b></td> |
|
</tr> |
</tr> |
<tr bgcolor="#dddddd"> |
END |
|
$r->print(&Apache::loncommon::start_data_table_row()); |
|
$r->print(<<"END"); |
<td>$lt{'disa'}</td> |
<td>$lt{'disa'}</td> |
<td>$lt{$discdisp}</td> |
<td>$lt{$discdisp}</td> |
<td><input type="checkbox" name="discdisp" /><input type="hidden" name="newdisp" value="$newdisp" /> $lt{'chgt'} "$dispchange"</td> |
<td><label><input type="checkbox" name="discdisp" /><input type="hidden" name="newdisp" value="$newdisp" /> $lt{'chgt'} "$dispchange"</label></td> |
</tr><tr bgcolor="#eeeeee"> |
END |
|
$r->print(&Apache::loncommon::end_data_table_row(). |
|
&Apache::loncommon::start_data_table_row()); |
|
$r->print(<<"END"); |
<td>$lt{'npmr'}</td> |
<td>$lt{'npmr'}</td> |
<td>$lt{$discmark}</td> |
<td>$lt{$discmark}</td> |
<td><input type="checkbox" name="discmark" /><input type="hidden" name="newmark" value="$newmark" /> $lt{'chgt'} "$markchange"</td> |
<td><label><input type="checkbox" name="discmark" /><input type="hidden" name="newmark" value="$newmark" /> $lt{'chgt'} "$markchange"</label></td> |
</tr> |
</tr> |
</table> |
END |
</td> |
$r->print(&Apache::loncommon::end_data_table_row(). |
</tr> |
&Apache::loncommon::end_data_table()); |
</table> |
$r->print(<<"END"); |
</td> |
|
</tr> |
|
</table> |
|
<br /> |
<br /> |
<br /> |
<br /> |
<input type="submit" name="sub" value="Store Changes" /> |
<input type="submit" name="sub" value="Store Changes" /> |
Line 1266 sub handler {
|
Line 1253 sub handler {
|
$help=$option->{'help'}; |
$help=$option->{'help'}; |
} |
} |
} |
} |
$r->print(&Apache::lonhtmlcommon::breadcrumbs |
$r->print(&Apache::lonhtmlcommon::breadcrumbs('Change Preferences',$help)); |
(undef,'Change Preferences',$help)); |
|
my $error; |
my $error; |
if (defined($call)) { |
if (defined($call)) { |
$error = $call->($r); |
$error = $call->($r); |