<?php
/**************************************************************************\
* phpGroupWare - chora                                                     *
* http://www.phpgroupware.org                                              *
* Written by Joseph Engo <jengo@phpgroupware.org>                          *
* --------------------------------------------                             *
*  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.                                              *
\**************************************************************************/

/* $Id: admin.php 6370 2001-06-29 02:38:47Z milosch $ */

	$phpgw_info["flags"]["currentapp"] = "admin";	
	include("../header.inc.php");
?>

<h2><?php echo lang("Chora") . " " . lang("Administration")?></h2>

<table>
	<form action=admin.php method=post>
	<tr>
		<th><center><b>CVS Repositories</b></center></th>
	</tr>
<?php

	$phpgw->db->query("SELECT * FROM phpgw_chora_sites");
	while ($phpgw->db->next_record())
	{
		$cvsroots[] = array(
			'name'     => $phpgw->db->f('name'),
			'location' => $phpgw->db->f('location'),
			'title'    => $phpgw->db->f('title'),
			'default'  => $phpgw->db->f('is_default')
		);
	}

	for($i=0;$i<count($cvsroots);$i++)
	{
		echo '<br>' . $cvsroots[$i]['name'].' - '. $cvsroots[$i]['title'];
	}
?>
	<tr>
		<td><input type=submit></td>
	</tr>
	</form>
</table>

<?php
	$phpgw->common->phpgw_footer();
?>
