<?php
/*
* Tutorial Delete Block Confirmation 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: TutorialDeleteBlockConfirmation.html,v 1.5 2004/11/12 18:18:24 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&tutorialStep=' . $_GET['tutorialStep']); ?>" 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 it entirely from the Knowledge Base, or <br>
2.
you can leave
it in the Knowledge Base, but just remove it from this page.
<br>
If you delete it entirely, it will be removed from any other
pages it exists on. <!-- :ONEDAY: list the other pages these blocks appear on.--></p>
<p><input type="radio" name="deleteFromKB" value="1" /> Yes, Delete it entirely from the Knowledge Base<br />
<input type="radio" name="deleteFromKB" value="0" checked="checked" />
No, just remove it from this tutorial, but leave it in the Knowledge
Base.</p>
<?php
}
?>
<p>Are you sure you want to delete this block?</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, delete this block" />
<input class="clnFormInput" type="submit" name="cancel" value="No, don't delete it" />
</span>
</form>