function spa_render_themes_panel($formid)
{
    ?>
	<div class="clearboth"></div>

	<div class="wrap sfatag">
<?php 
    spa_render_sidemenu();
    ?>
		<div id='sfmsgspot'></div>
		<div id="sfmaincontainer">
<?php 
    spa_render_themes_container($formid);
    ?>
		</div>
			<div class="clearboth"></div>
	</div>
<?php 
}
}
include_once SF_PLUGIN_DIR . '/admin/panel-themes/spa-themes-display.php';
include_once SF_PLUGIN_DIR . '/admin/panel-themes/support/spa-themes-prepare.php';
include_once SF_PLUGIN_DIR . '/admin/panel-themes/support/spa-themes-save.php';
include_once SF_PLUGIN_DIR . '/admin/library/spa-tab-support.php';
global $adminhelpfile;
$adminhelpfile = 'admin-themes';
# --------------------------------------------------------------------
# ----------------------------------
# Check Whether User Can Manage Options
if (!sp_current_user_can('SPF Manage Themes')) {
    spa_etext('Access denied - you do not have permission');
    die;
}
if (isset($_GET['loadform'])) {
    spa_render_themes_container($_GET['loadform']);
    die;
}
if (isset($_GET['saveform'])) {
    switch ($_GET['saveform']) {
        case 'theme':
            $msg = spa_save_theme_data();
            ?>
        	<script type="text/javascript">
            	jQuery(document).ready(function(){
            		jQuery("#sfmsgspot").fadeIn("fast");
            		jQuery("#sfmsgspot").html("<?php 
            echo $msg;
            ?>
");
            		jQuery("#sfmsgspot").fadeOut(8000);