From 88620a7370aab9cd328a12492f344696229eacad Mon Sep 17 00:00:00 2001 From: CaMer0n Date: Thu, 23 Jul 2009 10:46:11 +0000 Subject: [PATCH] InfoPanel changes- removed tabs. --- e107_admin/includes/infopanel.php | 295 ++++++++++++------------------ 1 file changed, 121 insertions(+), 174 deletions(-) diff --git a/e107_admin/includes/infopanel.php b/e107_admin/includes/infopanel.php index 0f9cd1c76..4d70e05c7 100644 --- a/e107_admin/includes/infopanel.php +++ b/e107_admin/includes/infopanel.php @@ -1,4 +1,5 @@ "; - -$text = "
-
- "; - - +/*$text .=" +
+"; +*/ +$text = "
"; // My E107 - // Info about attributes + /* attribute 1 = link attribute 2 = title attribute 3 = description attribute 4 = perms attribute 5 = category - 1 - settings - 2 - users - 3 - content - 4 - tools - 5 - plugins - 6 - about +1 - settings +2 - users +3 - content +4 - tools +5 - plugins +6 - about attribute 6 = 16 x 16 image attribute 7 = 32 x 32 image */ - /* $buts = ""; - while (list($key, $funcinfo) = each($array_functions_assoc)) - { - $iconlist[$key] = array("title"=>$funcinfo[1],"icon"=>$funcinfo[5]); // , $funcinfo[1], $funcinfo[2], $funcinfo[3], $funcinfo[6], "classis"); - $buts .= render_links($funcinfo[0], $funcinfo[1], $funcinfo[2], $funcinfo[3], $funcinfo[6], "classis"); - }*/ +/* $buts = ""; - $iconlist = array_merge($array_functions_assoc,getPluginLinks(E_16_PLUGMANAGER, "array")); + while (list($key, $funcinfo) = each($array_functions_assoc)) +{ +$iconlist[$key] = array("title"=>$funcinfo[1],"icon"=>$funcinfo[5]); // , $funcinfo[1], $funcinfo[2], $funcinfo[3], $funcinfo[6], "classis"); +$buts .= render_links($funcinfo[0], $funcinfo[1], $funcinfo[2], $funcinfo[3], $funcinfo[6], "classis"); +}*/ - $text .= " -
+ + +$iconlist = array_merge($array_functions_assoc,getPluginLinks(E_16_PLUGMANAGER,"array")); +$text .= " + +
Welcome to your e107 Content Management System
@@ -87,21 +92,53 @@ attribute 7 = 32 x 32 image
"; - // Rendering the saved configuration. - foreach($iconlist as $key=>$val) - { - if(in_array($key,$user_pref['core-infopanel-mye107'])) - { - $text .= render_links($val['link'], $val['title'], $val['caption'], $val['perms'], $val['icon_32'], "div"); - } - } - $text .="
 
+// Rendering the saved configuration. + +foreach ($iconlist as $key => $val) +{ + if (in_array($key,$user_pref['core-infopanel-mye107'])) + { + $text .= render_links($val['link'],$val['title'],$val['caption'],$val['perms'],$val['icon_32'],"div"); + } +} +$text .= "
 
- To customize the icons that appear in this panel, please click here. + To customize the icons that appear in this panel, please + click here. +
+
+
+
Customize Icons
+
"; + +foreach ($iconlist as $key => $icon) +{ + $checked = (in_array($key,$user_pref['core-infopanel-mye107'])) ? true : false; + $text .= "
+ ".$icon['icon'].$frm->checkbox('e-mye107[]',$key,$checked).$icon['title']."
"; +} + + +if (is_array($pluglist)) +{ + foreach ($pluglist as $key => $icon) + { + $checked = (in_array('p-'.$key,$user_pref['core-infopanel-mye107'])) ? true : false; + $text .= "
+ ".$icon['icon'].$frm->checkbox('e-mye107[]',$key,$checked).$icon['title']."
"; + } +} +$text .= "
 
