Location: PHPKode > projects > oc4ware > oc4ware-0.4.2/oc4ware/forums/member/index.php
<?php
    /*
	oc4ware - Software 4 Open Communities
	Copyright (c) 2001-2002 oc4 e.V. (http://www.oc4home.org)
	
	Software 4 Open Communities (oc4ware) provides Web community portal
	software in the scope of the Semantic Web initiative for distributed
	content, knowledge management, online publishing in self-organised
	online journals.
    ----------------------------------------------------------------------
    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License
    as published by the Free Software Foundation; either version 2
    of the License, or (at your option) any later version.
	
    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 the
    GNU General Public License for more details.
	
    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
	----------------------------------------------------------------------
    Authors: Christian Zonsius <hide@address.com>; |
	Sandro.Zic <hide@address.com>; |
    Your Name <hide@address.com>; |
    ----------------------------------------------------------------------
	$Id: index.php,v 1.3 2002/11/13 11:27:22 ordnas Exp $
    */

    /***************************************************************************
    * FUNCTIONS                                                                *
    ***************************************************************************/

    /***************************************************************************
    * PAGE CONTENT                                                             *
    ***************************************************************************/

	$forums_retrieval = OC4_FRAMEWORK::connect('forums/connector/retrieval');
	
	// available forums
	$forums = $forums_retrieval->call('listForumsByOwner', array($_SESSION["userInfo"]->memberURI));

	require_once "header.php";

if(is_array($forums)){
?>
	<table border="1" cellspacing="0" cellpadding="4" width="<?php echo OC4_FRAMEWORK::conf('themes/params/width'); ?>">
		<tr>
			<th width="30%">Title</th>
			<th>Description</th>
			<th width="60">&nbsp;</th>
		</tr>
<?php
	for($i=0;$i<count($forums);$i++) {
?>
		<tr>
			<td><?php echo $forums[$i]["name"]; ?></td>
			<td><?php echo nl2br($forums[$i]["description"]); ?></td>
			<td nowrap>
				<a href="<?php echo OC4_FRAMEWORK::conf('forums/paths/member/edit').$forums[$i]["number"]; ?>"><img src="<?php echo OC4_FRAMEWORK::theme('path_icons')."24x24/document/edit.gif"; ?>" border="0"></a>
				<a href=""><img src="<?php echo OC4_FRAMEWORK::theme('path_icons')."24x24/delete.gif"; ?>" border="0"></a>
			</td>
		</tr>
<?php
	}
?>
</table>
<?php
} else {
	echo '<p>No items in database.</p>';
}
?>
<br>
<?php
	require_once "footer.php";
?>
Return current item: oc4ware