version 1.45, 2006/01/16 21:24:29
|
version 1.48, 2006/03/23 22:32:10
|
Line 64 $help
|
Line 64 $help
|
<tr><td>$lt{'end'}:</td><td>$enddateform</td></tr></table> |
<tr><td>$lt{'end'}:</td><td>$enddateform</td></tr></table> |
<textarea name="msg" rows="4" cols="60">$text</textarea> |
<textarea name="msg" rows="4" cols="60">$text</textarea> |
<br /> |
<br /> |
<!-- <label><input type="checkbox" name="rsspost" /> $lt{'incrss'}</label> --> |
<label><input type="checkbox" name="rsspost" /> $lt{'incrss'}</label> |
<br /><input type="button" onClick="trysubmit()" value="$lt{'post'}" /><hr /> |
<br /><input type="button" onClick="trysubmit()" value="$lt{'post'}" /><hr /> |
ENDFORM |
ENDFORM |
} |
} |
Line 366 sub handler {
|
Line 366 sub handler {
|
'dlsav' => -1 )); |
'dlsav' => -1 )); |
my $weekday=$firstday{'weekday'}; |
my $weekday=$firstday{'weekday'}; |
# ------------------------------------------------------------ Print the screen |
# ------------------------------------------------------------ Print the screen |
my $html=&Apache::lonxml::xmlbegin(); |
my $js = <<ENDDOCUMENT; |
$r->print(<<ENDDOCUMENT); |
<script type="text/javascript"> |
$html |
|
<head> |
|
<title>The LearningOnline Network with CAPA</title> |
|
<script> |
|
|
|
function trysubmit() { |
function trysubmit() { |
document.anno.action.value="new"; |
document.anno.action.value="new"; |
Line 383 $html
|
Line 379 $html
|
document.anno.submit(); |
document.anno.submit(); |
} |
} |
</script> |
</script> |
</head> |
|
ENDDOCUMENT |
ENDDOCUMENT |
|
|
if ($pickdatemode) { |
if ($pickdatemode) { |
# no big header in pickdate mode |
# no big header in pickdate mode |
$r->print(&Apache::loncommon::bodytag("Pick a Date",'','',1). |
$r->print(&Apache::loncommon::start_page("Pick a Date",$js, |
|
{'only_body' => 1,}). |
&dialscript(). |
&dialscript(). |
'<font size="1">'); |
'<font size="1">'); |
} else { |
} else { |
$r->print(&Apache::loncommon::bodytag("Announcements and Calendar")); |
$r->print(&Apache::loncommon::start_page("Announcements and Calendar", |
|
$js)); |
} |
} |
# does this user have privileges to post, etc? |
# does this user have privileges to post, etc? |
my $allowed=0; |
my $allowed=0; |
Line 507 SERVERANNOUNCE
|
Line 505 SERVERANNOUNCE
|
if (($year<1970) || ($year>2037)) { |
if (($year<1970) || ($year>2037)) { |
$r->print('<h3>No calendar available for this date.</h3>'. |
$r->print('<h3>No calendar available for this date.</h3>'. |
'<a href="/adm/announcements?month='.$todayhash{'month'}. |
'<a href="/adm/announcements?month='.$todayhash{'month'}. |
'&year='.$todayhash{'year'}.'">Current Month</a></body></html>'); |
'&year='.$todayhash{'year'}.'">Current Month</a>'. |
|
&Apache::loncommon::end_page()); |
return OK; |
return OK; |
} |
} |
$r->print( |
$r->print( |
Line 572 SERVERANNOUNCE
|
Line 571 SERVERANNOUNCE
|
' <a href="/adm/announcements?month='.$todayhash{'month'}. |
' <a href="/adm/announcements?month='.$todayhash{'month'}. |
'&year='.$todayhash{'year'}. |
'&year='.$todayhash{'year'}. |
($pickdatemode?$pickinfo:'').'">'.&mt('Current Month').'</a></p>'. |
($pickdatemode?$pickinfo:'').'">'.&mt('Current Month').'</a></p>'. |
($pickdatemode?'</font>':''). |
($pickdatemode?'</font>':'').&Apache::loncommon::end_page()); |
'</body></html>'); |
|
return OK; |
return OK; |
} |
} |
|
|