Annotation of ETA/forumsList.php3, revision 1.11

1.1       frystyk     1: <script language="php">
                      2: #
1.11    ! frystyk     3: #      @(#) $Id: forumsList.php3,v 1.10 1999/06/21 14:55:29 frystyk Exp $
1.1       frystyk     4: #      
                      5: #      Copyright © 1995-1998 World Wide Web Consortium, (Massachusetts
                      6: #      Institute of Technology, Institut National de Recherche en
                      7: #      Informatique et en Automatique, Keio University). All Rights
                      8: #      Reserved. This program is distributed under the W3C's Software
                      9: #      Intellectual Property License. This program is distributed in the hope
                     10: #      that it will be useful, but WITHOUT ANY WARRANTY; without even the
                     11: #      implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
                     12: #      PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
                     13: #      details.
                     14: 
                     15: $this = 'forumsList.php3';
                     16: require ('funcs.phi');
                     17: $domain = getDomain();
1.9       frystyk    18: $this_forum = checkConfigFile($domain, 'config.phi', $this);
                     19: require ($domain.'config.phi');
1.7       frystyk    20: 
                     21: # -------- setup template variables ----
1.1       frystyk    22: 
1.6       frystyk    23: $W3C_AUTHOR = "forum@w3.org";
1.11    ! frystyk    24: $W3C_DATE = '$Date: 1999/06/21 14:55:29 $'; #'
1.6       frystyk    25: $W3C_TOP = '
                     26: '.render_help('Forums', 'Forums').' are organized in a news group manner where each forum can contain a
                     27: set of issues and/or one or more sub fora. However, this does not mean that
                     28: this is the only way to relate issues - there can be arbitrary relationships
                     29: between any issues as well as between any other document on the Web.';
                     30: $W3C_BOTTOM = '';
                     31: $W3C_NAVBAR = render_navbar_top(array());
1.9       frystyk    32: $W3C_TITLE = render_listTitle('Sub-Fora', $domain, '');
1.6       frystyk    33: 
1.1       frystyk    34: # -------------------- get table data --------------------
                     35: 
                     36: $query = "SELECT forums.id,forums.path,forums.schema,schemas.description,contacts.id,contacts.realname,forums.description FROM forums,contacts,schemas";
                     37: 
1.7       frystyk    38: $condition = "contacts.id=forums.contact AND schemas.id=forums.schema AND forums.path LIKE '$domain%' ORDER BY forums.description";
1.1       frystyk    39:  
                     40: list($w3cdb, $result) = formatQuery($w3cdb, $query, $condition);
                     41: 
                     42: # -------------------- pre templates --------------------
                     43: 
1.6       frystyk    44: include ($domain.'pre-template.tpl');
                     45: 
                     46: # -------------------- render fora --------------------
1.1       frystyk    47: 
1.8       frystyk    48: render_subfora($this, 'Fora', array());
1.1       frystyk    49: 
1.7       frystyk    50: # -------------------- render list head --------------------
1.1       frystyk    51: 
                     52: </script>
                     53: 
1.7       frystyk    54: <ul>
                     55: 
1.1       frystyk    56: <script language="php">
                     57: 
                     58: # -------------------- render data --------------------
                     59: 
                     60: while ($row = mysql_fetch_row($result)) {
                     61:     $forums_id = $row[0];
1.9       frystyk    62:     $T_forums_description = '<a href="'.formatRef('forums.php3', array('forums_id'=>$forums_id)).'">'.stripslashes($row[6]).'</a>';
1.7       frystyk    63:     $T_issues_list = '<a href="'.formatDomainRef('issuesList.php3', $row[1], array()).'">Issues</a>';
1.8       frystyk    64:     $T_links_list = '<a href="'.formatDomainRef('linksList.php3', $row[1], array()).'">Links</a>';
1.11    ! frystyk    65:     $T_events_list = '<a href="'.formatDomainRef('eventsList.php3', $row[1], array()).'">Events</a>';
1.1       frystyk    66: </script>
1.7       frystyk    67: 
1.11    ! frystyk    68:     <li><?php echo $T_forums_description .'...(<STRONG>' .$T_issues_list .'</STRONG>)' .' - (<STRONG>' .$T_links_list .'</STRONG>)' .' - (<STRONG>' .$T_events_list .'</STRONG>)'?></li> 
1.1       frystyk    69: <?php
                     70: } ?>
1.7       frystyk    71: </ul>
1.1       frystyk    72: <p align="center">[ <a href="<?php echo formatRef('forums.php3', array('editing'=>1,
                     73:                                                                        'nextAction'=>'add',
                     74:                                                                        'title_modifer'=>$title_modifier)) ?>">Add New Forum</a> ]</p>
                     75: 
                     76: <script language="php">
                     77: 
                     78: # -------------------- post templates --------------------
                     79: 
                     80: include ($domain.'post-template.tpl');
                     81: </script>
                     82: </body>
                     83: </html>

Webmaster