// distruggere FP se esiste
// prendere il nome della finestra
$thisPERSONAL = $PARAM[0];
$thisDATE = $PARAM[1]."-".$PARAM[2]."-".$PARAM[3];
$thisStatus=$PARAM[4];
$thisTIME = $PARAM[5].":".$PARAM[6];

if ($thisStatus==1 || $thisStatus==2)
	$thisAppId=$PARAM[7];

$this->resultPunto("dojo.debug('MODULE: APP DATE: ".$thisDATE." TIME ".$thisTIME." STATUS: ".$thisStatus." APP ID: ".$thisAppId." ');");

$thisName='APP';

$nameFP="Stampa";

$this->resultPunto("if (dojo.widget.byId('WIDAID11FPCONFIG')) dojo.widget.byId('WIDAID11FPCONFIG').destroy();");
$this->resultPunto("if (dojo.widget.byId('WIDAID11CPCONFIGINT')) dojo.widget.byId('WIDAID11CPCONFIGINT').destroy();");
// creare FP
$this->resultPunto("var AID11DIVCONFIG = document.createElement('div');");
$this->resultPunto("AID11DIVCONFIG.id='IDAID11DIVCONFIG';");
$this->resultPunto("AID11DIVCONFIG.setAttribute('id','IDAID11DIVCONFIG');");
$this->resultPunto("AID11DIVCONFIG.style['width']='700px';");
$this->resultPunto("AID11DIVCONFIG.style['height']='300px';");
$this->resultPunto("AID11DIVCONFIG.style['left']='40px';");
$this->resultPunto("AID11DIVCONFIG.style['top']='40px';");
$this->resultPunto("AID11DIVCONFIG.style['id']='IDAID11DIVCONFIG';");
$this->resultPunto("document.getElementById('DIVAID11BIDKERNEL').appendChild(AID11DIVCONFIG);");
$this->resultPunto("var AID11FPCONFIG = dojo.widget.createWidget('FloatingPane',{id:'IDAID11FPCONFIG', widgetId:'WIDAID11FPCONFIG',iconSrc:'images/flatScreen.gif',title: '$nameFP',displayMaximizeAction:false,hasShadow:'true',displayCloseAction:'true'},AID11DIVCONFIG);");
$this->resultPunto("AID11FPCONFIG.setContent(\\\"\\\");");
