<?php
/* $Id: index.php 80 2006-11-10 05:14:01Z hodaka $
 *  ------------------------------------------------------------------------ *
 *                XOOPS - PHP Content Management System                      *
 *                    Copyright (c) 2000 XOOPS.org                           *
 *                       <http://www.xoops.org/>                             *
 *  ------------------------------------------------------------------------ *
 *                     MyAddress - XOOPS addressbook                         *
 *                        <http://www.kuri3.net/>                            *
 *             Copyright (c) 2004 by hodaka <hodaka@kuri3.net>               *
 * ------------------------------------------------------------------------- *
 * 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.                                       *
 *                                                                           *
 * You may not change or alter any portion of this comment or credits        *
 * of supporting developers from this source code or any supporting          *
 * source code which is considered copyrighted (c) material of the           *
 * original comment or credit authors.                                       *
 *                                                                           *
 * 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  *
 */

include("admin_header.php");

$op = isset( $_GET['op'] ) ? $_GET['op'] : '' ;
if( $op == '' && isset( $_POST['op'] ) ) $op = $_POST['op'] ;

xoops_cp_header();
// for xc21
include('./mymenu.php');

OpenTable();

// number of all addresses
$ars = $xoopsDB->query( "SELECT COUNT(aid) FROM $table_addressbook" ) ;
list( $numrows ) = $xoopsDB->fetchRow( $ars ) ;
$totalmyaddress = sprintf( _MD_MYADDRESS_THEREARE , $numrows ) ;

echo "
	- <a href='categories.php?op=main'>"._AM_MYADDRESS_CATEDIT."</a>
	<br />
	<br />
	- <a href='mycatgroupperm.php'>"._AM_MYADDRESS_GROUPPERM."</a>
	<br />
	<br />
	- <a href='relations.php'>"._AM_MYADDRESS_RELATIONS."</a>
	<br />
	<br />
	- <a href='tableview.php'>"._AM_MYADDRESS_TABLEVIEW."</a>
	<br />
	<br />";
//	- <a href='myblocksadmin.php'>"._AM_MYADDRESS_MYBLOCKSADMIN."</a>
//	<br />
//	<br />
echo "	- <a href='../../system/admin.php?fct=preferences&amp;op=showmod&amp;mod=".$xoopsModule->getVar('mid')."'>"._AM_MYADDRESS_GENERALSET."</a>
	<br />
	<br />
	<div align='center'>
		$totalmyaddress
	</div>
";

CloseTable();
xoops_cp_footer();

?>