Source for file edition.php
Documentation is available at edition.php
* Copyright (c) 2005 bitweaver.org
* All Rights Reserved. See below for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details
* @author spider <spider@steelsun.com>
require_once( '../kernel/setup_inc.php' );
$gBitSystem->verifyPackage( 'newsletters' );
require_once( NEWSLETTERS_PKG_PATH. 'lookup_newsletter_edition_inc.php' );
$newsletters = $gContent->mNewsletter->getList( $listHash );
$gBitSmarty->assign( 'newsletters', $newsletters );
if (isset ($_REQUEST["remove"] ) && $gContent->isValid() ) {
if( !empty( $_REQUEST['cancel'] ) ) {
// user cancelled - just continue on, doing nothing
} elseif( empty( $_REQUEST['confirm'] ) ) {
$formHash['remove'] = TRUE;
$formHash['edition_id'] = $gContent->mEditionId;
$gBitSystem->confirmDialog( $formHash,
'warning' => tra('Are you sure you want to delete this newsletter edition?'). ' ' . $gContent->getTitle()
header( "Location: ". NEWSLETTERS_PKG_URL. 'edition.php' );
if( $gContent->isValid() ) {
$title = $gContent->mInfo['title'];
$mid = 'bitpackage:newsletters/view_edition.tpl';
$editions = $gContent->getList( $listHash );
$gBitSmarty->assign_by_ref( 'editionList', $editions );
$gBitSmarty->assign( 'listInfo', $listHash );
$title = tra("List Editions");
$mid = 'bitpackage:newsletters/list_editions.tpl';
$gBitSystem->display( $mid, $title , array( 'display_mode' => 'edit' ));
|