Menu

[r9]: / projects_site / showallthreadtopics.php  Maximize  Restore  History

Download this file

45 lines (36 with data), 1.7 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
#Application name: PhpCollab
#Status page: 0
$checkSession = "true";
include("../includes/library.php");
$bouton[5] = "over";
$titlePage = $strings["bulletin_board"];
include ("include_header.php");
$tmpquery = "WHERE topic.project = '$projectSession' AND topic.published = '0' ORDER BY topic.last_post DESC";
$listTopics = new request();
$listTopics->openTopics($tmpquery);
$comptListTopics = count($listTopics->top_id);
$block1 = new block();
$block1->heading($strings["bulletin_board"]);
if ($comptListTopics != "0") {
echo "<table cellspacing=\"0\" width=\"90%\" border=\"0\" cellpadding=\"3\" cols=\"4\" class=\"listing\">
<tr><th>".$strings["topic"]."</th><th>".$strings["posts"]."</th><th>".$strings["owner"]."</th><th class=\"active\">".$strings["last_post"]."</th></tr>";
for ($i=0;$i<$comptListTopics;$i++) {
if (!($i%2)) {
$class = "odd";
$highlightOff = $block1->oddColor;
} else {
$class = "even";
$highlightOff = $block1->evenColor;
}
echo "<tr class=\"$class\" onmouseover=\"this.style.backgroundColor='".$block1->highlightOn."'\" onmouseout=\"this.style.backgroundColor='".$highlightOff."'\"><td><a href=\"showallthreads.php?$transmitSid&id=".$listTopics->top_id[$i]."\">".$listTopics->top_subject[$i]."</a></td><td>".$listTopics->top_posts[$i]."</td><td>".$listTopics->top_mem_name[$i]."</td><td>".createDate($listTopics->top_last_post[$i],$timezoneSession)."</td></tr>";
}
echo "</table>
<hr />\n";
} else {
echo "<table cellspacing=\"0\" border=\"0\" cellpadding=\"2\"><tr><td colspan=\"4\">".$strings["no_items"]."</td></tr></table><hr>";
}
echo "<br/><br/>
<a href=\"createthread.php?$transmitSid\" class=\"FooterCell\">".$strings["create_topic"]."</a>";
include ("include_footer.php");
?>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.