Exemple #1
0
	
	if(isset($_GET["instances-tabs"])){tabs();exit;}
	
	if(isset($_GET["instances-list"])){instances_list();exit;}
	if(isset($_GET["instances-search"])){instances_search();exit;}
	
	if(isset($_GET["crossroads-list"])){crossroads_list();exit;}
	if(isset($_GET["crossroads-search"])){crossroads_search();exit;}
	if(isset($_GET["crossroads-delete"])){crossroads_delete();exit;}
	
	
	if(isset($_GET["instance-duplicate-form"])){instances_duplicate_form();exit;}
	if(isset($_GET["add-new-instance"])){instances_duplicate_perform();exit;}
	if(isset($_GET["status-instance"])){instance_status();exit;}
	if(isset($_GET["delete"])){instance_delete();exit;}
	if(isset($_GET["rebuild-instances"])){rebuild_instances();exit;}
	js();
	
	
function js(){
	$page=CurrentPageName();
		echo"document.getElementById('BodyContent').innerHTML='<center><img src=img/wait_verybig.gif></center>';
		$('#BodyContent').load('$page?instances-tabs=yes');";	
}
	
	
	
function tabs(){
	
	$page=CurrentPageName();
	$tpl=new templates();
    exit;
}
if (isset($_GET["add-new-instance"])) {
    instances_duplicate_perform();
    exit;
}
if (isset($_GET["status-instance"])) {
    instance_status();
    exit;
}
if (isset($_GET["delete"])) {
    instance_delete();
    exit;
}
if (isset($_GET["rebuild-instances"])) {
    rebuild_instances();
    exit;
}
js();
function js()
{
    $page = CurrentPageName();
    echo "document.getElementById('BodyContent').innerHTML='<center><img src=img/wait_verybig.gif></center>';\n\t\t\$('#BodyContent').load('{$page}?instances-tabs=yes&font-size={$_GET["font-size"]}');";
}
function tabs()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $array["instances-list"] = "{POSTFIX_MULTI_INSTANCE_INFOS}";
    $array["crossroads-list"] = "{APP_CROSSROADS}";
    if ($_GET["font-size"] != null) {