$page->changeTpl('newsletter/admin.tpl');
$page->assign('xorg_title','Polytechnique.org - Administration - Newsletter : liste');
require_once("newsletter.inc.php");
$page->changeTpl('newsletter/admin.tpl');
$page->assign('xorg_title','Polytechnique.org - Administration - Newsletter : liste');
require_once("newsletter.inc.php");
function handler_admin_nl_edit(&$page, $nid = 'last', $aid = null, $action = 'edit') {
$page->changeTpl('newsletter/edit.tpl');
function handler_admin_nl_edit(&$page, $nid = 'last', $aid = null, $action = 'edit') {
$page->changeTpl('newsletter/edit.tpl');
- $page->assign('xorg_title','Polytechnique.org - Administration - Newsletter : Edition');
+ $page->addCssLink('nl.css');
+ $page->assign('xorg_title','Polytechnique.org - Administration - Newsletter : Edition');
if(Post::v('save')) {
$art = new NLArticle(Post::v('title'), Post::v('body'), Post::v('append'),
$aid, Post::v('cid'), Post::v('pos'));
$nl->saveArticle($art);
pl_redirect("admin/newsletter/edit/$nid");
}
if(Post::v('save')) {
$art = new NLArticle(Post::v('title'), Post::v('body'), Post::v('append'),
$aid, Post::v('cid'), Post::v('pos'));
$nl->saveArticle($art);
pl_redirect("admin/newsletter/edit/$nid");
}
$page->assign_by_ref('nl',$nl);
}
function handler_admin_nl_cat(&$page, $action = 'list', $id = null) {
$page->assign_by_ref('nl',$nl);
}
function handler_admin_nl_cat(&$page, $action = 'list', $id = null) {
- $page->assign('xorg_title','Polytechnique.org - Administration - Newsletter : Catégories');
- $page->assign('title', 'Gestion des catégories de la newsletter');
+ $page->assign('xorg_title','Polytechnique.org - Administration - Newsletter : Catégories');
+ $page->assign('title', 'Gestion des catégories de la newsletter');
$table_editor->describe('pos','position',true);
$table_editor->apply($page, $action, $id);
}
}
$table_editor->describe('pos','position',true);
$table_editor->apply($page, $action, $id);
}
}