Location: PHPKode > projects > O - OpenSource GroupWare > osgw/users/index.php
<?php
/**************************************************************************
   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.

   @Authors:	Ryan Thompson(hide@address.com)
***************************************************************************/

include("./data.php");
$service['add_header'] = TRUE;
include("../config.inc.php");
include($here. "/class.preferences.php");
$prefs = new preferences;
echo $layout->page_header;
echo $layout->service_header($text['service_name'], $prefs->nav_buttons());

?>

<table style="width:500px" align="center">
<caption class="list_header"><?php echo $text['general_options'];?></caption>

<tr>
	<td class="list_dark">
		<?php
		 echo $O->create_link('/users/password.php',
		 	 $O->create_image('/users/graphics/password.gif', $text['change_password'], 'list_dark'). $text['change_password'], 
		 	 'list_dark');
		 ?>
	</td>
</tr>
<tr>
	<td class="list_light">
		<?php
		 echo $O->create_link('/users/user_info.php',
		 	 $O->create_image('/users/graphics/user.gif', $text['user_information'], 'list_light'). $text['user_information'], 
		 	 'list_light');
		 ?>
	</td>
</tr>
<tr>
	<td class="list_dark">
		<?php
		 echo $O->create_link('/users/global_settings.php',
		 	 $O->create_image('/users/graphics/global.gif', $text['global_settings'], 'list_dark'). $text['global_settings'], 
		 	 'list_dark');
		 ?>
	</td>
</tr>
<tr>
	<td class="list_light">
		<?php
		 echo $O->create_link('/users/language.php',
		 	 $O->create_image('/users/graphics/language.png', $text['language'], 'list_light'). $text['language'], 
		 	 'list_light');
		 ?>
	</td>
</tr>
<tr>
	<td class="list_dark">
		<?php
		 echo $O->create_link('/users/themes.php',
		 	 $O->create_image('/users/graphics/schemes.gif', $text['themes'], 'list_dark'). $text['themes'], 
		 	 'list_dark');
		 ?>
	</td>
</tr>
<tr>
	<td class="list_light">
		<?php
		 echo $O->create_link('/users/categories.php',
		 	 $O->create_image('/users/graphics/schemes.gif', $text['categories'], 'list_light'). $text['categories'], 
		 	 'list_light');
		 ?>
	</td>
</tr>
<tr>
	<td class="list_dark">
		<?php
		 echo $O->create_link('/users/home_layout.php',
		 	 $O->create_image('/users/graphics/home_layout.gif', $text['home_layout'], 'list_dark'). $text['home_layout'], 
		 	 'list_dark');
		 ?>
	</td>
</tr>
</table>
<br />
<table style="width:500px" align="center">
<tr>
	<caption class="list_header"><?php echo $text['service_prefs']?></caption>
</tr>

<?php
	$sql = "SELECT * FROM o_services";
	$db->query($sql);
	while($db->fetch_results())
	{
		if($class == 'list_dark')
		{
			$class = 'list_light';
		} else {
			$class = 'list_dark';
		}
		echo "<tr>\n";
		echo "<td class=\"$class\">";
		include($O->dir ."/{$db->record['location']}/data.php");
		echo $O->create_link("/users/edit_service.php?s={$db->record['code']}", $service['name'], $class);
		echo "</td>\n";
		echo "</tr>\n";
	}
	
		
		
		
?>
</table>
<br />
<?php echo $layout->create_footer();?>
Return current item: O - OpenSource GroupWare