".(varsettrue($profile_info['title']) ? '
'.$profile_info['title'].'' : '')."
diff --git a/e107_files/jslib/core/admin.js b/e107_files/jslib/core/admin.js
index dcbfda965..3ef4e41e3 100644
--- a/e107_files/jslib/core/admin.js
+++ b/e107_files/jslib/core/admin.js
@@ -8,8 +8,8 @@
* e107 Admin Helper
*
* $Source: /cvs_backup/e107_0.8/e107_files/jslib/core/admin.js,v $
- * $Revision: 1.8 $
- * $Date: 2008-12-21 11:47:29 $
+ * $Revision: 1.9 $
+ * $Date: 2008-12-22 16:50:07 $
* $Author: secretr $
*
*/
@@ -46,8 +46,11 @@ e107Admin.Helper = {
element.select('button.action[name=check_all]').invoke('observe', 'click', this.allCheckedEventHandler);
element.select('button.action[name=uncheck_all]').invoke('observe', 'click', this.allUncheckedEventHandler);
element.select('button.delete', 'input.delete[type=image]', 'a.delete').invoke('observe', 'click', function(e) {
- if(e.element().hasClassName('no-confirm') || (e.element().readAttribute('rel') && e.element().readAttribute('rel').toLowerCase == 'no-confirm')) return;
- var msg = e.element().readAttribute('title') || e107.getModLan('delete_confirm');
+ var el = e.findElement('a.delete');
+ if(!el) el = e.element();
+ if(!el) return;
+ if(el.hasClassName('no-confirm') || (el.readAttribute('rel') && el.readAttribute('rel').toLowerCase() == 'no-confirm')) return;
+ var msg = el.readAttribute('title') || e107.getModLan('delete_confirm');
if( !e107Helper.confirm(msg) ) e.stop();
});
},
diff --git a/e107_languages/English/admin/lan_admin.php b/e107_languages/English/admin/lan_admin.php
index 62ed0c65b..1e35858c2 100644
--- a/e107_languages/English/admin/lan_admin.php
+++ b/e107_languages/English/admin/lan_admin.php
@@ -1,7 +1,7 @@
this is only used when multiple campaigns are selected");
+define("BNRLAN_25", "add new or choose existing campaign");
+define("BNRLAN_26", "enter new campaign");
+define("BNRLAN_26a", "New Campaign");
+define("BNRLAN_28", "add new or choose existing client");
+define("BNRLAN_29", "enter new client");
+define("BNRLAN_29a", "New Client");
+
+define("BNRLAN_65", "Stats");
+define("BNRLAN_66", "N/A");
+
+define("BNRLAN_67", "No campaigns yet.");
+define("BNRLAN_68", "Banner Menu Configuration");
?>
\ No newline at end of file
diff --git a/e107_plugins/banner_menu/config.php b/e107_plugins/banner_menu/config.php
index aac0041bc..8840b6ee7 100644
--- a/e107_plugins/banner_menu/config.php
+++ b/e107_plugins/banner_menu/config.php
@@ -1,23 +1,29 @@
$v)
+ foreach($_POST as $k => $v)
{
- if (strpos($k, "banner_") === 0)
+ if (strpos($k, "banner_") === 0)
{
$temp[$k] = $v;
}
}
-
- if (isset($_POST['catid']))
+
+ if (isset($_POST['catid']))
{
$array_cat = explode("-", $_POST['catid']);
- for($i = 0; $i < count($array_cat); $i++)
+ for($i = 0; $i < count($array_cat); $i++)
{
$cat .= $array_cat[$i]."|";
}
$cat = substr($cat, 0, -1);
$temp['banner_campaign'] = $cat;
}
-
+
if ($admin_log->logArrayDiffs($temp, $menu_pref, 'BANNER_05'))
{
@@ -73,25 +79,25 @@ if (isset($_POST['update_menu']))
}
$ns->tablerender("", "
".$message."
");
}
-
-if (!$menu_pref['banner_caption'])
+
+if (!$menu_pref['banner_caption'])
{
$menu_pref['banner2_caption'] = BANNER_MENU_L1;
}
-
+
$text = "
";
-
+
$ns->tablerender(BANNER_MENU_L5, $text);
-
-
+
+
require_once(e_ADMIN."footer.php");
-
+
function headerjs() {
-
+
$script_js = "\n";
return $script_js;
}
-
+
?>
\ No newline at end of file
diff --git a/e107_themes/_blank/admin_style.css b/e107_themes/_blank/admin_style.css
index 798ab1559..d26c4c8ff 100644
--- a/e107_themes/_blank/admin_style.css
+++ b/e107_themes/_blank/admin_style.css
@@ -328,7 +328,6 @@ input.action.edit {}
.admin-page-body { padding: 20px 15px 0; }
.admin-footer {}
legend { font-size: 14px; font-weight: bold; padding: 5px; }
-.admin-help p { margin-bottom: 10px } /* help side menu */
/******** Layout */
.main-table { width: 100%; border: 0 none; }