Location: PHPKode > projects > Community Learning Network > cln/lib/CLN/interfaces/Room/DeleteSubroomConfirmation.html
<?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: DeleteSubroomConfirmation.html,v 1.10 2004/11/12 18:18:21 darcy Exp $
 *
 */

// set title
// should support multiple languages
$GLOBALS['CLN_PAGE_TITLE'] = 'Sub-room Delete - Confirmation';

?>

<form name="DeleteSubroomConfirmation" action="<?php echo appendToURL(cleanURL($GLOBALS['path']), 'editKoId=' . $this->_super->koId . '&amp;editProcess=Content&amp;subprocess=DeleteSubroomConfirmation'); ?>" method="post">

<?php
$thisSubroom = new $GLOBALS['classes']['ko']['classname']($_POST['subroomId']);
$thisSubroom->loadPartObject(0); 
?>

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

<?php

if ($thisSubroom->isManageable()) {

?>
<p>Since you are an Owner or Publisher of this Sub-room,
  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
  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 room appears. --></p>

<p><input type="radio" id="deleteFromKB" name="deleteFromKB" value="1"> Yes, Delete it 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 block?</p>

<input type="hidden" id="deleteSubroomKoId" name="deleteSubroomKoId" value="<?php echo $thisSubroom->koId; ?>">

<span class="clnFormLine">
	<label class="clnFormLabel" for="DeleteSubroomConfirmation"></label>
	<input class="clnFormInput" type="submit" id="DeleteSubroomConfirmation" name="DeleteSubroomConfirmation" value="Yes, delete this sub-room" />
	<input class="clnFormInput" type="submit" name="cancel" value="No, don't delete it" />
</span>

</form>
Return current item: Community Learning Network