diff options
author | rub <rub@piwigo.org> | 2006-04-01 09:42:55 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2006-04-01 09:42:55 +0000 |
commit | 68ed2ea617ede199a0e2f15fdd4886095ae600cb (patch) | |
tree | 4b0a0ec1c6ebb2c75df1e105630ffe9c55b9dee8 /nbm.php | |
parent | 7b4a6232cac2d23d2aecf7aeca06643429e1805d (diff) |
[NBM] Step 8: Change info plain-text to html-text (pwg designed)
git-svn-id: http://piwigo.org/svn/trunk@1118 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | nbm.php | 34 |
1 files changed, 23 insertions, 11 deletions
@@ -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 '<pre>'; +$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 '</pre>'; - - +// +-----------------------------------------------------------------------+ +// | html code display | +// +-----------------------------------------------------------------------+ +$template->parse('nbm'); +include(PHPWG_ROOT_PATH.'include/page_tail.php'); ?>
\ No newline at end of file |