<?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: DeletePageConfirmation.html,v 1.11 2004/11/12 18:18:21 darcy Exp $
*
*/
// set title
// should support multiple languages
$GLOBALS['CLN_PAGE_TITLE'] = 'Page Delete - Confirmation';
?>
<form name="DeletePageConfirmation" action="<?php echo appendToURL(cleanURL($GLOBALS['path']), 'editKoId=' . $this->_super->koId . '&editProcess=Content&subprocess=DeletePageConfirmation'); ?>" method="post">
<?php
$thisPage = new $GLOBALS['classes']['ko']['classname']($_POST['pageId']);
$thisPage->loadPartObject(0);
?>
<p>You have selected to delete the page called <b><?php echo $thisPage->currentPart['title']; ?></b>.
This cannot be undone.</p>
<?php
if ($thisPage->isManageable()) {
?>
<p>Since you are an Owner or Publisher of this page, you
can:<br>
1.
delete this page entirely from the Knowledge Base, or <br>
2.
you can leave
it in the Knowledge Base, but just remove it from this room.<br>
If
you delete it entirely, it will be removed from anywhere else
that it is used as well. <!-- :ONEDAY: list the other places that this page appears. --></p>
<p><input type="radio" id="deleteFromKB" name="deleteFromKB" value="1">
Yes, delete this page entirely from the Knowledge Base<br />
<input type="radio" id="deleteFromKB" name="deleteFromKB" value="0" checked>
No, just remove it from this room, but leave it in the
Knowledge Base.</p>
<?php
}
?>
<p>Are you sure you want to delete this page?</p>
<input type="hidden" id="deletePageKoId" name="deletePageKoId" value="<?php echo $thisPage->koId; ?>">
<span class="clnFormLine">
<label class="clnFormLabel" for="DeletePageConfirmation"></label>
<input class="clnFormInput" type="submit" id="DeletePageConfirmation" name="DeletePageConfirmation" value="Yes, delete this page" />
<input class="clnFormInput" type="submit" name="cancel" value="No, don't delete it" />
</span>
</form>