diff --git a/e107_plugins/clock_menu/config.php b/e107_plugins/clock_menu/config.php index f8ef02df1..1d06fab8b 100644 --- a/e107_plugins/clock_menu/config.php +++ b/e107_plugins/clock_menu/config.php @@ -2,29 +2,18 @@ /* * e107 website system * - * Copyright (C) 2008-2009 e107 Inc (e107.org) + * Copyright (C) 2008-2013 e107 Inc (e107.org) * Released under the terms and conditions of the * GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * - * Plugin Administration - Comment menu + * Plugin Administration - Clock menu * - * $Source: /cvs_backup/e107_0.8/e107_plugins/clock_menu/config.php,v $ - * $Revision$ - * $Date$ - * $Author$ * -*/ - -/** - * e107 Clock display menu plugin - * - * Handles the display of a clock/calendar in a menu - * - * @package e107_plugins - * @subpackage clock - * @version $Id$; + * $URL$ + * $Id$ */ + $eplug_admin = TRUE; require_once('../../class2.php'); if (!getperms('1')) @@ -34,8 +23,12 @@ if (!getperms('1')) } require_once(e_ADMIN.'auth.php'); include_lan(e_PLUGIN.'clock_menu/languages/admin/'.e_LANGUAGE.'.php'); + require_once(e_HANDLER.'form_handler.php'); +require_once(e_HANDLER.'message_handler.php'); $rs = new form; +$frm = e107::getForm(); +$mes = e107::getMessage(); $menu_pref = e107::getConfig('menu')->getPref(''); if (isset($_POST['update_menu'])) @@ -61,73 +54,60 @@ if (isset($_POST['update_menu'])) } $menuPref->save(false, true, false); } - $ns->tablerender('', "
".CLOCK_AD_L1.'
'); } -$text = "
-
- "; +$ns->tablerender($caption, $mes->render(). $text); + +$text = " + +
+ + + + + + + + -// Title -$text .= " - - - "; + + + + + + + + + -// Format Time -$text .= " - - - "; + + + + -// Date Prefix -$text .= " - - - "; + + + + -// Date Suffix -$text .= " - - - "; + + + + -$text .= " - - - "; - -$text .= " - - - "; - -$text .= " - - - "; - -$text .= " - + + +
".CLOCK_AD_L2.":
".CLOCK_AD_L2.": - -
".CLOCK_AD_L5.": ".($menu_pref['clock_format'] == 1 ? $rs->form_checkbox("clock_format", 1, 1) : $rs->form_checkbox("clock_format", 1, 0) )." + ".CLOCK_AD_L6."
".CLOCK_AD_L7.": ".CLOCK_AD_L8."
".CLOCK_AD_L5.": ".($menu_pref['clock_format'] == 1 ? $rs->form_checkbox("clock_format", 1, 1) : $rs->form_checkbox("clock_format", 1, 0) )." -
".CLOCK_AD_L6."
".CLOCK_AD_L9.": ".CLOCK_AD_L13."
".CLOCK_AD_L7.": - -
".CLOCK_AD_L8."
".CLOCK_AD_L10.": ".CLOCK_AD_L13."
".CLOCK_AD_L9.": - 1 -
".CLOCK_AD_L13."
".CLOCK_AD_L11.": ".CLOCK_AD_L13."
".CLOCK_AD_L10.": - 2 -
".CLOCK_AD_L13."
".CLOCK_AD_L11.": - 3 -
".CLOCK_AD_L13."
".CLOCK_AD_L12.": - 4 -
".CLOCK_AD_L13."
- -
".CLOCK_AD_L12.": ".CLOCK_AD_L13."
+ +
+ ".$frm->admin_button('update_menu', LAN_UPDATE, 'update')." +
-
"; + "; + $ns->tablerender(CLOCK_AD_L4, $text); require_once(e_ADMIN."footer.php"); ?> \ No newline at end of file diff --git a/e107_plugins/clock_menu/languages/admin/English.php b/e107_plugins/clock_menu/languages/admin/English.php index a0aa59cc8..ff3e368f0 100644 --- a/e107_plugins/clock_menu/languages/admin/English.php +++ b/e107_plugins/clock_menu/languages/admin/English.php @@ -2,21 +2,15 @@ /* * e107 website system * - * Copyright (C) 2008-2009 e107 Inc (e107.org) + * Copyright (C) 2008-2013 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_plugins/clock_menu/languages/admin/English.php,v $ - * $Revision$ - * $Date$ - * $Author$ - */ +*/ -define("CLOCK_AD_L1", "Clock menu configuration saved"); +//define("CLOCK_AD_L1", "Clock menu configuration saved"); define("CLOCK_AD_L2", "Caption"); -define("CLOCK_AD_L3", "Update Menu Settings"); +//define("CLOCK_AD_L3", "Update Menu Settings"); define("CLOCK_AD_L4", "Clock Menu Config"); define("CLOCK_AD_L5", "AM/PM"); define("CLOCK_AD_L6", "If checked, you will display time with US format (0-12 AM/PM format). Unchecked you will display a 'military' format 0-24 format");