コード例 #1
0
function spa_render_integration_panel($formid)
{
    ?>
	<div class="clearboth"></div>

	<div class="wrap sfatag">
		<?php 
    spa_render_sidemenu();
    ?>
		<div id='sfmsgspot'></div>
		<div id="sfmaincontainer">
			<?php 
    spa_render_integration_container($formid);
    ?>
		</div>
			<div class="clearboth"></div>
	</div>
<?php 
}
コード例 #2
0
}
include_once SF_PLUGIN_DIR . '/admin/panel-integration/spa-integration-display.php';
include_once SF_PLUGIN_DIR . '/admin/panel-integration/support/spa-integration-prepare.php';
include_once SF_PLUGIN_DIR . '/admin/panel-integration/support/spa-integration-save.php';
include_once SF_PLUGIN_DIR . '/admin/library/spa-tab-support.php';
global $adminhelpfile;
$adminhelpfile = 'admin-integration';
# --------------------------------------------------------------------
# ----------------------------------
# Check Whether User Can Manage Integration
if (!sp_current_user_can('SPF Manage Integration')) {
    spa_etext('Access denied - you do not have permission');
    die;
}
if (isset($_GET['loadform'])) {
    spa_render_integration_container($_GET['loadform']);
    die;
}
if (isset($_GET['saveform'])) {
    if ($_GET['saveform'] == 'page') {
        echo spa_save_integration_page_data();
        die;
    }
    if ($_GET['saveform'] == 'storage') {
        echo spa_save_integration_storage_data();
        die;
    }
    if ($_GET['saveform'] == 'language') {
        echo spa_save_integration_language_data();
        die;
    }