<?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: EditLayout.html,v 1.21 2004/08/19 19:18:50 cbooth7575 Exp $
*
*/
// set title
// should support multiple languages
$GLOBALS['CLN_PAGE_TITLE'] = 'Change 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."lib/CLN/interfaces/Page/getLayoutContent.php";
/*
there is a bug with the div around the flash. getting focus with another form element on
the page, displays a box in the top left corner.
*/
?>
<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; ?>&REQUEST_URI=<?php echo urlencode($_SERVER['REQUEST_URI']); ?>&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; ?>&REQUEST_URI=<?php echo urlencode($_SERVER['REQUEST_URI']); ?>&rand=<?php echo rand(); ?>" />
<param name="quality" value="high"/>
<param name="bgcolor" value="#FFFFFF"/>
<param name="wmode" value="transparent"/>
</object>
</div>