version 1.269, 2009/04/04 21:47:40
|
version 1.270, 2009/04/24 13:02:09
|
Line 110 sub list_discussion {
|
Line 110 sub list_discussion {
|
return $blocktext; |
return $blocktext; |
} |
} |
|
|
my @bgcols = ("#cccccc","#eeeeee"); |
my @bgcols = ("LC_disc_old_item","LC_disc_new_item"); |
my $discussiononly=0; |
my $discussiononly=0; |
if ($mode eq 'board') { $discussiononly=1; } |
if ($mode eq 'board') { $discussiononly=1; } |
unless ($env{'request.course.id'}) { return ''; } |
unless ($env{'request.course.id'}) { return ''; } |
Line 434 imscp_v1p1.xsd http://www.imsglobal.org/
|
Line 434 imscp_v1p1.xsd http://www.imsglobal.org/
|
} |
} |
</script> |
</script> |
|; |
|; |
$discussion.='<form name="readchoices" method="post" action="/adm/feedback?chgreads='.$ressymb.'" ><table bgcolor="#AAAAAA" cellpadding="2" cellspacing="2" border="0">'; |
$discussion.='<form name="readchoices" method="post" action="/adm/feedback?chgreads='.$ressymb.'" >'. |
|
"\n".'<table class="LC_discussion">'; |
$discussion .= &action_links_bar($colspan,$ressymb,$visible, |
$discussion .= &action_links_bar($colspan,$ressymb,$visible, |
$newpostsflag,$group, |
$newpostsflag,$group, |
$prevread,$markondisp); |
$prevread,$markondisp); |
Line 547 imscp_v1p1.xsd http://www.imsglobal.org/
|
Line 548 imscp_v1p1.xsd http://www.imsglobal.org/
|
} |
} |
$copyresult.=&replicate_attachments($imsitems{$alldiscussion{$post}}{'allattachments'},$tempexport); |
$copyresult.=&replicate_attachments($imsitems{$alldiscussion{$post}}{'allattachments'},$tempexport); |
} else { |
} else { |
$discussion.='<td bgcolor="'.$bgcols[$newitem{$alldiscussion{$post}}]. |
$discussion.='<td class="'.$bgcols[$newitem{$alldiscussion{$post}}]. |
'" colspan="'.$colspan.'">'. $discussionitems[$alldiscussion{$post}]. |
'" colspan="'.$colspan.'">'. $discussionitems[$alldiscussion{$post}]. |
'</td></tr>'; |
'</td></tr>'; |
} |
} |
Line 557 imscp_v1p1.xsd http://www.imsglobal.org/
|
Line 558 imscp_v1p1.xsd http://www.imsglobal.org/
|
my $colspan=$maxdepth+1; |
my $colspan=$maxdepth+1; |
$discussion .= <<END; |
$discussion .= <<END; |
<tr bgcolor="#FFFFFF"> |
<tr bgcolor="#FFFFFF"> |
<td colspan="$colspan" valign="top"> |
<td colspan="$colspan" class="LC_disc_action_links_bar"> |
<table border="0" bgcolor="#FFFFFF" width="100%" cellspacing="2" cellpadding="2"> |
<table class="LC_disc_action_table"> |
<tr> |
<tr> |
<td align="left"> |
<td align="left"> |
<table border="0" cellpadding="0" cellspacing="4"> |
<table border="0" cellpadding="0" cellspacing="4"> |
Line 772 sub send_message_link {
|
Line 773 sub send_message_link {
|
|
|
sub action_links_bar { |
sub action_links_bar { |
my ($colspan,$ressymb,$visible,$newpostsflag,$group,$prevread,$markondisp) = @_; |
my ($colspan,$ressymb,$visible,$newpostsflag,$group,$prevread,$markondisp) = @_; |
my $discussion = '<tr><td bgcolor="#DDDDBB" colspan="'.$colspan.'">'. |
my $discussion = '<tr><td class="LC_disc_action_links_bar" colspan="'.$colspan.'">'. |
'<table border="0" width="100%" bgcolor="#DDDDBB"><tr>'; |
'<table width="100%" class="LC_disc_action_table"><tr>'; |
my $escsymb=&escape($ressymb); |
my $escsymb=&escape($ressymb); |
if ($visible>2) { |
if ($visible>2) { |
$discussion .= '<td align="left">'. |
$discussion .= '<td class="LC_disc_action_left">'. |
'<a href="/adm/feedback?cmd=threadedon&symb='.$escsymb; |
'<a href="/adm/feedback?cmd=threadedon&symb='.$escsymb; |
if ($newpostsflag) { |
if ($newpostsflag) { |
$discussion .= '&previous='.$prevread; |
$discussion .= '&previous='.$prevread; |
Line 796 sub action_links_bar {
|
Line 797 sub action_links_bar {
|
$discussion .= &group_args($group); |
$discussion .= &group_args($group); |
$discussion .='">'.&mt('Sorting/Filtering options').'</a>'.(' ' x2); |
$discussion .='">'.&mt('Sorting/Filtering options').'</a>'.(' ' x2); |
} else { |
} else { |
$discussion .= '<td align="left">'; |
$discussion .= '<td class="LC_disc_action_left>'; |
} |
} |
$discussion .='<a href= "/adm/feedback?export='.$escsymb; |
$discussion .='<a href= "/adm/feedback?export='.$escsymb; |
if ($newpostsflag) { |
if ($newpostsflag) { |
Line 806 sub action_links_bar {
|
Line 807 sub action_links_bar {
|
$discussion .= '">'.&mt('Export').'?</a> </td>'; |
$discussion .= '">'.&mt('Export').'?</a> </td>'; |
if ($newpostsflag) { |
if ($newpostsflag) { |
if (!$markondisp) { |
if (!$markondisp) { |
$discussion .='<td align="right"><a href="/adm/preferences?action=changediscussions'; |
$discussion .='<td class="LC_disc_action_right"><a href="/adm/preferences?action=changediscussions'; |
$discussion .= &group_args($group); |
$discussion .= &group_args($group); |
$discussion .= '">'. |
$discussion .= '">'. |
&mt('Preferences on what is marked as NEW'). |
&mt('Preferences on what is marked as NEW'). |