mirror of
https://github.com/e107inc/e107.git
synced 2025-01-19 13:37:09 +01:00
91 lines
2.1 KiB
PHP
91 lines
2.1 KiB
PHP
<?php
|
|
/*
|
|
+ ----------------------------------------------------------------------------+
|
|
| e107 website system
|
|
|
|
|
| ©Steve Dunstan 2001-2002
|
|
| http://e107.org
|
|
| jalist@e107.org
|
|
|
|
|
| Released under the terms and conditions of the
|
|
| GNU General Public License (http://gnu.org).
|
|
|
|
|
| $Source: /cvs_backup/e107_0.8/e107_admin/includes/tabbed.php,v $
|
|
| $Revision: 1.1 $
|
|
| $Date: 2009-07-04 03:08:03 $
|
|
| $Author: e107coders $
|
|
+----------------------------------------------------------------------------+
|
|
*/
|
|
|
|
if (!defined('e107_INIT')) { exit; }
|
|
|
|
require_once(e_HANDLER."message_handler.php");
|
|
$emessage = &eMessage::getInstance();
|
|
|
|
$text = "<div style='text-align:center'>
|
|
<div class='admintabs' id='tab-container'>
|
|
<ul class='e-tabs e-hideme' id='core-emote-tabs'>";
|
|
|
|
foreach ($admin_cat['id'] as $cat_key => $cat_id)
|
|
{
|
|
$text .= "<li id='tab-main_".$cat_key."'><img class='icon S16' src='".$admin_cat['img'][$cat_key]."' alt='' style='margin-right:3px' /><a href='#core-main_".$cat_key."'>".$admin_cat['title'][$cat_key]."</a></li>";
|
|
}
|
|
$text .= "</ul>";
|
|
|
|
|
|
|
|
foreach ($admin_cat['id'] as $cat_key => $cat_id)
|
|
{
|
|
$text_check = FALSE;
|
|
|
|
$text_cat = "<div class='adminedit' id='core-main_".$cat_key."'>
|
|
<div style='border:1px solid silver;margin:10px'>
|
|
<div class='main_caption bevel'><b>".$admin_cat['title'][$cat_key]."</b></div>
|
|
<table style='width:100%'>";
|
|
|
|
|
|
if ($cat_key != 5) // Note the Plugin category.
|
|
{
|
|
foreach ($newarray as $key => $funcinfo)
|
|
{
|
|
if ($funcinfo[4] == $cat_key)
|
|
{
|
|
$text_rend = render_links($funcinfo[0], $funcinfo[1], $funcinfo[2], $funcinfo[3], $funcinfo[6], 'classis');
|
|
if ($text_rend)
|
|
{
|
|
$text_check = TRUE;
|
|
}
|
|
$text_cat .= $text_rend;
|
|
}
|
|
}
|
|
}
|
|
else // Plugin category.
|
|
{
|
|
$text_rend = getPluginLinks(E_32_PLUGMANAGER, "classis");
|
|
|
|
if ($text_rend)
|
|
{
|
|
$text_check = TRUE;
|
|
}
|
|
$text_cat .= $text_rend;
|
|
}
|
|
$text_cat .= render_clean();
|
|
$text_cat .= "</table></div>
|
|
</div>";
|
|
|
|
if ($text_check)
|
|
{
|
|
$text .= $text_cat;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$text .= "</div></div>";
|
|
|
|
$ns->tablerender(ADLAN_47." ".ADMINNAME, $emessage->render().$text);
|
|
|
|
|
|
|
|
?>
|