+
+
+
+
+ -
+
+
- {errors.error.ERROR} + +
+
+
+
+-
+
+
- {infos.info.INFO} + +
diff --git a/nbm.php b/nbm.php index 7aee31f8c..6f5e69d8b 100644 --- a/nbm.php +++ b/nbm.php @@ -55,34 +55,46 @@ if (isset($_GET['unsubscribe']) } else { - echo l10n('nbm_unknown_identifier'); - exit(); +/* echo l10n('nbm_unknown_identifier'); + exit();*/ + array_push($page['errors'], l10n('nbm_unknown_identifier')); } // +-----------------------------------------------------------------------+ -// | infos & errors display | +// | template initialization | // +-----------------------------------------------------------------------+ -echo '
';
+$title = $lang['nbm_item_notification'];
+$page['body_id'] = 'theNBMPage';
+include(PHPWG_ROOT_PATH.'include/page_header.php');
+$template->set_filenames(array('nbm'=>'nbm.tpl'));
+
+$template->assign_vars(array('U_HOME' => make_index_url()));
+
+// +-----------------------------------------------------------------------+
+// | errors & infos |
+// +-----------------------------------------------------------------------+
if (count($page['errors']) != 0)
{
- echo "\n\nErrors:\n";
+ $template->assign_block_vars('errors',array());
foreach ($page['errors'] as $error)
{
- echo $error."\n";
+ $template->assign_block_vars('errors.error',array('ERROR'=>$error));
}
}
if (count($page['infos']) != 0)
{
- echo "\n\nInformations:\n";
+ $template->assign_block_vars('infos',array());
foreach ($page['infos'] as $info)
{
- echo $info."\n";
+ $template->assign_block_vars('infos.info',array('INFO'=>$info));
}
}
-echo '';
-
-
+// +-----------------------------------------------------------------------+
+// | html code display |
+// +-----------------------------------------------------------------------+
+$template->parse('nbm');
+include(PHPWG_ROOT_PATH.'include/page_tail.php');
?>
\ No newline at end of file
diff --git a/template/yoga/content.css b/template/yoga/content.css
index 7805fb4be..2054efd78 100644
--- a/template/yoga/content.css
+++ b/template/yoga/content.css
@@ -12,7 +12,8 @@ BODY#theSearchPage #content,
BODY#theAboutPage #content,
BODY#thePopuphelpPage #content,
BODY#thePasswordPage #content,
-BODY#theNotificationPage #content
+BODY#theNotificationPage #content,
+BODY#theNBMPage #content
{
margin: 1em;
}
diff --git a/template/yoga/nbm.tpl b/template/yoga/nbm.tpl
new file mode 100644
index 000000000..a22744e5b
--- /dev/null
+++ b/template/yoga/nbm.tpl
@@ -0,0 +1,31 @@
+
+
+