File:  [Public] / ETA / forumsList.php3
Revision 1.14: download - view: text, annotated - select for diffs
Thu Jan 27 22:06:09 2000 UTC (24 years, 9 months ago) by hugo
Branches: MAIN
CVS tags: HEAD
Worked on accessibility

<script language="php">
#
#	@(#) $Id: forumsList.php3,v 1.14 2000/01/27 22:06:09 hugo Exp $
#	
#	Copyright © 1995-1998 World Wide Web Consortium, (Massachusetts
#	Institute of Technology, Institut National de Recherche en
#	Informatique et en Automatique, Keio University). All Rights
#	Reserved. This program is distributed under the W3C's Software
#	Intellectual Property License. This program is distributed in the hope
#	that it will be useful, but WITHOUT ANY WARRANTY; without even the
#	implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
#	PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
#	details.

$this = 'forumsList.php3';
require ('funcs.phi');
$domain = getDomain();
$this_forum = checkConfigFile($domain, 'config.phi', $this);
require ($domain.'config.phi');

# -------- setup template variables ----

$W3C_AUTHOR = "forum@w3.org";
$W3C_DATE = '$Date: 2000/01/27 22:06:09 $'; #'
$W3C_TOP = '
'.render_help('Forums', 'Forums').' are organized in a news group manner where each forum can contain a
set of issues and/or one or more sub fora. However, this does not mean that
this is the only way to relate issues - there can be arbitrary relationships
between any issues as well as between any other document on the Web.';
$W3C_BOTTOM = '';
$W3C_NAVBAR = render_navbar_top(array());
$W3C_TITLE = render_listTitle('Sub-Fora', $domain, '');

# -------------------- get table data --------------------

$query = "SELECT forums.id,forums.path,forums.schema,schemas.description,contacts.id,contacts.realname,forums.description FROM forums,contacts,schemas";

$condition = "contacts.id=forums.contact AND schemas.id=forums.schema AND forums.path LIKE '$domain%' ORDER BY forums.description";
 
list($w3cdb, $result) = formatQuery($w3cdb, $query, $condition);

# -------------------- pre templates --------------------

include ($domain.'pre-template.tpl');

# -------------------- render fora --------------------

render_subfora($this, 'Fora', array());

# -------------------- render list head --------------------

echo '<h3><a name="start-here">Fora:</a></h3>';

</script>

<ul>

<script language="php">

# -------------------- render data --------------------

while ($row = mysql_fetch_row($result)) {
    $forums_id = $row[0];
    $T_forums_description = '<a href="'.formatRef('forums.php3', array('forums_id'=>$forums_id)).'">'.stripslashes($row[6]).'</a>';
    $T_issues_list = '<a href="'.formatDomainRef('issuesList.php3', $row[1], array()).'">Issues</a>';
    $T_links_list = '<a href="'.formatDomainRef('linksList.php3', $row[1], array()).'">Links</a>';
    $T_events_list = '<a href="'.formatDomainRef('eventsList.php3', $row[1], array()).'">Events</a>';
</script>

    <li><?php echo $T_forums_description .'...(<STRONG>' .$T_issues_list .'</STRONG>)' .' - (<STRONG>' .$T_links_list .'</STRONG>)' .' - (<STRONG>' .$T_events_list .'</STRONG>)'?></li> 
<?php
} ?>
</ul>

<script language="php">

    render_navbar_bottom3($domain, "");

# -------------------- post templates --------------------

include ($domain.'post-template.tpl');
</script>
</body>
</html>

Webmaster