Location: PHPKode > projects > Community Learning Network > cln/modules/Tutorial/TutorialEditLayout.html
<?php
/*
 * Tutorial Step Layout Edit Form
 *
 * 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: TutorialEditLayout.html,v 1.6 2004/08/19 19:27:13 cbooth7575 Exp $
 *
 */

// Set title
$GLOBALS['CLN_PAGE_TITLE'] = 'Edit Tutorial Layout';

if (substr(CLN_BASE_URL, -1) != '/') {
	$baseArray = explode('/', CLN_BASE_URL);
	array_pop($baseArray);
	$baseUrl = implode('/', $baseArray) . '/';
}
else {
	$baseUrl = CLN_BASE_URL;
}

$dataSource = $baseUrl . "modules/Tutorial/getStepLayout.php"."?stepId=".$_GET['tutorialStep'];

$cleanURL = cleanURL($GLOBALS['path']);;
$params = 'editKoId=' . $this->_super->koId . '&amp;editProcess=Content&subprocess=EditLayout';
$fullURL = appendToURL($cleanURL, $params);

?>

<p>Edit the layout of your tutorial below. Click Submit when you are done.</p>

<div style="width: 500px; height: 300px; text-align: left;">
<object type="application/x-shockwave-flash" 
	data="<?php echo CLN_CLEAN_URL_BASE; ?>lib/CLN/interfaces/Page/FlashLayout/layout.swf?dataSource=<?php echo $dataSource; ?>&amp;REQUEST_URI=<?php echo urlencode($_SERVER['REQUEST_URI']); ?>&amp;rand=<?php echo rand(); ?>"
 	width="100%" height="100%" id="layout" align="left">
 <param name="movie" value="<?php echo CLN_CLEAN_URL_BASE; ?>lib/CLN/interfaces/Page/FlashLayout/layout.swf?dataSource=<?php echo $dataSource; ?>&amp;REQUEST_URI=<?php echo urlencode($_SERVER['REQUEST_URI']); ?>&amp;rand=<?php echo rand(); ?>" /> 
 <param name="quality" value="high" /> 
 <param name="bgcolor" value="#FFFFFF" />
 <param name="wmode" value="transparent" />
</object>
</div>
Return current item: Community Learning Network