<?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: SelectPage.html,v 1.15 2004/08/04 16:06:08 derekbrooks Exp $
*
*/
// set title
// should support multiple languages
$GLOBALS['CLN_PAGE_TITLE'] = 'Delete a Page';
?>
<form name="SelectPage" action="<?php echo appendToURL(cleanURL($GLOBALS['path']), 'editKoId=' . $this->_super->koId . '&editProcess=Content&subprocess=DeletePage'); ?>" method="post">
<p>Select a page to delete:</p>
<?php
$pages = $this->getNodes(2, NULL, NULL);
?>
<table border="0" cellpadding="2">
<tr>
<td><b>Select:</b></td>
<td><b>Block #</b></td>
<td><b>Page Name</b></td>
<td><b>Filename</b></td>
</tr>
<?php
$pageCount = 0;
foreach($pages as $node) {
echo "<tr>\n";
if ($node['nodeName'] != 'index.php') {
echo '<td><input type="radio" id="koId' . $node['koId'] . '" name="pageId" value="' . $node['koId'] . '" /></td>';
}
else {
echo '<td>N/A</td>';
}
echo "<td>" . $node['koId'] . "</td>\n";
$languages = array_keys($node['title']);
$langToUse = whichLanguage($languages);
echo "<td>" . $node['title'][$langToUse] . "</td>\n";
echo "<td>" . $node['nodeName'] . "</td>\n";
echo "</tr>\n\n";
}
?>
</table>
<span class="clnFormLine">
<label class="clnFormLabel" for="selectPage"></label>
<input class="clnFormInput" type="submit" id="selectPage" name="selectPage" value="Select this Page" />
<input class="clnFormInput" type="submit" name="ReturnToPanel" value="Cancel" />
</span>
</form>