mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 22:57:14 +02:00
@@ -2,16 +2,14 @@
|
|||||||
/*
|
/*
|
||||||
* e107 website system
|
* 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
|
* Released under the terms and conditions of the
|
||||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||||
*
|
*
|
||||||
* Plugin Administration - Blog calendar menu
|
* Plugin Administration - Blog calendar menu
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/blogcalendar_menu/config.php,v $
|
* $URL$
|
||||||
* $Revision$
|
* $Id$
|
||||||
* $Date$
|
|
||||||
* $Author$
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
$eplug_admin = TRUE;
|
$eplug_admin = TRUE;
|
||||||
@@ -25,13 +23,18 @@ if (!getperms("1"))
|
|||||||
exit ;
|
exit ;
|
||||||
}
|
}
|
||||||
require_once(e_ADMIN."auth.php");
|
require_once(e_ADMIN."auth.php");
|
||||||
|
|
||||||
|
require_once(e_HANDLER."form_handler.php");
|
||||||
|
require_once(e_HANDLER."message_handler.php");
|
||||||
|
$frm = e107::getForm();
|
||||||
|
$mes = e107::getMessage();
|
||||||
|
|
||||||
if (isset($_POST['update_menu']))
|
if (isset($_POST['update_menu']))
|
||||||
{
|
{
|
||||||
$temp = array();
|
$temp = array();
|
||||||
while (list($key, $value) = each($_POST))
|
while (list($key, $value) = each($_POST))
|
||||||
{
|
{
|
||||||
if ($value != BLOGCAL_CONF3)
|
if ($value != LAN_UPDATE) // ???
|
||||||
{
|
{
|
||||||
$temp[$key] = $value;
|
$temp[$key] = $value;
|
||||||
}
|
}
|
||||||
@@ -40,52 +43,56 @@ if (isset($_POST['update_menu']))
|
|||||||
{
|
{
|
||||||
save_prefs();
|
save_prefs();
|
||||||
}
|
}
|
||||||
$ns->tablerender("", "<div style='text-align:center'><b>".BLOGCAL_CONF5."</b></div>");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$text = "<div style='text-align:center'>
|
$ns->tablerender($caption, $mes->render() . $text);
|
||||||
|
|
||||||
|
$text = "
|
||||||
<form method='post' action='".e_SELF."?".e_QUERY."' name='menu_conf_form'>
|
<form method='post' action='".e_SELF."?".e_QUERY."' name='menu_conf_form'>
|
||||||
<table style='width:85%' class='fborder' >
|
<table class='table adminform' >
|
||||||
|
<colgroup span='2'>
|
||||||
|
<col class='col-label' />
|
||||||
|
<col class='col-control' />
|
||||||
|
</colgroup>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td style='width:40%' class='forumheader3'>".BLOGCAL_CONF1.": </td>
|
<td>".BLOGCAL_CONF1.": </td>
|
||||||
<td style='width:60%' class='forumheader3'>
|
<td>
|
||||||
<select class='tbox' name='blogcal_mpr'>";
|
<select class='tbox' name='blogcal_mpr'>";
|
||||||
|
|
||||||
// if the nr of months per row is undefined, default to 3
|
// if the nr of months per row is undefined, default to 3
|
||||||
$months_per_row = $pref['blogcal_mpr']?$pref['blogcal_mpr']:
|
$months_per_row = $pref['blogcal_mpr']?$pref['blogcal_mpr']:
|
||||||
"3";
|
"3";
|
||||||
for($i = 1; $i <= 12; $i++) {
|
for($i = 1; $i <= 12; $i++) {
|
||||||
$text .= "<option value='$i'";
|
$text .= "<option value='$i'";
|
||||||
$text .= $months_per_row == $i?"selected":
|
$text .= $months_per_row == $i?"selected":
|
||||||
"";
|
"";
|
||||||
$text .= ">$i</option>";
|
$text .= ">$i</option>";
|
||||||
}
|
}
|
||||||
|
|
||||||
$text .= "</select>
|
$text .= "</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td style='width:40%' class='forumheader3'>".BLOGCAL_CONF2.": </td>
|
<td>".BLOGCAL_CONF2.": </td>
|
||||||
<td style='width:60%' class='forumheader3'>
|
<td><input class='tbox' type='text' name='blogcal_padding' size='20' value='";
|
||||||
<input class='tbox' type='text' name='blogcal_padding' size='20' value='";
|
// if the cellpadding isn't defined
|
||||||
// if the cellpadding isn't defined
|
$padding = $pref['blogcal_padding']?$pref['blogcal_padding']:
|
||||||
$padding = $pref['blogcal_padding']?$pref['blogcal_padding']:
|
"2";
|
||||||
"2";
|
$text .= $padding;
|
||||||
$text .= $padding;
|
$text .= "' maxlength='100' />
|
||||||
$text .= "' maxlength='100' />
|
</td>
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td colspan='2' class='forumheader' style='text-align:center'>
|
|
||||||
<input class='button' type='submit' name='update_menu' value='".BLOGCAL_CONF3."' />
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
<div class='buttons-bar center'>
|
||||||
|
".$frm->admin_button('update_menu', LAN_UPDATE, 'update')."
|
||||||
|
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>";
|
";
|
||||||
|
|
||||||
$ns->tablerender(BLOGCAL_CONF4, $text);
|
$ns->tablerender(BLOGCAL_CONF4, $text);
|
||||||
|
|
||||||
require_once(e_ADMIN."footer.php");
|
require_once(e_ADMIN."footer.php");
|
||||||
|
@@ -2,16 +2,10 @@
|
|||||||
/*
|
/*
|
||||||
* e107 website system
|
* 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
|
* Released under the terms and conditions of the
|
||||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||||
*
|
*
|
||||||
*
|
|
||||||
*
|
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/blogcalendar_menu/languages/English.php,v $
|
|
||||||
* $Revision$
|
|
||||||
* $Date$
|
|
||||||
* $Author$
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
define("BLOGCAL_L1", "News for ");
|
define("BLOGCAL_L1", "News for ");
|
||||||
@@ -42,9 +36,9 @@ define("BLOGCAL_1", "News Items");
|
|||||||
|
|
||||||
define("BLOGCAL_CONF1", "Months/row");
|
define("BLOGCAL_CONF1", "Months/row");
|
||||||
define("BLOGCAL_CONF2", "Cellpadding");
|
define("BLOGCAL_CONF2", "Cellpadding");
|
||||||
define("BLOGCAL_CONF3", "Update Menu Settings");
|
//define("BLOGCAL_CONF3", "Update Menu Settings");
|
||||||
define("BLOGCAL_CONF4", "BlogCal Menu Configuration");
|
define("BLOGCAL_CONF4", "BlogCal Menu Configuration");
|
||||||
define("BLOGCAL_CONF5", "BlogCal menu configuration saved");
|
//define("BLOGCAL_CONF5", "BlogCal menu configuration saved");
|
||||||
|
|
||||||
define("BLOGCAL_ARCHIV1", "Select Archive");
|
define("BLOGCAL_ARCHIV1", "Select Archive");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user