* $Source: /cvs_backup/e107_0.8/e107_admin/includes/compact.php,v $ * $Revision$ * $Date$ * $Author$ */ if (!defined('e107_INIT')) { exit; } require_once e_HANDLER . "message_handler.php"; $emessage =& eMessage::getInstance(); $buts = ""; $text = "<div style='text-align:center'>\n\t<table style='" . ADMIN_WIDTH . "'>"; while (list($key, $funcinfo) = each($newarray)) { $buts .= render_links($funcinfo[0], $funcinfo[1], $funcinfo[2], $funcinfo[3], $funcinfo[5], 'default'); } $text .= $buts; $text_cat = ''; while ($td <= 5) { $text_cat .= "<td class='td' style='width:20%;' ></td>"; $td++; } $td = 1; $text .= "</tr></table></div>"; if ($buts != "") { $ns->tablerender(ADLAN_47 . " " . ADMINNAME, $emessage->render() . $text); } $text = "<div style='text-align:center'>\n\t<table style='" . ADMIN_WIDTH . "'>"; $text .= getPluginLinks(E_16_PLUGMANAGER, 'default'); $text .= "</tr>\n\t</table></div>"; $ns->tablerender(ADLAN_CL_7, $text); echo admin_info();
*/ if (!defined('e107_INIT')) { exit; } require_once e_HANDLER . "message_handler.php"; $emessage =& eMessage::getInstance(); if ($_GET['mode'] == "e_advanced") { $pref['adminstyle'] = "classis"; save_prefs(); Header("Location:" . e_ADMIN . "admin.php"); } $buts = ""; $text = "<div style='text-align:center;vertical-align:middle'><br /><br />\n\t<table style='" . ADMIN_WIDTH . ";margin-top:auto;margin-bottom:auto' >"; // $newarray[28] = array(e_ADMIN."plugin.php", ADLAN_98, ADLAN_99, "Z", 2, E_16_PLUGMANAGER, E_32_PLUGMANAGER); $selection = array(22, 12, 17, 25, 5, 19, 7, 23, 28, 26); // $selection = array(21,11,17,24,5,19,7,27,28,25); foreach ($selection as $id) { $buts .= render_links($newarray[$id][0], $newarray[$id][1], $newarray[$id][2], $newarray[$id][3], $newarray[$id][6], 'beginner'); } $text .= $buts; $text .= render_clean(); $text .= "\n</table><br /></div>"; $text .= "<div class='smalltext' style='text-align:center'>" . ADLAN_144 . " <a href='" . e_SELF . "?mode=e_advanced' >" . ADLAN_145 . "</a> </div>"; if ($buts != '') { $ns->tablerender(ADLAN_47 . " " . ADMINNAME, $emessage->render() . $text); } $text = "<div style='text-align:center'>\n\t<table style='" . ADMIN_WIDTH . "'>"; $text .= getPluginLinks(E_32_PLUGMANAGER, "classis"); $text .= render_clean(); $text .= "</table></div>"; $ns->tablerender(ADLAN_CL_7, $text);
<?php /* * e107 website system * * Copyright (C) 2008-2009 e107 Inc (e107.org) * Released under the terms and conditions of the * GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * * * * $Source: /cvs_backup/e107_0.8/e107_admin/includes/cascade.php,v $ * $Revision$ * $Date$ * $Author$ */ if (!defined('e107_INIT')) { exit; } require_once e_HANDLER . "message_handler.php"; $emessage =& eMessage::getInstance(); $text = "<div style='text-align:center'>\n\t<table class='fborder' style='" . ADMIN_WIDTH . "'>"; while (list($key, $funcinfo) = each($newarray)) { $text .= render_links($funcinfo[0], $funcinfo[1], $funcinfo[2], $funcinfo[3], $funcinfo[5], 'adminb'); } $text .= "<tr>\n\t<td class='fcaption' colspan='5'>\n\t" . ADLAN_CL_7 . "\n\t</td>\n\t</tr>"; $text .= getPluginLinks(E_16_PLUGMANAGER, 'adminb'); $text .= "</table></div>"; $ns->tablerender(ADLAN_47 . " " . ADMINNAME, $emessage->render() . $text);
// require_once (e_HANDLER."form_handler.php"); $frm = e107::getForm(); //enable inner tabindex counter if (isset($_POST['submit-mye107']) || varset($_POST['submit-mymenus'])) { $user_pref['core-infopanel-mye107'] = $_POST['e-mye107']; save_prefs('user'); $pref['core-infopanel-menus'] = $_POST['e-mymenus']; save_prefs(); } //TODO LANs throughout. // ---------------------- Start Panel -------------------------------- $text = "<div >"; if (getperms('0') && !vartrue($user_pref['core-infopanel-mye107'])) { $user_pref['core-infopanel-mye107'] = $pref['core-infopanel-default']; } $iconlist = array_merge($array_functions_assoc, getPluginLinks(E_16_PLUGMANAGER, "array")); $text .= "\n\t<form method='post' action='" . e_SELF . "?" . e_QUERY . "'>"; $tp->parseTemplate("{SETSTYLE=core-infopanel}"); // Personalized Panel $mainPanel = "\n\t<div id='core-infopanel_mye107' >\n\t\t<div>\n\t\t\t<div class='left' style='padding:32px'>"; // Rendering the saved configuration. foreach ($iconlist as $key => $val) { if (!vartrue($user_pref['core-infopanel-mye107']) || in_array($key, $user_pref['core-infopanel-mye107'])) { $mainPanel .= render_links($val['link'], $val['title'], $val['caption'], $val['perms'], $val['icon_32'], "div-icon-only"); } } $mainPanel .= "<div class='clear'> </div>\n </div>\n </div>\n\t\t</div>"; $text .= $ns->tablerender(ucwords(USERNAME) . "'s Control Panel", $mainPanel, "core-infopanel_mye107", true); // ------------------------------- e107 News -------------------------------- $panelRSS = "\n\t"; // TODO Load with Ajax