Location: PHPKode > projects > Community Learning Network > cln/modules/Tutorial/TutorialEditBlock.html
<?php
/*
 * Tutorial Edit Block 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: TutorialEditBlock.html,v 1.2 2004/11/12 18:18:24 darcy Exp $
 *
 */

// set title
// should support multiple languages
$GLOBALS['CLN_PAGE_TITLE'] = 'Edit a block from this Tutorial Step';

?>

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

<p>Select the block that you want to edit from this step
  in the tutorial. You will be forwarded to the Control Panel for that block, and will can return afterwards.</p>

<?php
$kos = $this->getBlockIds($_GET['tutorialStep']);
?>

<table border="0" cellpadding="2">
	<tr>
		<td><b>Select:</b></td>
		<td><b>Block #</b></td>
		<td><b>Module Type</b></td>
		<td><b>Title</b></td>

	</tr>

<?php
foreach($kos as $koId) {

	$ko = & new $GLOBALS['classes']['ko']['classname']($koId);
	$ko->loadPartObject(0);
	if ($ko->isEditable()) {
		echo "<tr>\n";
		echo '<td><input type="radio" id="koId' . $ko->koId . '" name="addKoId" value="' . $ko->koId . '" /></td>'; 
		echo "<td>" . $ko->koId . "</td>\n";
		echo "<td>" . $ko->modName . "</td>\n";
		echo "<td>" . $ko->currentPart['title'] . "</td>\n";
		echo "</tr>\n\n";
	}
}
echo "</table>\n";


?>


<span class="clnFormLine">
	<label class="clnFormLabel" for="selectBlock"></label>
	<input class="clnFormInput" type="submit" id="selectBlock" name="selectBlock" value="Select this block" />
	<input class="clnFormInput" type="submit" name="ReturnToPanel" value="<?php echo ADMIN_BTN_CANCEL_RETURN; ?>" />
</span>

</form>
Return current item: Community Learning Network