<?php
/*
* CLN Admin Interface
*
* Copyright (c) 2003-4 St. Christopher House
*
* Developed by The Working Group Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* @version $Id: DeleteBlockConfirmation.html,v 1.13 2004/11/12 18:18:21 darcy Exp $
*
*/
// set title
// should support multiple languages
$GLOBALS['CLN_PAGE_TITLE'] = 'Block Delete - Confirmation';
?>
<form name="DeleteBlockConfirmation" action="<?php echo appendToURL(cleanURL($GLOBALS['path']), 'editKoId=' . $this->_super->koId . '&editProcess=Content&subprocess=DeleteBlockConfirmation'); ?>" method="post">
<?php
$thisBlock = new $GLOBALS['classes']['ko']['classname']($_POST['addKoId']);
$thisBlock->loadPartObject(0);
?>
<p>You have selected to delete the block called <b><?php echo $thisBlock->currentPart['title']; ?></b> made
from the <b><?php echo $thisBlock->modName; ?></b> Module.
This cannot be undone.</p>
<?php
if ($thisBlock->isManageable()) {
?>
<p>Since you are an Owner or Publisher of this block, you can:<br/>
1. delete this block entirely from the Knowledge Base. If you delete it entirely,
it will be removed from all other pages it exists on.<br/>
2. you can leave it in the Knowledge Base, but just remove it from this page. <br/>
</p>
<!-- :ONEDAY: list other pages that this block is displayed on. -->
<p>
<input type="radio" name="deleteFromKB" value="1" />
Delete this block entirely from the Knowledge Base<br />
<input type="radio" name="deleteFromKB" value="0" checked="checked" />
Remove it from this page, but leave it in the Knowledge Base.
</p>
<?php
} else {
?>
<!-- any text you want the user to see when they are just 'removing' the block (ie cannot delete from kb -->
<?php
}
?>
<p>Are you sure?</p>
<input type="hidden" id="deleteBlockKoId" name="deleteBlockKoId" value="<?php echo $thisBlock->koId; ?>" />
<span class="clnFormLine">
<label class="clnFormLabel" for="DeleteBlockConfirmation"></label>
<input class="clnFormInput" type="submit" id="DeleteBlockConfirmation" name="DeleteBlockConfirmation" value="Yes" />
<input class="clnFormInput" type="submit" name="cancel" value="Cancel" />
</span>
</form>