version 1.6, 2005/11/20 19:37:44
|
version 1.10, 2006/03/16 19:56:21
|
Line 138 sub changestatus {
|
Line 138 sub changestatus {
|
} |
} |
} |
} |
|
|
|
sub changed_js { |
|
return <<ENDSCRIPT; |
|
<script type="text/javascript"> |
|
function changed(tform,id) { |
|
tform.elements[id+"_modified"].checked=true; |
|
} |
|
</script> |
|
ENDSCRIPT |
|
} |
|
|
sub handler { |
sub handler { |
my $r = shift; |
my ($r) = @_; |
|
|
my $edit=0; |
my $edit=0; |
my $html=0; |
my $html=0; |
Line 165 sub handler {
|
Line 175 sub handler {
|
my $feedname=&feedname($filename); |
my $feedname=&feedname($filename); |
my $displayfeedname=&displayfeedname($filename,$uname,$udom); |
my $displayfeedname=&displayfeedname($filename,$uname,$udom); |
if ($html) { |
if ($html) { |
$r->print(&Apache::lonxml::xmlbegin().&Apache::loncommon::bodytag |
$r->print(&Apache::lonxml::xmlbegin(). |
($displayfeedname,'','','',$udom, |
&Apache::loncommon::head($displayfeedname). |
$env{'form.register'}).<<ENDSCRIPT); |
&Apache::loncommon::bodytag($displayfeedname,'','','',$udom, |
<script> |
$env{'form.register'}). |
function changed(tform,id) { |
&changed_js()); |
tform.elements[id+"_modified"].checked=true; |
|
} |
|
</script> |
|
ENDSCRIPT |
|
} else { |
} else { |
$r->print("<rss version='2.0' xmlns:dc='http://purl.org/dc/elements/1.1'>\n<channel>". |
$r->print("<rss version='2.0' xmlns:dc='http://purl.org/dc/elements/1.1'>\n<channel>". |
"\n<link>http://".$ENV{'HTTP_HOST'}.'/public/'.$udom.'/'.$uname.'/'. |
"\n<link>http://".$ENV{'HTTP_HOST'}.'/public/'.$udom.'/'.$uname.'/'. |
Line 264 ENDEDIT
|
Line 271 ENDEDIT
|
} |
} |
} |
} |
} |
} |
$r->print("\n".($html?'</ul>'.($edit?'<input type="submit" value="'.&mt('Store Marked Changes').'" /></form>':'').'</body></html>':'</channel></rss>'."\n")); |
$r->print("\n".($html?'</ul>'.($edit?'<input type="submit" value="'.&mt('Store Marked Changes').'" /></form>':'').&Apache::loncommon::end_page():'</channel></rss>'."\n")); |
return OK; |
return OK; |
} |
} |
1; |
1; |