"; +$text .= "
"; +// has issues with the checkboxes. +$text .= $frm->admin_button('submit-mye107','Save','Save'); +$text .= "
+ +
@@ -109,20 +146,22 @@ attribute 7 = 32 x 32 image
"; -// e107 News + +// e107 News ------------------------------------------------------------------ $text .= " -
+
e107 News
"; - /* - require_once(e_HANDLER.'xml_class.php'); - $xml = new xmlClass; - $vars = $xml->loadXMLfile('http://www.e107.org/e107_plugins/rss_menu/rss.php?1.2', true, true); - $text .= print_r($vars,TRUE);*/ - $text .= " +/* +require_once(e_HANDLER.'xml_class.php'); +$xml = new xmlClass; +$vars = $xml->loadXMLfile('http://www.e107.org/e107_plugins/rss_menu/rss.php?1.2', true, true); +$text .= print_r($vars,TRUE);*/ + +$text .= " RSS News feed from e107.org goes here.
@@ -130,22 +169,20 @@ $text .= " "; -// e107 latest +// e107 latest $text .= " -
+
"; - -require_once(e_FILE."shortcode/batch/admin_shortcodes.php"); +require_once (e_FILE."shortcode/batch/admin_shortcodes.php"); $text .= $tp->parseTemplate("{ADMIN_LATEST}"); $text .= ""; $text .= $tp->parseTemplate("{ADMIN_STATUS}"); - - $text .= "
+$text .= "
@@ -154,9 +191,8 @@ $text .= $tp->parseTemplate("{ADMIN_STATUS}"); // Who's Online --------------------------------- - $text .= " -
+
Who's Online
@@ -177,72 +213,31 @@ $text .= " "; - if($e107->sql->db_Select('online', '*')) - { - $newsarray = $e107->sql->db_getList(); - foreach($newsarray as $key=>$val) - { - $text .= " + +if ($e107->sql->db_Select('online','*')) +{ + $newsarray = $e107->sql->db_getList(); + foreach ($newsarray as $key => $val) + { + $text .= " ".$val['online_timestamp']." ".$val['online_user_id']." ".$val['online_location']." "; - } - } - - - - - $text .= "
+} +$text .= "
"; + // Customizer ------------------------------------------ - + /* $text .= " -
-
-
-
Customize your Admin Panel
-
"; - - foreach($iconlist as $key=>$icon) - { - $checked = (in_array($key,$user_pref['core-infopanel-mye107'])) ? TRUE : FALSE; - $text .= "
- ".$icon['icon'].$frm->checkbox('e-mye107[]',$key, $checked). $icon['title']."
"; - } - - if(is_array($pluglist)) - { - foreach($pluglist as $key=>$icon) - { - $checked = (in_array('p-'.$key,$user_pref['core-infopanel-mye107'])) ? TRUE : FALSE; - $text .= "
- ".$icon['icon'].$frm->checkbox('e-mye107[]', $key, $checked). $icon['title']."
"; - } - } - - - $text .= "
-
 
-
"; - $text .= "
"; // has issues with the checkboxes. - $text .= $frm->admin_button('submit-mye107','Save','Save'); - $text .= "
- -
-
- "; - -// e107 News - -$text .= " -
+
Add
@@ -252,60 +247,12 @@ $text .= "
"; - - /* - -foreach ($admin_cat['id'] as $cat_key => $cat_id) -{ - $text_check = FALSE; - - $text_cat = "
-
-
".$admin_cat['title'][$cat_key]."
- "; - - - 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 .= "
-
"; - - if ($text_check) - { - $text .= $text_cat; - } -}*/ - - - -$text .= "
"; - -$ns->tablerender(ADLAN_47." ".ADMINNAME, $emessage->render().$text); +*/ +$text .= "
 
"; +$text .= "
"; +//$text .= "
"; +$ns->tablerender(ADLAN_47." ".ADMINNAME,$emessage->render().$text); ?>