aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to 'admin')
-rw-r--r--admin/cat_options.php41
-rw-r--r--admin/include/functions_tabsheet.inc.php11
2 files changed, 45 insertions, 7 deletions
diff --git a/admin/cat_options.php b/admin/cat_options.php
index 8aaf4ad14..cbc729dc5 100644
--- a/admin/cat_options.php
+++ b/admin/cat_options.php
@@ -31,6 +31,7 @@ if (!defined('PHPWG_ROOT_PATH'))
}
include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
+include_once(PHPWG_ROOT_PATH.'admin/include/functions_tabsheet.inc.php');
// +-----------------------------------------------------------------------+
// | Check Access and exit when user status is not ok |
@@ -163,6 +164,46 @@ $template->assign_vars(
)
);
+// TabSheet initialization
+$opt_link = $link_start.'cat_options&section=';
+$page['tabsheet'] = array
+(
+ 'upload' => array
+ (
+ 'caption' => l10n('upload'),
+ 'url' => $opt_link.'upload'
+ ),
+ 'comments' => array
+ (
+ 'caption' => l10n('comments'),
+ 'url' => $opt_link.'comments'
+ ),
+ 'visible' => array
+ (
+ 'caption' => l10n('lock'),
+ 'url' => $opt_link.'visible'
+ ),
+ 'status' => array
+ (
+ 'caption' => l10n('cat_security'),
+ 'url' => $opt_link.'status'
+ )
+);
+
+if ($conf['allow_random_representative'])
+{
+ $page['tabsheet']['representative'] =
+ array
+ (
+ 'caption' => l10n('Representative'),
+ 'url' => $opt_link.'representative'
+ );
+}
+$page['tabsheet'][$page['section']]['selected'] = true;
+
+// Assign tabsheet to template
+template_assign_tabsheet();
+
// +-----------------------------------------------------------------------+
// | form display |
// +-----------------------------------------------------------------------+
diff --git a/admin/include/functions_tabsheet.inc.php b/admin/include/functions_tabsheet.inc.php
index 52cf3f43d..9952769f3 100644
--- a/admin/include/functions_tabsheet.inc.php
+++ b/admin/include/functions_tabsheet.inc.php
@@ -4,10 +4,10 @@
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
// +-----------------------------------------------------------------------+
-// | file : $Id$
-// | last update : $Date$
-// | last modifier : $Author$
-// | revision : $Revision$
+// | file : $Id: functions_tabsheet.inc.php 1874 2007-03-06 02:07:15Z rub $
+// | last update : $Date: 2007-03-06 03:07:15 +0100 (mar., 06 mars 2007) $
+// | last modifier : $Author: rub $
+// | revision : $Revision: 1874 $
// +-----------------------------------------------------------------------+
// | 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 |
@@ -71,7 +71,4 @@ function template_assign_tabsheet()
}
}
-//TOTO:Voir pour intégrer U_TABSHEET_TITLE dans les autres tabs
-//TODO:Selected sans link
-//Remplacer mode par tab_caption
?>