Location: PHPKode > projects > Community Learning Network > cln/lib/CLN/interfaces/Room/DeletePageConfirmation.html
 * 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
 * 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 . '&amp;editProcess=Content&amp;subprocess=DeletePageConfirmation'); ?>" method="post">

$thisPage = new $GLOBALS['classes']['ko']['classname']($_POST['pageId']);

<p>You have selected to delete the page called <b><?php echo $thisPage->currentPart['title']; ?></b>.
  This cannot be undone.</p>

if ($thisPage->isManageable()) {
<p>Since you are an Owner or Publisher of this page, you
  delete this page entirely from the Knowledge Base, or <br>
  you can leave
    it in the Knowledge Base, but just remove it from this room.<br>
  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>


<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" />

Return current item: Community Learning Network