version 1.211, 2006/07/18 17:42:15
|
version 1.213, 2006/07/27 15:48:56
|
Line 713 END
|
Line 713 END
|
if ($discussiononly) { |
if ($discussiononly) { |
my $now = time; |
my $now = time; |
my $attachnum = 0; |
my $attachnum = 0; |
my $currnewattach; |
my $currnewattach = []; |
my $currdelold; |
my $currdelold = []; |
my $comment = ''; |
my $comment = ''; |
my $subject = ''; |
my $subject = ''; |
if ($env{'form.origpage'}) { |
if ($env{'form.origpage'}) { |
Line 1683 END
|
Line 1683 END
|
} |
} |
} |
} |
if ($attachmsg) { |
if ($attachmsg) { |
$r->print("<b>Retained attachments</b>:$attachmsg<br />\n"); |
$r->print("<br /><b>Retained attachments</b>:$attachmsg<br />\n"); |
} |
} |
if ($newattachmsg) { |
if ($newattachmsg) { |
$r->print("$newattachmsg<br />"); |
$r->print("$newattachmsg<br />"); |
Line 1930 sub print_sortfilter_options {
|
Line 1930 sub print_sortfilter_options {
|
unshift(@sections,'all'); # Put 'all' at the front of the list |
unshift(@sections,'all'); # Put 'all' at the front of the list |
|
|
} |
} |
foreach (@sections) { |
foreach my $sec (@sections) { |
$section_sel .= " <option value=\"$_\" />$_\n"; |
$section_sel .= " <option value=\"$sec\">$sec</option>\n"; |
} |
} |
|
|
if (&check_group_priv() eq 'ok') { |
if (&check_group_priv() eq 'ok') { |
Line 1956 sub print_sortfilter_options {
|
Line 1956 sub print_sortfilter_options {
|
$numgroupvis = 1; |
$numgroupvis = 1; |
} |
} |
} |
} |
foreach (@groups) { |
foreach my $group (@groups) { |
$group_sel .= " <option value=\"$_\" />$_\n"; |
$group_sel .= " <option value=\"$group\">$group</option>\n"; |
} |
} |
|
|
my $function = &Apache::loncommon::get_users_function(); |
my $function = &Apache::loncommon::get_users_function(); |
Line 2047 $start_page
|
Line 2047 $start_page
|
<tr> |
<tr> |
<td align="center" valign="top"> |
<td align="center" valign="top"> |
<select name="sortposts"> |
<select name="sortposts"> |
<option value="ascdate" selected="selected" />$sort_types{'ascdate'} |
<option value="ascdate" selected="selected">$sort_types{'ascdate'}</option> |
<option value="descdate" />$sort_types{'descdate'} |
<option value="descdate">$sort_types{'descdate'}</option> |
<option value="thread" />$sort_types{'thread'} |
<option value="thread">$sort_types{'thread'}</option> |
<option value="subject" />$sort_types{'subject'} |
<option value="subject">$sort_types{'subject'}</option> |
<option value="username" />$sort_types{'username'} |
<option value="username">$sort_types{'username'}</option> |
<option value="lastfirst" />$sort_types{'lastfirst'} |
<option value="lastfirst">$sort_types{'lastfirst'}</option> |
</select> |
</select> |
</td> |
</td> |
<td> </td> |
<td> </td> |
<td align="center" valign="top"> |
<td align="center" valign="top"> |
<select name="statusfilter"> |
<select name="statusfilter"> |
<option value="all" selected="selected" />$status_types{'all'} |
<option value="all" selected="selected" />$status_types{'all'}</option> |
<option value="Active" />$status_types{'Active'} |
<option value="Active" />$status_types{'Active'}</option> |
<option value="Expired" />$status_types{'Expired'} |
<option value="Expired" />$status_types{'Expired'}</option> |
</select> |
</select> |
</td> |
</td> |
<td> </td> |
<td> </td> |
<td align="center" valign="top"> |
<td align="center" valign="top"> |
<select name="rolefilter" multiple="true" size="5"> |
<select name="rolefilter" multiple="true" size="5"> |
<option value="all" />$role_types{'all'} |
<option value="all">$role_types{'all'}</option> |
<option value="st" />$role_types{'st'} |
<option value="st">$role_types{'st'}</option> |
<option value="cc" />$role_types{'cc'} |
<option value="cc">$role_types{'cc'}</option> |
<option value="in" />$role_types{'in'} |
<option value="in">$role_types{'in'}</option> |
<option value="ta" />$role_types{'ta'} |
<option value="ta">$role_types{'ta'}</option> |
<option value="ep" />$role_types{'ep'} |
<option value="ep">$role_types{'ep'}</option> |
<option value="cr" />$role_types{'cr'} |
<option value="cr">$role_types{'cr'}</option> |
</select> |
</select> |
</td> |
</td> |
<td> </td> |
<td> </td> |
Line 2920 END
|
Line 2920 END
|
} |
} |
} |
} |
} |
} |
if (@{$currnewattach} > 0) { |
if ((ref($currnewattach) eq 'ARRAY') && (@{$currnewattach} > 0)) { |
$r->print("The following attachments have been uploaded for inclusion with this posting.<br />Check the checkboxes for any you wish to remove<br />\n"); |
$r->print("The following attachments have been uploaded for inclusion with this posting.<br />Check the checkboxes for any you wish to remove<br />\n"); |
foreach (@{$currnewattach}) { |
foreach (@{$currnewattach}) { |
$_ =~ m#/([^/]+)$#; |
$_ =~ m#/([^/]+)$#; |