--
-- Host: localhost    Database: AID11
-- ------------------------------------------------------


--
-- Table structure for table `CALC_ABBON`
--

CREATE TABLE `CALC_ABBON` (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `ID_CAT` bigint(20) NOT NULL,
  `ID_TRAT` bigint(20) NOT NULL,
  `ID_ROOM` bigint(20) NOT NULL,
  `ID_PERS` bigint(20) NOT NULL DEFAULT 0,
  `DATE` date NOT NULL,
  `TIME` varchar(5) NOT NULL,
  `ID_ABBON` bigint(20) NOT NULL,
  `ID_APP` bigint(20) NOT NULL,
  `PRIORITA` double NOT NULL DEFAULT 0,
  `OS_ID` bigint(20) NOT NULL,
  `OS_DATE_ADD` datetime NOT NULL,
  `OS_DATE_MOD` datetime NOT NULL,
  `OS_DATE_DEL` datetime NOT NULL,
  `SESSION` varchar(128) NOT NULL,
  `TRAT_HOUR` varchar(5) NOT NULL,
  `OS_BARCODE` varchar(32) NOT NULL,
  PRIMARY KEY (`ID`),
  KEY `ID_APP` (`ID_APP`),
  KEY `ID_ABBON` (`ID_ABBON`),
  KEY `SESSION` (`SESSION`),
  KEY `OS_BARCODE` (`OS_BARCODE`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `CALC_ABBON`
--


--
-- Table structure for table `CALC_BUONO`
--

CREATE TABLE `CALC_BUONO` (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `ID_CAT` bigint(20) NOT NULL,
  `ID_TRAT` bigint(20) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `CALC_BUONO`
--


--
-- Table structure for table `CALC_MULTI`
--

CREATE TABLE `CALC_MULTI` (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `ID_CAT` bigint(20) NOT NULL,
  `ID_TRAT` bigint(20) NOT NULL,
  `ID_ROOM` bigint(20) NOT NULL,
  `ID_PERS` bigint(20) NOT NULL,
  `DATE` date NOT NULL,
  `TIME` varchar(5) NOT NULL,
  `OS_ID` bigint(20) NOT NULL,
  `OS_DATE_ADD` datetime NOT NULL,
  `OS_DATE_MOD` datetime NOT NULL,
  `OS_DATE_DEL` datetime NOT NULL,
  `SESSION` varchar(128) NOT NULL,
  `TRAT_HOUR` varchar(5) NOT NULL,
  `OS_BARCODE` varchar(32) NOT NULL,
  PRIMARY KEY (`ID`),
  KEY `SESSION` (`SESSION`),
  KEY `OS_BARCODE` (`OS_BARCODE`)
) ENGINE=MyISAM AUTO_INCREMENT=272 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `CALC_MULTI`
--


--
-- Table structure for table `EVENT_BUTTON_CLICK`
--

CREATE TABLE `EVENT_BUTTON_CLICK` (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `SID` bigint(20) NOT NULL,
  `BID` varchar(255) NOT NULL,
  `TYPE` bigint(20) NOT NULL DEFAULT 1,
  `SCRIPT` longtext NOT NULL,
  `DESCRIPTION` varchar(255) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=47 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `EVENT_BUTTON_CLICK`
--

INSERT INTO `EVENT_BUTTON_CLICK` VALUES (45,0,'',2,'$this->resultPunto(\"dojo.debug(\'MODULE: EVENT_BUTTON_CLICK WIDGETID: \".$PARAM[0].\" FATHER: \".$PARAM[1].\" TARGET: \".$PARAM[2].\" NAME: \".$PARAM[3].\" ACTION: \".$PARAM[4].\" param5 \".$PARAM[5].\"\');\");\n// prendere parametri\n$thisWidgetId = $PARAM[0];\n$thisFather = $PARAM[1];\n$thisTarget = $PARAM[2];\n$thisName = $PARAM[3];\n$thisAction = $PARAM[4];\n\n// impostare content\nswitch ($thisFather)\n{\ncase \"APP\":\n	// appuntamento \n	switch ($thisAction)\n	{\n	case \"ACTION_VALIDATE\":\n		// controlli necessari\n		// prendere dati di validate\n		$this->resultPunto(\"var tmpContent=\'$thisWidgetId:$thisFather:$thisTarget:$thisName:SAVE_VALIDATE:\';\");\n		//$exist=0;\n		// trovare la durata\n		$this->resultPunto(\"var durataSplit=arrayData[\'AIP\'][11][\'DATA\'][\'PERIOD\'][\'NAME\'][arrayData[\'AIP\'][11][\'DATA\'][\'SPECSPEC\'][\'PERIOD\'][dojo.byId(\'APPSPECSPEC\').value]].split(\':\');var IPTPSplit=dojo.byId(\'IPTP\').value.split(\':\');var IPTPEndHour=IPTPSplit[0]*1+durataSplit[0]*1;var IPTPEndMin=IPTPSplit[1]*1+durataSplit[1]*1;if (IPTPEndMin>=60) {IPTPEndMin=IPTPEndMin-60;IPTPEndHour=IPTPEndHour+1;} var IPTPEnd=(IPTPSplit[0]*1+durataSplit[0]*1)+\':\'+(IPTPSplit[1]*1+durataSplit[1]*1);\");\n		$this->resultPunto(\"tmpContent+=dojo.widget.byId(\'APPSELCLIENT\').getState().value+\':\'+dojo.byId(\'APPSPEC\').value+\':\'+dojo.byId(\'APPSPECSPEC\').value+\':\'+dojo.byId(\'APPPERSONAL\').value+\':\'+dojo.byId(\'APPROOM\').value+\':\'+dojo.byId(\'IPDP\').value+\':\'+dojo.byId(\'IPTP\').value+\':\'+IPTPEnd+\':\".$PARAM[5].\"\';\");\n		if ($PARAM[5]==3 || $PARAM[5]==4)\n			$this->resultPunto(\"tmpContent+=\':\".$PARAM[6].\"\';\");\n		$this->resultPunto(\"dojo.debug(\'validate \".$PARAM[6].\"\');furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',tmpContent);\");\n	break;\n	case \"SAVE_VALIDATE\":\n		$thisClient=$PARAM[5];\n		$thisSpec=$PARAM[6];\n		$thisSpecSpec=$PARAM[7];\n		$thisPersonal=$PARAM[8];\n		$thisRoom=$PARAM[9];\n		$thisCalDate=$PARAM[10];\n		$thisDateTmp=split(\"-\",$PARAM[10]);\n		$thisDate=$thisDateTmp[2].\"-\".$thisDateTmp[1].\"-\".$thisDateTmp[0];\n		$thisTimeBegin=$PARAM[11].\":\".$PARAM[12];\n		$thisTimeEnd=$PARAM[13].\":\".$PARAM[14];\n		$status=$PARAM[15];\n		if ($status==3 || $status==4)\n			$id=$PARAM[16];\n		$this->resultPunto(\"dojo.debug(\'ID APP: $id STATUS $status\');\");	\n		//$this->resultPunto(\"dojo.debug(\'qwerty $thisClient $thisSpec $thisSpecSpec $thisPersonal $thisRoom $thisDate $thisTimeBegin $thisTimeEnd            \');\");\n		// verificare se e\' disponibile l\'orario e tutto il resto\n		// aggiungere dati nella DB\n		$mysql12 = new Mysql();\n		$mysql12 ->Database=\'AID11\';\n		$mysql12 ->connect();\n		switch ($status)\n		{\n		case 1: // aggiungere lo appuntamento da confermare\n		case 2: // aggiungere lo appuntamento confermato\n			$resMysql12 = $mysql12 ->query(\"INSERT INTO OS_DATA_APP (CLIENT,SPEC,SPECSPEC,PERSONAL,ROOM,DATE,TIME_BEGIN,TIME_END,DATE_GET,STATUS) VALUES ($thisClient, $thisSpec, $thisSpecSpec, $thisPersonal, $thisRoom, \'$thisDate\', \'$thisTimeBegin\', \'$thisTimeEnd\',NOW(),$status)\");\n			$id=mysql_insert_id();\n			$resMysql12 = $mysql12 -> query(\"SELECT ID,DATE_FORMAT(DATE,\'%d-%m-%Y\') AS DATE,CLIENT,SPEC,SPECSPEC,PERSONAL,ROOM,LEFT(TIME_BEGIN,5) AS TIME_BEGIN,LEFT(TIME_END,5) AS TIME_END,STATUS FROM OS_DATA_APP where ID=$id\");\n			while ($linea12 = mysql_fetch_array($resMysql12, MYSQL_ASSOC))\n			{	\n				$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\".$linea12[\'PERSONAL\'].\"]) arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\".$linea12[\'PERSONAL\'].\"] = new Array();\");\n				$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\']) arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'] = new Array();\");\n				$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\".$linea12[\'ID\'].\"]) arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\".$linea12[\'ID\'].\"] = new Array();\");\n				$this->resultPunto(\"arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\".$linea12[\'ID\'].\"][\'TIME_BEGIN\'] = \'\".$linea12[\'TIME_BEGIN\'].\"\';\");\n				$this->resultPunto(\"arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\".$linea12[\'ID\'].\"][\'TIME_END\'] = \'\".$linea12[\'TIME_END\'].\"\';\");\n				$this->resultPunto(\"arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\".$linea12[\'ID\'].\"][\'STATUS\'] = \".$linea12[\'STATUS\'].\";\");\n				// visualizzazione\n				$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"])arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"] = new Array();\");\n				$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'])arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\']= new Array();\");\n				$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\'ID\'])arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\'ID\']= new Array();\");\n				$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\'TIME\'])arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\'TIME\']= new Array();\");\n				$this->resultPunto(\"if (arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\'ID\'].length==0) {arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\'ID\'][0]=\".$linea12[\'ID\'].\";arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\'TIME\'][0]=\'\".$linea12[\'TIME_BEGIN\'].\"\';} else{var count=0;var put=0; for (var i in arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\'ID\']) {count++;if (arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\'TIME\'][i]>\'\".$linea12[\'TIME_BEGIN\'].\"\') {arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\'ID\'].splice(i,0,\".$linea12[\'ID\'].\");arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\'TIME\'].splice(i,0,\'\".$linea12[\'TIME_BEGIN\'].\"\');put=1;break;}}if (put==0){arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\'ID\'][count]=\".$linea12[\'ID\'].\";arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\'TIME\'][count]=\'\".$linea12[\'TIME_BEGIN\'].\"\';}}\");\n			}\n			mysql_free_result($mysql12->Query_ID);\n		break;\n		case 3: // confermare lo appuntamento non confermato\n			$resMysql12 = $mysql12 ->query(\"UPDATE OS_DATA_APP SET STATUS=2,DATE_CONFIRM=NOW() WHERE ID=\".$id);\n			$resMysql12 = $mysql12 -> query(\"SELECT ID,DATE_FORMAT(DATE,\'%d-%m-%Y\') AS DATE,CLIENT,SPEC,SPECSPEC,PERSONAL,ROOM,LEFT(TIME_BEGIN,5) AS TIME_BEGIN,LEFT(TIME_END,5) AS TIME_END,STATUS FROM OS_DATA_APP where ID=$id\");\n			while ($linea12 = mysql_fetch_array($resMysql12, MYSQL_ASSOC))\n			{\n				$this->resultPunto(\"arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\".$linea12[\'ID\'].\"][\'STATUS\'] = \".$linea12[\'STATUS\'].\";\");\n			}\n			mysql_free_result($mysql12->Query_ID);\n		break;\n		case 4: // eliminare lo appuntamento\n			$resMysql12 = $mysql12 -> query(\"SELECT ID,DATE_FORMAT(DATE,\'%d-%m-%Y\') AS DATE,CLIENT,SPEC,SPECSPEC,PERSONAL,ROOM,LEFT(TIME_BEGIN,5) AS TIME_BEGIN,LEFT(TIME_END,5) AS TIME_END,STATUS FROM OS_DATA_APP where ID=$id\");\n			while ($linea12 = mysql_fetch_array($resMysql12, MYSQL_ASSOC))\n			{\n				$resonal=$linea12[\'PERSONAL\'];\n				$date=$linea12[\'DATE\'];\n				$timeBegin=$linea12[\'TIME_BEGIN\'];\n				// mettere lo stato\n				$this->resultPunto(\"arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\".$linea12[\'ID\'].\"][\'STATUS\'] = -1;\");\n			}\n			mysql_free_result($mysql12->Query_ID);\n			$resMysql12 = $mysql12 ->query(\"DELETE FROM OS_DATA_APP WHERE ID=\".$id);\n			$this->resultPunto(\"for (var i in arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$resonal.\"][\'\".$date.\"\'][\'ID\']) {dojo.debug(\'COMPARE \'+arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$resonal.\"][\'\".$date.\"\'][\'TIME\'][i]+\' == $timeBegin\');if (arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$resonal.\"][\'\".$date.\"\'][\'TIME\'][i]==\'$timeBegin\') {arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$resonal.\"][\'\".$date.\"\'][\'TIME\'].splice(i,1);arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$resonal.\"][\'\".$date.\"\'][\'ID\'].splice(i,1);break;} dojo.debug(\'VISUAL ID \'+i+\' TIME \'+arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$resonal.\"][\'\".$date.\"\'][\'TIME\'][i]);}\");\n			\n		break;\n		}\n		\n		$this->resultPunto(\"furoros.Runmodule(\'11\',\'REFRESH_CALENDAR_MAIN\',\'APP\',\'\');\");\n		$this->resultPunto(\"dojo.widget.byId(\'WIDAID11FPCONFIG\').destroy();\");\n		\n	break;\n	}\nbreak;\ncase \"CONFIG\": // menu configurazione\n	switch ($thisTarget)\n	{\n	case \"DATA\":\n		$mysql12 = new Mysql();\n		$mysql12 ->Database=\'AID11\';\n		$mysql12 ->connect();\n		$resMysql12 = $mysql12 ->query(\"SELECT * FROM  OS_DATA_\".$thisName.\"_VALIDATE\");\n		$lineaValidate = mysql_fetch_array($resMysql12, MYSQL_ASSOC);\n		mysql_free_result($resMysql12);\n		switch ($thisName)\n		{\n		case \"PRIMANOTA\":\n			$this->resultPunto(\"$(\'IDAID11DIVCONFIG\').innerHTML=\'sdf\';dojo.widget.byId(\'\".$thisWidgetId.\"\').setContent(\\\\\\\"asdf\\\\\\\");\");die();\n		break;\n		case \"ROOMSPEC\":\n			// leggere categorie di specialita\n				$resMysql12 = $mysql12 -> query(\'SELECT * FROM OS_DATA_SPEC\');\n				if ($mysql12 -> numRows == 0)\n				{\n					$count[\'spec\']=0;\n				}\n				while ($linea12 = mysql_fetch_array($resMysql12, MYSQL_ASSOC)) \n				{\n					$count[\'spec\']++;\n					$countTmp = $count[\'spec\'];\n					$array[\'specId\'.$countTmp] = $linea12[\'ID\'];\n					$idTmp = $linea12[\'ID\'];\n					$array[\'specNome\'.$idTmp] = $linea12[\'NAME\'];//echo \"as durataAppuntamentoNome\".$countTmp;\n				}\n				mysql_free_result($mysql12->Query_ID);\n				// leggere specialita\n				$resMysql12 = $mysql12 -> query(\'SELECT * FROM OS_DATA_SPECSPEC\');\n				if ($mysql12 -> numRows == 0)\n				{\n					$count[\'specspec\']=0;\n				}\n				while ($linea12 = mysql_fetch_array($resMysql12, MYSQL_ASSOC)) \n				{\n					$count[\'specspec\']++;\n					$countTmp = $count[\'specspec\'];\n					$array[\'specspecId\'.$countTmp] = $linea12[\'ID\'];\n					$idTmp = $linea12[\'ID\'];\n					$array[\'specspecNome\'.$idTmp] = $linea12[\'NAME\'];//echo \"as durataAppuntamentoNome\".$countTmp;\n				}\n				mysql_free_result($mysql12->Query_ID);\n				\n			switch ($thisAction)\n			{\n			case \"OPEN_DEL\":\n			case \"FT_CLICK\":\n				// prendere ID di selezzionato\n				$thisId = $PARAM[5];\n				//$this->resultPunto(\"dojo.debug(\'$thisId\');\");\n				$resMysql12 = $mysql12 ->query(\"SELECT * FROM  OS_DATA_$thisName WHERE ID=$thisId\");\n				$linea = mysql_fetch_array($resMysql12, MYSQL_ASSOC);\n				mysql_free_result($resMysql12);	\n				// prendere valori\n				$tmpValue[\'NAME\']=$linea[\'NAME\'];\n				$tmpValue[\'CLIENT\']=$linea[\'CLIENT\'];\n				$tmpValue[\'SPEC\']=$linea[\'SPEC\'];\n				$tmpValue[\'POINT\']=$linea[\'POINT\'];\n				\n				// button diversi\n				switch ($thisAction)\n				{\n				case \"OPEN_DEL\":\n					$tmpContentBtn=\"<tr><td colspan=\'4\'><table style=\'border:0px;font-size:12px;\' border=\'0\'><tr><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'CPCONFIGEDITPERSONALSPEC:$thisFather:$thisTarget:$thisName:DEL:$thisId\')\\\\\\\\\\\\\\\">Conferma</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'CPCONFIGEDITPERSONALSPEC:$thisFather:$thisTarget:$thisName:CLOSE\')\\\\\\\\\\\\\\\">Indietro</button></td></tr></table></td></tr></table>\";\n				break;\n				case \"FT_CLICK\":\n					// LEGGIMI: cambiate dati di INPUT\n					$tmpContentBtn=\"<tr><td colspan=\'4\'><table style=\'border:0px;font-size:12px;\' border=\'0\'><tr><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'CPCONFIGEDITPERSONALSPEC:$thisFather:$thisTarget:$thisName:MOD:$thisId:\'+document.getElementById(\'IPSPECSPEC\').value+\':\'+document.getElementById(\'IPCLIENT\').value+\':\'+document.getElementById(\'IPSPEC\').value+\':\'+document.getElementById(\'IPPOINT\').value)\\\\\\\\\\\\\\\">Modifica</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'CPCONFIGEDITPERSONALSPEC:$thisFather:$thisTarget:$thisName:OPEN_ADD:\".$thisId.\"\')\\\\\\\\\\\\\\\">Aggiungi</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'CPCONFIGEDITPERSONALSPEC:$thisFather:$thisTarget:$thisName:OPEN_DEL:$thisId:\'+document.getElementById(\'IPSPECSPEC\').value+\':\'+document.getElementById(\'IPCLIENT\').value+\':\'+document.getElementById(\'IPSPEC\').value+\':\'+document.getElementById(\'IPPOINT\').value)\\\\\\\\\\\\\\\">Elimina</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'CPCONFIGEDITPERSONALSPEC:$thisFather:$thisTarget:$thisName:CLOSE:\".$thisId.\"\')\\\\\\\\\\\\\\\">Indietro</button></td></tr></table></td></tr></table>\";\n				break;\n				}\n			break;\n			case \"OPEN_ADD\": 		\n				//$thisAction = $PARAM[5];\n				//$this->resultPunto(\"dojo.debug(\'$thisAction\');\");\n				$thisId=0;		\n				$this->resultPunto(\"dojo.debug(\'quine\');\");\n				$tmpValue[\'NAME\']=\'\';\n				//$tmpValue[\'CLIENT\']=$PARAM[5];\n				$tmpValue[\'CLIENT\']=$PARAM[5];\n				$tmpValue[\'SPEC\']=\'\';\n				$tmpValue[\'POINT\']=\'\';\n				// LEGGIMI: cambiate dati di INPUT\n				$tmpContentBtn=\"<tr><td colspan=\'4\'><table style=\'border:0px;font-size:12px;\' border=\'0\'><tr><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'CPCONFIGEDITPERSONALSPEC:$thisFather:$thisTarget:$thisName:ADD:0:\'+document.getElementById(\'IPSPECSPEC\').value+\':\'+document.getElementById(\'IPCLIENT\').value+\':\'+document.getElementById(\'IPSPEC\').value+\':\'+document.getElementById(\'IPPOINT\').value)\\\\\\\\\\\\\\\">Aggiungi</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'CPCONFIGEDITPERSONALSPEC:$thisFather:$thisTarget:$thisName:CLOSE\')\\\\\\\\\\\\\\\">Indietro</button></td></tr></table></td></tr></table>\";\n			break;\n			}\n				$tmpContent=\"<table style=\'border:0px;font-size:12px;\' border=\'0\'>\";\n				// select categorie\n				$tmpContent.=\"<tr><td>Categoria di specialita</td><td><select id=\'IPSPEC\' name=\'IPSPEC\' onChange=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'REFRESH_CONFIG_PERSONALSPECSPEC\',\'APP\',document.getElementById(\'IPSPEC\').value)\\\\\\\\\\\\\\\">\";\n					// select categoria specialita\n					$tmpUltimoSpec=0;\n					for ($i=1;$i<=$count[\'spec\'];$i++)\n					{\n						$tmpContent.=\"<option \";\n						if ($array[\'specId\'.$i] == $tmpValue[\"SPEC\"])\n						{\n							$tmpContent.=\" selected \";\n						}\n						$_idOrari=$array[\'specId\'.$i];\n						$tmpContent.= \" value=$_idOrari>\".$array[\'specNome\'.$_idOrari].\"</option>\";\n					}\n					$tmpContent.=\"</select></td><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td>Preferenza</td></tr>\";\n				$tmpContent.=\"<tr><td>Specialita</td><td><div dojoType=\'contentPane\' widgetId=\'SELECTSPECSPEC\'><select id=\'IPSPECSPEC\' name=\'IPSPECSPEC\' style=\'font-size: 9px;\' disabled></div>\";\n					// select specialita\n				\n					$tmpContent.=\"</select></td><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td><img id=\'STAR1\'  onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'REFRESH_CONFIG_PERSONALSTAR\',\'APP\',\'1\')\\\\\\\\\\\\\\\" border=\'0\' src=\'../framework/furoros/share/APP/AID11/star1On.gif\' alt=\'Campo obbligatorio\'><img id=\'STAR2\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'REFRESH_CONFIG_PERSONALSTAR\',\'APP\',\'2\')\\\\\\\\\\\\\\\" border=\'0\' src=\'../framework/furoros/share/APP/AID11/star1Off.gif\' alt=\'Campo obbligatorio\'><img id=\'STAR3\' border=\'0\'  onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'REFRESH_CONFIG_PERSONALSTAR\',\'APP\',\'3\')\\\\\\\\\\\\\\\" src=\'../framework/furoros/share/APP/AID11/star1Off.gif\' alt=\'Campo obbligatorio\'><img id=\'STAR4\' border=\'0\'  onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'REFRESH_CONFIG_PERSONALSTAR\',\'APP\',\'4\')\\\\\\\\\\\\\\\"  src=\'../framework/furoros/share/APP/AID11/star1Off.gif\' alt=\'Campo obbligatorio\'><img  onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'REFRESH_CONFIG_PERSONALSTAR\',\'APP\',\'5\')\\\\\\\\\\\\\\\" id=\'STAR5\' border=\'0\' src=\'../framework/furoros/share/APP/AID11/star1Off.gif\' alt=\'Campo obbligatorio\'></td><input type=\'hidden\' id=\'IPPOINT\' value=\'1\'><input type=\'hidden\' id=\'IPCLIENT\' value=\'\".$tmpValue[\'CLIENT\'].\"\'></tr>\";\n				// LEGGIMI: qui modificare campi di INPUT\n				$tmpContent.=$tmpContentBtn;\n			break;	\n		case \"PERSONALSPEC\":\n			// leggere categorie di specialita\n				$resMysql12 = $mysql12 -> query(\'SELECT * FROM OS_DATA_SPEC\');\n				if ($mysql12 -> numRows == 0)\n				{\n					$count[\'spec\']=0;\n				}\n				while ($linea12 = mysql_fetch_array($resMysql12, MYSQL_ASSOC)) \n				{\n					$count[\'spec\']++;\n					$countTmp = $count[\'spec\'];\n					$array[\'specId\'.$countTmp] = $linea12[\'ID\'];\n					$idTmp = $linea12[\'ID\'];\n					$array[\'specNome\'.$idTmp] = $linea12[\'NAME\'];//echo \"as durataAppuntamentoNome\".$countTmp;\n				}\n				mysql_free_result($mysql12->Query_ID);\n				// leggere specialita\n				$resMysql12 = $mysql12 -> query(\'SELECT * FROM OS_DATA_SPECSPEC\');\n				if ($mysql12 -> numRows == 0)\n				{\n					$count[\'specspec\']=0;\n				}\n				while ($linea12 = mysql_fetch_array($resMysql12, MYSQL_ASSOC)) \n				{\n					$count[\'specspec\']++;\n					$countTmp = $count[\'specspec\'];\n					$array[\'specspecId\'.$countTmp] = $linea12[\'ID\'];\n					$idTmp = $linea12[\'ID\'];\n					$array[\'specspecNome\'.$idTmp] = $linea12[\'NAME\'];//echo \"as durataAppuntamentoNome\".$countTmp;\n				}\n				mysql_free_result($mysql12->Query_ID);\n				\n			switch ($thisAction)\n			{\n			case \"OPEN_DEL\":\n			case \"FT_CLICK\":\n				// prendere ID di selezzionato\n				$thisId = $PARAM[5];\n				//$this->resultPunto(\"dojo.debug(\'$thisId\');\");\n				$resMysql12 = $mysql12 ->query(\"SELECT * FROM  OS_DATA_$thisName WHERE ID=$thisId\");\n				$linea = mysql_fetch_array($resMysql12, MYSQL_ASSOC);\n				mysql_free_result($resMysql12);	\n				// prendere valori\n				$tmpValue[\'NAME\']=$linea[\'NAME\'];\n				$tmpValue[\'CLIENT\']=$linea[\'CLIENT\'];\n				$tmpValue[\'SPEC\']=$linea[\'SPEC\'];\n				$tmpValue[\'POINT\']=$linea[\'POINT\'];\n				\n				// button diversi\n				switch ($thisAction)\n				{\n				case \"OPEN_DEL\":\n					$tmpContentBtn=\"<tr><td colspan=\'4\'><table style=\'border:0px;font-size:12px;\' border=\'0\'><tr><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'CPCONFIGEDITPERSONALSPEC:$thisFather:$thisTarget:$thisName:DEL:$thisId\')\\\\\\\\\\\\\\\">Conferma</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'CPCONFIGEDITPERSONALSPEC:$thisFather:$thisTarget:$thisName:CLOSE\')\\\\\\\\\\\\\\\">Indietro</button></td></tr></table></td></tr></table>\";\n				break;\n				case \"FT_CLICK\":\n					// LEGGIMI: cambiate dati di INPUT\n					$tmpContentBtn=\"<tr><td colspan=\'4\'><table style=\'border:0px;font-size:12px;\' border=\'0\'><tr><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'CPCONFIGEDITPERSONALSPEC:$thisFather:$thisTarget:$thisName:MOD:$thisId:\'+document.getElementById(\'IPSPECSPEC\').value+\':\'+document.getElementById(\'IPCLIENT\').value+\':\'+document.getElementById(\'IPSPEC\').value+\':\'+document.getElementById(\'IPPOINT\').value)\\\\\\\\\\\\\\\">Modifica</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'CPCONFIGEDITPERSONALSPEC:$thisFather:$thisTarget:$thisName:OPEN_ADD:\".$thisId.\"\')\\\\\\\\\\\\\\\">Aggiungi</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'CPCONFIGEDITPERSONALSPEC:$thisFather:$thisTarget:$thisName:OPEN_DEL:$thisId:\'+document.getElementById(\'IPSPECSPEC\').value+\':\'+document.getElementById(\'IPCLIENT\').value+\':\'+document.getElementById(\'IPSPEC\').value+\':\'+document.getElementById(\'IPPOINT\').value)\\\\\\\\\\\\\\\">Elimina</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'CPCONFIGEDITPERSONALSPEC:$thisFather:$thisTarget:$thisName:CLOSE:\".$thisId.\"\')\\\\\\\\\\\\\\\">Indietro</button></td></tr></table></td></tr></table>\";\n				break;\n				}\n			break;\n			case \"OPEN_ADD\": 		\n				//$thisAction = $PARAM[5];\n				//$this->resultPunto(\"dojo.debug(\'$thisAction\');\");\n				$thisId=0;		\n				$this->resultPunto(\"dojo.debug(\'quine\');\");\n				$tmpValue[\'NAME\']=\'\';\n				//$tmpValue[\'CLIENT\']=$PARAM[5];\n				$tmpValue[\'CLIENT\']=$PARAM[5];\n				$tmpValue[\'SPEC\']=\'\';\n				$tmpValue[\'POINT\']=\'\';\n				// LEGGIMI: cambiate dati di INPUT\n				$tmpContentBtn=\"<tr><td colspan=\'4\'><table style=\'border:0px;font-size:12px;\' border=\'0\'><tr><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'CPCONFIGEDITPERSONALSPEC:$thisFather:$thisTarget:$thisName:ADD:0:\'+document.getElementById(\'IPSPECSPEC\').value+\':\'+document.getElementById(\'IPCLIENT\').value+\':\'+document.getElementById(\'IPSPEC\').value+\':\'+document.getElementById(\'IPPOINT\').value)\\\\\\\\\\\\\\\">Aggiungi</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'CPCONFIGEDITPERSONALSPEC:$thisFather:$thisTarget:$thisName:CLOSE\')\\\\\\\\\\\\\\\">Indietro</button></td></tr></table></td></tr></table>\";\n			break;\n			}\n				$tmpContent=\"<table style=\'border:0px;font-size:12px;\' border=\'0\'>\";\n				// select categorie\n				$tmpContent.=\"<tr><td>Categoria di specialita</td><td><select id=\'IPSPEC\' name=\'IPSPEC\' onChange=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'REFRESH_CONFIG_PERSONALSPECSPEC\',\'APP\',document.getElementById(\'IPSPEC\').value)\\\\\\\\\\\\\\\">\";\n					// select categoria specialita\n					$tmpUltimoSpec=0;\n					for ($i=1;$i<=$count[\'spec\'];$i++)\n					{\n						$tmpContent.=\"<option \";\n						if ($array[\'specId\'.$i] == $tmpValue[\"SPEC\"])\n						{\n							$tmpContent.=\" selected \";\n						}\n						$_idOrari=$array[\'specId\'.$i];\n						$tmpContent.= \" value=$_idOrari>\".$array[\'specNome\'.$_idOrari].\"</option>\";\n					}\n					$tmpContent.=\"</select></td><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td>Preferenza</td></tr>\";\n				$tmpContent.=\"<tr><td>Specialita</td><td><div dojoType=\'contentPane\' widgetId=\'SELECTSPECSPEC\'><select id=\'IPSPECSPEC\' name=\'IPSPECSPEC\' style=\'font-size: 9px;\' disabled></div>\";\n					// select specialita\n				\n					$tmpContent.=\"</select></td><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td><img id=\'STAR1\'  onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'REFRESH_CONFIG_PERSONALSTAR\',\'APP\',\'1\')\\\\\\\\\\\\\\\" border=\'0\' src=\'../framework/furoros/share/APP/AID11/star1On.gif\' alt=\'Campo obbligatorio\'><img id=\'STAR2\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'REFRESH_CONFIG_PERSONALSTAR\',\'APP\',\'2\')\\\\\\\\\\\\\\\" border=\'0\' src=\'../framework/furoros/share/APP/AID11/star1Off.gif\' alt=\'Campo obbligatorio\'><img id=\'STAR3\' border=\'0\'  onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'REFRESH_CONFIG_PERSONALSTAR\',\'APP\',\'3\')\\\\\\\\\\\\\\\" src=\'../framework/furoros/share/APP/AID11/star1Off.gif\' alt=\'Campo obbligatorio\'><img id=\'STAR4\' border=\'0\'  onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'REFRESH_CONFIG_PERSONALSTAR\',\'APP\',\'4\')\\\\\\\\\\\\\\\"  src=\'../framework/furoros/share/APP/AID11/star1Off.gif\' alt=\'Campo obbligatorio\'><img  onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'REFRESH_CONFIG_PERSONALSTAR\',\'APP\',\'5\')\\\\\\\\\\\\\\\" id=\'STAR5\' border=\'0\' src=\'../framework/furoros/share/APP/AID11/star1Off.gif\' alt=\'Campo obbligatorio\'></td><input type=\'hidden\' id=\'IPPOINT\' value=\'1\'><input type=\'hidden\' id=\'IPCLIENT\' value=\'\".$tmpValue[\'CLIENT\'].\"\'></tr>\";\n				// LEGGIMI: qui modificare campi di INPUT\n				$tmpContent.=$tmpContentBtn;\n			break;	\n		case \"SPEC\":\n			switch ($thisAction)\n			{\n			case \"OPEN_DEL\":\n			case \"FT_CLICK\":\n				// prendere ID di selezzionato\n				$thisId = $PARAM[5];\n				//$this->resultPunto(\"dojo.debug(\'$thisId\');\");\n				$resMysql12 = $mysql12 ->query(\"SELECT * FROM  OS_DATA_$thisName WHERE ID=$thisId\");\n				$linea = mysql_fetch_array($resMysql12, MYSQL_ASSOC);\n				mysql_free_result($resMysql12);	\n				// prendere valori\n				$tmpValue[\'NAME\']=$linea[\'NAME\'];\n				// button diversi\n				switch ($thisAction)\n				{\n				case \"OPEN_DEL\":\n					$tmpContentBtn=\"<tr><td colspan=\'4\'><table style=\'border:0px;\' border=\'0\'><tr><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:DEL:$thisId\')\\\\\\\\\\\\\\\">Conferma</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:CLOSE\')\\\\\\\\\\\\\\\">Indietro</button></td></tr></table></td></tr></table>\";\n				break;\n				case \"FT_CLICK\":\n					// LEGGIMI: cambiate dati di INPUT\n					$tmpContentBtn=\"<tr><td colspan=\'4\'><table style=\'border:0px;\' border=\'0\'><tr><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:MOD:$thisId:\'+document.getElementById(\'IPNAME\').value)\\\\\\\\\\\\\\\">Modifica</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:OPEN_ADD\')\\\\\\\\\\\\\\\">Aggiungi</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:OPEN_DEL:$thisId:\'+document.getElementById(\'IPNAME\').value)\\\\\\\\\\\\\\\">Elimina</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:CLOSE\')\\\\\\\\\\\\\\\">Indietro</button></td></tr></table></td></tr></table>\";\n				break;\n				}\n			break;\n			case \"OPEN_ADD\": 				\n				$this->resultPunto(\"dojo.debug(\'quine\');\");\n				$tmpValue[\'NAME\']=\'\';\n				// LEGGIMI: cambiate dati di INPUT\n				$tmpContentBtn=$tmpContent.=\"<tr><td colspan=\'4\'><table style=\'border:0px;\' border=\'0\'><tr><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:ADD:0:\'+document.getElementById(\'IPNAME\').value)\\\\\\\\\\\\\\\">Aggiungi</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:CLOSE\')\\\\\\\\\\\\\\\">Indietro</button></td></tr></table></td></tr></table><div id=\'toasterInt\'></div>\";\n			break;\n			}\n				$tmpContent=\"<table style=\'border:0px;\' border=\'0\'><tr><td>Nome</td><td><input type=\'text\' id=\'IPNAME\' name=\'IPNAME\' value=\'\".$tmpValue[\'NAME\'].\"\' \";\n				if ($lineaValidate[\'NAME\']) $tmpContent.=\" style=\'background-color:#d8e7e0;\' /><img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\" />\";\n				$tmpContent.=\"</td><td colspan=\'4\'>&nbsp;</td></tr>\";\n				// LEGGIMI: qui modificare campi di INPUT\n				$tmpContent.=$tmpContentBtn;\n			break;	\n			case \"SPECSPEC\":\n				// leggere fassciaOrario\n				$resMysql12 = $mysql12 -> query(\'SELECT * FROM OS_DATA_SPEC\');\n				if ($mysql12 -> numRows == 0)\n				{\n					$count[\'orari\']=0;\n				}\n				while ($linea12 = mysql_fetch_array($resMysql12, MYSQL_ASSOC)) \n				{\n					$count[\'orari\']++;\n					$countTmp = $count[\'orari\'];\n					$array[\'orariId\'.$countTmp] = $linea12[\'ID\'];\n					$idTmp = $linea12[\'ID\'];\n					$specTmp = $linea12[\'SPEC\'];\n					$periodTmp = $linea12[\'PERIOD\'];\n					$array[\'orariNome\'.$idTmp] = $linea12[\'NAME\'];//echo \"as durataAppuntamentoNome\".$countTmp;\n				}\n				mysql_free_result($mysql12->Query_ID);\n				// leggere durata di appuntamento\n				$resMysql12 = $mysql12 -> query(\'SELECT * FROM OS_DATA_PERIOD\');\n				if ($mysql12 -> numRows == 0)\n				{\n					$count[\'period\']=0;\n				}\n				while ($linea12 = mysql_fetch_array($resMysql12, MYSQL_ASSOC)) \n				{\n					$count[\'period\']++;\n					$countTmp = $count[\'period\'];\n					$array[\'periodId\'.$countTmp] = $linea12[\'ID\'];\n					$idTmp = $linea12[\'ID\'];\n					$specTmp = $linea12[\'SPEC\'];\n					$periodTmp = $linea12[\'PERIOD\'];\n					$array[\'periodNome\'.$idTmp] = $linea12[\'NAME\'];//echo \"as durataAppuntamentoNome\".$countTmp;\n				}\n				mysql_free_result($mysql12->Query_ID);\n			switch ($thisAction)\n			{\n			case \"OPEN_DEL\":\n			case \"FT_CLICK\":\n				// prendere ID di selezzionato\n				$thisId = $PARAM[5];\n				//$this->resultPunto(\"dojo.debug(\'$thisId\');\");\n				$resMysql12 = $mysql12 ->query(\"SELECT * FROM  OS_DATA_$thisName WHERE ID=$thisId\");\n				$linea = mysql_fetch_array($resMysql12, MYSQL_ASSOC);\n				mysql_free_result($resMysql12);	\n				// prendere valori\n				$tmpValue[\'NAME\']=$linea[\'NAME\'];\n				$tmpValue[\'SPEC\']=$linea[\'SPEC\'];\n				$tmpValue[\'PERIOD\']=$linea[\'PERIOD\'];\n				$tmpValue[\'PRICE\']=$linea[\'PRICE\'];\n				// button diversi\n				switch ($thisAction)\n				{\n				case \"OPEN_DEL\":\n					$tmpContentBtn=\"<tr><td colspan=\'4\'><table style=\'border:0px;\' border=\'0\'><tr><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:DEL:$thisId\')\\\\\\\\\\\\\\\">Conferma</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:CLOSE\')\\\\\\\\\\\\\\\">Indietro</button></td></tr></table></td></tr></table>\";\n				break;\n				case \"FT_CLICK\":\n					// LEGGIMI: cambiate dati di INPUT\n					$tmpContentBtn=\"<tr><td colspan=\'4\'><table style=\'border:0px;\' border=\'0\'><tr><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:MOD:$thisId:\'+document.getElementById(\'IPNAME\').value+\':\'+document.getElementById(\'IPSPEC\').value+\':\'+document.getElementById(\'IPPERIOD\').value+\':\'+document.getElementById(\'IPPRICE\').value)\\\\\\\\\\\\\\\">Modifica</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:OPEN_ADD\')\\\\\\\\\\\\\\\">Aggiungi</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:OPEN_DEL:$thisId:\'+document.getElementById(\'IPNAME\').value+\':\'+document.getElementById(\'IPSPEC\').value+\':\'+document.getElementById(\'IPPERIOD\').value+\':\'+document.getElementById(\'IPPRICE\').value)\\\\\\\\\\\\\\\">Elimina</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:CLOSE\')\\\\\\\\\\\\\\\">Indietro</button></td></tr></table></td></tr></table>\";\n				break;\n				}\n			break;\n			case \"OPEN_ADD\": 				\n				$this->resultPunto(\"dojo.debug(\'quine\');\");\n				$tmpValue[\'NAME\']=\'\';\n				$tmpValue[\'PRICE\']=\'\';\n				$tmpValue[\'SPEC\']=$specTmp;\n				$tmpValue[\'PERIOD\']=$periodTmp;\n\n				// LEGGIMI: cambiate dati di INPUT\n				$tmpContentBtn=$tmpContent.=\"<tr><td colspan=\'4\'><table style=\'border:0px;\' border=\'0\'><tr><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:ADD:0:\'+document.getElementById(\'IPNAME\').value+\':\'+document.getElementById(\'IPSPEC\').value+\':\'+document.getElementById(\'IPPERIOD\').value+\':\'+document.getElementById(\'IPPRICE\').value)\\\\\\\\\\\\\\\">Aggiungi</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:CLOSE\')\\\\\\\\\\\\\\\">Indietro</button></td></tr></table></td></tr></table><div id=\'toasterInt\'></div>\";\n			break;\n			}\n				$tmpContent=\"<table style=\'border:0px;\' border=\'0\'>\";\n				// select categorie\n				$tmpContent.=\"<tr><td>Categoria</td><td><select id=\'IPSPEC\' name=\'IPSPEC\' style=\'font-size: 9px;\'>\";\n					// select\n					for ($i=1;$i<=$count[\'orari\'];$i++)\n					{\n						$tmpContent.=\"<option \";\n						if ($array[\'orariId\'.$i] == $tmpValue[\"SPEC\"])\n							$tmpContent.=\" selected \";\n						$_idOrari=$array[\'orariId\'.$i];\n						$tmpContent.= \" value=$_idOrari>\".$array[\'orariNome\'.$_idOrari].\"</option>\";\n					}\n					$tmpContent.=\"</select></td></tr>\";\n\n				$tmpContent.=\"<tr><td>Nome</td><td><input type=\'text\' id=\'IPNAME\' name=\'IPNAME\' value=\'\".$tmpValue[\'NAME\'].\"\' \";\n				if ($lineaValidate[\'NAME\']) $tmpContent.=\" style=\'background-color:#d8e7e0;\' /><img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\" />\";\n				// select durata appuntamento\n				$tmpContent.=\"<tr><td>Durata di trattamento</td><td><select id=\'IPPERIOD\' name=\'IPPERIOD\' style=\'font-size: 9px;\'>\";\n					// select\n					for ($i=1;$i<=$count[\'period\'];$i++)\n					{\n						$tmpContent.=\"<option \";\n						if ($array[\'periodId\'.$i] == $tmpValue[\"SPEC\"])\n							$tmpContent.=\" selected \";\n						$_idOrari=$array[\'periodId\'.$i];\n						$tmpContent.= \" value=$_idOrari>\".$array[\'periodNome\'.$_idOrari].\"</option>\";\n					}\n					$tmpContent.=\"</select></td></tr>\";\n				$tmpContent.=\"<tr><td>Prezzo di trattamento, &#8364;</td><td><input type=\'text\' id=\'IPPRICE\' name=\'IPPRICE\' value=\'\".$tmpValue[\'PRICE\'].\"\' \";\n				if ($lineaValidate[\'PRICE\']) $tmpContent.=\" style=\'background-color:#d8e7e0;\' /><img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\" />\";\n				// LEGGIMI: qui modificare campi di INPUT\n				$tmpContent.=$tmpContentBtn;\n			break;\n		case \"PERIOD\":\n			switch ($thisAction)\n			{\n			case \"OPEN_DEL\":\n			case \"FT_CLICK\":\n				// prendere ID di selezzionato\n				$thisId = $PARAM[5];\n				//$this->resultPunto(\"dojo.debug(\'$thisId\');\");\n				$resMysql12 = $mysql12 ->query(\"SELECT * FROM  OS_DATA_\".$thisName.\" WHERE ID=$thisId\");\n				$linea = mysql_fetch_array($resMysql12, MYSQL_ASSOC);\n				mysql_free_result($resMysql12);	\n				// prendere valori\n				$tmpValue[\'NAME\']=$linea[\'NAME\'];\n				// button diversi\n				switch ($thisAction)\n				{\n				case \"OPEN_DEL\":\n					$tmpContentBtn=\"<tr><td colspan=\'4\'><table style=\'border:0px;\' border=\'0\'><tr><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:DEL:$thisId\')\\\\\\\\\\\\\\\">Conferma</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:CLOSE\')\\\\\\\\\\\\\\\">Indietro</button></td></tr></table></td></tr></table>\";\n				break;\n				case \"FT_CLICK\":\n					// LEGGIMI: cambiate dati di INPUT\n					$tmpContentBtn=\"<tr><td colspan=\'4\'><table style=\'border:0px;\' border=\'0\'><tr><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:MOD:$thisId:\'+dojo.widget.byId(\'WIDNAME\').getValue().substr(0,5))\\\\\\\\\\\\\\\">Modifica</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:OPEN_ADD\')\\\\\\\\\\\\\\\">Aggiungi</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:OPEN_DEL:$thisId:\'+dojo.widget.byId(\'WIDNAME\').getValue().substr(0,5))\\\\\\\\\\\\\\\">Elimina</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:CLOSE\')\\\\\\\\\\\\\\\">Indietro</button></td></tr></table></td></tr></table>\";\n				break;\n				}\n			break;\n			case \"OPEN_ADD\": 				\n				$this->resultPunto(\"dojo.debug(\'quine\');\");\n				$tmpValue[\'NAME\']=\'01:00\';\n				// LEGGIMI: cambiate dati di INPUT\n				$tmpContentBtn=\"<tr><td colspan=\'4\'><table style=\'border:0px;\' border=\'0\'><tr><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:ADD:0:\'+dojo.widget.byId(\'WIDNAME\').getValue().substr(0,5))\\\\\\\\\\\\\\\">Aggiungi</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:CLOSE\')\\\\\\\\\\\\\\\">Indietro</button></td></tr></table></td></tr></table><div id=\'toasterInt\'></div>\";\n			break;\n			}\n				$this->resultPunto(\"dojo.require(\'dojo.widget.DropdownDatePicker\');\");\n				$tmpContent=\"<table style=\'border:0px;\' border=\'0\'><tr><td>Durata di appuntamento</td><td><input dojoType=\'dropdowntimepicker\'  lang=\'it-it\' widgetId=\'WIDNAME\' id=\'IPNAME\' name=\'IPNAME\' value=\'\".$tmpValue[\'NAME\'].\"\' \";\n				if ($lineaValidate[\'NAME\']) $tmpContent.=\" style=\'background-color:#d8e7e0;\' /><img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\" />\";\n				$tmpContent.=\"</td><td colspan=\'4\'>&nbsp;</td></tr>\";\n				// LEGGIMI: qui modificare campi di INPUT\n				$tmpContent.=$tmpContentBtn;\n				$this->resultPunto(\"dojo.debug(\'sdf \'+document.getElementById(\'IPNAME\').value);\");\n			break;\n		case \"TIME_DAY\":\n			switch ($thisAction)\n			{\n			case \"OPEN_DEL\":\n			case \"FT_CLICK\":\n				// prendere ID di selezzionato\n				$thisId = $PARAM[5];\n				//$this->resultPunto(\"dojo.debug(\'$thisId\');\");\n				$resMysql12 = $mysql12 ->query(\"SELECT * FROM  OS_DATA_\".$thisName.\" WHERE ID=$thisId\");\n				$linea = mysql_fetch_array($resMysql12, MYSQL_ASSOC);\n				mysql_free_result($resMysql12);	\n				// prendere valori\n				$tmpValue[\'NAME\']=$linea[\'NAME\'];\n				$tmpValue[\'AMBEGIN\']=$linea[\'AMBEGIN\'];\n				$tmpValue[\'AMEND\']=$linea[\'AMEND\'];\n				$tmpValue[\'PMBEGIN\']=$linea[\'PMBEGIN\'];\n				$tmpValue[\'PMEND\']=$linea[\'PMEND\'];\n				// button diversi\n				switch ($thisAction)\n				{\n				case \"OPEN_DEL\":\n					$tmpContentBtn=\"<tr><td colspan=\'4\'><table style=\'border:0px;\' border=\'0\'><tr><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:DEL:$thisId\')\\\\\\\\\\\\\\\">Conferma</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:CLOSE\')\\\\\\\\\\\\\\\">Indietro</button></td></tr></table></td></tr></table>\";\n				break;\n				case \"FT_CLICK\":\n					// LEGGIMI: cambiate dati di INPUT\n					$tmpContentBtn=\"<tr><td colspan=\'4\'><table style=\'border:0px;\' border=\'0\'><tr><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:MOD:$thisId:\'+dojo.byId(\'IPNAME\').value+\':\'+dojo.widget.byId(\'WIDAMBEGIN\').getValue().substr(0,5)+\':\'+dojo.widget.byId(\'WIDAMEND\').getValue().substr(0,5)+\':\'+dojo.widget.byId(\'WIDPMBEGIN\').getValue().substr(0,5)+\':\'+dojo.widget.byId(\'WIDPMEND\').getValue().substr(0,5))\\\\\\\\\\\\\\\">Modifica</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:OPEN_ADD\')\\\\\\\\\\\\\\\">Aggiungi</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:OPEN_DEL:$thisId:\'+dojo.byId(\'IPNAME\').value+\':\'+dojo.widget.byId(\'WIDAMBEGIN\').getValue().substr(0,5)+\':\'+dojo.widget.byId(\'WIDAMEND\').getValue().substr(0,5)+\':\'+dojo.widget.byId(\'WIDPMBEGIN\').getValue().substr(0,5)+\':\'+dojo.widget.byId(\'WIDPMEND\').getValue().substr(0,5))\\\\\\\\\\\\\\\">Elimina</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:CLOSE\')\\\\\\\\\\\\\\\">Indietro</button></td></tr></table></td></tr></table>\";\n				break;\n				}\n			break;\n			case \"OPEN_ADD\": 				\n				$this->resultPunto(\"dojo.debug(\'quine\');\");\n				$tmpValue[\'NAME\']=\'\';\n				$tmpValue[\'AMBEGIN\']=\'09:00\';\n				$tmpValue[\'AMEND\']=\'13:00\';\n				$tmpValue[\'PMBEGIN\']=\'14:00\';\n				$tmpValue[\'PMEND\']=\'18:00\';\n				// LEGGIMI: cambiate dati di INPUT\n				$tmpContentBtn=\"<tr><td colspan=\'4\'><table style=\'border:0px;\' border=\'0\'><tr><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:ADD:0:\'+dojo.byId(\'IPNAME\').value+\':\'+dojo.widget.byId(\'WIDAMBEGIN\').getValue().substr(0,5)+\':\'+dojo.widget.byId(\'WIDAMEND\').getValue().substr(0,5)+\':\'+dojo.widget.byId(\'WIDPMBEGIN\').getValue().substr(0,5)+\':\'+dojo.widget.byId(\'WIDPMEND\').getValue().substr(0,5))\\\\\\\\\\\\\\\">Aggiungi</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:CLOSE\')\\\\\\\\\\\\\\\">Indietro</button></td></tr></table></td></tr></table><div id=\'toasterInt\'></div>\";\n			break;\n			}\n				$this->resultPunto(\"dojo.require(\'dojo.widget.DropdownDatePicker\');\");\n				$tmpContent=\"<table style=\'border:0px;\' border=\'0\'><tr><td>Nome</td><td><input type=\'text\' id=\'IPNAME\' name=\'IPNAME\' value=\'\".$tmpValue[\'NAME\'].\"\' \";\n				if ($lineaValidate[\'NAME\']) $tmpContent.=\" style=\'background-color:#d8e7e0;\' /><img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\" />\";\n				// matina\n				$tmpContent.=\"<tr><td><input type=\'checkbox\' onclick=\\\\\\\\\\\\\\\"dojo.widget.byId(\'WIDAMBEGIN\')[this.checked ? \'enable\' : \'disable\']();dojo.widget.byId(\'WIDAMEND\')[this.checked ? \'enable\' : \'disable\']();_date= new Date();if (this.checked) {_date.setHours(9);_date.setMinutes(0);dojo.widget.byId(\'WIDAMBEGIN\').setValue(_date);_date.setHours(13);dojo.widget.byId(\'WIDAMEND\').setValue(_date);}else{_date.setHours(0);_date.setMinutes(0);dojo.widget.byId(\'WIDAMBEGIN\').setValue(_date);dojo.widget.byId(\'WIDAMEND\').setValue(_date);}\\\\\\\\\\\\\\\" \".(strcmp($tmpValue[\'AMBEGIN\'],\'00:00\') !=0 ?  \'checked\' : \'\').\">MATINA </td><td align=\'right\'>DALLE<input dojoType=\'dropdowntimepicker\'  lang=\'it-it\' widgetId=\'WIDAMBEGIN\' id=\'IPAMBEGIN\' name=\'IPAMBEGIN\' value=\'\".$tmpValue[\'AMBEGIN\'].\"\' \";\n				if ($lineaValidate[\'AMBEGIN\']) $tmpContent.=\" style=\'background-color:#d8e7e0;\' /><img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\" />\";\n				$tmpContent.=\"</td></tr><tr><td>&nbsp;</td><td align=\'right\'>ALLE<input dojoType=\'dropdowntimepicker\'  lang=\'it-it\' widgetId=\'WIDAMEND\' id=\'IPAMEND\' name=\'IPAMEND\' value=\'\".$tmpValue[\'AMEND\'].\"\' \";\n				if ($lineaValidate[\'AMEND\']) $tmpContent.=\" style=\'background-color:#d8e7e0;\' /><img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\" />\";\n				// pomeriggio\n				$tmpContent.=\"<tr><td><input type=\'checkbox\' onclick=\\\\\\\\\\\\\\\"dojo.widget.byId(\'WIDPMBEGIN\')[this.checked ? \'enable\' : \'disable\']();dojo.widget.byId(\'WIDPMEND\')[this.checked ? \'enable\' : \'disable\']();_date= new Date();if (this.checked) {_date.setHours(14);_date.setMinutes(0);dojo.widget.byId(\'WIDPMBEGIN\').setValue(_date);_date.setHours(18);dojo.widget.byId(\'WIDPMEND\').setValue(_date);}else{_date.setHours(0);_date.setMinutes(0);dojo.widget.byId(\'WIDPMBEGIN\').setValue(_date);dojo.widget.byId(\'WIDPMEND\').setValue(_date);}\\\\\\\\\\\\\\\" \".(strcmp($tmpValue[\'PMBEGIN\'],\'00:00\') !=0 ?  \'checked\' : \'\').\">POMERIGGIO </td><td align=\'right\'>DALLE<input dojoType=\'dropdowntimepicker\'  lang=\'it-it\' widgetId=\'WIDPMBEGIN\' id=\'IPPMBEGIN\' name=\'IPPMBEGIN\' value=\'\".$tmpValue[\'PMBEGIN\'].\"\' \";\n				if ($lineaValidate[\'PMBEGIN\']) $tmpContent.=\" style=\'background-color:#d8e7e0;\' /><img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\" />\";\n				$tmpContent.=\"</td></tr><tr><td>&nbsp;</td><td align=\'right\'>ALLE<input dojoType=\'dropdowntimepicker\'  lang=\'it-it\' widgetId=\'WIDPMEND\' id=\'IPPMEND\' name=\'IPPMEND\' value=\'\".$tmpValue[\'PMEND\'].\"\' \";\n				if ($lineaValidate[\'PMEND\']) $tmpContent.=\" style=\'background-color:#d8e7e0;\' /><img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\" />\";\n				\n				$tmpContent.=\"</td><td colspan=\'4\'>&nbsp;</td></tr>\";\n				\n				// LEGGIMI: qui modificare campi di INPUT\n				$tmpContent.=$tmpContentBtn;\n				//$this->resultPunto(\"dojo.debug(\'sdf \'+document.getElementById(\'IPNAME\').value);\");\n			break;\n		case \"CLIENT\":\n			switch ($thisAction)\n			{\n			case \"OPEN_DEL\":\n			case \"FT_CLICK\":\n				// prendere ID di selezzionato\n				$thisId = $PARAM[5];\n				// prendere valori\n				$resMysql12 = $mysql12 ->query(\"SELECT * FROM  OS_DATA_\".$thisName.\" WHERE ID=$thisId\");\n				$linea = mysql_fetch_array($resMysql12, MYSQL_ASSOC);\n				mysql_free_result($resMysql12);	\n				// prendere valori automaticamente\n				$resMysql12 = $mysql12 ->query(\"SELECT * FROM  OS_DATA_CLIENT_DATA WHERE $thisName=1\");\n				while ($linea1 = mysql_fetch_array($resMysql12, MYSQL_ASSOC))\n				{\n					$tmpName=$linea1[\'NAME\'];\n					$tmpValue[$tmpName]=$linea[$tmpName];\n				}\n				mysql_free_result($resMysql12);\n				// button diversi\n				switch ($thisAction)\n				{\n				case \"OPEN_DEL\":\n					$tmpContentBtn=\"<tr><td colspan=\'4\'><table style=\'border:0px;\' border=\'0\'><tr><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:DEL:$thisId\')\\\\\\\\\\\\\\\">Conferma</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:CLOSE\')\\\\\\\\\\\\\\\">Indietro</button></td></tr></table></td></tr></table>\";\n				break;\n				case \"FT_CLICK\":\n					$tmpContentBtn=\"<tr><td colspan=\'4\'><table style=\'border:0px;\' border=\'0\'><tr><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:MOD:$thisId:\'+document.getElementById(\'IPNAME\').value+\':\'+document.getElementById(\'IPSECONDNAME\').value+\':\'+document.getElementById(\'IPMAIL\').value+\':\'+document.getElementById(\'IPADDRESS\').value+\':\'+document.getElementById(\'IPCAP\').value+\':\'+document.getElementById(\'IPTEL\').value+\':\'+document.getElementById(\'IPCEL\').value+\':\'+document.getElementById(\'IPCITY\').value+\':\'+document.getElementById(\'IPPROFESSION\').value+\':\'+document.getElementById(\'IPSEX\').value+\':\'+dojo.widget.byId(\'WIDBIRTHDAY\').getValue()+\':\'+document.getElementById(\'IPSCOUNT\').value)\\\\\\\\\\\\\\\">Modifica</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:OPEN_ADD\')\\\\\\\\\\\\\\\">Aggiungi</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:OPEN_DEL:$thisId:\'+document.getElementById(\'IPNAME\').value+\':\'+document.getElementById(\'IPSECONDNAME\').value+\':\'+document.getElementById(\'IPMAIL\').value+\':\'+document.getElementById(\'IPADDRESS\').value+\':\'+document.getElementById(\'IPCAP\').value+\':\'+document.getElementById(\'IPTEL\').value+\':\'+document.getElementById(\'IPCEL\').value+\':\'+document.getElementById(\'IPCITY\').value+\':\'+document.getElementById(\'IPPROFESSION\').value+\':\'+document.getElementById(\'IPSEX\').value+\':\'+dojo.widget.byId(\'WIDBIRTHDAY\').getValue()+\':\'+document.getElementById(\'IPSCOUNT\').value)\\\\\\\\\\\\\\\">Elimina</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:CLOSE\')\\\\\\\\\\\\\\\">Indietro</button></td></tr></table></td></tr></table>\";\n				break;\n				}\n			break;\n			case \"OPEN_ADD\":\n				// prendere valori automaticamente\n				$resMysql12 = $mysql12 ->query(\"SELECT * FROM  OS_DATA_CLIENT_DATA WHERE $thisName=1\");\n				while ($linea1 = mysql_fetch_array($resMysql12, MYSQL_ASSOC))\n				{\n					$tmpName=$linea1[\'NAME\'];\n					$tmpValue[$tmpName]=\'\';\n				}\n				// preimpostazioni \n				$tmpValue[\'SEX\']=\'F\';\n				$tmpContentBtn=\"<tr><td colspan=\'4\'><table style=\'border:0px;\' border=\'0\'><tr><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:ADD:0:\'+document.getElementById(\'IPNAME\').value+\':\'+document.getElementById(\'IPSECONDNAME\').value+\':\'+document.getElementById(\'IPMAIL\').value+\':\'+document.getElementById(\'IPADDRESS\').value+\':\'+document.getElementById(\'IPCAP\').value+\':\'+document.getElementById(\'IPTEL\').value+\':\'+document.getElementById(\'IPCEL\').value+\':\'+document.getElementById(\'IPCITY\').value+\':\'+document.getElementById(\'IPPROFESSION\').value+\':\'+document.getElementById(\'IPSEX\').value+\':\'+dojo.widget.byId(\'WIDBIRTHDAY\').getValue()+\':\'+document.getElementById(\'IPSCOUNT\').value)\\\\\\\\\\\\\\\">Aggiungi</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:CLOSE\')\\\\\\\\\\\\\\\">Indietro</button></td></tr></table></td></tr></table><div id=\'toasterInt\'></div>\";\n			break;\n			}\n				$tmpContent=\"<table style=\'border:0px;\' border=\'0\'><tr><td>Nome</td><td><input type=\'text\' id=\'IPNAME\' name=\'IPNAME\' value=\'\".$tmpValue[\'NAME\'].\"\' \";\n				if ($lineaValidate[\'NAME\']) $tmpContent.=\" style=\'background-color:#d8e7e0;\' /><img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\" />\";\n				$tmpContent.=\"</td><td>Cognome</td><td><input type=\'text\' id=\'IPSECONDNAME\' name=\'IPSECONDNAME\' value=\'\".$tmpValue[\'SECONDNAME\'].\"\'  \";\n				if ($lineaValidate[\'SECONDNAME\']) $tmpContent.=\" style=\'background-color:#d8e7e0;\' /><img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\" />\";\n				$tmpContent.=\"</td></tr>\";\n				$tmpContent.=\"<tr><td>E-Mail</td><td><input type=\'text\' id=\'IPMAIL\' name=\'IPMAIL\' value=\'\".$tmpValue[\'MAIL\'].\"\'  \";\n				if ($lineaValidate[\'MAIL\']) $tmpContent.=\" style=\'background-color:#d8e7e0;\' /><img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\" />\";\n				$tmpContent.=\"</td><td>Sconto, %</td><td><input type=\'text\' id=\'IPSCOUNT\' name=\'IPSCOUNT\' value=\'\".$tmpValue[\'SCOUNT\'].\"\'  \";\n				if ($lineaValidate[\'SCOUNT\']) $tmpContent.=\" style=\'background-color:#d8e7e0;\' /><img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\" />\";$tmpContent.=\"</td></tr>\";\n				$tmpContent.=\"<tr><td>Cellulare</td><td><input type=\'text\' id=\'IPCEL\' name=\'IPCEL\' value=\'\".$tmpValue[\'CEL\'].\"\'  \";\n				if ($lineaValidate[\'CEL\']) $tmpContent.=\" style=\'background-color:#d8e7e0;\' /><img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\" />\";\n				$tmpContent.=\"</td><td>Telefono</td><td><input type=\'text\' id=\'IPTEL\' name=\'IPTEL\' value=\'\".$tmpValue[\'TEL\'].\"\'  \";\n				if ($lineaValidate[\'TEL\']) $tmpContent.=\" style=\'background-color:#d8e7e0;\' /><img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\" />\";\n				$tmpContent.=\"</td></tr>\";\n				$tmpContent.=\"<tr><td>Indirizzo</td><td><input type=\'text\' id=\'IPADDRESS\' name=\'IPADDRESS\' value=\'\".$tmpValue[\'ADDRESS\'].\"\'  \";\n				if ($lineaValidate[\'ADDRESS\']) $tmpContent.=\" style=\'background-color:#d8e7e0;\' /><img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\" />\";\n				$tmpContent.=\"</td><td>CAP</td><td><input type=\'text\' id=\'IPCAP\' name=\'IPCAP\'  value=\'\".$tmpValue[\'CAP\'].\"\' \";\n				if ($lineaValidate[\'CAP\']) $tmpContent.=\" style=\'background-color:#d8e7e0;\' /><img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\" />\";\n				$tmpContent.=\"</td></tr>\";\n				$tmpContent.=\"<tr><td>Data di nascita</td><td><div widgetId=\'WIDBIRTHDAY\' dojoType=\'dropdowndatepicker\' value=\'\".$tmpValue[\'BIRTHDAY\'].\"\'\";\n				if ($lineaValidate[\'BIRTHDAY\']) $tmpContent.=\" style=\'background-color:#d8e7e0;\' ></div><img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\" ></div>\";\n				$tmpContent.=\"</td><td>Sesso</td><td><SELECT id=\'IPSEX\' name=\'IPSEX\'><OPTION value=\'F\' \";\n				if ($tmpValue[\'SEX\']==\'F\') $tmpContent.=\" SELECTED \";\n				$tmpContent.=\">F</OPTION><OPTION value=\'M\'\";\n				if ($tmpValue[\'SEX\']==\'M\') $tmpContent.=\" SELECTED \";\n				$tmpContent.=\">M</OPTION></SELECT>\";\n				if ($lineaValidate[\'SEX\']) $tmpContent.=\"<img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\"\";\n				$tmpContent.=\"</td></tr>\";\n				$tmpContent.=\"<tr><td>Professione</td><td><input type=\'text\' id=\'IPPROFESSION\' name=\'IPPROFESSION\' value=\'\".$tmpValue[\'PROFESSION\'].\"\'  \";\n				if ($lineaValidate[\'PROFESSION\']) $tmpContent.=\" style=\'background-color:#d8e7e0;\' /><img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\" />\";\n				$tmpContent.=\"</td><td>Citta</td><td><input type=\'text\' id=\'IPCITY\' name=\'IPCITY\'  value=\'\".$tmpValue[\'CITY\'].\"\' \";\n				if ($lineaValidate[\'CITY\']) $tmpContent.=\" style=\'background-color:#d8e7e0;\' /><img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\" />\";\n				$tmpContent.=\"</td></tr>\";\n				/*foreach( $lineaData as $key => $value)\n				{\n					//echo \"Name: $key, Age: $value <br />\";\n					$tmpContent.=\"<tr><td>$key $value</td></tr>\";\n				}\n				*/\n				// LEGGIMI: qui modificare campi di INPUT\n				$tmpContent.=$tmpContentBtn;\n			break;\n		case \"USER\":\n			switch ($thisAction)\n			{\n			case \"OPEN_DEL\":\n			case \"FT_CLICK\":\n				// prendere ID di selezzionato\n				$thisId = $PARAM[5];\n				//$this->resultPunto(\"dojo.debug(\'$thisId\');\");\n				$resMysql12 = $mysql12 ->query(\"SELECT * FROM  OS_DATA_$thisName WHERE ID=$thisId\");\n				$linea = mysql_fetch_array($resMysql12, MYSQL_ASSOC);\n				mysql_free_result($resMysql12);	\n				// prendere valori\n				$tmpValue[\'NAME\']=$linea[\'NAME\'];\n				$tmpValue[\'SECONDNAME\']=$linea[\'SECONDNAME\'];\n				$tmpValue[\'MAIL\']=$linea[\'MAIL\'];\n				$tmpValue[\'TEL\']=$linea[\'TEL\'];\n				$tmpValue[\'CEL\']=$linea[\'CEL\'];\n				$tmpValue[\'LOGIN\']=$linea[\'LOGIN\'];\n				$tmpValue[\'PW\']=$linea[\'PW\'];\n				// button diversi\n				switch ($thisAction)\n				{\n				case \"OPEN_DEL\":\n					$tmpContentBtn=\"<tr><td colspan=\'4\'><table style=\'border:0px;\' border=\'0\'><tr><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:DEL:$thisId\')\\\\\\\\\\\\\\\">Conferma</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:CLOSE\')\\\\\\\\\\\\\\\">Indietro</button></td></tr></table></td></tr></table>\";\n				break;\n				case \"FT_CLICK\":\n					// LEGGIMI: cambiare gli campi di INPUT QUI\n					$tmpContentBtn=\"<tr><td colspan=\'4\'><table style=\'border:0px;\' border=\'0\'><tr><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:MOD:$thisId:\'+document.getElementById(\'IPNAME\').value+\':\'+document.getElementById(\'IPSECONDNAME\').value+\':\'+document.getElementById(\'IPMAIL\').value+\':\'+document.getElementById(\'IPLOGIN\').value+\':\'+document.getElementById(\'IPPW\').value+\':\'+document.getElementById(\'IPTEL\').value+\':\'+document.getElementById(\'IPCEL\').value)\\\\\\\\\\\\\\\">Modifica</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:OPEN_ADD\')\\\\\\\\\\\\\\\">Aggiungi</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:OPEN_DEL:$thisId:\'+document.getElementById(\'IPNAME\').value+\':\'+document.getElementById(\'IPSECONDNAME\').value+\':\'+document.getElementById(\'IPMAIL\').value+\':\'+document.getElementById(\'IPLOGIN\').value+\':\'+document.getElementById(\'IPPW\').value+\':\'+document.getElementById(\'IPTEL\').value+\':\'+document.getElementById(\'IPCEL\').value)\\\\\\\\\\\\\\\">Elimina</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:CLOSE\')\\\\\\\\\\\\\\\">Indietro</button></td></tr></table></td></tr></table>\";\n				break;\n				}\n			break;\n			case \"OPEN_ADD\":\n				$tmpValue[\'NAME\']=\'\';\n				$tmpValue[\'SECONDNAME\']=\'\';\n				$tmpValue[\'MAIL\']=\'\';\n				$tmpValue[\'TEL\']=\'\';\n				$tmpValue[\'CEL\']=\'\';\n				$tmpValue[\'ADDRESS\']=\'\';\n				$tmpValue[\'CAP\']=\'\';\n				$tmpContentBtn=\"<tr><td colspan=\'4\'><table style=\'border:0px;\' border=\'0\'><tr><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:ADD:0:\'+document.getElementById(\'IPNAME\').value+\':\'+document.getElementById(\'IPSECONDNAME\').value+\':\'+document.getElementById(\'IPMAIL\').value+\':\'+document.getElementById(\'IPLOGIN\').value+\':\'+document.getElementById(\'IPPW\').value+\':\'+document.getElementById(\'IPTEL\').value+\':\'+document.getElementById(\'IPCEL\').value)\\\\\\\\\\\\\\\">Aggiungi</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:CLOSE\')\\\\\\\\\\\\\\\">Indietro</button></td></tr></table></td></tr></table><div id=\'toasterInt\'></div>\";\n			break;\n			}\n				$tmpContent.=\"<table style=\'border:0px;\' border=\'0\'><tr><td>Nome</td><td><input type=\'text\' id=\'IPNAME\' name=\'IPNAME\' value=\'\".$tmpValue[\'NAME\'].\"\' \";\n				if ($lineaValidate[\'NAME\']) $tmpContent.=\" style=\'background-color:#d8e7e0;\' /><img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\" />\";\n				$tmpContent.=\"</td><td>Cognome</td><td><input type=\'text\' id=\'IPSECONDNAME\' name=\'IPSECONDNAME\' value=\'\".$tmpValue[\'SECONDNAME\'].\"\'  \";\n				if ($lineaValidate[\'SECONDNAME\']) $tmpContent.=\" style=\'background-color:#d8e7e0;\' /><img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\" />\";\n				$tmpContent.=\"</td></tr>\";\n				$tmpContent.=\"<tr><td>E-Mail</td><td><input type=\'text\' id=\'IPMAIL\' name=\'IPMAIL\' value=\'\".$tmpValue[\'MAIL\'].\"\'  \";\n				if ($lineaValidate[\'MAIL\']) $tmpContent.=\" style=\'background-color:#d8e7e0;\' /><img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\" />\";\n				$tmpContent.=\"</td><td>&nbsp;</td><td>&nbsp;</td></tr>\";\n				$tmpContent.=\"<tr><td>Cellulare</td><td><input type=\'text\' id=\'IPCEL\' name=\'IPCEL\' value=\'\".$tmpValue[\'CEL\'].\"\'  \";\n				if ($lineaValidate[\'CEL\']) $tmpContent.=\" style=\'background-color:#d8e7e0;\' /><img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\" />\";\n				$tmpContent.=\"</td><td>Telefono</td><td><input type=\'text\' id=\'IPTEL\' name=\'IPTEL\' value=\'\".$tmpValue[\'TEL\'].\"\'  \";\n				if ($lineaValidate[\'TEL\']) $tmpContent.=\" style=\'background-color:#d8e7e0;\' /><img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\" />\";\n				$tmpContent.=\"</td></tr>\";\n				$tmpContent.=\"<tr><td>Login</td><td><input type=\'text\' id=\'IPLOGIN\' name=\'IPLOGIN\' value=\'\".$tmpValue[\'LOGIN\'].\"\'  \";\n				if ($lineaValidate[\'LOGIN\']) $tmpContent.=\" style=\'background-color:#d8e7e0;\' /><img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\" />\";\n				$tmpContent.=\"</td><td>Password</td><td><input type=\'text\' id=\'IPPW\' name=\'IPPW\'  value=\'\".$tmpValue[\'PW\'].\"\' \";\n				if ($lineaValidate[\'PW\']) $tmpContent.=\" style=\'background-color:#d8e7e0;\' /><img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\" />\";\n				$tmpContent.=\"</td></tr>\";\n				/*foreach( $lineaData as $key => $value)\n				{\n					//echo \"Name: $key, Age: $value <br />\";\n					$tmpContent.=\"<tr><td>$key $value</td></tr>\";\n				}\n				*/\n				// LEGGIMI: qui modificare campi di INPUT\n				$tmpContent.=$tmpContentBtn;\n			break;\n		case \"PERSONAL\":\n				$tmpStrDay[1]=\"LUNEDI\";\n				$tmpStrDay[2]=\"MARTEDI\";\n				$tmpStrDay[3]=\"MERCOLEDI\";\n				$tmpStrDay[4]=\"GIOVEDI\";\n				$tmpStrDay[5]=\"VENERDI\";\n				$tmpStrDay[6]=\"SABATO\";\n				$tmpStrDay[0]=\"DOMENICA\";\n				// leggere fassciaOrario\n				$resMysql12 = $mysql12 -> query(\'SELECT * FROM OS_DATA_TIME_DAY\');\n				if ($mysql12 -> numRows == 0)\n				{\n					$count[\'orari\']=0;\n				}\n				while ($linea12 = mysql_fetch_array($resMysql12, MYSQL_ASSOC)) \n				{\n					$count[\'orari\']++;\n					$countTmp = $count[\'orari\'];\n					$array[\'orariId\'.$countTmp] = $linea12[\'ID\'];\n					$idTmp = $linea12[\'ID\'];\n					$array[\'orariNome\'.$idTmp] = $linea12[\'NAME\'];//echo \"as durataAppuntamentoNome\".$countTmp;\n					$array[\'orariMatinaDalle\'.$idTmp] =strftime(\'%H:%M\', strtotime( $linea12[\'AMBEGIN\']));//echo \"as durataAppuntamentoNome\".$countTmp;\n					$array[\'orariMatinaAlle\'.$idTmp] = strftime(\'%H:%M\', strtotime( $linea12[\'AMEND\']));\n					$array[\'orariPomeriggioDalle\'.$idTmp] = strftime(\'%H:%M\', strtotime( $linea12[\'PMBEGIN\']));\n					$array[\'orariPomeriggioAlle\'.$idTmp] = strftime(\'%H:%M\', strtotime( $linea12[\'PMEND\']));\n				}\n				mysql_free_result($mysql12->Query_ID);\n				// leggere categorie di specialita\n				$resMysql12 = $mysql12 -> query(\'SELECT * FROM OS_DATA_SPEC\');\n				if ($mysql12 -> numRows == 0)\n				{\n					$count[\'spec\']=0;\n				}\n				while ($linea12 = mysql_fetch_array($resMysql12, MYSQL_ASSOC)) \n				{\n					$count[\'spec\']++;\n					$countTmp = $count[\'spec\'];\n					$array[\'specId\'.$countTmp] = $linea12[\'ID\'];\n					$idTmp = $linea12[\'ID\'];\n					$array[\'specNome\'.$idTmp] = $linea12[\'NAME\'];//echo \"as durataAppuntamentoNome\".$countTmp;\n				}\n				mysql_free_result($mysql12->Query_ID);\n				// leggere specialita\n				$resMysql12 = $mysql12 -> query(\'SELECT * FROM OS_DATA_SPECSPEC\');\n				if ($mysql12 -> numRows == 0)\n				{\n					$count[\'specspec\']=0;\n				}\n				while ($linea12 = mysql_fetch_array($resMysql12, MYSQL_ASSOC)) \n				{\n					$count[\'specspec\']++;\n					$countTmp = $count[\'specspec\'];\n					$array[\'specspecId\'.$countTmp] = $linea12[\'ID\'];\n					$idTmp = $linea12[\'ID\'];\n					$array[\'specspecNome\'.$idTmp] = $linea12[\'NAME\'];//echo \"as durataAppuntamentoNome\".$countTmp;\n				}\n				mysql_free_result($mysql12->Query_ID);\n			switch ($thisAction)\n			{\n			case \"OPEN_DEL\":\n			case \"FT_CLICK\":\n				// prendere ID di selezzionato\n				$thisId = $PARAM[5];\n				//$this->resultPunto(\"dojo.debug(\'$thisId\');\");\n				$resMysql12 = $mysql12 ->query(\"SELECT * FROM  OS_DATA_$thisName WHERE ID=$thisId\");\n				$linea = mysql_fetch_array($resMysql12, MYSQL_ASSOC);\n				mysql_free_result($resMysql12);	\n				// prendere valori\n				$tmpValue[\'NAME\']=$linea[\'NAME\'];\n				$tmpValue[\'SECONDNAME\']=$linea[\'SECONDNAME\'];\n				$tmpValue[\'MAIL\']=$linea[\'MAIL\'];\n				$tmpValue[\'TEL\']=$linea[\'TEL\'];\n				$tmpValue[\'CEL\']=$linea[\'CEL\'];\n				$tmpValue[\'IMG\']=$linea[\'IMG\'];\n				$tmpValue[\'D0\']=$linea[\'D0\'];\n				$tmpValue[\'D1\']=$linea[\'D1\'];\n				$tmpValue[\'D2\']=$linea[\'D2\'];\n				$tmpValue[\'D3\']=$linea[\'D3\'];\n				$tmpValue[\'D4\']=$linea[\'D4\'];\n				$tmpValue[\'D5\']=$linea[\'D5\'];\n				$tmpValue[\'D6\']=$linea[\'D6\'];\n\n				// button diversi\n				switch ($thisAction)\n				{\n				case \"OPEN_DEL\":\n					$tmpContentBtn=\"<tr><td colspan=\'4\'><table style=\'border:0px;\' border=\'0\'><tr><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:DEL:$thisId\')\\\\\\\\\\\\\\\">Conferma</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:CLOSE\')\\\\\\\\\\\\\\\">Indietro</button></td></tr></table></td></tr></table><div id=\'toasterInt\'></div>\";\n				break;\n				case \"FT_CLICK\":\n					// LEGGIMI: cambiare gli campi di INPUT QUI\n					$tmpContentBtn=\"<tr><td colspan=\'4\'><table style=\'border:0px;\' border=\'0\'><tr><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:MOD:$thisId:\'+document.getElementById(\'IPNAME\').value+\':\'+document.getElementById(\'IPSECONDNAME\').value+\':\'+document.getElementById(\'IPMAIL\').value+\':\'+document.getElementById(\'IPTEL\').value+\':\'+document.getElementById(\'IPCEL\').value+\':\'+document.getElementById(\'D0\').value+\':\'+document.getElementById(\'D1\').value+\':\'+document.getElementById(\'D2\').value+\':\'+document.getElementById(\'D3\').value+\':\'+document.getElementById(\'D4\').value+\':\'+document.getElementById(\'D5\').value+\':\'+document.getElementById(\'D6\').value)\\\\\\\\\\\\\\\">Modifica</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:OPEN_ADD\')\\\\\\\\\\\\\\\">Aggiungi</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:OPEN_DEL:$thisId:\'+document.getElementById(\'IPNAME\').value+\':\'+document.getElementById(\'IPSECONDNAME\').value+\':\'+document.getElementById(\'IPMAIL\').value+\':\'+document.getElementById(\'IPTEL\').value+\':\'+document.getElementById(\'IPCEL\').value+\':\'+document.getElementById(\'D0\').value+\':\'+document.getElementById(\'D1\').value+\':\'+document.getElementById(\'D2\').value+\':\'+document.getElementById(\'D3\').value+\':\'+document.getElementById(\'D4\').value+\':\'+document.getElementById(\'D5\').value+\':\'+document.getElementById(\'D6\').value)\\\\\\\\\\\\\\\">Elimina</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:CLOSE\')\\\\\\\\\\\\\\\">Indietro</button></td></tr></table></td></tr></table><div id=\'toasterInt\'></div>\";\n				break;\n				}\n			break;\n			case \"OPEN_ADD\":\n				\n\n				$thisId = 0;\n				$tmpValue[\'NAME\']=\'\';\n				$tmpValue[\'SECONDNAME\']=\'\';\n				$tmpValue[\'MAIL\']=\'\';\n				$tmpValue[\'TEL\']=\'\';\n				$tmpValue[\'CEL\']=\'\';\n				$tmpValue[\'COLOR\']=\'\';\n				$tmpValue[\'IMG\']=\'\';\n				$tmpValue[\'PERIOD\']=\'\';\n				$tmpValue[\'D0\']=$idTmp;\n				$tmpValue[\'D1\']=$idTmp;\n				$tmpValue[\'D2\']=$idTmp;\n				$tmpValue[\'D3\']=$idTmp;\n				$tmpValue[\'D4\']=$idTmp;\n				$tmpValue[\'D5\']=$idTmp;\n				$tmpValue[\'D6\']=$idTmp;\n\n				$tmpContentBtn=\"<tr><td colspan=\'4\'><table style=\'border:0px;\' border=\'0\'><tr><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'$thisWidgetId:$thisFather:$thisTarget:$thisName:ADD:0:\'+document.getElementById(\'IPNAME\').value+\':\'+document.getElementById(\'IPSECONDNAME\').value+\':\'+document.getElementById(\'IPMAIL\').value+\':\'+document.getElementById(\'IPTEL\').value+\':\'+document.getElementById(\'IPCEL\').value+\':\'+document.getElementById(\'D0\').value+\':\'+document.getElementById(\'D1\').value+\':\'+document.getElementById(\'D2\').value+\':\'+document.getElementById(\'D3\').value+\':\'+document.getElementById(\'D4\').value+\':\'+document.getElementById(\'D5\').value+\':\'+document.getElementById(\'D6\').value)\\\\\\\\\\\\\\\">Aggiungi</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:CLOSE\')\\\\\\\\\\\\\\\">Indietro</button></td></tr></table></td></tr></table><div id=\'toasterInt\'></div>\";\n			break;\n			}\n				// ADD TAB CTRL\n				$tmpContent=\"<table height=\'90%\' style=\'border:0px;height:90%;\' border=\'0\' width=\'100%\' ><tr height=\'80%\'><td><div id=\'TABCTRLPERSONAL\' dojoType=\'TabContainer\' widgetId=\'tabstatistiche\' labelPosition=\'top\' style=\'width: 100%; height: 100%;\'>\";\n				// ADD TAB ANAGRAFICA\n				$tmpContent.=\"<div  id=\'TABPERSONAL1\' dojoType=\'ContentPane\' style=\'height: 100%;\' label=\'ANAGRAFICA\'>\";\n				$tmpContent.=\"<table style=\'border:0px;\' border=\'0\'><tr><td>Nome</td><td><input type=\'text\' id=\'IPNAME\' name=\'IPNAME\' value=\'\".$tmpValue[\'NAME\'].\"\' \";\n				if ($lineaValidate[\'NAME\']) $tmpContent.=\" style=\'background-color:#d8e7e0;\' /><img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\" />\";\n				$tmpContent.=\"</td><td>Cognome</td><td><input type=\'text\' id=\'IPSECONDNAME\' name=\'IPSECONDNAME\' value=\'\".$tmpValue[\'SECONDNAME\'].\"\'  \";\n				if ($lineaValidate[\'SECONDNAME\']) $tmpContent.=\" style=\'background-color:#d8e7e0;\' /><img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\" />\";\n				$tmpContent.=\"</td></tr>\";\n				$tmpContent.=\"<tr><td>E-Mail</td><td><input type=\'hidden\' id=\'IPIDPERSONAL\'><input type=\'text\' id=\'IPMAIL\' name=\'IPMAIL\' value=\'\".$tmpValue[\'MAIL\'].\"\'  \";\n				if ($lineaValidate[\'MAIL\']) $tmpContent.=\" style=\'background-color:#d8e7e0;\' /><img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\" />\";\n				$tmpContent.=\"</td><td>&nbsp;</td><td>&nbsp;</td></tr>\";\n				$tmpContent.=\"<tr><td>Cellulare</td><td><input type=\'text\' id=\'IPCEL\' name=\'IPCEL\' value=\'\".$tmpValue[\'CEL\'].\"\'  \";\n				if ($lineaValidate[\'CEL\']) $tmpContent.=\" style=\'background-color:#d8e7e0;\' /><img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\" />\";\n				$tmpContent.=\"</td><td>Telefono</td><td><input type=\'text\' id=\'IPTEL\' name=\'IPTEL\' value=\'\".$tmpValue[\'TEL\'].\"\'  \";\n				if ($lineaValidate[\'TEL\']) $tmpContent.=\" style=\'background-color:#d8e7e0;\' /><img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\" />\";\n				$tmpContent.=\"</td></tr>\";\n				$tmpContent.=\"</td></tr></table>\";\n				// CHIUDERE TAB ANAGRAFICA\n				$tmpContent.=\"</div>\";\n				// ADD TAB FASCE ORARIE\n				$tmpContent.=\"<div  id=\'TABPERSONAL2\' dojoType=\'ContentPane\' style=\'height: 100%;\' label=\'FASCE ORARIE\'>\";\n				$this->resultPunto(\"dojo.require(\'dojo.widget.ColorPalette\');\");\n				$this->resultPunto(\"dojo.require(\'dojo.event.*\');\");\n				$this->resultPunto(\"dojo.event.connect(dojo.widget.byId(\'COLORPERSONAL\'), \'onColorSelect\', \'alert(7)\');\");\n				\n\n				$tmpContent.=\"<table style=\'border:0px;\' border=\'0\'>\";\n				for ($tmpDay=0;$tmpDay<7;$tmpDay++)\n				{\n					$tmpContent.=\"<tr><td>\".$tmpStrDay[$tmpDay].\"</td><td><select id=\'D\".$tmpDay.\"\' name=\'D\".$tmpDay.\"\' style=\'width: 300px;font-size: 9px;\'>\";\n					// select\n					for ($i=1;$i<=$count[\'orari\'];$i++)\n					{\n						$tmpContent.=\"<option \";\n						if ($array[\'orariId\'.$i] == $tmpValue[\"D\".$tmpDay])\n							$tmpContent.=\" selected \";\n						$_idOrari=$array[\'orariId\'.$i];\n						$tmpContent.= \" value=$_idOrari>\".$array[\'orariNome\'.$_idOrari].\" \".$array[\'orariMatinaDalle\'.$array[\'orariId\'.$i]].\"-\".$array[\'orariMatinaAlle\'.$array[\'orariId\'.$i]].\" / \".	$array[\'orariPomeriggioDalle\'.$array[\'orariId\'.$i]].\"-\".$array[\'orariPomeriggioAlle\'.$array[\'orariId\'.$i]].\"</option>\";\n					}\n					$tmpContent.=\"</select></td></tr>\";\n				}\n				$tmpContent.=\"</table>\";\n				// CHIUDERE TAB FASCE ORARIE\n				$tmpContent.=\"</div>\";\n				// ADD TAB LISTA TRATTAMENTI\n				$tmpContent.=\"<div  id=\'TABPERSONAL3\' dojoType=\'ContentPane\' style=\'height: 100%;\' label=\'LISTA TRATTAMENTI\'>\";				\n				$tmpContent.=\"<div dojoType=\'SplitContainer\' orientation=\'vertical\' sizerWidth=\'3\' activeSizing=\'false\' style=\'border: 2px solid black; float: left; margin-right: 0px;  width: 100%; height: 100%;\'><div  dojoType=\'ContentPane\'  style=\'height:100%; font-size:0.9em; overflow:auto;\' sizeMin=\'10\' sizeShare=\'50\' widgetId=\'CPCONFIGLISTPERSONALSPEC\'></div><div id=\'divorari\' widgetId=\'CPCONFIGEDITPERSONALSPEC\' dojoType=\'ContentPane\'  style=\'height:100%; background-color:#e3edfa; overflow:auto;font-size:0.80em;\' sizeMin=\'5\' sizeShare=\'50\'></div></div>\";\n					\n				// CHIUDERE TAB LISTA TRATTAMENTI\n				$tmpContent.=\"</div>\";\n				// ADD TAB GRAFICA\n				$tmpContent.=\"<div  id=\'TABPERSONAL4\' dojoType=\'ContentPane\' style=\'height: 100%;\' label=\'GRAFICA\'>\";\n				$this->resultPunto(\"dojo.require(\'dojo.widget.ColorPalette\');\");\n				$this->resultPunto(\"dojo.require(\'dojo.event.*\');\");\n				$this->resultPunto(\"dojo.event.connect(dojo.widget.byId(\'COLORPERSONAL\'), \'onColorSelect\', \'alert(7)\');\");\n				$tmpContent.=\"<table style=\'border:0px;\' border=\'0\'><tr><td align=\'center\'><img src=\'../framework/furoros/share/APP/AID11/PERSONAL/\".$tmpValue[\'IMG\'].\"\' width=\'80\' height=\'120\' alt=\'FOTO assente\' /></td><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td><div dojoType=\'colorPalette\' palette=\'7x10\'  widgetId=\'COLORPERSONAL\'></div></td></tr><tr><td><form id=\'upload_file\' action=\'file_upload_script.php\' method=\'post\' enctype=\'multipart/form-data\'><input type=\'hidden\' name=\'MAX_FILE_SIZE\' value=\'500000\' /><input type=\'file\' name=\'select_file\' tabindex=\'1\' size=\'10\' /><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"upload_file_submit()\\\\\\\\\\\\\\\">Spedisci</button></form></td><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td>Colore<input id=\'IPCOLORPERSONAL\' size=\'10\' value=\'ffffff\'><SPAN id=\'SPCOLORPERSONAL\'>&nbsp;&nbsp;&nbsp;</SPAN></td></tr></table>\";\n				//$tmpContent.=\"<table style=\'border:0px;\' border=\'0\'><tr><td colspan=\'3\'><div dojoType=\'colorPalette\' palette=\'7x10\'  widgetId=\'COLORPERSONAL\'></div></td></tr><tr><td>Colore</td><td><input id=\'IPCOLORPERSONAL\' value=\'000000\'></td><td><SPAN id=\'SPCOLORPERSONAL>&nbsp;&nbsp;&nbsp;</SPAN></td></tr></table>\";\n				// CHIUDERE TAB GRAFICA\n				$tmpContent.=\"</div>\";\n\n				// CHIUDERE TAB CTRL\n				$tmpContent.=\"</div></td></tr>\";\n\n				// LEGGIMI: qui modificare campi di INPUT\n				$tmpContent.=$tmpContentBtn;\n			break;\n/*****************************************\n\nQUI\n\n******************************************/\ncase \"ROOM\":\n				// leggere categorie di specialita\n				$resMysql12 = $mysql12 -> query(\'SELECT * FROM OS_DATA_SPEC\');\n				if ($mysql12 -> numRows == 0)\n				{\n					$count[\'spec\']=0;\n				}\n				while ($linea12 = mysql_fetch_array($resMysql12, MYSQL_ASSOC)) \n				{\n					$count[\'spec\']++;\n					$countTmp = $count[\'spec\'];\n					$array[\'specId\'.$countTmp] = $linea12[\'ID\'];\n					$idTmp = $linea12[\'ID\'];\n					$array[\'specNome\'.$idTmp] = $linea12[\'NAME\'];//echo \"as durataAppuntamentoNome\".$countTmp;\n				}\n				mysql_free_result($mysql12->Query_ID);\n				// leggere specialita\n				$resMysql12 = $mysql12 -> query(\'SELECT * FROM OS_DATA_SPECSPEC\');\n				if ($mysql12 -> numRows == 0)\n				{\n					$count[\'specspec\']=0;\n				}\n				while ($linea12 = mysql_fetch_array($resMysql12, MYSQL_ASSOC)) \n				{\n					$count[\'specspec\']++;\n					$countTmp = $count[\'specspec\'];\n					$array[\'specspecId\'.$countTmp] = $linea12[\'ID\'];\n					$idTmp = $linea12[\'ID\'];\n					$array[\'specspecNome\'.$idTmp] = $linea12[\'NAME\'];//echo \"as durataAppuntamentoNome\".$countTmp;\n				}\n				mysql_free_result($mysql12->Query_ID);\n			switch ($thisAction)\n			{\n			case \"OPEN_DEL\":\n			case \"FT_CLICK\":\n				// prendere ID di selezzionato\n				$thisId = $PARAM[5];\n				//$this->resultPunto(\"dojo.debug(\'$thisId\');\");\n				$resMysql12 = $mysql12 ->query(\"SELECT * FROM  OS_DATA_$thisName WHERE ID=$thisId\");\n				$linea = mysql_fetch_array($resMysql12, MYSQL_ASSOC);\n				mysql_free_result($resMysql12);	\n				// prendere valori\n				$tmpValue[\'NAME\']=$linea[\'NAME\'];\n				// button diversi\n				switch ($thisAction)\n				{\n				case \"OPEN_DEL\":\n					$tmpContentBtn=\"<tr><td colspan=\'4\'><table style=\'border:0px;\' border=\'0\'><tr><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:DEL:$thisId\')\\\\\\\\\\\\\\\">Conferma</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:CLOSE\')\\\\\\\\\\\\\\\">Indietro</button></td></tr></table></td></tr></table><div id=\'toasterInt\'></div>\";\n				break;\n				case \"FT_CLICK\":\n					// LEGGIMI: cambiare gli campi di INPUT QUI\n					$tmpContentBtn=\"<tr><td colspan=\'4\'><table style=\'border:0px;\' border=\'0\'><tr><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:MOD:$thisId:\'+document.getElementById(\'IPNAME\').value)\\\\\\\\\\\\\\\">Modifica</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:OPEN_ADD\')\\\\\\\\\\\\\\\">Aggiungi</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:OPEN_DEL:$thisId:\'+document.getElementById(\'IPNAME\').value)\\\\\\\\\\\\\\\">Elimina</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:CLOSE\')\\\\\\\\\\\\\\\">Indietro</button></td></tr></table></td></tr></table><div id=\'toasterInt\'></div>\";\n				break;\n				}\n			break;\n			case \"OPEN_ADD\":\n				\n\n				$thisId = 0;\n				$tmpValue[\'NAME\']=\'\';\n				$tmpContentBtn=\"<tr><td colspan=\'4\'><table style=\'border:0px;\' border=\'0\'><tr><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'$thisWidgetId:$thisFather:$thisTarget:$thisName:ADD:0:\'+document.getElementById(\'IPNAME\').value)\\\\\\\\\\\\\\\">Aggiungi</button></td><td><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:CLOSE\')\\\\\\\\\\\\\\\">Indietro</button></td></tr></table></td></tr></table><div id=\'toasterInt\'></div>\";\n			break;\n			}\n				// ADD TAB CTRL\n				$tmpContent=\"<table height=\'90%\' style=\'border:0px;height:90%;\' border=\'0\' width=\'100%\' ><tr height=\'80%\'><td><div id=\'TABCTRLPERSONAL\' dojoType=\'TabContainer\' widgetId=\'tabstatistiche\' labelPosition=\'top\' style=\'width: 100%; height: 100%;\'>\";\n				// ADD TAB ANAGRAFICA\n				$tmpContent.=\"<div  id=\'TABPERSONAL1\' dojoType=\'ContentPane\' style=\'height: 100%;\' label=\'ANAGRAFICA\'>\";\n				$tmpContent.=\"<table style=\'border:0px;\' border=\'0\'><tr><td>Nome</td><td><input type=\'hidden\' id=\'IPIDPERSONAL\'><input type=\'text\' id=\'IPNAME\' name=\'IPNAME\' value=\'\".$tmpValue[\'NAME\'].\"\' \";\n				if ($lineaValidate[\'NAME\']) $tmpContent.=\" style=\'background-color:#d8e7e0;\' /><img border=\'0\' src=\'../framework/furoros/share/APP/AID11/validateOn.gif\' alt=\'Campo obbligatorio\'>\"; else $tmpContent.=\" />\";\n				$tmpContent.=\"</td><td>Cognome</td><td>&nbsp;\";\n				$tmpContent.=\"</td></tr></table>\";\n				// CHIUDERE TAB ANAGRAFICA\n				$tmpContent.=\"</div>\";\n				// ADD TAB LISTA TRATTAMENTI\n				$tmpContent.=\"<div  id=\'TABPERSONAL3\' dojoType=\'ContentPane\' style=\'height: 100%;\' label=\'LISTA TRATTAMENTI\'>\";				\n				$tmpContent.=\"<div dojoType=\'SplitContainer\' orientation=\'vertical\' sizerWidth=\'3\' activeSizing=\'false\' style=\'border: 2px solid black; float: left; margin-right: 0px;  width: 100%; height: 100%;\'><div  dojoType=\'ContentPane\'  style=\'height:100%; font-size:0.9em; overflow:auto;\' sizeMin=\'10\' sizeShare=\'50\' widgetId=\'CPCONFIGLISTPERSONALSPEC\'></div><div id=\'divorari\' widgetId=\'CPCONFIGEDITPERSONALSPEC\' dojoType=\'ContentPane\'  style=\'height:100%; background-color:#e3edfa; overflow:auto;font-size:0.80em;\' sizeMin=\'5\' sizeShare=\'50\'></div></div>\";\n				// CHIUDERE TAB LISTA TRATTAMENTI\n				$tmpContent.=\"</div>\";\n				// ADD TAB GRAFICA\n				$tmpContent.=\"<div  id=\'TABPERSONAL4\' dojoType=\'ContentPane\' style=\'height: 100%;\' label=\'GRAFICA\'>\";\n				$this->resultPunto(\"dojo.require(\'dojo.widget.ColorPalette\');\");\n				$this->resultPunto(\"dojo.require(\'dojo.event.*\');\");\n				$this->resultPunto(\"dojo.event.connect(dojo.widget.byId(\'COLORPERSONAL\'), \'onColorSelect\', \'alert(7)\');\");\n				$tmpContent.=\"<table style=\'border:0px;\' border=\'0\'><tr><td align=\'center\'><img src=\'../framework/furoros/share/APP/AID11/PERSONAL/\".$tmpValue[\'IMG\'].\"\' width=\'80\' height=\'120\' alt=\'FOTO assente\' /></td><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td><div dojoType=\'colorPalette\' palette=\'7x10\'  widgetId=\'COLORPERSONAL\'></div></td></tr><tr><td><form id=\'upload_file\' action=\'file_upload_script.php\' method=\'post\' enctype=\'multipart/form-data\'><input type=\'hidden\' name=\'MAX_FILE_SIZE\' value=\'500000\' /><input type=\'file\' name=\'select_file\' tabindex=\'1\' size=\'10\' /><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"upload_file_submit()\\\\\\\\\\\\\\\">Spedisci</button></form></td><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td>Colore<input id=\'IPCOLORPERSONAL\' size=\'10\' value=\'ffffff\'><SPAN id=\'SPCOLORPERSONAL\'>&nbsp;&nbsp;&nbsp;</SPAN></td></tr></table>\";\n				//$tmpContent.=\"<table style=\'border:0px;\' border=\'0\'><tr><td colspan=\'3\'><div dojoType=\'colorPalette\' palette=\'7x10\'  widgetId=\'COLORPERSONAL\'></div></td></tr><tr><td>Colore</td><td><input id=\'IPCOLORPERSONAL\' value=\'000000\'></td><td><SPAN id=\'SPCOLORPERSONAL>&nbsp;&nbsp;&nbsp;</SPAN></td></tr></table>\";\n				// CHIUDERE TAB GRAFICA\n				$tmpContent.=\"</div>\";\n\n				// CHIUDERE TAB CTRL\n				$tmpContent.=\"</div></td></tr>\";\n\n				// LEGGIMI: qui modificare campi di INPUT\n				$tmpContent.=$tmpContentBtn;\n			break;\n			}\n	break;\n	}\nbreak;\n}\n\nswitch ($thisFather)\n{\ncase \"CONFIG\": // menu configurazione\n	switch ($thisTarget)\n	{\n	case \"GUI\":\n	// riparto VALIDATE BEGIN\n		$mysql11 = new Mysql();\n		$mysql11 ->Database=\'AID11\';\n		$mysql11 ->connect();\n		switch ($thisAction)\n		{\n		case \"ACTION_VALIDATE\":\n			// prendere dati di validate\n			$this->resultPunto(\"var tmpContent=\'$thisWidgetId:$thisFather:$thisTarget:$thisName:SAVE_VALIDATE:\';\");\n			$exist=0;\n			$this->resultPunto(\"tmpContent+=document.getElementById(\'IMG_PERSONAL\').checked+\':\'+document.getElementById(\'IMG_ROOM\').checked+\':\'+document.getElementById(\'TYPE_SPEC_MENU\').value;\");\n			$this->resultPunto(\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',tmpContent);\");\n		break;\n		case \"SAVE_VALIDATE\":\n			// generare \n			//$this->resultPunto(\"dojo.debug(\'\".$PARAM[3].\"\');\");\n			$resMysql11 = $mysql11 ->query(\"UPDATE OS_DATA_CONFIG SET IMG_PERSONAL=\".$PARAM[5].\",IMG_ROOM=\".$PARAM[6].\",TYPE_SPEC_MENU=\'\".$PARAM[7].\"\'\");\n			// rimettere dati nel arrayData\n			$this->resultPunto(\"arrayData[\'AIP\'][11][\'CONFIG\'][\'IMG_PERSONAL\']=\'\".$PARAM[5].\"\';\");\n			$this->resultPunto(\"arrayData[\'AIP\'][11][\'CONFIG\'][\'IMG_ROOM\']=\'\".$PARAM[6].\"\';\");\n			$this->resultPunto(\"arrayData[\'AIP\'][11][\'CONFIG\'][\'TYPE_SPEC_MENU\']=\'\".$PARAM[7].\"\';\");\n			\n\n\n			$this->resultPunto(\"furoros.Runmodule(\'11\',\'REFRESH_PERSONAL\',\'APP\',\'\');\");\n			$this->resultPunto(\"setTimeout(\\\\\\\"furoros.Runmodule(\'11\',\'REFRESH_ROOM\',\'APP\',\'\')\\\\\\\",500);\");\n			$this->resultPunto(\"setTimeout(\\\\\\\"furoros.Runmodule(\'11\',\'REFRESH_SPEC\',\'APP\',\'\')\\\\\\\",1000);\");\n			// visualizzare la conferma di buon fine\n			//$this->resultPunto(\"dojo.debug(\'resmysql: \".$resMysql11.\" errno: \".$mysql11->Errno.\" error: \".$mysql11->Error.\"\');\");\n			//$this->resultPunto(\"dojo.debug(\'query: UPDATE OS_DATA_CONFIG SET \".$PARAM[5].\"\');\");\n		break;\n		}\n	break;\n	case \"DATA_VALIDATE\":\n		// riparto VALIDATE BEGIN\n		$mysql11 = new Mysql();\n		$mysql11 ->Database=\'AID11\';\n		$mysql11 ->connect();\n		switch ($thisAction)\n		{\n		case \"ACTION_VALIDATE\":\n			// prendere dati di validate\n			$this->resultPunto(\"var tmpContent=\'$thisWidgetId:$thisFather:$thisTarget:$thisName:SAVE_VALIDATE:\';\");\n			$exist=0;\n			$resMysql11 = $mysql11 ->query(\"SELECT * FROM  OS_DATA_CLIENT_DATA WHERE $thisName=1 ORDER BY ID\");\n			while (	$linea11 = mysql_fetch_array($resMysql11, MYSQL_ASSOC))\n			{\n				if ($exist==1)\n					$this->resultPunto(\"tmpContent+=\',\';\");\n				$this->resultPunto(\"tmpContent+=\'\".$linea11[\'NAME\'].\"=\'+document.getElementById(\'CB\".$linea11[\'NAME\'].\"\').checked;\");\n				$exist=1;\n			}\n			mysql_free_result($resMysql11);	\n			$this->resultPunto(\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',tmpContent);\");\n		break;\n		case \"SAVE_VALIDATE\":\n			// generare \n			//$this->resultPunto(\"dojo.debug(\'\".$PARAM[3].\"\');\");\n			$resMysql11 = $mysql11 ->query(\"UPDATE OS_DATA_\".$thisName.\"_VALIDATE SET \".$PARAM[5]);\n			// visualizzare la conferma di buon fine\n			$this->resultPunto(\"dojo.debug(\'resmysql: \".$resMysql11.\" errno: \".$mysql11->Errno.\" error: \".$mysql11->Error.\"\');\");\n			$this->resultPunto(\"dojo.debug(\'query: UPDATE OS_DATA_\".$thisName.\"_VALIDATE SET \".$PARAM[5].\"\');\");\n		break;\n		}\n	break;\n	// riparto VALIDATE END\n	case \"DATA\": // cambiamento dei dati\n		switch ($thisAction)\n		{\n		case \"DEL\": // aggiungere dati\n			$thisData[\'ID\'] = $PARAM[5];\n			// inserire dati nel mysql\n			$mysql12 = new Mysql();\n			$mysql12 ->Database=\'AID11\';\n			$mysql12 ->connect();\n			$resMysql12 = $mysql12 ->query(\"DELETE FROM OS_DATA_$thisName  WHERE ID=\".$thisData[\'ID\']);\n			if ($resMysql12 !=1)\n			{\n				// errore DbMysql\n				// toaster\n				$this->resultPunto(\"var top = dojo.byId(\'toasterInt\');for (var i = 0; i < top.childNodes.length; i++){var currentNode = top.childNodes[i];if (currentNode.nodeType == dojo.dom.ELEMENT_NODE ){top.removeChild(currentNode);}}var status = document.createElement(\'span\');status.style[\'background-color\']=\'#222222\';status.className = \'boxred\';status.innerHTML = \'&nbsp;&nbsp;Errore Database &nbsp;&nbsp;\';top.appendChild(status);dojo.lfx.fadeOut(status, 2000).play();\");\n			}\n			else\n			{\n				// refresh di quello che sia bisogno\n					switch ($thisName)\n					{\n					case \"PERSONAL\":\n						$this->resultPunto(\"furoros.Runmodule(\'11\',\'REFRESH_PERSONAL\',\'APP\',\'\');\");\n					break;\n					case \"ROOM\":\n						$this->resultPunto(\"furoros.Runmodule(\'11\',\'REFRESH_ROOM\',\'APP\',\'\');\");\n					break;\n					case \"SPEC\":\n					case \"SPECSPEC\":\n						$this->resultPunto(\"furoros.Runmodule(\'11\',\'REFRESH_SPEC\',\'APP\',\'\');\");\n					break;\n\n					}\n				// rimettere a posto CP\n				switch ($thisName)\n			{\n			case \"PERSONALSPEC\":\n			case \"ROOMSPEC\":\n				//$this->resultPunto(\"dojo.debug(\'CLOSE: \'+document.getElementById(\'IPCLIENT\').value);\");\n				//$this->resultPunto(\"dojo.widget.byId(\'\".$thisWidgetId.\"\').setContent(\\\\\\\"<button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'$thisWidgetId:$thisFather:$thisTarget:$thisName:OPEN_ADD:\'+document.getElementById(\'IPIDPERSONAL\').value)\\\\\\\\\\\\\\\">Aggiungi</button>\\\\\\\");\");\n				$this->resultPunto(\"dojo.widget.byId(\'\".$thisWidgetId.\"\').setContent(\\\\\\\"<button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'$thisWidgetId:$thisFather:$thisTarget:$thisName:OPEN_ADD:\'+document.getElementById(\'IPIDPERSONAL\').value)\\\\\\\\\\\\\\\">Aggiungi</button>\\\\\\\");\");\n			break;\n			default:\n				$this->resultPunto(\"dojo.widget.byId(\'\".$thisWidgetId.\"\').setContent(\\\\\\\"<button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'$thisWidgetId:$thisFather:$thisTarget:$thisName:OPEN_ADD\')\\\\\\\\\\\\\\\">Aggiungi</button><br/><div id=\'toasterInt\'></div>\\\\\\\");\");\n			break;\n			}\n				// toaster\n				$this->resultPunto(\"var top = dojo.byId(\'toasterInt\');for (var i = 0; i < top.childNodes.length; i++){var currentNode = top.childNodes[i];if (currentNode.nodeType == dojo.dom.ELEMENT_NODE ){top.removeChild(currentNode);}}var status = document.createElement(\'span\');status.style[\'background-color\']=\'#222222\';status.className = \'boxgreen\';status.innerHTML = \'&nbsp;&nbsp;Dati eliminati &nbsp;&nbsp;\';top.appendChild(status);dojo.lfx.fadeOut(status, 2000).play();\");\n				// MODIFICARE I DATI NELLA TABELLA\n				switch ($thisName)\n				{\n				case \"PERSONALSPEC\":\n				case \"ROOMSPEC\":\n					$this->resultPunto(\"dojo.widget.byId(\'FTCONFIGLISTPERSONALSPEC\').store.removeDataByKey(\".$thisData[\'ID\'].\");\");\n				break;\n				default:	\n					$this->resultPunto(\"dojo.widget.byId(\'FTCONFIGLIST\').store.removeDataByKey(\".$thisData[\'ID\'].\");\");\n				break;\n				}\n			}\n		break;\n		case \"MOD\": // aggiungere dati\n			switch ($thisName)\n			{\n			case \"CLIENT\":\n				$thisData[\'ID\'] = $PARAM[5];\n				$thisData[\'NAME\'] = $PARAM[6];\n				$thisData[\'SECONDNAME\'] = $PARAM[7];\n				$thisData[\'MAIL\'] = $PARAM[8];\n				$thisData[\'ADDRESS\'] = $PARAM[9];\n				$thisData[\'CAP\'] = $PARAM[10];\n				$thisData[\'TEL\'] = $PARAM[11];\n				$thisData[\'CEL\'] = $PARAM[12];\n				$thisData[\'CITY\'] = $PARAM[13];\n				$thisData[\'PROFESSION\'] = $PARAM[14];\n				$thisData[\'SEX\'] = $PARAM[15];\n				$thisData[\'BIRTHDAY\'] = $PARAM[16];\n				$thisData[\'SCOUNT\'] = $PARAM[17];\n			break;\n			case \"PERSONALSPEC\":\n			case \"ROOMSPEC\":\n				$thisData[\'ID\'] = $PARAM[5];\n				$thisData[\'SPECSPEC\'] = $PARAM[6];\n				$thisData[\'CLIENT\'] = $PARAM[7];\n				$thisData[\'SPEC\'] = $PARAM[8];\n				$thisData[\'POINT\'] = $PARAM[9];\n			break;\n			case \"PERSONAL\":\n				$thisData[\'ID\'] = $PARAM[5];\n				$thisData[\'NAME\'] = $PARAM[6];\n				$thisData[\'SECONDNAME\'] = $PARAM[7];\n				$thisData[\'MAIL\'] = $PARAM[8];\n				$thisData[\'TEL\'] = $PARAM[9];\n				$thisData[\'CEL\'] = $PARAM[10];\n				$thisData[\'D0\'] = $PARAM[11];\n				$thisData[\'D1\'] = $PARAM[12];\n				$thisData[\'D2\'] = $PARAM[13];\n				$thisData[\'D3\'] = $PARAM[14];\n				$thisData[\'D4\'] = $PARAM[15];\n				$thisData[\'D5\'] = $PARAM[16];\n				$thisData[\'D6\'] = $PARAM[17];\n			break;\n			case \"ROOM\":\n				$thisData[\'ID\'] = $PARAM[5];\n				$thisData[\'NAME\'] = $PARAM[6];\n			break;\n			case \"USER\":\n				$thisData[\'ID\'] = $PARAM[5];\n				$thisData[\'NAME\'] = $PARAM[6];\n				$thisData[\'SECONDNAME\'] = $PARAM[7];\n				$thisData[\'MAIL\'] = $PARAM[8];\n				$thisData[\'LOGIN\'] = $PARAM[9];\n				$thisData[\'PW\'] = $PARAM[10];\n				$thisData[\'TEL\'] = $PARAM[11];\n				$thisData[\'CEL\'] = $PARAM[12];\n			break;\n			case \"SPEC\":\n				$thisData[\'ID\'] = $PARAM[5];\n				$thisData[\'NAME\'] = $PARAM[6];\n			break;\n			case \"SPECSPEC\":\n				$thisData[\'ID\'] = $PARAM[5];\n				$thisData[\'NAME\'] = $PARAM[6];\n				$thisData[\'SPEC\'] = $PARAM[7];\n				$thisData[\'PERIOD\'] = $PARAM[8];\n				$thisData[\'PRICE\'] = $PARAM[9];\n			break;\n			case \"PERIOD\":\n				$thisData[\'ID\'] = $PARAM[5];\n				$thisData[\'NAME\'] = $PARAM[6].\":\".$PARAM[7];\n			break;\n			case \"TIME_DAY\":\n				$thisData[\'ID\'] = $PARAM[5];\n				$thisData[\'NAME\'] = $PARAM[6];\n				$thisData[\'AMBEGIN\'] = $PARAM[7].\":\".$PARAM[8];\n				$thisData[\'AMEND\'] = $PARAM[9].\":\".$PARAM[10];\n				$thisData[\'PMBEGIN\'] = $PARAM[11].\":\".$PARAM[12];\n				$thisData[\'PMEND\'] = $PARAM[13].\":\".$PARAM[14];\n			break;\n			}\n			// funczione validate\n			$mysql12 = new Mysql();\n			$mysql12 ->Database=\'AID11\';\n			$mysql12 ->connect();\n			$resMysql12 = $mysql12 ->query(\"SELECT * FROM  OS_DATA_\".$thisName.\"_VALIDATE\");\n			$lineaValidate = mysql_fetch_array($resMysql12, MYSQL_ASSOC);\n			$vatidateExist=0;\n			foreach( $lineaValidate as $key => $value)\n			{\n				if ($lineaValidate[$key] && strcmp($thisData[$key],\'\')==0)\n				{\n					$this->resultPunto(\"var top = dojo.byId(\'toasterInt\');for (var i = 0; i < top.childNodes.length; i++){var currentNode = top.childNodes[i];if (currentNode.nodeType == dojo.dom.ELEMENT_NODE ){top.removeChild(currentNode);}}var status = document.createElement(\'span\');status.style[\'background-color\']=\'#222222\';status.className = \'boxred\';status.innerHTML = \'&nbsp;&nbsp;Aggiungere dati obbligatori &nbsp;&nbsp;\';top.appendChild(status);dojo.lfx.fadeOut(status, 2000).play();\");\n					$vatidateExist=1;\n					break;\n				}\n			}\n			if ($vatidateExist == 0) // controllare validate\n			{\n				// inserire dati nel mysql\n				switch ($thisName)\n				{\n				case \"CLIENT\":\n					//echo \"UPDATE OS_DATA_\".$thisName.\" SET NAME=\'\".$thisData[\'NAME\'].\"\',SECONDNAME=\'\".$thisData[\'SECONDNAME\'].\"\',MAIL=\'\".$thisData[\'MAIL\'].\"\',ADDRESS=\'\".$thisData[\'ADDRESS\'].\"\',CAP=\'\".$thisData[\'CAP\'].\"\',TEL=\'\".$thisData[\'TEL\'].\"\',CEL=\'\".$thisData[\'CEL\'].\"\',CITY=\'\".$thisData[\'CITY\'].\"\',BIRTHDAY=\'\".$thisData[\'BIRTHDAY\'].\"\',PROFESSION=\'\".$thisData[\'PROFESSION\'].\"\',SEX=\'\".$thisData[\'SEX\'].\"\' WHERE ID=\".$thisData[\'ID\'];\n					$resMysql12 = $mysql12 ->query(\"UPDATE OS_DATA_\".$thisName.\" SET NAME=\'\".$thisData[\'NAME\'].\"\',SECONDNAME=\'\".$thisData[\'SECONDNAME\'].\"\',MAIL=\'\".$thisData[\'MAIL\'].\"\',ADDRESS=\'\".$thisData[\'ADDRESS\'].\"\',CAP=\'\".$thisData[\'CAP\'].\"\',TEL=\'\".$thisData[\'TEL\'].\"\',CEL=\'\".$thisData[\'CEL\'].\"\',CITY=\'\".$thisData[\'CITY\'].\"\',BIRTHDAY=\'\".$thisData[\'BIRTHDAY\'].\"\',PROFESSION=\'\".$thisData[\'PROFESSION\'].\"\',SEX=\'\".$thisData[\'SEX\'].\"\',SCOUNT=\'\".$thisData[\'SCOUNT\'].\"\' WHERE ID=\".$thisData[\'ID\']);\n				break;\n				case \"PERSONALSPEC\":\n				case \"ROOMSPEC\":\n					$resMysql12 = $mysql12 ->query(\"UPDATE OS_DATA_\".$thisName.\" SET SPECSPEC=\'\".$thisData[\'SPECSPEC\'].\"\',CLIENT=\'\".$thisData[\'CLIENT\'].\"\',SPEC=\'\".$thisData[\'SPEC\'].\"\',POINT=\'\".$thisData[\'POINT\'].\"\'  WHERE ID=\".$thisData[\'ID\']);\n				break;\n				case \"PERSONAL\":\n					//echo \"UPDATE OS_DATA_\".$thisName.\" SET NAME=\'\".$thisData[\'NAME\'].\"\',SECONDNAME=\'\".$thisData[\'SECONDNAME\'].\"\',MAIL=\'\".$thisData[\'MAIL\'].\"\',TEL=\'\".$thisData[\'TEL\'].\"\',CEL=\'\".$thisData[\'CEL\'].\"\',D0=\'\".$thisData[\'D0\'].\"\',D1=\'\".$thisData[\'D1\'].\"\',D2=\'\".$thisData[\'D2\'].\"\',D3=\'\".$thisData[\'D3\'].\"\',D4=\'\".$thisData[\'D4\'].\"\',D5=\'\".$thisData[\'D5\'].\"\',D6=\'\".$thisData[\'D6\'].\"\' WHERE ID=\".$thisData[\'ID\'];\n					$resMysql12 = $mysql12 ->query(\"UPDATE OS_DATA_\".$thisName.\" SET NAME=\'\".$thisData[\'NAME\'].\"\',SECONDNAME=\'\".$thisData[\'SECONDNAME\'].\"\',MAIL=\'\".$thisData[\'MAIL\'].\"\',TEL=\'\".$thisData[\'TEL\'].\"\',CEL=\'\".$thisData[\'CEL\'].\"\',D0=\'\".$thisData[\'D0\'].\"\',D1=\'\".$thisData[\'D1\'].\"\',D2=\'\".$thisData[\'D2\'].\"\',D3=\'\".$thisData[\'D3\'].\"\',D4=\'\".$thisData[\'D4\'].\"\',D5=\'\".$thisData[\'D5\'].\"\',D6=\'\".$thisData[\'D6\'].\"\'  WHERE ID=\".$thisData[\'ID\']);\n				break;\n				case \"ROOM\":\n					//echo \"UPDATE OS_DATA_\".$thisName.\" SET NAME=\'\".$thisData[\'NAME\'].\"\' WHERE ID=\".$thisData[\'ID\'];\n					$resMysql12 = $mysql12 ->query(\"UPDATE OS_DATA_\".$thisName.\" SET NAME=\'\".$thisData[\'NAME\'].\"\' WHERE ID=\".$thisData[\'ID\']);\n				break;\n				case \"USER\":\n					$resMysql12 = $mysql12 ->query(\"UPDATE OS_DATA_\".$thisName.\" SET NAME=\'\".$thisData[\'NAME\'].\"\',SECONDNAME=\'\".$thisData[\'SECONDNAME\'].\"\',MAIL=\'\".$thisData[\'MAIL\'].\"\',LOGIN=\'\".$thisData[\'LOGIN\'].\"\',PW=\'\".$thisData[\'PW\'].\"\',TEL=\'\".$thisData[\'TEL\'].\"\',CEL=\'\".$thisData[\'CEL\'].\"\' WHERE ID=\".$thisData[\'ID\']);\n				break;\n				case \"SPEC\":\n				case \"PERIOD\":\n					$resMysql12 = $mysql12 ->query(\"UPDATE OS_DATA_\".$thisName.\" SET NAME=\'\".$thisData[\'NAME\'].\"\' WHERE ID=\".$thisData[\'ID\']);	\n				break;\n				case \"SPECSPEC\":\n					//echo \"UPDATE OS_DATA_\".$thisName.\" SET NAME=\'\".$thisData[\'NAME\'].\"\',SPEC=\'\".$thisData[\'SPEC\'].\"\',PERIOD=\'\".$thisData[\'PERIOD\'].\"\' WHERE ID=\".$thisData[\'ID\'];\n					$resMysql12 = $mysql12 ->query(\"UPDATE OS_DATA_\".$thisName.\" SET NAME=\'\".$thisData[\'NAME\'].\"\',SPEC=\'\".$thisData[\'SPEC\'].\"\',PERIOD=\'\".$thisData[\'PERIOD\'].\"\',PRICE=\'\".$thisData[\'PRICE\'].\"\' WHERE ID=\".$thisData[\'ID\']);	\n				break;\n				case \"TIME_DAY\":\n					$resMysql12 = $mysql12 ->query(\"UPDATE OS_DATA_\".$thisName.\" SET NAME=\'\".$thisData[\'NAME\'].\"\',AMBEGIN=\'\".$thisData[\'AMBEGIN\'].\"\',AMEND=\'\".$thisData[\'AMEND\'].\"\',PMBEGIN=\'\".$thisData[\'PMBEGIN\'].\"\',PMEND=\'\".$thisData[\'PMEND\'].\"\' WHERE ID=\".$thisData[\'ID\']);\n				break;\n				}\n				if ($resMysql12 !=1)\n				{\n					// errore DbMysql\n					// toaster\n					$this->resultPunto(\"var top = dojo.byId(\'toasterInt\');for (var i = 0; i < top.childNodes.length; i++){var currentNode = top.childNodes[i];if (currentNode.nodeType == dojo.dom.ELEMENT_NODE ){top.removeChild(currentNode);}}var status = document.createElement(\'span\');status.style[\'background-color\']=\'#222222\';status.className = \'boxred\';status.innerHTML = \'&nbsp;&nbsp;Errore Database &nbsp;&nbsp;\';top.appendChild(status);dojo.lfx.fadeOut(status, 2000).play();\");\n				}\n				else\n				{\n					// rimettere a posto CP\n					switch ($thisName)\n					{\n					case \"PERSONALSPEC\":\n					case \"ROOMSPEC\":\n						$this->resultPunto(\"dojo.widget.byId(\'\".$thisWidgetId.\"\').setContent(\\\\\\\"<button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:OPEN_ADD:\'+document.getElementById(\'IPIDPERSONAL\').value)\\\\\\\\\\\\\\\">Aggiungi</button>\\\\\\\");\");\n					break;\n					default:\n						$this->resultPunto(\"dojo.widget.byId(\'\".$thisWidgetId.\"\').setContent(\\\\\\\"<button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:$thisFather:$thisTarget:$thisName:OPEN_ADD\')\\\\\\\\\\\\\\\">Aggiungi</button><br/><div id=\'toasterInt\'></div>\\\\\\\");\");\n					break;\n					}\n\n					// toaster\n					$this->resultPunto(\"var top = dojo.byId(\'toasterInt\');for (var i = 0; i < top.childNodes.length; i++){var currentNode = top.childNodes[i];if (currentNode.nodeType == dojo.dom.ELEMENT_NODE ){top.removeChild(currentNode);}}var status = document.createElement(\'span\');status.style[\'background-color\']=\'#222222\';status.className = \'boxgreen\';status.innerHTML = \'&nbsp;&nbsp;Dati modificati &nbsp;&nbsp;\';top.appendChild(status);dojo.lfx.fadeOut(status, 2000).play();\");\n					// MODIFICARE I DATI NELLA TABELLA\n					switch ($thisName)\n					{\n					case \"PERSONALSPEC\":\n					case \"ROOMSPEC\":\n						$this->resultPunto(\"dojo.widget.byId(\'FTCONFIGLISTPERSONALSPEC\').store.update(dojo.widget.byId(\'FTCONFIGLISTPERSONALSPEC\').store.getDataByKey(\".$thisData[\'ID\'].\"),\'SPECSPEC\',\'\".$array[\'specspecNome\'.$thisData[\'SPECSPEC\']].\"\');\");\n//						$this->resultPunto(\"dojo.widget.byId(\'FTCONFIGLISTPERSONALSPEC\').store.update(dojo.widget.byId(\'FTCONFIGLISTPERSONALSPEC\').store.getDataByKey(\".$thisData[\'ID\'].\"),\'CLIENT\',\'\".$thisData[\'CLIENT\'].\"\');\");\n						$this->resultPunto(\"dojo.widget.byId(\'FTCONFIGLISTPERSONALSPEC\').store.update(dojo.widget.byId(\'FTCONFIGLISTPERSONALSPEC\').store.getDataByKey(\".$thisData[\'ID\'].\"),\'SPEC\',\'\".$array[\'specNome\'.$thisData[\'SPEC\']].\"\');\");\n						//$this->resultPunto(\"dojo.widget.byId(\'FTCONFIGLISTPERSONALSPEC\').store.update(dojo.widget.byId(\'FTCONFIGLISTPERSONALSPEC\').store.getDataByKey(\".$thisData[\'ID\'].\"),\'POINT\',\'\".$thisData[\'POINT\'].\"\');\");\n						\n							$tmpPoint = \"\";\n							for($i=1;$i<=$thisData[\'POINT\'];$i++)\n							{\n								$tmpPoint.= \"<img src=\\\\\\\\\\\\\\\"../framework/furoros/share/APP/AID11/star1On.gif\\\\\\\\\\\\\\\">\";\n							}\n						$this->resultPunto(\"dojo.widget.byId(\'FTCONFIGLISTPERSONALSPEC\').store.update(dojo.widget.byId(\'FTCONFIGLISTPERSONALSPEC\').store.getDataByKey(\".$thisData[\'ID\'].\"),\'POINT\',\'\".$tmpPoint.\"\');\");\n					break;\n					case \"CLIENT\":\n					case \"PERSONAL\":\n					case \"USER\":\n						$this->resultPunto(\"dojo.widget.byId(\'FTCONFIGLIST\').store.update(dojo.widget.byId(\'FTCONFIGLIST\').store.getDataByKey(\".$thisData[\'ID\'].\"),\'NAME\',\'\".$thisData[\'NAME\'].\"\');\");\n						$this->resultPunto(\"dojo.widget.byId(\'FTCONFIGLIST\').store.update(dojo.widget.byId(\'FTCONFIGLIST\').store.getDataByKey(\".$thisData[\'ID\'].\"),\'SECONDNAME\',\'\".$thisData[\'SECONDNAME\'].\"\');\");\n						$this->resultPunto(\"dojo.widget.byId(\'FTCONFIGLIST\').store.update(dojo.widget.byId(\'FTCONFIGLIST\').store.getDataByKey(\".$thisData[\'ID\'].\"),\'TEL\',\'\".$thisData[\'TEL\'].\"\');\");\n						$this->resultPunto(\"dojo.widget.byId(\'FTCONFIGLIST\').store.update(dojo.widget.byId(\'FTCONFIGLIST\').store.getDataByKey(\".$thisData[\'ID\'].\"),\'CEL\',\'\".$thisData[\'CEL\'].\"\');\");					\n					break;\n					case \"SPEC\":\n					case \"ROOM\":\n					case \"PERIOD\":\n						$this->resultPunto(\"dojo.widget.byId(\'FTCONFIGLIST\').store.update(dojo.widget.byId(\'FTCONFIGLIST\').store.getDataByKey(\".$thisData[\'ID\'].\"),\'NAME\',\'\".$thisData[\'NAME\'].\"\');\");\n					break;\n					case \"SPECSPEC\":\n						$this->resultPunto(\"dojo.widget.byId(\'FTCONFIGLIST\').store.update(dojo.widget.byId(\'FTCONFIGLIST\').store.getDataByKey(\".$thisData[\'ID\'].\"),\'NAME\',\'\".$thisData[\'NAME\'].\"\');\");\n						$this->resultPunto(\"dojo.widget.byId(\'FTCONFIGLIST\').store.update(dojo.widget.byId(\'FTCONFIGLIST\').store.getDataByKey(\".$thisData[\'ID\'].\"),\'SPEC\',\'\".$array[\'orariNome\'.$thisData[\'SPEC\']].\"\');\");\n						$this->resultPunto(\"dojo.widget.byId(\'FTCONFIGLIST\').store.update(dojo.widget.byId(\'FTCONFIGLIST\').store.getDataByKey(\".$thisData[\'ID\'].\"),\'PERIOD\',\'\".$array[\'periodNome\'.$thisData[\'PERIOD\']].\"\');\");\n					break;\n					case \"TIME_DAY\":\n						$this->resultPunto(\"dojo.widget.byId(\'FTCONFIGLIST\').store.update(dojo.widget.byId(\'FTCONFIGLIST\').store.getDataByKey(\".$thisData[\'ID\'].\"),\'NAME\',\'\".$thisData[\'NAME\'].\"\');\");\n						$this->resultPunto(\"dojo.widget.byId(\'FTCONFIGLIST\').store.update(dojo.widget.byId(\'FTCONFIGLIST\').store.getDataByKey(\".$thisData[\'ID\'].\"),\'AMBEGIN\',\'\".$thisData[\'AMBEGIN\'].\"\');\");\n						$this->resultPunto(\"dojo.widget.byId(\'FTCONFIGLIST\').store.update(dojo.widget.byId(\'FTCONFIGLIST\').store.getDataByKey(\".$thisData[\'ID\'].\"),\'AMEND\',\'\".$thisData[\'AMEND\'].\"\');\");\n						$this->resultPunto(\"dojo.widget.byId(\'FTCONFIGLIST\').store.update(dojo.widget.byId(\'FTCONFIGLIST\').store.getDataByKey(\".$thisData[\'ID\'].\"),\'PMBEGIN\',\'\".$thisData[\'PMBEGIN\'].\"\');\");\n						$this->resultPunto(\"dojo.widget.byId(\'FTCONFIGLIST\').store.update(dojo.widget.byId(\'FTCONFIGLIST\').store.getDataByKey(\".$thisData[\'ID\'].\"),\'PMEND\',\'\".$thisData[\'PMEND\'].\"\');\");\n					break;\n					}					\n					// refresh di quello che sia bisogno\n					switch ($thisName)\n					{\n					case \"PERSONALSPEC\":\n						$this->resultPunto(\"furoros.Runmodule(\'11\',\'REFRESH_CALENDAR_MAIN\',\'APP\',\'\');\");\n					break;\n					case \"PERSONAL\":\n						$this->resultPunto(\"furoros.Runmodule(\'11\',\'REFRESH_PERSONAL\',\'APP\',\'\');\");\n					break;\n					case \"ROOM\":\n						$this->resultPunto(\"furoros.Runmodule(\'11\',\'REFRESH_ROOM\',\'APP\',\'\');\");\n					break;\n					case \"SPEC\":\n					case \"SPECSPEC\":\n						$this->resultPunto(\"furoros.Runmodule(\'11\',\'REFRESH_SPEC\',\'APP\',\'\');\");\n					break;\n\n					}\n				}\n			}\n		break;\n		case \"ADD\": // aggiungere dati\n			switch ($thisName)\n			{\n			case \"CLIENT\":\n				$thisData[\'NAME\'] = $PARAM[6];\n				$thisData[\'SECONDNAME\'] = $PARAM[7];\n				$thisData[\'MAIL\'] = $PARAM[8];\n				$thisData[\'ADDRESS\'] = $PARAM[9];\n				$thisData[\'CAP\'] = $PARAM[10];\n				$thisData[\'TEL\'] = $PARAM[11];\n				$thisData[\'CEL\'] = $PARAM[12];\n				$thisData[\'CITY\'] = $PARAM[13];\n				$thisData[\'PROFESSION\'] = $PARAM[14];\n				$thisData[\'SEX\'] = $PARAM[15];\n				$thisData[\'BIRTHDAY\'] = $PARAM[16];\n				$thisData[\'SCOUNT\'] = $PARAM[17];\n			break;\n			case \"PERSONAL\":\n				$thisData[\'NAME\'] = $PARAM[6];\n				$thisData[\'SECONDNAME\'] = $PARAM[7];\n				$thisData[\'MAIL\'] = $PARAM[8];\n				$thisData[\'TEL\'] = $PARAM[9];\n				$thisData[\'CEL\'] = $PARAM[10];\n				$thisData[\'D0\'] = $PARAM[11];\n				$thisData[\'D1\'] = $PARAM[12];\n				$thisData[\'D2\'] = $PARAM[13];\n				$thisData[\'D3\'] = $PARAM[14];\n				$thisData[\'D4\'] = $PARAM[15];\n				$thisData[\'D5\'] = $PARAM[16];\n				$thisData[\'D6\'] = $PARAM[17];\n				$thisData[\'D0\'] = $PARAM[11];\n				$thisData[\'D1\'] = $PARAM[12];\n				$thisData[\'D2\'] = $PARAM[13];\n				$thisData[\'D3\'] = $PARAM[14];\n				$thisData[\'D4\'] = $PARAM[15];\n				$thisData[\'D5\'] = $PARAM[16];\n				$thisData[\'D6\'] = $PARAM[17];\n			break;\n			case \"PERSONALSPEC\":\n			case \"ROOMSPEC\":\n				$thisData[\'SPECSPEC\'] = $PARAM[6];\n				$thisData[\'CLIENT\'] = $PARAM[7];\n				$thisData[\'SPEC\'] = $PARAM[8];\n				$thisData[\'POINT\'] = $PARAM[9];\n			break;\n			case \"USER\":\n				$thisData[\'NAME\'] = $PARAM[6];\n				$thisData[\'SECONDNAME\'] = $PARAM[7];\n				$thisData[\'MAIL\'] = $PARAM[8];\n				$thisData[\'LOGIN\'] = $PARAM[9];\n				$thisData[\'PW\'] = $PARAM[10];\n				$thisData[\'TEL\'] = $PARAM[11];\n				$thisData[\'CEL\'] = $PARAM[12];\n			break;\n			case \"SPEC\":			\n			case \"ROOM\":\n				$thisData[\'NAME\'] = $PARAM[6];\n			break;\n			case \"SPECSPEC\":\n				$thisData[\'NAME\'] = $PARAM[6];\n				$thisData[\'SPEC\'] = $PARAM[7];\n				$thisData[\'PERIOD\'] = $PARAM[8];\n				$thisData[\'PRICE\'] = $PARAM[9];\n			break;\n			case \"PERIOD\":\n				$thisData[\'NAME\'] = $PARAM[6].\":\".$PARAM[7];\n			break;\n			case \"TIME_DAY\":\n				$thisData[\'NAME\'] = $PARAM[6];\n				$thisData[\'AMBEGIN\'] = $PARAM[7].\":\".$PARAM[8];\n				$thisData[\'AMEND\'] = $PARAM[9].\":\".$PARAM[10];\n				$thisData[\'PMBEGIN\'] = $PARAM[11].\":\".$PARAM[12];\n				$thisData[\'PMEND\'] = $PARAM[13].\":\".$PARAM[14];\n			break;\n			}\n			// funczione validate\n			$mysql12 = new Mysql();\n			$mysql12 ->Database=\'AID11\';\n			$mysql12 ->connect();\n			$resMysql12 = $mysql12 ->query(\"SELECT * FROM  OS_DATA_\".$thisName.\"_VALIDATE\");\n			$lineaValidate = mysql_fetch_array($resMysql12, MYSQL_ASSOC);\n			$vatidateExist=0;\n			foreach( $lineaValidate as $key => $value)\n			{\n				if ($lineaValidate[$key] && strcmp($thisData[$key],\'\')==0)\n				{\n					$this->resultPunto(\"var top = dojo.byId(\'toasterInt\');for (var i = 0; i < top.childNodes.length; i++){var currentNode = top.childNodes[i];if (currentNode.nodeType == dojo.dom.ELEMENT_NODE ){top.removeChild(currentNode);}}var status = document.createElement(\'span\');status.style[\'background-color\']=\'#222222\';status.className = \'boxred\';status.innerHTML = \'&nbsp;&nbsp;Aggiungere dati obbligatori &nbsp;&nbsp;\';top.appendChild(status);dojo.lfx.fadeOut(status, 2000).play();\");\n					$vatidateExist=1;\n					break;\n				}\n			}\n			if ($vatidateExist == 0) // controllare validate\n			{\n				// inserire dati nel mysql\n				switch ($thisName)\n				{\n				case \"CLIENT\":\n					//echo \"PHP: INSERT INTO OS_DATA_\".$thisName.\" (NAME,SECONDNAME,MAIL,ADDRESS,CAP,TEL,CEL,CITY,PROFESSION,SEX,BIRTHDAY) VALUES (\'\".$thisData[\'NAME\'].\"\',\'\".$thisData[\'SECONDNAME\'].\"\',\'\".$thisData[\'MAIL\'].\"\',\'\".$thisData[\'ADDRESS\'].\"\',\'\".$thisData[\'CAP\'].\"\',\'\".$thisData[\'TEL\'].\"\',\'\".$thisData[\'CEL\'].\"\',\'\".$thisData[\'CITY\'].\"\',\'\".$thisData[\'PROFESSION\'].\"\',\'\".$thisData[\'SEX\'].\"\',\'\".$thisData[\'BIRTHDAY\'].\"\')\";\n					$resMysql12 = $mysql12 ->query(\"INSERT INTO OS_DATA_\".$thisName.\" (NAME,SECONDNAME,MAIL,ADDRESS,CAP,TEL,CEL,CITY,PROFESSION,SEX,BIRTHDAY,SCOUNT) VALUES (\'\".$thisData[\'NAME\'].\"\',\'\".$thisData[\'SECONDNAME\'].\"\',\'\".$thisData[\'MAIL\'].\"\',\'\".$thisData[\'ADDRESS\'].\"\',\'\".$thisData[\'CAP\'].\"\',\'\".$thisData[\'TEL\'].\"\',\'\".$thisData[\'CEL\'].\"\',\'\".$thisData[\'CITY\'].\"\',\'\".$thisData[\'PROFESSION\'].\"\',\'\".$thisData[\'SEX\'].\"\',\'\".$thisData[\'BIRTHDAY\'].\"\',\'\".$thisData[\'SCOUNT\'].\"\')\");\n				break;\n				case \"PERSONAL\":\n					//echo \"PHP:INSERT INTO OS_DATA_\".$thisName.\" (NAME,SECONDNAME,MAIL,TEL,CEL,IMG,COLOR,D0,D1,D2,D3,D4,D5,D6) VALUES (\'\".$thisData[\'NAME\'].\"\',\'\".$thisData[\'SECONDNAME\'].\"\',\'\".$thisData[\'MAIL\'].\"\',\'\".$thisData[\'TEL\'].\"\',\'\".$thisData[\'CEL\'].\"\',\'sun1.jpg\',\'ffffff\',\'\".$thisData[\'D0\'].\"\',\'\".$thisData[\'D1\'].\"\',\'\".$thisData[\'D2\'].\"\',\'\".$thisData[\'D3\'].\"\',\'\".$thisData[\'D4\'].\"\',\'\".$thisData[\'D4\'].\"\',\'\".$thisData[\'D5\'].\"\',\'\".$thisData[\'D6\'].\"\')\"; \n					$resMysql12 = $mysql12 ->query(\"INSERT INTO OS_DATA_\".$thisName.\" (NAME,SECONDNAME,MAIL,TEL,CEL,IMG,COLOR,D0,D1,D2,D3,D4,D5,D6) VALUES (\'\".$thisData[\'NAME\'].\"\',\'\".$thisData[\'SECONDNAME\'].\"\',\'\".$thisData[\'MAIL\'].\"\',\'\".$thisData[\'TEL\'].\"\',\'\".$thisData[\'CEL\'].\"\',\'sun1.jpg\',\'ffffff\',\'\".$thisData[\'D0\'].\"\',\'\".$thisData[\'D1\'].\"\',\'\".$thisData[\'D2\'].\"\',\'\".$thisData[\'D3\'].\"\',\'\".$thisData[\'D4\'].\"\',\'\".$thisData[\'D5\'].\"\',\'\".$thisData[\'D6\'].\"\')\");\n				break;\n				case \"PERSONALSPEC\":\n				case \"ROOMSPEC\":\n					//echo \"PHP:INSERT INTO OS_DATA_\".$thisName.\" (NAME,CLIENT,SPEC,POINT) VALUES (\'\".$thisData[\'NAME\'].\"\',\'\".$thisData[\'CLIENT\'].\"\',\'\".$thisData[\'SPEC\'].\"\',\'\".$thisData[\'POINT\'].\"\')\"; \n					$resMysql12 = $mysql12 ->query(\"INSERT INTO OS_DATA_\".$thisName.\" (SPECSPEC,CLIENT,SPEC,POINT) VALUES (\'\".$thisData[\'NAME\'].\"\',\'\".$thisData[\'CLIENT\'].\"\',\'\".$thisData[\'SPEC\'].\"\',\'\".$thisData[\'POINT\'].\"\')\");\n				break;\n				case \"SPEC\":\n				case \"PERIOD\":\n				case \"ROOM\":\n					$resMysql12 = $mysql12 ->query(\"INSERT INTO OS_DATA_\".$thisName.\" (NAME) VALUES (\'\".$thisData[\'NAME\'].\"\')\");\n				break;\n				case \"SPECSPEC\":\n					$resMysql12 = $mysql12 ->query(\"INSERT INTO OS_DATA_\".$thisName.\" (NAME,SPEC,PERIOD,PRICE) VALUES (\'\".$thisData[\'NAME\'].\"\',\'\".$thisData[\'SPEC\'].\"\',\'\".$thisData[\'PERIOD\'].\"\',\'\".$thisData[\'PRICE\'].\"\')\");				\n				break;\n				case \"TIME_DAY\":\n					$resMysql12 = $mysql12 ->query(\"INSERT INTO OS_DATA_\".$thisName.\" (NAME,AMBEGIN,AMEND,PMBEGIN,PMEND) VALUES (\'\".$thisData[\'NAME\'].\"\',\'\".$thisData[\'AMBEGIN\'].\"\',\'\".$thisData[\'AMEND\'].\"\',\'\".$thisData[\'PMBEGIN\'].\"\',\'\".$thisData[\'PMEND\'].\"\')\");\n				break;\n				case \"USER\":\n					$resMysql12 = $mysql12 ->query(\"INSERT INTO OS_DATA_\".$thisName.\" (NAME,SECONDNAME,MAIL,LOGIN,PW,TEL,CEL) VALUES (\'\".$thisData[\'NAME\'].\"\',\'\".$thisData[\'SECONDNAME\'].\"\',\'\".$thisData[\'MAIL\'].\"\',\'\".$thisData[\'LOGIN\'].\"\',\'\".$thisData[\'PW\'].\"\',\'\".$thisData[\'TEL\'].\"\',\'\".$thisData[\'CEL\'].\"\')\");				\n				break;\n				}\n				$thisData[\'ID\']=mysql_insert_id();\n				//$this->resultPunto(\"dojo.debug(\'id \".mysql_insert_id().\"\');\");\n				if ($resMysql12 !=1)\n				{\n					// errore DbMysql\n					// toaster\n					$this->resultPunto(\"var top = dojo.byId(\'toasterInt\');for (var i = 0; i < top.childNodes.length; i++){var currentNode = top.childNodes[i];if (currentNode.nodeType == dojo.dom.ELEMENT_NODE ){top.removeChild(currentNode);}}var status = document.createElement(\'span\');status.style[\'background-color\']=\'#222222\';status.className = \'boxred\';status.innerHTML = \'&nbsp;&nbsp;Errore Database &nbsp;&nbsp;\';top.appendChild(status);dojo.lfx.fadeOut(status, 2000).play();\");\n				}\n				else\n				{\n					// rimettere a posto CP\n					switch ($thisName)\n					{\n					case \"PERSONALSPEC\":\n					case \"ROOMSPEC\":\n						$this->resultPunto(\"dojo.widget.byId(\'\".$thisWidgetId.\"\').setContent(\\\\\\\"<button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'\".$thisWidgetId.\":$thisFather:$thisTarget:$thisName:OPEN_ADD:\'+document.getElementById(\'IPIDPERSONAL\').value)\\\\\\\\\\\\\\\">Aggiungi</button>\\\\\\\");\");\n					break;\n					default:\n						$this->resultPunto(\"dojo.widget.byId(\'\".$thisWidgetId.\"\').setContent(\\\\\\\"<button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'\".$thisWidgetId.\":$thisFather:$thisTarget:$thisName:OPEN_ADD\')\\\\\\\\\\\\\\\">Aggiungi</button><br/><div id=\'toasterInt\'></div>\\\\\\\");\");\n					break;\n					}\n\n					// toaster\n					$this->resultPunto(\"var top = dojo.byId(\'toasterInt\');for (var i = 0; i < top.childNodes.length; i++){var currentNode = top.childNodes[i];if (currentNode.nodeType == dojo.dom.ELEMENT_NODE ){top.removeChild(currentNode);}}var status = document.createElement(\'span\');status.style[\'background-color\']=\'#222222\';status.className = \'boxgreen\';status.innerHTML = \'&nbsp;&nbsp;Dati aggiunti &nbsp;&nbsp;\';top.appendChild(status);dojo.lfx.fadeOut(status, 2000).play();\");\n					// AGGIUNGERE I DATI NELLA TABELLA\n					switch ($thisName)\n					{\n					case \"PERSONALSPEC\":\n					case \"ROOMSPEC\":\n						$tmpPoint = \"\";\n							for($i=1;$i<=$thisData[\'POINT\'];$i++)\n							{\n								$tmpPoint.= \"<img src=\\\\\\\\\\\\\\\"../framework/furoros/share/APP/AID11/star1On.gif\\\\\\\\\\\\\\\">\";\n							}\n							\n						$this->resultPunto(\"dojo.widget.byId(\'FTCONFIGLISTPERSONALSPEC\').store.addData({N:\".$thisData[\'ID\'].\",SPECSPEC:\'\".$array[\'specspecNome\'.$thisData[\'SPECSPEC\']].\"\',CLIENT:\'\".$thisData[\'CLIENT\'].\"\',SPEC:\'\".$array[\'specNome\'.$thisData[\'SPEC\']].\"\',POINT:\'\".$tmpPoint.\"\'});\");				\n					break;\n					case \"CLIENT\":\n					case \"PERSONAL\":\n					case \"USER\":\n						$this->resultPunto(\"dojo.widget.byId(\'FTCONFIGLIST\').store.addData({N:\".$thisData[\'ID\'].\",NAME:\'\".$thisData[\'NAME\'].\"\',SECONDNAME:\'\".$thisData[\'SECONDNAME\'].\"\',TEL:\'\".$thisData[\'TEL\'].\"\',CEL:\'\".$thisData[\'CEL\'].\"\'});\");				\n					break;\n					case \"SPEC\":\n					case \"PERIOD\":\n					case \"ROOM\":\n						$this->resultPunto(\"dojo.widget.byId(\'FTCONFIGLIST\').store.addData({N:\".$thisData[\'ID\'].\",NAME:\'\".$thisData[\'NAME\'].\"\'});\");				\n					break;\n					case \"SPECSPEC\":\n						$this->resultPunto(\"dojo.widget.byId(\'FTCONFIGLIST\').store.addData({N:\".$thisData[\'ID\'].\",NAME:\'\".$thisData[\'NAME\'].\"\',SPEC:\'\".$array[\'orariNome\'.$thisData[\'SPEC\']].\"\',PERIOD:\'\".$array[\'periodNome\'.$thisData[\'PERIOD\']].\"\'});\");									\n					break;\n					case \"TIME_DAY\":\n						$this->resultPunto(\"dojo.widget.byId(\'FTCONFIGLIST\').store.addData({N:\".$thisData[\'ID\'].\",NAME:\'\".$thisData[\'NAME\'].\"\',AMBEGIN:\'\".$thisData[\'AMBEGIN\'].\"\',AMEND:\'\".$thisData[\'AMEND\'].\"\',PMBEGIN:\'\".$thisData[\'PMBEGIN\'].\"\',PMEND:\'\".$thisData[\'PMEND\'].\"\'});\");				\n					break;\n					}\n					// refresh di quello che sia bisogno\n					switch ($thisName)\n					{\n					case \"PERSONAL\":\n						$this->resultPunto(\"furoros.Runmodule(\'11\',\'REFRESH_PERSONAL\',\'APP\',\'\');\");\n					break;\n					case \"ROOM\":\n						$this->resultPunto(\"furoros.Runmodule(\'11\',\'REFRESH_ROOM\',\'APP\',\'\');\");\n					break;\n					case \"SPEC\":\n					case \"SPECSPEC\":\n						$this->resultPunto(\"furoros.Runmodule(\'11\',\'REFRESH_SPEC\',\'APP\',\'\');\");\n					break;\n\n					}\n				}\n			}\n		break;\n			\n		case \"CLOSE\":\n			switch ($thisName)\n			{\n			case \"PERSONALSPEC\":\n			case \"ROOMSPEC\":\n				$this->resultPunto(\"dojo.debug(\'CLOSE: \'+document.getElementById(\'IPCLIENT\').value);\");\n				$this->resultPunto(\"dojo.widget.byId(\'\".$thisWidgetId.\"\').setContent(\\\\\\\"<button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'$thisWidgetId:$thisFather:$thisTarget:$thisName:OPEN_ADD:\'+document.getElementById(\'IPIDPERSONAL\').value)\\\\\\\\\\\\\\\">Aggiungi</button>\\\\\\\");\");\n			break;\n			default:\n				$this->resultPunto(\"dojo.widget.byId(\'\".$thisWidgetId.\"\').setContent(\\\\\\\"<button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'$thisWidgetId:$thisFather:$thisTarget:$thisName:OPEN_ADD\')\\\\\\\\\\\\\\\">Aggiungi</button><div id=\'toasterInt\'></div>\\\\\\\");\");\n			break;\n			}\n		break;\n		case \"OPEN_ADD\":\n		case \"OPEN_DEL\":\n		case \"FT_CLICK\":\n			// post content + validate\n			switch ($thisName)\n					{\n					case \"PERSONAL\":\n						// cambiare content \n						$this->resultPunto(\"dojo.widget.byId(\'\".$thisWidgetId.\"\').setContent(\\\\\\\"$tmpContent\\\\\\\");\");\n						// rimettere ID\n						$this->resultPunto(\"dojo.byId(\'IPIDPERSONAL\').value=\".$thisId.\";\");\n						$this->resultPunto(\"dojo.widget.byId(\'CPCONFIGEDITPERSONALSPEC\').setContent(\\\\\\\"<button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'CPCONFIGEDITPERSONALSPEC:\".$PARAM[1].\":\".$PARAM[2].\":PERSONALSPEC:OPEN_ADD:\".$thisId .\"\')\\\\\\\\\\\\\\\">Aggiungi</button>\\\\\\\");\");\n						$this->resultPunto(\"dojo.widget.byId(\'CPCONFIGLISTPERSONALSPEC\').setContent(\\\\\\\"<table bgcolor=\'#ffffff\' dojoType=\'filteringTable\' valueField= \'N\' onSelect=\\\\\\\\\\\\\\\"var idSelect=dojo.widget.byId(\'FTCONFIGLISTPERSONALSPEC\').getSelectedData().N;furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'CPCONFIGEDITPERSONALSPEC:CONFIG:DATA:PERSONALSPEC:FT_CLICK:\'+idSelect)\\\\\\\\\\\\\\\" width=\'100%\' widgetId=\'FTCONFIGLISTPERSONALSPEC\' multiple=\'false\' alternateRows=\'true\' maxSortable=\'2\' cellpadding=\'0\' cellspacing=\'0\' border=\'0\'><thead><tr><th field=\'N\' dataType=\'number\' valign=\'top\'  sort=\'asc\'>N</th><th field=\'SPEC\' dataType=\'String\' align=\'center\' valign=\'top\'>CATEGORIA</th><th field=\'SPECSPEC\' dataType=\'String\' align=\'center\' valign=\'top\'>NOME</th><th field=\'POINT\' dataType=\'html\' align=\'center\' valign=\'top\'>POINT</th></tr></thead><tbody></tbody></table>\\\\\\\");\");\n						$resMysql12 = $mysql12 ->query(\"SELECT * FROM  OS_DATA_PERSONALSPEC WHERE CLIENT=\".$thisId);\n						while (	$linea11 = mysql_fetch_array($resMysql12, MYSQL_ASSOC))\n						{\n							$tmpPoint = \"\";\n							for($i=1;$i<=$linea11[\'POINT\'];$i++)\n							{\n								$tmpPoint.= \"<img src=\\\\\\\\\\\\\\\"../framework/furoros/share/APP/AID11/star1On.gif\\\\\\\\\\\\\\\">\";\n							}\n							$this->resultPunto(\"dojo.widget.byId(\'FTCONFIGLISTPERSONALSPEC\').store.addData({N:\".$linea11[\'ID\'].\",SPECSPEC:\'\".$array[\'specspecNome\'.$linea11[\'SPECSPEC\']].\"\',SPEC:\'\".$array[\'specNome\'.$linea11[\'SPEC\']].\"\',POINT:\'\".$tmpPoint.\"\'});\");\n						}\n						mysql_free_result($resMysql12);\n					break;\n					case \"ROOM\":\n						// cambiare content \n						$this->resultPunto(\"dojo.widget.byId(\'\".$thisWidgetId.\"\').setContent(\\\\\\\"$tmpContent\\\\\\\");\");\n						// rimettere ID\n						$this->resultPunto(\"dojo.byId(\'IPIDPERSONAL\').value=\".$thisId.\";\");\n						$this->resultPunto(\"dojo.widget.byId(\'CPCONFIGEDITPERSONALSPEC\').setContent(\\\\\\\"<button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'CPCONFIGEDITPERSONALSPEC:\".$PARAM[1].\":\".$PARAM[2].\":ROOMSPEC:OPEN_ADD:\".$thisId .\"\')\\\\\\\\\\\\\\\">Aggiungi</button>\\\\\\\");\");\n						$this->resultPunto(\"dojo.widget.byId(\'CPCONFIGLISTPERSONALSPEC\').setContent(\\\\\\\"<table bgcolor=\'#ffffff\' dojoType=\'filteringTable\' valueField= \'N\' onSelect=\\\\\\\\\\\\\\\"var idSelect=dojo.widget.byId(\'FTCONFIGLISTPERSONALSPEC\').getSelectedData().N;furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'CPCONFIGEDITPERSONALSPEC:CONFIG:DATA:ROOMSPEC:FT_CLICK:\'+idSelect)\\\\\\\\\\\\\\\" width=\'100%\' widgetId=\'FTCONFIGLISTPERSONALSPEC\' multiple=\'false\' alternateRows=\'true\' maxSortable=\'2\' cellpadding=\'0\' cellspacing=\'0\' border=\'0\'><thead><tr><th field=\'N\' dataType=\'number\' valign=\'top\'  sort=\'asc\'>N</th><th field=\'SPEC\' dataType=\'String\' align=\'center\' valign=\'top\'>CATEGORIA</th><th field=\'SPECSPEC\' dataType=\'String\' align=\'center\' valign=\'top\'>NOME</th><th field=\'POINT\' dataType=\'html\' align=\'center\' valign=\'top\'>POINT</th></tr></thead><tbody></tbody></table>\\\\\\\");\");\n						$resMysql12 = $mysql12 ->query(\"SELECT * FROM  OS_DATA_ROOMSPEC WHERE CLIENT=\".$thisId);\n						while (	$linea11 = mysql_fetch_array($resMysql12, MYSQL_ASSOC))\n						{\n							$tmpPoint = \"\";\n							for($i=1;$i<=$linea11[\'POINT\'];$i++)\n							{\n								$tmpPoint.= \"<img src=\\\\\\\\\\\\\\\"../framework/furoros/share/APP/AID11/star1On.gif\\\\\\\\\\\\\\\">\";\n							}\n							$this->resultPunto(\"dojo.widget.byId(\'FTCONFIGLISTPERSONALSPEC\').store.addData({N:\".$linea11[\'ID\'].\",SPECSPEC:\'\".$array[\'specspecNome\'.$linea11[\'SPECSPEC\']].\"\',SPEC:\'\".$array[\'specNome\'.$linea11[\'SPEC\']].\"\',POINT:\'\".$tmpPoint.\"\'});\");\n						}\n						mysql_free_result($resMysql12);\n					break;\n					case \"PERSONALSPEC\":\n					case \"ROOMSPEC\":\n						// controllo: non aprire personalspec se in modalita add e non ha id di personal\n						$this->resultPunto(\"dojo.debug(\'VALID: \".$PARAM[5].\"\');\");\n						if ($PARAM[5]==0)\n						{\n							$this->resultPunto(\"var top = dojo.byId(\'toasterInt\');for (var i = 0; i < top.childNodes.length; i++){var currentNode = top.childNodes[i];if (currentNode.nodeType == dojo.dom.ELEMENT_NODE ){top.removeChild(currentNode);}}var status = document.createElement(\'span\');status.style[\'background-color\']=\'#222222\';status.className = \'boxred\';status.innerHTML = \'&nbsp;&nbsp;Salvare personale prima &nbsp;&nbsp;\';top.appendChild(status);dojo.lfx.fadeOut(status, 5000).play();\");\n						}\n						else\n						{\n							// cambiare content \n							$this->resultPunto(\"dojo.widget.byId(\'\".$thisWidgetId.\"\').setContent(\\\\\\\"$tmpContent\\\\\\\");\");\n							$this->resultPunto(\"furoros.Runmodule(\'11\',\'REFRESH_CONFIG_PERSONALSPECSPEC\',\'APP\',document.getElementById(\'IPSPEC\').value);\");\n						}\n					break;\n					default:\n						// cambiare content \n						$this->resultPunto(\"dojo.widget.byId(\'\".$thisWidgetId.\"\').setContent(\\\\\\\"$tmpContent\\\\\\\");\");\n					break;\n					}\n		break;\n		}\n	break;\n	}\nbreak;\n}',''),(46,1,'',1,'','');

--
-- Table structure for table `EVENT_CALENDAR_BUTTON_DAY`
--

CREATE TABLE `EVENT_CALENDAR_BUTTON_DAY` (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `SID` bigint(20) NOT NULL,
  `BID` varchar(255) NOT NULL,
  `TYPE` bigint(20) NOT NULL DEFAULT 1,
  `SCRIPT` longtext NOT NULL,
  `DESCRIPTION` varchar(255) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=50 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `EVENT_CALENDAR_BUTTON_DAY`
--

INSERT INTO `EVENT_CALENDAR_BUTTON_DAY` VALUES (47,0,'',1,'arrayData[\'AIP\'][11][\'CALENDAR\'][\'MODE\'] = \'day\';','impostare la data di primo giorno'),(48,1,'REFRESH_CALENDAR_MAIN',3,'','aggiornare calendario');

--
-- Table structure for table `EVENT_CALENDAR_BUTTON_MONTH`
--

CREATE TABLE `EVENT_CALENDAR_BUTTON_MONTH` (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `SID` bigint(20) NOT NULL,
  `BID` varchar(255) NOT NULL,
  `TYPE` bigint(20) NOT NULL DEFAULT 1,
  `SCRIPT` longtext NOT NULL,
  `DESCRIPTION` varchar(255) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=50 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `EVENT_CALENDAR_BUTTON_MONTH`
--

INSERT INTO `EVENT_CALENDAR_BUTTON_MONTH` VALUES (47,0,'',1,'arrayData[\'AIP\'][11][\'CALENDAR\'][\'MODE\'] = \'month\';','impostare la data di primo giorno'),(48,1,'REFRESH_CALENDAR_MAIN',3,'','aggiornare calendario');

--
-- Table structure for table `EVENT_CALENDAR_BUTTON_NEXT`
--

CREATE TABLE `EVENT_CALENDAR_BUTTON_NEXT` (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `SID` bigint(20) NOT NULL,
  `BID` varchar(255) NOT NULL,
  `TYPE` bigint(20) NOT NULL DEFAULT 1,
  `SCRIPT` longtext NOT NULL,
  `DESCRIPTION` varchar(255) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=50 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `EVENT_CALENDAR_BUTTON_NEXT`
--

INSERT INTO `EVENT_CALENDAR_BUTTON_NEXT` VALUES (47,0,'',1,'arrayData[\'AIP\'][11][\'CALENDAR\'][\'DATAFIRST\'] = dojo.date.add(new Date(arrayData[\'AIP\'][11][\'CALENDAR\'][\'DATAFIRST\']), dojo.date.dateParts.DAY, 1);','impostare la data di primo giorno'),(48,1,'REFRESH_CALENDAR_MAIN',3,'','aggiornare calendario'),(49,2,'REFRESH_CALENDAR_LABEL_NAVIGATION',3,'','');

--
-- Table structure for table `EVENT_CALENDAR_BUTTON_NEXTNEXT`
--

CREATE TABLE `EVENT_CALENDAR_BUTTON_NEXTNEXT` (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `SID` bigint(20) NOT NULL,
  `BID` varchar(255) NOT NULL,
  `TYPE` bigint(20) NOT NULL DEFAULT 1,
  `SCRIPT` longtext NOT NULL,
  `DESCRIPTION` varchar(255) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=50 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `EVENT_CALENDAR_BUTTON_NEXTNEXT`
--

INSERT INTO `EVENT_CALENDAR_BUTTON_NEXTNEXT` VALUES (47,0,'',1,'arrayData[\'AIP\'][11][\'CALENDAR\'][\'DATAFIRST\'] = dojo.date.add(new Date(arrayData[\'AIP\'][11][\'CALENDAR\'][\'DATAFIRST\']), dojo.date.dateParts.WEEK, 1);','impostare la data di primo giorno'),(48,1,'REFRESH_CALENDAR_MAIN',3,'','aggiornare calendario'),(49,2,'REFRESH_CALENDAR_LABEL_NAVIGATION',3,'','');

--
-- Table structure for table `EVENT_CALENDAR_BUTTON_PREV`
--

CREATE TABLE `EVENT_CALENDAR_BUTTON_PREV` (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `SID` bigint(20) NOT NULL,
  `BID` varchar(255) NOT NULL,
  `TYPE` bigint(20) NOT NULL DEFAULT 1,
  `SCRIPT` longtext NOT NULL,
  `DESCRIPTION` varchar(255) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=50 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `EVENT_CALENDAR_BUTTON_PREV`
--

INSERT INTO `EVENT_CALENDAR_BUTTON_PREV` VALUES (47,0,'',1,'arrayData[\'AIP\'][11][\'CALENDAR\'][\'DATAFIRST\'] = dojo.date.add(new Date(arrayData[\'AIP\'][11][\'CALENDAR\'][\'DATAFIRST\']), dojo.date.dateParts.DAY, -1);','impostare la data di primo giorno'),(48,1,'REFRESH_CALENDAR_MAIN',3,'','aggiornare calendario'),(49,2,'REFRESH_CALENDAR_LABEL_NAVIGATION',3,'','');

--
-- Table structure for table `EVENT_CALENDAR_BUTTON_PREVPREV`
--

CREATE TABLE `EVENT_CALENDAR_BUTTON_PREVPREV` (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `SID` bigint(20) NOT NULL,
  `BID` varchar(255) NOT NULL,
  `TYPE` bigint(20) NOT NULL DEFAULT 1,
  `SCRIPT` longtext NOT NULL,
  `DESCRIPTION` varchar(255) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=50 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `EVENT_CALENDAR_BUTTON_PREVPREV`
--

INSERT INTO `EVENT_CALENDAR_BUTTON_PREVPREV` VALUES (47,0,'',1,'arrayData[\'AIP\'][11][\'CALENDAR\'][\'DATAFIRST\'] = dojo.date.add(new Date(arrayData[\'AIP\'][11][\'CALENDAR\'][\'DATAFIRST\']), dojo.date.dateParts.WEEK, -1);','impostare la data di primo giorno'),(48,1,'REFRESH_CALENDAR_MAIN',3,'','aggiornare calendario'),(49,2,'REFRESH_CALENDAR_LABEL_NAVIGATION',3,'','');

--
-- Table structure for table `EVENT_CALENDAR_BUTTON_TODAY`
--

CREATE TABLE `EVENT_CALENDAR_BUTTON_TODAY` (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `SID` bigint(20) NOT NULL,
  `BID` varchar(255) NOT NULL,
  `TYPE` bigint(20) NOT NULL DEFAULT 1,
  `SCRIPT` longtext NOT NULL,
  `DESCRIPTION` varchar(255) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=51 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `EVENT_CALENDAR_BUTTON_TODAY`
--

INSERT INTO `EVENT_CALENDAR_BUTTON_TODAY` VALUES (47,0,'',1,'arrayData[\'AIP\'][11][\'CALENDAR\'][\'MODE\'] = \'day\';','impostare la data di primo giorno'),(48,1,'',1,'arrayData[\'AIP\'][11][\'CALENDAR\'][\'DATAFIRST\'] = new Date();','aggiornare calendario'),(50,2,'REFRESH_CALENDAR_MAIN',3,'','');

--
-- Table structure for table `EVENT_CALENDAR_BUTTON_WEEK`
--

CREATE TABLE `EVENT_CALENDAR_BUTTON_WEEK` (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `SID` bigint(20) NOT NULL,
  `BID` varchar(255) NOT NULL,
  `TYPE` bigint(20) NOT NULL DEFAULT 1,
  `SCRIPT` longtext NOT NULL,
  `DESCRIPTION` varchar(255) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=50 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `EVENT_CALENDAR_BUTTON_WEEK`
--

INSERT INTO `EVENT_CALENDAR_BUTTON_WEEK` VALUES (47,0,'',1,'arrayData[\'AIP\'][11][\'CALENDAR\'][\'MODE\'] = \'week\';','impostare la data di primo giorno'),(48,1,'REFRESH_CALENDAR_MAIN',3,'','aggiornare calendario');

--
-- Table structure for table `EVENT_FILTER_SELECT`
--

CREATE TABLE `EVENT_FILTER_SELECT` (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `SID` bigint(20) NOT NULL,
  `BID` varchar(255) NOT NULL,
  `TYPE` bigint(20) NOT NULL DEFAULT 1,
  `SCRIPT` longtext NOT NULL,
  `DESCRIPTION` varchar(255) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=47 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `EVENT_FILTER_SELECT`
--

INSERT INTO `EVENT_FILTER_SELECT` VALUES (45,0,'',2,'$this->resultPunto(\"dojo.debug(\'event_filter_select: par0 \".$PARAM[0].\" par1 \".$PARAM[1].\"\');\");\n// capire se attivare o disattivare\n// verificare namespace\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'FILTER\'][\'\".$PARAM[0].\"\']) arrayData[\'AIP\'][11][\'FILTER\'][\'\".$PARAM[0].\"\']= new Array();\");\n\n$this->resultPunto(\"var status=0;\");\n$this->resultPunto(\"if (document.getElementById(\'IMG\".$PARAM[0].$PARAM[1].\"\').src.indexOf(\'off\')>=0) {arrayData[\'AIP\'][11][\'FILTER\'][\'\".$PARAM[0].\"\'][\".$PARAM[1].\"]=1; status=1;}\");\nif ($PARAM[0]==\"SPECSPEC\")\n// azzerare tutto il resto\n$this->resultPunto(\"for (var i in  arrayData[\'AIP\'][11][\'DATA\'][\'\".$PARAM[0].\"\'][\'ID\']) {if (arrayData[\'AIP\'][11][\'DATA\'][\'\".$PARAM[0].\"\'][\'SPEC\'][\".$PARAM[1].\"]==arrayData[\'AIP\'][11][\'DATA\'][\'\".$PARAM[0].\"\'][\'SPEC\'][i]) document.getElementById(\'IMG\".$PARAM[0].\"\'+i).src=\'../framework/furoros/share/APP/AID11/personal_off.gif\';arrayData[\'AIP\'][11][\'FILTER\'][\'\".$PARAM[0].\"\'][i]=0;}\");\n\n$this->resultPunto(\"if (status==1) {document.getElementById(\'IMG\".$PARAM[0].$PARAM[1].\"\').src=\'../framework/furoros/share/APP/AID11/personal_on.gif\';arrayData[\'AIP\'][11][\'FILTER\'][\'\".$PARAM[0].\"\'][\".$PARAM[1].\"]=1;} else {document.getElementById(\'IMG\".$PARAM[0].$PARAM[1].\"\').src=\'../framework/furoros/share/APP/AID11/personal_off.gif\';arrayData[\'AIP\'][11][\'FILTER\'][\'\".$PARAM[0].\"\'][\".$PARAM[1].\"]=0;}\");\n\n\n\n// refresh necessari\nif ($PARAM[0]==\"PERSONAL\")\n{\n$this->resultPunto(\"furoros.Runmodule(\'11\',\'REFRESH_SPEC\',\'APP\',\'\');\");\n$this->resultPunto(\"furoros.Runmodule(\'11\',\'REFRESH_ROOM\',\'APP\',\'\');\");\n}\nif ($PARAM[0]==\"SPEC\")\n{\n$this->resultPunto(\"furoros.Runmodule(\'11\',\'REFRESH_ROOM\',\'APP\',\'\');\");\n$this->resultPunto(\"furoros.Runmodule(\'11\',\'REFRESH_PERSONAL\',\'APP\',\'\');\");\n}\nif ($PARAM[0]==\"SPECSPEC\")\n{\n$this->resultPunto(\"furoros.Runmodule(\'11\',\'REFRESH_PERSONAL\',\'APP\',\'\');\");\n//$this->resultPunto(\"furoros.Runmodule(\'11\',\'REFRESH_ROOM\',\'APP\',\'\');\");\n}\nif ($PARAM[0]==\"ROOM\")\n{\n$this->resultPunto(\"furoros.Runmodule(\'11\',\'REFRESH_SPEC\',\'APP\',\'\');\");\n$this->resultPunto(\"furoros.Runmodule(\'11\',\'REFRESH_PERSONAL\',\'APP\',\'\');\");\n}\n',''),(46,1,'REFRESH_CALENDAR_MAIN',3,'','');

--
-- Table structure for table `EVENT_MENUTREE_SELECT`
--

CREATE TABLE `EVENT_MENUTREE_SELECT` (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `SID` bigint(20) NOT NULL,
  `BID` varchar(255) NOT NULL,
  `TYPE` bigint(20) NOT NULL DEFAULT 1,
  `SCRIPT` longtext NOT NULL,
  `DESCRIPTION` varchar(255) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=47 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `EVENT_MENUTREE_SELECT`
--

INSERT INTO `EVENT_MENUTREE_SELECT` VALUES (45,0,'',2,'$this->resultPunto(\"dojo.debug(\'MODULE: EVENT_MENUTREE_SELECT WIDGETID: \".$PARAM[0].\" FATHER: \".$PARAM[1].\" TARGET: \".$PARAM[2].\" NAME: \".$PARAM[3].\"  ACTION: \".$PARAM[4].\" \');\");\n// distruggere FP se esiste\n// prendere il nome della finestra\n$thisParentId = $PARAM[0];\n$thisFather = $PARAM[1];\n$thisTarget = $PARAM[2];\n$thisName = $PARAM[3];\n$thisAction = $PARAM[4];\nswitch ($thisTarget )\n{\ncase \"GUI\":\n	$nameFP=\"Interfaccia grafica\";\nbreak;\ncase \"DATA\":\n	switch ($thisName )\n	{\n	case \"CLIENT\":\n		$nameFP=\"Clienti\";\n	break;\n	case \"USER\":\n		$nameFP=\"Utenti\";\n	break;\n	case \"PERSONAL\":\n		$nameFP=\"Personale\";\n	break;\n	case \"SPEC\":\n		$nameFP=\"Categorie di specialita\";\n	break;\n	case \"SPECSPEC\":\n		$nameFP=\"Specialita\";\n	break;\n	case \"ROOM\":\n		$nameFP=\"Stanze\";\n	break;\n	case \"PERSONAL\":\n		$nameFP=\"Personale\";\n	break;\n	case \"PERIOD\":\n		$nameFP=\"Durata appuntamento\";\n	break;\n	case \"TIME_DAY\":\n		$nameFP=\"Fasce orarie\";\n	break;\n	}\nbreak;\ncase \"DATA_VALIDATE\":\n		$nameFP=\"Dati obbligatori\";\n		switch ($thisName)\n		{\n		case \"CLIENT\":\n		case \"CLIENT_APP\":\n			$nameFP.=\" per cliente\";\n		break;\n		case \"USER\":\n			$nameFP.=\" per utente\";\n		break;\n		case \"PERSONAL\":\n			$nameFP.=\" per personale\";\n		break;\n		}\n	break;\n}\n\n//$this->resultPunto(\"if (dojo.widget.byId(\'WIDAID11FPCONFIG\')) dojo.widget.byId(\'WIDAID11FPCONFIG\').destroy();\");\n//$this->resultPunto(\"if (dojo.widget.byId(\'WIDAID11CPCONFIGINT\')) dojo.widget.byId(\'WIDAID11CPCONFIGINT\').destroy();\");\n// creare FP\n//$this->resultPunto(\"if (Ext.getCmp(\'IDAID11DIVCONFIG\')) Ext.getCmp(\'IDAID11DIVCONFIG\').destroy();\");\n$this->resultPunto(\"if (!Ext.getCmp(\'IDAID11DIVCONFIG\')) Ext.getCmp(\'MAIN_TP\').add({id:\'IDAID11DIVCONFIG\',title: \'Configurazione\',iconCls: \'tabs\',html: \'\',closable:true}).show();\");\n\n\n//Ext.state.Manager.setProvider(new Ext.state.CookieProvider());var viewport = new Ext.Viewport({layout:\'border\',items:[new Ext.BoxComponent({ region:\'north\',el: \'MAIN_NORTH\',height:32}),{region:\'south\',contentEl: \'MAIN_SOUTH\',split:true,height: 100,minSize: 100,maxSize: 200,collapsible: true,title:\'South\',margins:\'0 0 0 0\'}, {region:\'east\',title: \'Anagrafica\',collapsible: true,split:true,width: 225,minSize: 175,maxSize: 400,layout:\'fit\',margins:\'0 5 0 0\',items:new Ext.TabPanel({border:false,activeTab:1,tabPosition:\'bottom\',items:[{html:\'<p>A TabPanel component can be a region.</p>\',title: \'A Tab\',autoScroll:true},new Ext.grid.PropertyGrid({title: \'Proprieta\',closable: true,source: {\'(name)\': \'Properties Grid\',\'grouping\': false,\'autoFitColumns\': true,\'productionQuality\': false,\'created\': new Date(Date.parse(\'10/15/2006\')),\'tested\': false,\'version\': .01,\'borderWidth\': 1}})]})},{region:\'west\',id:\'west-panel\',title:\'Promemoria\',split:true,width: 320,minSize: 175,maxSize: 400,collapsible: true,margins:\'0 0 0 5\',layout:\'accordion\',layoutConfig:{animate:true},items: [{contentEl: \'MAIN_WEST\',title:\'Organizer\',border:false,iconCls:\'nav\'}]},new Ext.TabPanel({id:\'MAIN_TP\',region:\'center\',deferredRender:false,activeTab:0,items:[{contentEl:\'MAIN_CENTER1\',html:\'<br/><br/><br/><table align=center border=0 width=70%><tr><td><h2>Benvenuto.</h2><br/><p><font size=4 color=#376CAD>G</font><b>estione appuntamenti On Line</b> &egrave; un gestionale on-line che permette ...</p></td></tr></table>\',title: \'Benvenuto\',closable:true,autoScroll:true},{contentEl:\'IDAID11DIVCALENDAR\',html:\'\',title: \'Calendario\',closable:false,autoScroll:true}]})]});\n\n//$this->resultPunto(\"var AID11DIVCONFIG = document.createElement(\'div\');\");\n$this->resultPunto(\"var AID11DIVCONFIG = $(\'IDAID11DIVCONFIG\');\");\n//$this->resultPunto(\"AID11DIVCONFIG.id=\'IDAID11DIVCONFIG\';\");\n//$this->resultPunto(\"AID11DIVCONFIG.setAttribute(\'id\',\'IDAID11DIVCONFIG\');\");\n//$this->resultPunto(\"AID11DIVCONFIG.style[\'width\']=\'640px\';\");\n//$this->resultPunto(\"AID11DIVCONFIG.style[\'height\']=\'600px\';\");\n//$this->resultPunto(\"AID11DIVCONFIG.style[\'left\']=\'340px\';\");\n//$this->resultPunto(\"AID11DIVCONFIG.style[\'top\']=\'10px\';\");\n//$this->resultPunto(\"AID11DIVCONFIG.style[\'id\']=\'IDAID11DIVCONFIG\';\");\n//$this->resultPunto(\"document.getElementById(\'DIVAID11BIDKERNEL\').appendChild(AID11DIVCONFIG);\");\n$this->resultPunto(\"var AID11FPCONFIG = dojo.widget.createWidget(\'ContentPane\',{id:\'IDAID11FPCONFIG\', widgetId:\'WIDAID11FPCONFIG\'},AID11DIVCONFIG);\");\n$this->resultPunto(\"AID11FPCONFIG.setContent(\\\\\\\"<div dojoType=\'ContentPane\' id=\'IDAID11CPCONFIGINT\' widgetId=\'WIDAID11CPCONFIGINT\'></div>\\\\\\\");\");\n// mysql collegamento\n$mysql11 = new Mysql();\n$mysql11 ->Database=\'AID11\';\n$mysql11 ->connect();\n\nswitch ($thisFather)\n{\ncase \"CONFIG\": // menu config\n	switch ($thisTarget)\n	{\n	case \"GUI\":\n			$tmpContent=\"<table style=\'border:0px;\' border=\'0\'>\";\n			$this->resultPunto(\"dojo.widget.byId(\'WIDAID11CPCONFIGINT\').setContent(\\\\\\\"\\\\\\\");\");\n			$mysql11 = new Mysql();\n			$mysql11 ->Database=\'AID11\';\n			$mysql11 ->connect();\n			$resMysql11 = $mysql11 ->query(\"SELECT * FROM  OS_DATA_CONFIG\");\n			while (	$linea11 = mysql_fetch_array($resMysql11, MYSQL_ASSOC))\n			{\n				$tmpContent.=\"<tr><td>FOTO per il personale</td><td><input type=\'checkbox\' name=\'IMG_PERSONAL\' id=\'IMG_PERSONAL\' \";\n				if ($linea11[\'IMG_PERSONAL\'] == 1)\n					$tmpContent.=\"CHECKED \";\n				$tmpContent.=\"/></td></tr>\";\n				$tmpContent.=\"<tr><td>FOTO per le stanze</td><td><input type=\'checkbox\' name=\'IMG_ROOM\' id=\'IMG_ROOM\' \";\n				if ($linea11[\'IMG_ROOM\'] == 1)\n					$tmpContent.=\"CHECKED \";\n				$tmpContent.=\"/></td></tr>\";\n\n\n				$tmpContent.=\"<tr><td>MENU per trattamento</td><td><SELECT name=\'TYPE_SPEC_MENU\' id=\'TYPE_SPEC_MENU\'><option value=\'TREE\' \";\n				if ($linea11[\'TYPE_SPEC_MENU\'] == \"TREE\")\n					$tmpContent.=\"SELECTED \";\n				$tmpContent.=\">ALBERO</option><option value=\'BUTTON\' \";\n				if ($linea11[\'TYPE_SPEC_MENU\'] == \"BUTTON\")\n					$tmpContent.=\"SELECTED \";\n				$tmpContent.=\">TASTI</option></select></td></tr>\";\n			}\n			mysql_free_result($resMysql11);	\n			$tmpContent.=\"<tr><td colspan=\'2\'><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'WIDAID11CPCONFIGINT:\".$PARAM[1].\":\".$PARAM[2].\":\".$PARAM[3].\":ACTION_VALIDATE\')\\\\\\\\\\\\\\\">Salva</button></td></tr></table>\";\n			$this->resultPunto(\"dojo.widget.byId(\'WIDAID11CPCONFIGINT\').setContent(\\\\\\\"\".$tmpContent.\"\\\\\\\");\");\n	break;\n	case \"DATA\":\n		switch ($thisName)\n		{\n		case \"EXT\":\n		case \"INT\":\n		case \"SYSTEM\":\n			$this->resultPunto(\"dojo.widget.byId(\'WIDAID11CPCONFIGINT\').setContent(\\\\\\\"In stadi di sviluppo\\\\\\\");\");\n		break;\n		case \"PRIMANOTA\":\n			// GroupSummary.js\n			$this->resultPunto(\"Ext.grid.GroupSummary = function(config){Ext.apply(this, config);};Ext.extend(Ext.grid.GroupSummary, Ext.util.Observable, {init : function(grid){this.grid = grid;this.cm = grid.getColumnModel();this.view = grid.getView();var v = this.view;v.doGroupEnd = this.doGroupEnd.createDelegate(this);v.afterMethod(\'onColumnWidthUpdated\', this.doWidth, this);v.afterMethod(\'onAllColumnWidthsUpdated\', this.doAllWidths, this);v.afterMethod(\'onColumnHiddenUpdated\', this.doHidden, this);v.afterMethod(\'onUpdate\', this.doUpdate, this);v.afterMethod(\'onRemove\', this.doRemove, this);if(!this.rowTpl){this.rowTpl = new Ext.Template(\\\\\\\"<div class=\'x-grid3-summary-row\' style=\'{tstyle}\'>\\\\\\\",\\\\\\\"<table class=\'x-grid3-summary-table\' border=\'0\' cellspacing=\'0\' cellpadding=\'0\' style=\'{tstyle}\'>\\\\\\\",\'<tbody><tr>{cells}</tr>\',\'</table></div>\');this.rowTpl.disableFormats = true;}this.rowTpl.compile();if(!this.cellTpl){this.cellTpl = new Ext.Template(\\\\\\\"<td class=\'x-grid3-col x-grid3-cell x-grid3-td-{id} {css}\' style=\'{style}\'>\\\\\\\",\\\\\\\"<div class=\'x-grid3-cell-inner x-grid3-col-{id}\' unselectable=\'on\'>{value}</div>\\\\\\\",\\\\\\\"</td>\\\\\\\");this.cellTpl.disableFormats = true;}this.cellTpl.compile();},toggleSummaries : function(visible){var el = this.grid.getGridEl();if(el){if(visible === undefined){visible = el.hasClass(\'x-grid-hide-summary\');}el[visible ? \'removeClass\' : \'addClass\'](\'x-grid-hide-summary\');}},renderSummary : function(o, cs){cs = cs || this.view.getColumnData();var cfg = this.cm.config;var buf = [], c, p = {}, cf, last = cs.length-1;for(var i = 0, len = cs.length; i < len; i++){c = cs[i];cf = cfg[i];p.id = c.id;p.style = c.style;p.css = i == 0 ? \'x-grid3-cell-first \' : (i == last ? \'x-grid3-cell-last \' : \'\');if(cf.summaryType || cf.summaryRenderer){p.value = (cf.summaryRenderer || c.renderer)(o.data[c.name], p, o);}else{p.value = \'\';}if(p.value == undefined || p.value === \\\\\\\"\\\\\\\") p.value = \\\\\\\"&#160;\\\\\\\";buf[buf.length] = this.cellTpl.apply(p);}return this.rowTpl.apply({tstyle: \'width:\'+this.view.getTotalWidth()+\';\',cells: buf.join(\'\')});},calculate : function(rs, cs){var data = {}, r, c, cfg = this.cm.config, cf;for(var j = 0, jlen = rs.length; j < jlen; j++){r = rs[j];for(var i = 0, len = cs.length; i < len; i++){c = cs[i];cf = cfg[i];if(cf.summaryType){data[c.name] = Ext.grid.GroupSummary.Calculations[cf.summaryType](data[c.name] || 0, r, c.name, data);}}}return data;},doGroupEnd : function(buf, g, cs, ds, colCount){var data = this.calculate(g.rs, cs);buf.push(\'</div>\', this.renderSummary({data: data}, cs), \'</div>\');},doWidth : function(col, w, tw){var gs = this.view.getGroups(), s;for(var i = 0, len = gs.length; i < len; i++){s = gs[i].childNodes[2];s.style.width = tw;s.firstChild.style.width = tw;s.firstChild.rows[0].childNodes[col].style.width = w;}},doAllWidths : function(ws, tw){var gs = this.view.getGroups(), s, cells, wlen = ws.length;for(var i = 0, len = gs.length; i < len; i++){s = gs[i].childNodes[2];s.style.width = tw;s.firstChild.style.width = tw;cells = s.firstChild.rows[0].childNodes;for(var j = 0; j < wlen; j++){cells[j].style.width = ws[j];}}},doHidden : function(col, hidden, tw){var gs = this.view.getGroups(), s, display = hidden ? \'none\' : \'\';for(var i = 0, len = gs.length; i < len; i++){s = gs[i].childNodes[2];s.style.width = tw;s.firstChild.style.width = tw;s.firstChild.rows[0].childNodes[col].style.display = display;}},refreshSummary : function(groupValue){return this.refreshSummaryById(this.view.getGroupId(groupValue));},getSummaryNode : function(gid){var g = Ext.fly(gid, \'_gsummary\');if(g){return g.down(\'.x-grid3-summary-row\', true);}return null;},refreshSummaryById : function(gid){var g = document.getElementById(gid);if(!g){return false;}var rs = [];this.grid.store.each(function(r){if(r._groupId == gid){rs[rs.length] = r;}});var cs = this.view.getColumnData();var data = this.calculate(rs, cs);var markup = this.renderSummary({data: data}, cs);var existing = this.getSummaryNode(gid);if(existing){g.removeChild(existing);}Ext.DomHelper.append(g, markup);return true;},doUpdate : function(ds, record){this.refreshSummaryById(record._groupId);},doRemove : function(ds, record, index, isUpdate){if(!isUpdate){this.refreshSummaryById(record._groupId);}},showSummaryMsg : function(groupValue, msg){var gid = this.view.getGroupId(groupValue);var node = this.getSummaryNode(gid);if(node){node.innerHTML = \\\\\\\"<div class=\'x-grid3-summary-msg\'>\\\\\\\" + msg + \'</div>\';}}});\");\n			$this->resultPunto(\"Ext.grid.GroupSummary.Calculations = {\'sum\' : function(v, record, field){return v + (record.data[field]||0);},\'count\' : function(v, record, field, data){return data[field+\'count\'] ? ++data[field+\'count\'] : (data[field+\'count\'] = 1);},\'max\' : function(v, record, field, data){var v = record.data[field];var max = data[field+\'max\'] === undefined ? (data[field+\'max\'] = v) : data[field+\'max\'];return v > max ? (data[field+\'max\'] = v) : max;},\'min\' : function(v, record, field, data){var v = record.data[field];var min = data[field+\'min\'] === undefined ? (data[field+\'min\'] = v) : data[field+\'min\'];return v < min ? (data[field+\'min\'] = v) : min;},\'average\' : function(v, record, field, data){var c = data[field+\'count\'] ? ++data[field+\'count\'] : (data[field+\'count\'] = 1);var t = (data[field+\'total\'] = ((data[field+\'total\']||0) + (record.data[field]||0)));return t === 0 ? 0 : t / c;}};Ext.grid.HybridSummary = Ext.extend(Ext.grid.GroupSummary, {calculate : function(rs, cs){var gcol = this.view.getGroupField();var gvalue = rs[0].data[gcol];var gdata = this.getSummaryData(gvalue);return gdata || Ext.grid.HybridSummary.superclass.calculate.call(this, rs, cs);},updateSummaryData : function(groupValue, data, skipRefresh){var json = this.grid.store.reader.jsonData;if(!json.summaryData){json.summaryData = {};}json.summaryData[groupValue] = data;if(!skipRefresh){this.refreshSummary(groupValue);}},getSummaryData : function(groupValue){var json = this.grid.store.reader.jsonData;if(json && json.summaryData){return json.summaryData[groupValue];}return null;}});\");\n			// aggiungere dati\n			\n\n			$resMysql11 = $mysql11 ->query(\"SELECT OS_DATA_APP.DATE AS DATE,OS_DATA_CLIENT.NAME AS CLIENT_NAME,OS_DATA_SPECSPEC.NAME AS SPECSPEC_NAME,OS_DATA_SPECSPEC.PRICE AS SPECSPEC_PRICE,OS_DATA_SPECSPEC.ID AS SPECSPEC_ID,OS_DATA_PERSONAL.NAME AS PERSONAL_NAME,OS_DATA_ROOM.NAME AS ROOM_NAME FROM  OS_DATA_SPECSPEC,OS_DATA_APP,OS_DATA_PERSONAL,OS_DATA_CLIENT,OS_DATA_ROOM WHERE OS_DATA_APP.PERSONAL=OS_DATA_PERSONAL.ID AND OS_DATA_APP.SPECSPEC=OS_DATA_SPECSPEC.ID AND OS_DATA_APP.CLIENT=OS_DATA_CLIENT.ID AND OS_DATA_ROOM.ID=OS_DATA_APP.ROOM\");\n			$tmpContent_dummyProjects=\"\";\n			$tmpContent_dummyData=\"\";\n			while (	$linea11 = mysql_fetch_array($resMysql11, MYSQL_ASSOC))\n			{\n				if ($tmpContent_dummyProjects==\'\')\n					$tmpContent_dummyProjects=\"Ext.grid.dummyProjects = [\";\n				else\n					$tmpContent_dummyProjects.=\",\";\n				$tmpContent_dummyProjects.=\"{projectId: \".$linea11[\'SPECSPEC_ID\'].\", project: \'\".$linea11[\'SPECSPEC_NAME\'].\"\'}\";\n				\n				if ($tmpContent_dummyData==\'\')\n					$tmpContent_dummyData=\"Ext.grid.dummyData = [\";\n				else\n					$tmpContent_dummyData.=\",\";\n				$tmpContent_dummyData.=\"{projectId: \".$linea11[\'SPECSPEC_ID\'].\", project: \'\".$linea11[\'SPECSPEC_NAME\'].\"\', client: \'\".$linea11[\'CLIENT_NAME\'].\" \".$linea11[\'CLIENT_SECONDNAME\'].\"\', personal: \'\".$linea11[\'PERSONAL_NAME\'].\"\', taskId: 112, description: \'\".$linea11[\'ROOM_NAME\'].\"\', estimate: 1, rate: \".$linea11[\'SPECSPEC_PRICE\'].\", due:\'\".$linea11[\'DATE\'].\"\'}\";\n			}\n			mysql_free_result($resMysql11);	\n			$tmpContent_dummyProjects.=\"];\";\n			$tmpContent_dummyData.=\"];\";\n			\n			$this->resultPunto($tmpContent_dummyProjects);\n\n			$this->resultPunto($tmpContent_dummyData);\n			$this->resultPunto(\"Ext.QuickTips.init();var xg = Ext.grid;var reader = new Ext.data.JsonReader({idProperty:\'taskId\',fields: [{name: \'projectId\', type: \'int\'},{name: \'project\', type: \'string\'},{name: \'client\', type: \'string\'},{name: \'personal\', type: \'string\'},{name: \'taskId\', type: \'int\'},{name: \'description\', type: \'string\'},{name: \'estimate\', type: \'float\'},{name: \'rate\', type: \'float\'},{name: \'cost\', type: \'float\'},{name: \'due\', type: \'date\', dateFormat:\'Y-m-d\'}]});Ext.grid.GroupSummary.Calculations[\'totalCost\'] = function(v, record, field){return v + (record.data.estimate * record.data.rate);};var summary = new Ext.grid.GroupSummary(); var grid = new xg.EditorGridPanel({tbar:[{text:\'OGGI\'},{xtype:\'datefield\',displayField:\'state\',typeAhead: true,mode: \'local\',triggerAction: \'all\',emptyText:\'Da..\',selectOnFocus:true,width:135},{xtype:\'datefield\',displayField:\'state\',typeAhead: true,mode: \'local\',triggerAction: \'all\',emptyText:\'A..\',selectOnFocus:true,width:135},{text:\'PERIODO\'},{xtype:\'combo\',displayField:\'state\',typeAhead: true,mode: \'local\',triggerAction: \'all\',emptyText:\'Scegli cliente...\',selectOnFocus:true,width:135}],ds: new Ext.data.GroupingStore({reader: reader,data: xg.dummyData,sortInfo:{field: \'due\', direction: \'ASC\'},groupField:\'project\'}),columns: [{id: \'description\',header: \'Task\',width: 40,sortable: true,dataIndex: \'description\',summaryType: \'count\',hideable: false,summaryRenderer: function(v, params, data){return ((v === 0 || v > 1) ? \'(\' + v +\' Trattamenti)\' : \'(1 Trattamento)\');},editor: new Ext.form.TextField({allowBlank: false})},{header: \'Trattamento\',width: 20,sortable: true,dataIndex: \'project\'},{header: \'Cliente\',width: 20,sortable: true,dataIndex: \'client\'},{header: \'Personale\',width: 20,sortable: true,dataIndex: \'personal\'},{header: \'Data\',width: 25,sortable: true,dataIndex: \'due\',summaryType:\'max\',renderer: Ext.util.Format.dateRenderer(\'d-m-Y\'),editor: new Ext.form.DateField({format: \'d-m-Y\'})},{header: \'Durata\',width: 20,sortable: true,dataIndex: \'estimate\',summaryType:\'sum\',renderer : function(v){return v +\' ore\';},editor: new Ext.form.NumberField({allowBlank: false,allowNegative: false,style: \'text-align:left\'})},{header: \'Prezzo\',width: 20,sortable: true,renderer: Ext.util.Format.euMoney,dataIndex: \'rate\',summaryType:\'average\',editor: new Ext.form.NumberField({allowBlank: false,allowNegative: false,style: \'text-align:left\'})},{id: \'cost\',header: \'Costo\',width: 20,sortable: false,groupable: false,renderer: function(v, params, record){return Ext.util.Format.euMoney(record.data.estimate * record.data.rate);},dataIndex: \'cost\',summaryType:\'totalCost\',summaryRenderer: Ext.util.Format.euMoney}],view: new Ext.grid.GroupingView({forceFit:true,showGroupName: false,enableNoGroups:false, hideGroupedColumn: true}),plugins: summary,frame:true,height: 600,clicksToEdit: 1,collapsible: true,animCollapse: false,trackMouseOver: false,iconCls: \'icon-grid\',renderTo: \'IDAID11CPCONFIGINT\'});\");\n			//$this->resultPunto(\"dojo.widget.byId(\'WIDAID11CPCONFIGINT\').setContent(\\\\\\\"asdf\\\\\\\");\");//die();\n\n		break;\n		case \"CLIENT\":\n		case \"USER\":\n		case \"PERSONAL\":\n			// splitcontainer\n			$this->resultPunto(\"dojo.widget.byId(\'WIDAID11CPCONFIGINT\').setContent(\\\\\\\"<div dojoType=\'SplitContainer\' orientation=\'vertical\' sizerWidth=\'3\' activeSizing=\'false\' style=\'border: 2px solid black; float: left; margin-right: 0px;  width: 100%; height: 100%;\'><div  dojoType=\'ContentPane\'  style=\'height:100%; font-size:0.9em; overflow:auto;\' sizeMin=\'10\' sizeShare=\'50\' widgetId=\'CPCONFIGLIST\'></div><div id=\'divorari\' widgetId=\'AID11CPCONFIGEDIT\' dojoType=\'ContentPane\'  style=\'height:100%; background-color:#e3edfa; overflow:auto;font-size:0.80em;\' sizeMin=\'5\' sizeShare=\'50\'></div></div>\\\\\\\");\");\n			// button\n			$this->resultPunto(\"dojo.widget.byId(\'AID11CPCONFIGEDIT\').setContent(\\\\\\\"<button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:\".$PARAM[1].\":\".$PARAM[2].\":\".$PARAM[3].\":OPEN_ADD\')\\\\\\\\\\\\\\\">Aggiungi</button><br/><div id=\'toasterInt\'></div>\\\\\\\");\");\n\n			$this->resultPunto(\"dojo.widget.byId(\'CPCONFIGLIST\').setContent(\\\\\\\"<table bgcolor=\'#ffffff\' dojoType=\'filteringTable\' valueField= \'N\' onSelect=\\\\\\\\\\\\\\\"var idSelect=dojo.widget.byId(\'FTCONFIGLIST\').getSelectedData().N;furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:CONFIG:DATA:$thisName:FT_CLICK:\'+idSelect)\\\\\\\\\\\\\\\" width=\'100%\' widgetId=\'FTCONFIGLIST\' multiple=\'false\' alternateRows=\'true\' maxSortable=\'2\' cellpadding=\'0\' cellspacing=\'0\' border=\'0\'><thead><tr><th field=\'N\' dataType=\'number\' valign=\'top\'  sort=\'asc\'>N</th><th field=\'NAME\' dataType=\'String\' align=\'center\' valign=\'top\'>NOME</th><th field=\'SECONDNAME\' dataType=\'String\' align=\'center\' valign=\'top\'>COGNOME</th><th field=\'TEL\' dataType=\'String\' align=\'center\' valign=\'top\'>TELEFONO</th><th field=\'CEL\' dataType=\'String\' align=\'center\' valign=\'top\'>CELLULARE</th></tr></thead><tbody></tbody></table>\\\\\\\");\");\n			$resMysql11 = $mysql11 ->query(\"SELECT * FROM  OS_DATA_\".$thisName);\n			while (	$linea11 = mysql_fetch_array($resMysql11, MYSQL_ASSOC))\n			{\n				$this->resultPunto(\"dojo.widget.byId(\'FTCONFIGLIST\').store.addData({N:\".$linea11[\'ID\'].\",NAME:\'\".$linea11[\'NAME\'].\"\',SECONDNAME:\'\".$linea11[\'SECONDNAME\'].\"\',TEL:\'\".$linea11[\'TEL\'].\"\',CEL:\'\".$linea11[\'CEL\'].\"\'});\");\n			}\n			mysql_free_result($resMysql11);	\n		break;\n		case \"SPEC\":\n			// splitcontainer\n			$this->resultPunto(\"dojo.widget.byId(\'WIDAID11CPCONFIGINT\').setContent(\\\\\\\"<div dojoType=\'SplitContainer\' orientation=\'vertical\' sizerWidth=\'3\' activeSizing=\'false\' style=\'border: 2px solid black; float: left; margin-right: 0px;  width: 100%; height: 100%;\'><div  dojoType=\'ContentPane\'  style=\'height:100%; font-size:0.9em; overflow:auto;\' sizeMin=\'10\' sizeShare=\'50\' widgetId=\'CPCONFIGLIST\'></div><div id=\'divorari\' widgetId=\'AID11CPCONFIGEDIT\' dojoType=\'ContentPane\'  style=\'height:100%; background-color:#e3edfa; overflow:auto;font-size:0.80em;\' sizeMin=\'5\' sizeShare=\'50\'></div></div>\\\\\\\");\");\n			// button\n			$this->resultPunto(\"dojo.widget.byId(\'AID11CPCONFIGEDIT\').setContent(\\\\\\\"<button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:\".$PARAM[1].\":\".$PARAM[2].\":\".$PARAM[3].\":OPEN_ADD\')\\\\\\\\\\\\\\\">Aggiungi</button><br/><div id=\'toasterInt\'></div>\\\\\\\");\");\n\n			$this->resultPunto(\"dojo.widget.byId(\'CPCONFIGLIST\').setContent(\\\\\\\"<table bgcolor=\'#ffffff\' dojoType=\'filteringTable\' valueField= \'N\'  onSelect=\\\\\\\\\\\\\\\"var idSelect=dojo.widget.byId(\'FTCONFIGLIST\').getSelectedData().N;furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:CONFIG:DATA:$thisName:FT_CLICK:\'+idSelect)\\\\\\\\\\\\\\\"  width=\'100%\' widgetId=\'FTCONFIGLIST\' multiple=\'false\' alternateRows=\'true\' maxSortable=\'2\' cellpadding=\'0\' cellspacing=\'0\' border=\'0\'><thead><tr><th field=\'N\' dataType=\'number\' valign=\'top\'  sort=\'asc\'>N</th><th field=\'NAME\' dataType=\'String\' align=\'center\' valign=\'top\'>SPECIALITA</th></tr></thead><tbody></tbody></table>\\\\\\\");\");\n			$resMysql11 = $mysql11 ->query(\'SELECT * FROM OS_DATA_SPEC ORDER BY ID\');\n			while (	$linea11 = mysql_fetch_array($resMysql11, MYSQL_ASSOC))\n			{\n				$this->resultPunto(\"dojo.widget.byId(\'FTCONFIGLIST\').store.addData({N:\".$linea11[\'ID\'].\",NAME:\'\".$linea11[\'NAME\'].\"\'});\");\n			}\n			mysql_free_result($resMysql11);	\n		break;\n		case \"SPECSPEC\":\n			// splitcontainer\n			$this->resultPunto(\"dojo.widget.byId(\'WIDAID11CPCONFIGINT\').setContent(\\\\\\\"<div dojoType=\'SplitContainer\' orientation=\'vertical\' sizerWidth=\'3\' activeSizing=\'false\' style=\'border: 2px solid black; float: left; margin-right: 0px;  width: 100%; height: 100%;\'><div  dojoType=\'ContentPane\'  style=\'height:100%; font-size:0.9em; overflow:auto;\' sizeMin=\'10\' sizeShare=\'50\' widgetId=\'CPCONFIGLIST\'></div><div id=\'divorari\' widgetId=\'AID11CPCONFIGEDIT\' dojoType=\'ContentPane\'  style=\'height:100%; background-color:#e3edfa; overflow:auto;font-size:0.80em;\' sizeMin=\'5\' sizeShare=\'50\'></div></div>\\\\\\\");\");\n			// button\n			$this->resultPunto(\"dojo.widget.byId(\'AID11CPCONFIGEDIT\').setContent(\\\\\\\"<button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:\".$PARAM[1].\":\".$PARAM[2].\":\".$PARAM[3].\":OPEN_ADD\')\\\\\\\\\\\\\\\">Aggiungi</button><br/><div id=\'toasterInt\'></div>\\\\\\\");\");\n\n			$this->resultPunto(\"dojo.widget.byId(\'CPCONFIGLIST\').setContent(\\\\\\\"<table bgcolor=\'#ffffff\' dojoType=\'filteringTable\' valueField= \'N\'  onSelect=\\\\\\\\\\\\\\\"var idSelect=dojo.widget.byId(\'FTCONFIGLIST\').getSelectedData().N;furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:CONFIG:DATA:$thisName:FT_CLICK:\'+idSelect)\\\\\\\\\\\\\\\"  width=\'100%\' widgetId=\'FTCONFIGLIST\' multiple=\'false\' alternateRows=\'true\' maxSortable=\'2\' cellpadding=\'0\' cellspacing=\'0\' border=\'0\'><thead><tr><th field=\'N\' dataType=\'number\' valign=\'top\'  sort=\'asc\'>N</th><th field=\'SPEC\' dataType=\'String\' align=\'center\' valign=\'top\'>CATEGORIA</th><th field=\'NAME\' dataType=\'String\' align=\'center\' valign=\'top\'>SPECIALITA</th><th field=\'PERIOD\' dataType=\'String\' align=\'center\' valign=\'top\'>DURATA TRATTAMENTO</th></tr></thead><tbody></tbody></table>\\\\\\\");\");\n			$resMysql11 = $mysql11 ->query(\'SELECT OS_DATA_SPECSPEC.ID AS ID,OS_DATA_SPECSPEC.NAME AS NAME,OS_DATA_SPEC.NAME AS SPEC,OS_DATA_PERIOD.NAME as PERIOD  FROM OS_DATA_SPECSPEC,OS_DATA_SPEC,OS_DATA_PERIOD WHERE OS_DATA_SPECSPEC.SPEC=OS_DATA_SPEC.ID AND OS_DATA_SPECSPEC.PERIOD=OS_DATA_PERIOD.ID ORDER BY ID\');\n			while (	$linea11 = mysql_fetch_array($resMysql11, MYSQL_ASSOC))\n			{\n				$this->resultPunto(\"dojo.widget.byId(\'FTCONFIGLIST\').store.addData({N:\".$linea11[\'ID\'].\",SPEC:\'\".$linea11[\'SPEC\'].\"\',NAME:\'\".$linea11[\'NAME\'].\"\',PERIOD:\'\".$linea11[\'PERIOD\'].\"\'});\");\n			}\n			mysql_free_result($resMysql11);	\n		break;\n		case \"PERIOD\":\n			// splitcontainer\n			$this->resultPunto(\"dojo.widget.byId(\'WIDAID11CPCONFIGINT\').setContent(\\\\\\\"<div dojoType=\'SplitContainer\' orientation=\'vertical\' sizerWidth=\'3\' activeSizing=\'false\' style=\'border: 2px solid black; float: left; margin-right: 0px;  width: 100%; height: 100%;\'><div  dojoType=\'ContentPane\'  style=\'height:100%; font-size:0.9em; overflow:auto;\' sizeMin=\'10\' sizeShare=\'50\' widgetId=\'CPCONFIGLIST\'></div><div id=\'divorari\' widgetId=\'AID11CPCONFIGEDIT\' dojoType=\'ContentPane\'  style=\'height:100%; background-color:#e3edfa; overflow:auto;font-size:0.80em;\' sizeMin=\'5\' sizeShare=\'50\'></div></div>\\\\\\\");\");\n			// button\n			$this->resultPunto(\"dojo.widget.byId(\'AID11CPCONFIGEDIT\').setContent(\\\\\\\"<button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:\".$PARAM[1].\":\".$PARAM[2].\":\".$PARAM[3].\":OPEN_ADD\')\\\\\\\\\\\\\\\">Aggiungi</button><br/><div id=\'toasterInt\'></div>\\\\\\\");\");\n\n			$this->resultPunto(\"dojo.widget.byId(\'CPCONFIGLIST\').setContent(\\\\\\\"<table bgcolor=\'#ffffff\' dojoType=\'filteringTable\' valueField= \'N\'  onSelect=\\\\\\\\\\\\\\\"var idSelect=dojo.widget.byId(\'FTCONFIGLIST\').getSelectedData().N;furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:CONFIG:DATA:$thisName:FT_CLICK:\'+idSelect)\\\\\\\\\\\\\\\"  width=\'100%\' widgetId=\'FTCONFIGLIST\' multiple=\'false\' alternateRows=\'true\' maxSortable=\'2\' cellpadding=\'0\' cellspacing=\'0\' border=\'0\'><thead><tr><th field=\'N\' dataType=\'number\' valign=\'top\'  sort=\'asc\'>N</th><th field=\'NAME\' dataType=\'String\' align=\'center\' valign=\'top\'>SPECIALITA</th></tr></thead><tbody></tbody></table>\\\\\\\");\");\n			$resMysql11 = $mysql11 ->query(\'SELECT * FROM OS_DATA_PERIOD ORDER BY ID\');\n			while (	$linea11 = mysql_fetch_array($resMysql11, MYSQL_ASSOC))\n			{\n				$this->resultPunto(\"dojo.widget.byId(\'FTCONFIGLIST\').store.addData({N:\".$linea11[\'ID\'].\",NAME:\'\".$linea11[\'NAME\'].\"\'});\");\n			}\n			mysql_free_result($resMysql11);	\n		break;\n		case \"TIME_DAY\":\n			// splitcontainer\n			$this->resultPunto(\"dojo.widget.byId(\'WIDAID11CPCONFIGINT\').setContent(\\\\\\\"<div dojoType=\'SplitContainer\' orientation=\'vertical\' sizerWidth=\'3\' activeSizing=\'false\' style=\'border: 2px solid black; float: left; margin-right: 0px;  width: 100%; height: 100%;\'><div  dojoType=\'ContentPane\'  style=\'height:100%; font-size:0.9em; overflow:auto;\' sizeMin=\'10\' sizeShare=\'50\' widgetId=\'CPCONFIGLIST\'></div><div id=\'divorari\' widgetId=\'AID11CPCONFIGEDIT\' dojoType=\'ContentPane\'  style=\'height:100%; background-color:#e3edfa; overflow:auto;font-size:0.80em;\' sizeMin=\'5\' sizeShare=\'50\'></div></div>\\\\\\\");\");\n			// button\n			$this->resultPunto(\"dojo.widget.byId(\'AID11CPCONFIGEDIT\').setContent(\\\\\\\"<button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:\".$PARAM[1].\":\".$PARAM[2].\":\".$PARAM[3].\":OPEN_ADD\')\\\\\\\\\\\\\\\">Aggiungi</button><br/><div id=\'toasterInt\'></div>\\\\\\\");\");\n\n			$this->resultPunto(\"dojo.widget.byId(\'CPCONFIGLIST\').setContent(\\\\\\\"<table bgcolor=\'#ffffff\' dojoType=\'filteringTable\' valueField= \'N\'  onSelect=\\\\\\\\\\\\\\\"var idSelect=dojo.widget.byId(\'FTCONFIGLIST\').getSelectedData().N;furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:CONFIG:DATA:$thisName:FT_CLICK:\'+idSelect)\\\\\\\\\\\\\\\"  width=\'100%\' widgetId=\'FTCONFIGLIST\' multiple=\'false\' alternateRows=\'true\' maxSortable=\'2\' cellpadding=\'0\' cellspacing=\'0\' border=\'0\'><thead><tr><th field=\'N\' dataType=\'number\' valign=\'top\'  sort=\'asc\'>N</th><th field=\'NAME\' dataType=\'String\' align=\'center\' valign=\'top\'>NOME</th><th field=\'AMBEGIN\' dataType=\'String\' align=\'center\' valign=\'top\'>MATINA DALLE</th><th field=\'AMEND\' dataType=\'String\' align=\'center\' valign=\'top\'>MATINA ALLE</th><th field=\'PMBEGIN\' dataType=\'String\' align=\'center\' valign=\'top\'>POMERIGGIO DALLE</th><th field=\'PMEND\' dataType=\'String\' align=\'center\' valign=\'top\'>POMERIGGIO ALLE</th></tr></thead><tbody></tbody></table>\\\\\\\");\");\n			$resMysql11 = $mysql11 ->query(\'SELECT ID,NAME,LEFT(AMBEGIN,5) AS AMBEGIN,LEFT(AMEND,5) AS AMEND,LEFT(PMBEGIN,5) AS PMBEGIN,LEFT(PMEND,5) AS PMEND FROM OS_DATA_TIME_DAY ORDER BY ID\');\n			while (	$linea11 = mysql_fetch_array($resMysql11, MYSQL_ASSOC))\n			{\n				$this->resultPunto(\"dojo.widget.byId(\'FTCONFIGLIST\').store.addData({N:\".$linea11[\'ID\'].\",NAME:\'\".$linea11[\'NAME\'].\"\',AMBEGIN:\'\".$linea11[\'AMBEGIN\'].\"\',AMEND:\'\".$linea11[\'AMEND\'].\"\',PMBEGIN:\'\".$linea11[\'PMBEGIN\'].\"\',PMEND:\'\".$linea11[\'PMEND\'].\"\'});\");\n			}\n			mysql_free_result($resMysql11);	\n		break;\n		case \"ROOM\":\n			// splitcontainer\n			$this->resultPunto(\"dojo.widget.byId(\'WIDAID11CPCONFIGINT\').setContent(\\\\\\\"<div dojoType=\'SplitContainer\' orientation=\'vertical\' sizerWidth=\'3\' activeSizing=\'false\' style=\'border: 2px solid black; float: left; margin-right: 0px;  width: 100%; height: 100%;\'><div  dojoType=\'ContentPane\'  style=\'height:100%; font-size:0.9em; overflow:auto;\' sizeMin=\'10\' sizeShare=\'50\' widgetId=\'CPCONFIGLIST\'></div><div id=\'divorari\' widgetId=\'AID11CPCONFIGEDIT\' dojoType=\'ContentPane\'  style=\'height:100%; background-color:#e3edfa; overflow:auto;font-size:0.80em;\' sizeMin=\'5\' sizeShare=\'50\'></div></div>\\\\\\\");\");\n			// button\n			$this->resultPunto(\"dojo.widget.byId(\'AID11CPCONFIGEDIT\').setContent(\\\\\\\"<button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:\".$PARAM[1].\":\".$PARAM[2].\":\".$PARAM[3].\":OPEN_ADD\')\\\\\\\\\\\\\\\">Aggiungi</button><br/><div id=\'toasterInt\'></div>\\\\\\\");\");\n\n			$this->resultPunto(\"dojo.widget.byId(\'CPCONFIGLIST\').setContent(\\\\\\\"<table bgcolor=\'#ffffff\' dojoType=\'filteringTable\' valueField= \'N\' width=\'100%\' widgetId=\'FTCONFIGLIST\' multiple=\'false\' alternateRows=\'true\' maxSortable=\'2\' cellpadding=\'0\' cellspacing=\'0\' border=\'0\'  onSelect=\\\\\\\\\\\\\\\"var idSelect=dojo.widget.byId(\'FTCONFIGLIST\').getSelectedData().N;furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'AID11CPCONFIGEDIT:CONFIG:DATA:$thisName:FT_CLICK:\'+idSelect)\\\\\\\\\\\\\\\"  ><thead><tr><th field=\'N\' dataType=\'number\' valign=\'top\'  sort=\'asc\'>N</th><th field=\'NAME\' dataType=\'String\' align=\'center\' valign=\'top\'>NOME</th></tr></thead><tbody></tbody></table>\\\\\\\");\");\n			$resMysql11 = $mysql11 ->query(\'SELECT * FROM OS_DATA_ROOM ORDER BY ID\');\n			while (	$linea11 = mysql_fetch_array($resMysql11, MYSQL_ASSOC))\n			{\n				$this->resultPunto(\"dojo.widget.byId(\'FTCONFIGLIST\').store.addData({N:\".$linea11[\'ID\'].\",NAME:\'\".$linea11[\'NAME\'].\"\'});\");\n			}\n			mysql_free_result($resMysql11);	\n		break;\n		}\n	break;\n	case \"DATA_VALIDATE\":\n		switch ($thisName)\n		{\n		case \"ALL\":\n	\n		break;\n		case \"CLIENT\":\n		case \"CLIENT_APP\":\n		case \"USER\":\n		case \"PERSONAL\":\n			$tmpContent=\"<table style=\'border:0px;\' border=\'0\'>\";\n			$this->resultPunto(\"dojo.widget.byId(\'WIDAID11CPCONFIGINT\').setContent(\\\\\\\"\\\\\\\");\");\n			// prendere nome del colonna\n			$mysql10 = new Mysql();\n			$mysql10 ->Database=\'AID11\';\n			$mysql10 ->connect();\n			$resMysql10 = $mysql10 ->query(\"SELECT * FROM  OS_DATA_\".$thisName.\"_VALIDATE\");\n			$linea10 = mysql_fetch_array($resMysql10, MYSQL_ASSOC);\n			mysql_free_result($resMysql10);\n			$mysql11 = new Mysql();\n			$mysql11 ->Database=\'AID11\';\n			$mysql11 ->connect();\n			$resMysql11 = $mysql11 ->query(\"SELECT * FROM  OS_DATA_CLIENT_DATA WHERE \".$thisName.\"=1 ORDER BY ID\");\n			while (	$linea11 = mysql_fetch_array($resMysql11, MYSQL_ASSOC))\n			{\n				$tmpContent.=\"<tr><td><input type=\'checkbox\' name=\'CB\".$linea11[\'NAME\'].\"\' id=\'CB\".$linea11[\'NAME\'].\"\' \";\n				if ($linea10[$linea11[\'NAME\']] == 1)\n					$tmpContent.=\"CHECKED \";\n				$tmpContent.=\"/></td><td>\".$linea11[\'DESC\'].\"</td></tr>\";\n			}\n			mysql_free_result($resMysql11);	\n			$tmpContent.=\"<tr><td colspan=\'2\'><button dojoType=\'Button\' onClick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_BUTTON_CLICK\',\'APP\',\'WIDAID11CPCONFIGINT:\".$PARAM[1].\":\".$PARAM[2].\":\".$PARAM[3].\":ACTION_VALIDATE\')\\\\\\\\\\\\\\\">Salva</button></td></tr></table>\";\n			$this->resultPunto(\"dojo.widget.byId(\'WIDAID11CPCONFIGINT\').setContent(\\\\\\\"\".$tmpContent.\"\\\\\\\");\");\n		break;\n		}\n	break;\n	}\nbreak;\n}\n',''),(46,1,'',1,'','');

--
-- Table structure for table `EVENT_MOD_SELECT`
--

CREATE TABLE `EVENT_MOD_SELECT` (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `SID` bigint(20) NOT NULL,
  `BID` varchar(255) NOT NULL,
  `TYPE` bigint(20) NOT NULL DEFAULT 1,
  `SCRIPT` longtext NOT NULL,
  `DESCRIPTION` varchar(255) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=48 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `EVENT_MOD_SELECT`
--

INSERT INTO `EVENT_MOD_SELECT` VALUES (46,1,'',2,'//$this->resultPunto(\"dojo.widget.byId(\'FTMODULS\').reset();\");\n//$this->resultPunto(\"alert(3);\");\n//$this->resultPunto(\"alert(4);\");\n//$this->resultPunto(\"dojo.widget.byId(\'FTMODULS\').reset();\");\n//$this->resultPunto(\"dojo.widget.byId(\'FTAPPS\').reset();\");\n// pulire la tabella\n$this->resultPunto(\"var myFTMODULS = dojo.widget.byId(\'FTMODULS\');\");\n$this->resultPunto(\"var myAPPS = dojo.widget.byId(\'FTAPPS\');\");\n$this->resultPunto(\"var myFTSCRIPT = dojo.widget.byId(\'FTSCRIPT\');\");\n//$this->resultPunto(\"dojo.widget.byId(\'myFTSCRIPT\').reset();\");\n//var myNameAPPS = dojo.widget.byId(\'FTAPPS\').getSelectedData().NAME\"\n// rimettere dati\n\n$mysql11 = new Mysql();\n$mysql11 ->Database=$PARAM[0];\n$mysql11 ->connect();\n$resMysql11 = $mysql11 ->query(\'SELECT * FROM \'.$PARAM[1].\' ORDER BY SID\');\nwhile (	$linea11 = mysql_fetch_array($resMysql11, MYSQL_ASSOC))\n	{\n		$tmpString =\'Tables_in_AIDFUROR\';\n		$this->resultPunto(\"myFTSCRIPT.store.addData({SID:\".$linea11[\'SID\'].\",SCRIPT:\\\\\\\"\".$linea11[\'SCRIPT\'].\"\\\\\\\",DATE:\'11/1/2003\'});\");\n	}\nmysql_free_result($resMysql11);	\n\n//w.getSelectedData().N\n//$this->resultPunto(\"myFTSCRIPT.store.addData({id:1,SID:1,SCRIPT:\'\".$PARAM[0].\"\',DATE:\'11/1/2003\'});\");',''),(47,0,'',1,'dojo.widget.byId(\'DIVFTSCRIPT\').setContent(\\\"<div class=\'tableContainer\'><table bgcolor=\'#ffffff\' dojoType=\'filteringTable\' valueField= \'SID\' onSelect=\\\\\\\"furoros.Runmodule(\'2\',\'EVENT_SCRIPT_SELECT\',\'APP\',dojo.widget.byId(\'FTAPPS\').getSelectedData().NAME+\':\'+dojo.widget.byId(\'FTMODULS\').getSelectedData().NAME+\':\'+dojo.widget.byId(\'FTSCRIPT\').getSelectedData().SID)\\\\\\\" width=\'100%\' widgetId=\'FTSCRIPT\' multiple=\'false\' alternateRows=\'true\' maxSortable=\'2\' cellpadding=\'0\' cellspacing=\'0\' border=\'0\'><thead><tr><th field=\'SID\' dataType=\'number\' valign=\'top\'  sort=\'asc\'>SID</th><th field=\'SCRIPT\' dataType=\'String\' align=\'left\' valign=\'top\'>SCRIPT</th><th field=\'DATE\' dataType=\'Date\' format=\'%b %d, %Y\' align=\'center\' valign=\'top\'>DTC</th></tr></thead><tbody></tbody></table></div>\\\");','');

--
-- Table structure for table `EVENT_SCRIPT_SELECT`
--

CREATE TABLE `EVENT_SCRIPT_SELECT` (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `SID` bigint(20) NOT NULL,
  `BID` varchar(255) NOT NULL,
  `TYPE` bigint(20) NOT NULL DEFAULT 1,
  `SCRIPT` longtext NOT NULL,
  `DESCRIPTION` varchar(255) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=50 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `EVENT_SCRIPT_SELECT`
--

INSERT INTO `EVENT_SCRIPT_SELECT` VALUES (48,0,'',2,'\n$mysql11 = new Mysql();\n$mysql11 ->Database=$PARAM[0];\n$mysql11 ->connect();\n$resMysql11 = $mysql11 ->query(\'SELECT * FROM \'.$PARAM[1].\' WHERE SID=\'.$PARAM[2]);\nwhile (	$linea11 = mysql_fetch_array($resMysql11, MYSQL_ASSOC))\n	{\n		// rimettere il testo nel textarea\n		// verificare il tipo\n		$this->resultPunto(\"dojo.byId(\'TEXTAREASCRIPTJS\').value=\\\\\\\"\".$linea11[\'SCRIPT\'].\"\\\\\\\";\");\n	}\nmysql_free_result($resMysql11);	\n\n\n// mettere gli pulsanti sotto a modifica',''),(49,1,'',1,'//document.getElementById(\'TEXTAREASCRIPTJS\').value=\'qwerty sdf asd\';','');

--
-- Table structure for table `GUI_CALENDAR`
--

CREATE TABLE `GUI_CALENDAR` (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `SID` bigint(20) NOT NULL,
  `BID` varchar(255) NOT NULL,
  `TYPE` bigint(20) NOT NULL DEFAULT 1,
  `SCRIPT` longtext NOT NULL,
  `DESCRIPTION` varchar(255) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=48 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `GUI_CALENDAR`
--

INSERT INTO `GUI_CALENDAR` VALUES (45,0,'',2,'// distruggere FP se esiste\r\n//$this->resultPunto(\"if (dojo.widget.byId(\'WIDAID11FPCALENDAR\')) dojo.widget.byId(\'WIDAID11FPCALENDAR\').destroy();\");\r\n//$this->resultPunto(\"if (dojo.widget.byId(\'WIDAID11CPCALENDARINT\')) dojo.widget.byId(\'WIDAID11CPCALENDARINT\').destroy();\");\r\n// creare FP\r\n//$this->resultPunto(\"var AID11DIVCALENDAR = document.createElement(\'div\');\");\r\n//$this->resultPunto(\"AID11DIVCALENDAR.id=\'IDAID11DIVCONFIG\';\");\r\n//$this->resultPunto(\"AID11DIVCALENDAR.setAttribute(\'id\',\'IDAID11DIVCALENDAR\');\");\r\n//$this->resultPunto(\"AID11DIVCALENDAR.style[\'width\']=\'640px\';\");\r\n//$this->resultPunto(\"AID11DIVCALENDAR.style[\'height\']=\'650px\';\");\r\n//$this->resultPunto(\"AID11DIVCALENDAR.style[\'left\']=\'355px\';\");\r\n//$this->resultPunto(\"AID11DIVCALENDAR.style[\'top\']=\'10px\';\");\r\n//$this->resultPunto(\"AID11DIVCALENDAR.style[\'id\']=\'IDAID11DIVCALENDAR\';\");\r\n//$this->resultPunto(\"document.getElementById(\'DIVAID11BIDKERNEL\').appendChild(AID11DIVCALENDAR);\");\r\n$this->resultPunto(\"var AID11DIVCALENDAR = $(\'IDAID11DIVCALENDAR\');var AID11FPCALENDAR = dojo.widget.createWidget(\'ContentPane\',{id:\'IDAID11FPCALENDAR\', widgetId:\'WIDAID11FPCALENDAR\'},AID11DIVCALENDAR);\");\r\n$this->resultPunto(\"AID11FPCALENDAR.setContent(\\\\\\\"<div dojoType=\'ContentPane\' id=\'IDAID11CPCALENDARINT\' widgetId=\'WIDAID11CPCALENDARINT\'></div>\\\\\\\");\");\r\n$this->resultPunto(\"dojo.widget.byId(\'WIDAID11CPCALENDARINT\').setContent(\\\\\\\"<table valign=\'top\' align=\'center\' width=\'100%\' height=\'100%\' style=\'border:0px solid #b4bed2;background-color:#b4bed2;border-color:#b4bed2;\' CELLSPACING=\'0\' CELLPADDING=\'0\' border=\'0\'><tr height=\'15\'><td><table valign=\'top\' align=\'center\' width=\'100%\' height=\'100%\' style=\'border:0px;background-color:#b4bed2;\' CELLSPACING=\'0\' CELLPADDING=\'0\' border=\'0\'><tr valign=\'top\' background=\'../framework/furoros/share/APP/AID11/GUI_FT/IMAGES/ft-head.gif\'><td><button widgetId=\'CALENDAR_LABEL_PREVPREV\' dojoType=\'Button\' onclick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_CALENDAR_BUTTON_PREVPREV\',\'APP\',\'\')\\\\\\\\\\\\\\\"><img  border=\'0\' src=\'../framework/furoros/share/APP/AID11/GUI_CALENDAR/IMAGES/prevprev.gif\'>&nbsp;<span id=\'CALENDAR_LABEL_PREVPREV\'>leggo la data</span></button></td><td><button  widgetId=\'CALENDAR_LABEL_PREV\' dojoType=\'Button\' onclick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_CALENDAR_BUTTON_PREV\',\'APP\',\'\')\\\\\\\\\\\\\\\"><img  border=\'0\' src=\'../framework/furoros/share/APP/AID11/GUI_CALENDAR/IMAGES/prev.gif\'>&nbsp;<span id=\'CALENDAR_LABEL_PREV\'>leggo la data</span></button></td><td align=\'center\' width=\'50%\' colspan=\'2\'>&nbsp;<span id=\'CALENDAR_LABEL_MONTH\'>leggo il mese</span>&nbsp;<span id=\'CALENDAR_LABEL_YEAR\'>leggo anno</span></td><td><button dojoType=\'Button\'  widgetId=\'CALENDAR_LABEL_NEXT\' onclick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_CALENDAR_BUTTON_NEXT\',\'APP\',\'\')\\\\\\\\\\\\\\\"><img  border=\'0\' src=\'../framework/furoros/share/APP/AID11/GUI_CALENDAR/IMAGES/next.gif\'>&nbsp;<span id=\'CALENDAR_LABEL_NEXT\'>leggo la data</span></button></td><td><button  widgetId=\'CALENDAR_LABEL_NEXTNEXT\' dojoType=\'Button\' onclick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_CALENDAR_BUTTON_NEXTNEXT\',\'APP\',\'\')\\\\\\\\\\\\\\\"><img  border=\'0\' src=\'../framework/furoros/share/APP/AID11/GUI_CALENDAR/IMAGES/nextnext.gif\'>&nbsp;<span id=\'CALENDAR_LABEL_NEXTNEXT\'>leggo la data</span></button></td></tr></table></td></tr><tr height=\'15\'><td><table valign=\'top\' align=\'center\'  height=\'100%\' style=\'border:0px;background-color:#b4bed2;\' CELLSPACING=\'0\' CELLPADDING=\'0\' border=\'0\'><tr valign=\'top\' background=\'../framework/furoros/share/APP/AID11/GUI_FT/IMAGES/ft-head.gif\'><td><button dojoType=\'Button\' onclick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_CALENDAR_BUTTON_DAY\',\'APP\',\'\')\\\\\\\\\\\\\\\"><img  border=\'0\' src=\'../framework/furoros/share/APP/AID11/GUI_CALENDAR/IMAGES/calendar_view_day.gif\'>&nbsp;GIORNO</button></td><td><button dojoType=\'Button\' onclick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_CALENDAR_BUTTON_WEEK\',\'APP\',\'\')\\\\\\\\\\\\\\\"><img  border=\'0\' src=\'../framework/furoros/share/APP/AID11/GUI_CALENDAR/IMAGES/calendar_view_week.gif\'>&nbsp;SETTIMANA</button></td><td><button dojoType=\'Button\' onclick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_CALENDAR_BUTTON_MONTH\',\'APP\',\'\')\\\\\\\\\\\\\\\"><img  border=\'0\' src=\'../framework/furoros/share/APP/AID11/GUI_CALENDAR/IMAGES/calendar_view_month.gif\'>&nbsp;MESE</button></td><td><button dojoType=\'Button\' onclick=\\\\\\\\\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_CALENDAR_BUTTON_TODAY\',\'APP\',\'\')\\\\\\\\\\\\\\\"><img  border=\'0\' src=\'../framework/furoros/share/APP/AID11/GUI_CALENDAR/IMAGES/calendar_view_today.gif\'>&nbsp;OGGI</button></td></tr></table></td></tr><tr valign=\'top\' height=\'100%\'><td align=\'left\' valign=\'top\'><div dojoType=\'ContentPane\' widgetId=\'CALENDARMAIN\' ></div></td></tr></table>\\\\\\\");\");\r\n$this->resultPunto(\"var tmpDate=new Date();\");\r\n$this->resultPunto(\"dojo.require(\'dojo.date.common\');\");\r\n$this->resultPunto(\"dojo.require(\'dojo.date.format\');\");\r\n$this->resultPunto(\"dojo.require(\'dojo.date.serialize\');\");\r\n\r\n$this->resultPunto(\"dojo.widget.byId(\'CALENDARMAIN\').setContent(\\\\\\\"<div class=\'boxgray\'><table   valign=\'top\' align=\'center\' style=\'border:0px;background-color:#b4bed2;\' CELLSPACING=\'0\' CELLPADDING=\'0\' border=\'0\'><tr valign=\'top\'><td rowspan=\'2\'><span style=\'font-size:26px;\'>\\\\\\\"+tmpDate.getDate()+\\\\\\\"</span></td><td>\\\\\\\"+dojo.date.format(tmpDate, {datePattern:\'eeee\', selector:\'dateOnly\', locale:\'\'})+\\\\\\\"</td></tr><tr><td>\\\\\\\"+dojo.date.format(tmpDate, {datePattern:\'MMMM yyyy\', selector:\'dateOnly\', locale:\'\'})+\\\\\\\"</td></tr></table></div>\\\\\\\");\");\r\n// prendere namespace per variabili del CALENDAR\r\n$this->resultPunto(\"arrayData[\'AIP\'][11][\'CALENDAR\']= new Array();\");\r\n$this->resultPunto(\"arrayData[\'AIP\'][11][\'CALENDAR\'][\'MODE\'] = \'day\';\");\r\n$this->resultPunto(\"arrayData[\'AIP\'][11][\'CALENDAR\'][\'DATAFIRST\'] = new Date();\");\r\n$this->resultPunto(\"arrayData[\'AIP\'][11][\'CALENDAR\'][\'DATATODAY\'] = new Date();\");\n$this->resultPunto(\"arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'] = new Array();\");\r\n// leggere gli appuntamenti\n$mysql12 = new Mysql();\n$mysql12 ->Database=\'AID11\';\n$mysql12 ->connect();\n$this->resultPunto(\"arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'] = new Array();\");\r\n//$this->resultPunto(\"arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\'ID\'] = new Array();\");\r\n//$this->resultPunto(\"arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\'TIME\'] = new Array();\");\r\n$resMysql12 = $mysql12 -> query(\"SELECT ID,DATE_FORMAT(DATE,\'%d-%m-%Y\') AS DATE,CLIENT,SPEC,SPECSPEC,PERSONAL,ROOM,LEFT(TIME_BEGIN,5) AS TIME_BEGIN,LEFT(TIME_END,5) AS TIME_END,STATUS FROM OS_DATA_APP ORDER BY DATE,TIME_BEGIN\");\nwhile ($linea12 = mysql_fetch_array($resMysql12, MYSQL_ASSOC))\n{	$this->resultPunto(\"dojo.debug(\'pers \'+\".$linea12[\'PERSONAL\'].\");\");\n	$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\".$linea12[\'PERSONAL\'].\"]) arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\".$linea12[\'PERSONAL\'].\"] = new Array();\");\n	$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\']) arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'] = new Array();\");\n	$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\".$linea12[\'ID\'].\"]) arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\".$linea12[\'ID\'].\"] = new Array();\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\".$linea12[\'ID\'].\"][\'TIME_BEGIN\'] = \'\".$linea12[\'TIME_BEGIN\'].\"\';\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\".$linea12[\'ID\'].\"][\'TIME_END\'] = \'\".$linea12[\'TIME_END\'].\"\';\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\".$linea12[\'ID\'].\"][\'STATUS\'] = \'\".$linea12[\'STATUS\'].\"\';\");\n	// visualizzazione\n	$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"])arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"] = new Array();\");\n	$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'])arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\']= new Array();\");\n	$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\'ID\'])arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\'ID\']= new Array();\");\n	$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\'TIME\'])arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\'TIME\']= new Array();\");\n	$this->resultPunto(\"if (arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\'ID\'].length==0) {arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\'ID\'][0]=\".$linea12[\'ID\'].\";arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\'TIME\'][0]=\'\".$linea12[\'TIME_BEGIN\'].\"\';} else{var count=0;var put=0; for (var i in arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\'ID\']) {count++;if (arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\'TIME\'][i]>\'\".$linea12[\'TIME_BEGIN\'].\"\') {arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\'ID\'].splice(i,0,\".$linea12[\'ID\'].\");arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\'TIME\'].splice(i,0,\'\".$linea12[\'TIME_BEGIN\'].\"\');put=1;break;}};if (put==0){arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\'ID\'][count]=\".$linea12[\'ID\'].\";arrayData[\'AIP\'][11][\'CALENDAR\'][\'APP\'][\'VISUAL\'][\".$linea12[\'PERSONAL\'].\"][\'\".$linea12[\'DATE\'].\"\'][\'TIME\'][count]=\'\".$linea12[\'TIME_BEGIN\'].\"\';}}\");\n}\nmysql_free_result($mysql12->Query_ID);\n				',''),(46,1,'',1,'',''),(47,2,'REFRESH_CALENDAR_LABEL_NAVIGATION',3,'','rimettere label di navigazione');

--
-- Table structure for table `GUI_FP`
--

CREATE TABLE `GUI_FP` (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `SID` bigint(20) NOT NULL,
  `BID` varchar(255) NOT NULL,
  `TYPE` bigint(20) NOT NULL DEFAULT 1,
  `SCRIPT` longtext NOT NULL,
  `DESCRIPTION` varchar(255) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=45 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `GUI_FP`
--

INSERT INTO `GUI_FP` VALUES (1,0,'',1,'//dojo.byId(\'DIVAID11BIDKERNEL\').innerHTML=\'ciao\';',''),(2,1,'',1,'var AID11DIVMENU = document.createElement(\'div\');','creare div esterno per floating pane menu'),(3,2,'',1,'AID11DIVMENU.id=\'IDAID11DIVMENU\';',''),(4,3,'',1,'AID11DIVMENU.setAttribute(\'id\',\'IDAID11DIVMENU\');',''),(5,4,'',1,'AID11DIVMENU.style[\'width\']=\'320px\';',''),(6,5,'',1,'AID11DIVMENU.style[\'height\']=\'600px\';',''),(7,6,'',1,'AID11DIVMENU.style[\'id\']=\'IDAID11DIVMENU\';',''),(8,7,'',1,'document.getElementById(\'DIVAID11BIDKERNEL\').appendChild(AID11DIVMENU);','agiungere div per floating pane menu nel div della aplicazione'),(9,8,'',1,'var AID11FPMENU = dojo.widget.createWidget(\'FloatingPane\',{id:\'IDAID11FPMENU\', widgetId:\'WIDAID11FPMENU\',iconSrc:\'images/flatScreen.gif\',title: \'MENU\',displayMaximizeAction:\'true\',displayCloseAction:\'true\'},AID11DIVMENU);','creare floating pane del menu'),(10,9,'',1,'AID11FPMENU.setContent(\\\"<div dojoType=\'ContentPane\' id=\'IDAID11CPMENUINT\' widgetId=\'WIDAID11CPMENUINT\'></div>\\\");','creare div interno nel floating pane menu'),(11,10,'',1,'dojo.widget.byId(\'WIDAID11CPMENUINT\').setContent(\\\"<div dojoType=\'AccordionContainer\' duration=\'200\' labelNodeClass=\'label\' containerNodeClass=\'accBody\' style=\'float: left; margin-right: 0px;  width: 100%; height: 100%; overflow: hidden\'><div dojoType=\'ContentPane\' widgetId=\'AID11ACCPFILTRI\' selected=\'true\' label=\'FILTRI\' style=\'overflow: auto;\' onShow=\'\' onHide=\'\' >FILTRI</div><div dojoType=\'ContentPane\' widgetId=\'AID11ACCPCONFIG\' selected=\'true\' label=\'CONFIGURAZIONE\' style=\'overflow: auto;\' onShow=\'\' onHide=\'\' ></div></div>\\\");','creare accordeon container'),(12,11,'',1,'','creare tree'),(13,12,'',1,'dojo.widget.byId(\'AID11ACCPCONFIG\').setContent(\\\"<br/><div dojoType=\'TreeSelector\' widgetId=\'treeSelector\' eventNames=\'select:nodeSelected\'></div><div dojoType=\'Tree\'  selector=\'treeSelector\' toggle=\'fade\'><div dojoType=\'TreeNode\' title=\'Specialisti\'  onTitleClick=\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_MENUTREE_SELECT\',\'APP\',\'SPEC\')\\\\\\\"><div dojoType=\'TreeNode\' title=\'Aggiungi specialista\'></div><div dojoType=\'TreeNode\' title=\'Modifica specialista\'></div><div dojoType=\'TreeNode\' title=\'Elimina specialista\'></div></div><div dojoType=\'TreeNode\' title=\'Stanze\'><div dojoType=\'TreeNode\' title=\'Aggiungi stanza\'><br/></div><div dojoType=\'TreeNode\' title=\'Modifica stanza\'></div><div dojoType=\'TreeNode\' title=\'Elimina stanza\'></div></div><div dojoType=\'TreeNode\' title=\'Orari\'><div dojoType=\'TreeNode\' title=\'Durata appuntamento\'><div dojoType=\'TreeNode\' title=\'Aggiungi durata appuntamento\'><br/></div><div dojoType=\'TreeNode\' title=\'Modifica durata appuntamento\'></div><div dojoType=\'TreeNode\' title=\'Elimina durata appuntamento\'></div></div><div dojoType=\'TreeNode\' title=\'Fasce orarie\'><div dojoType=\'TreeNode\' title=\'Aggiungi fasce orarie\'><br/></div><div dojoType=\'TreeNode\' title=\'Modifica fasce orarie\'></div><div dojoType=\'TreeNode\' title=\'Elimina fasce orarie\'></div></div></div></div>\\\");',''),(14,13,'',1,'',''),(15,14,'',1,'',''),(16,15,'',1,'',''),(17,16,'',1,'',''),(18,17,'',1,'',''),(19,18,'',1,'',''),(20,19,'',1,'',''),(21,20,'',1,'',''),(22,21,'',1,'',''),(23,22,'',1,'',''),(24,24,'',1,'',''),(25,23,'',1,'',''),(26,25,'',1,'',''),(27,27,'',1,'',''),(28,26,'',1,'',''),(29,28,'',1,'',''),(30,29,'',1,'',''),(31,30,'',1,'',''),(32,31,'',1,'',''),(33,32,'',1,'',''),(39,43,'',1,'',''),(40,42,'',1,'',''),(41,41,'',1,'',''),(42,40,'',1,'',''),(43,39,'',1,'',''),(44,38,'',1,'',''),(34,33,'',1,'',''),(35,34,'',1,'',''),(36,35,'',1,'',''),(37,36,'',1,'',''),(38,37,'',1,'','');

--
-- Table structure for table `INIT`
--

CREATE TABLE `INIT` (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `SID` bigint(20) NOT NULL,
  `BID` varchar(255) NOT NULL,
  `TYPE` bigint(20) NOT NULL DEFAULT 1,
  `SCRIPT` longtext NOT NULL,
  `DESCRIPTION` varchar(255) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `INIT`
--

INSERT INTO `INIT` VALUES (1,7,'INIT5',3,'','// Run INIT with GUI. Do the select of the INIT from user interface'),(2,0,'',1,'','// init namespace'),(5,3,'',1,'','// set user namespace'),(6,4,'',1,'','// set user anonimus'),(3,6,'',1,'','// init namespace for FUROR OS'),(4,5,'',1,'','// init namespace for applications'),(7,2,'',1,'','// reallok memory for STACK transport'),(8,1,'',1,'','// reallok memory for STACK event');

--
-- Table structure for table `INIT0`
--

CREATE TABLE `INIT0` (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `SID` bigint(20) NOT NULL,
  `BID` varchar(255) NOT NULL,
  `TYPE` bigint(20) NOT NULL DEFAULT 1,
  `SCRIPT` longtext NOT NULL,
  `DESCRIPTION` varchar(255) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `INIT0`
--


--
-- Table structure for table `INIT3`
--

CREATE TABLE `INIT3` (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `SID` bigint(20) NOT NULL,
  `BID` varchar(255) NOT NULL,
  `TYPE` bigint(20) NOT NULL DEFAULT 1,
  `SCRIPT` longtext NOT NULL,
  `DESCRIPTION` varchar(255) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `INIT3`
--


--
-- Table structure for table `INIT5`
--

CREATE TABLE `INIT5` (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `SID` bigint(20) NOT NULL,
  `BID` varchar(255) NOT NULL,
  `TYPE` bigint(20) NOT NULL DEFAULT 1,
  `SCRIPT` longtext NOT NULL,
  `DESCRIPTION` varchar(255) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `INIT5`
--

INSERT INTO `INIT5` VALUES (1,0,'',1,'','// reallok memory for buffer');

--
-- Table structure for table `INIT6`
--

CREATE TABLE `INIT6` (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `SID` bigint(20) NOT NULL,
  `BID` varchar(255) NOT NULL,
  `TYPE` bigint(20) NOT NULL DEFAULT 1,
  `SCRIPT` longtext NOT NULL,
  `DESCRIPTION` varchar(255) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `INIT6`
--


--
-- Table structure for table `KERNEL`
--

CREATE TABLE `KERNEL` (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `SID` bigint(20) NOT NULL,
  `BID` varchar(255) NOT NULL,
  `TYPE` bigint(20) NOT NULL DEFAULT 1,
  `SCRIPT` longtext NOT NULL,
  `DESCRIPTION` varchar(255) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `KERNEL`
--

INSERT INTO `KERNEL` VALUES (1,4,'INIT',3,'','Run INIT'),(2,5,'RC',3,'','Run RC'),(3,6,'RCLOCAL',3,'','Run RCLOCAL'),(4,0,'',1,'arrayData[\'AIP\'][11]=new Array();','Namespace for kernel variabiles'),(5,3,'',1,'',''),(6,2,'',2,'$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\']) arrayData[\'AIP\'][11][\'DATA\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'FILTER\']) arrayData[\'AIP\'][11][\'FILTER\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'FILTER\'][\'SPEC\']) arrayData[\'AIP\'][11][\'FILTER\'][\'SPEC\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'FILTER\'][\'ROOM\']) arrayData[\'AIP\'][11][\'FILTER\'][\'ROOM\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'FILTER\'][\'PERSONAL\']) arrayData[\'AIP\'][11][\'FILTER\'][\'PERSONAL\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'FILTER\'][\'SPECSPEC\']) arrayData[\'AIP\'][11][\'FILTER\'][\'SPECSPEC\'] = new Array();\");\n// FASCE ORARIE\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'TIME_DAY\']) arrayData[\'AIP\'][11][\'DATA\'][\'TIME_DAY\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'TIME_DAY\'][\'ID\']) arrayData[\'AIP\'][11][\'DATA\'][\'TIME_DAY\'][\'ID\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'TIME_DAY\'][\'NAME\']) arrayData[\'AIP\'][11][\'DATA\'][\'TIME_DAY\'][\'NAME\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'TIME_DAY\'][\'AMBEGIN\']) arrayData[\'AIP\'][11][\'DATA\'][\'TIME_DAY\'][\'AMBEGIN\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'TIME_DAY\'][\'AMEND\']) arrayData[\'AIP\'][11][\'DATA\'][\'TIME_DAY\'][\'AMEND\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'TIME_DAY\'][\'PMBEGIN\']) arrayData[\'AIP\'][11][\'DATA\'][\'TIME_DAY\'][\'PMBEGIN\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'TIME_DAY\'][\'PMEND\']) arrayData[\'AIP\'][11][\'DATA\'][\'TIME_DAY\'][\'PMEND\'] = new Array();\");\n//  SPEC\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'SPEC\']) arrayData[\'AIP\'][11][\'DATA\'][\'SPEC\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'SPEC\'][\'ID\']) arrayData[\'AIP\'][11][\'DATA\'][\'SPEC\'][\'ID\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'SPEC\'][\'NAME\']) arrayData[\'AIP\'][11][\'DATA\'][\'SPEC\'][\'NAME\'] = new Array();\");\n//  PERIOD\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'PERIOD\']) arrayData[\'AIP\'][11][\'DATA\'][\'PERIOD\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'PERIOD\'][\'ID\']) arrayData[\'AIP\'][11][\'DATA\'][\'PERIOD\'][\'ID\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'PERIOD\'][\'NAME\']) arrayData[\'AIP\'][11][\'DATA\'][\'PERIOD\'][\'NAME\'] = new Array();\");\n//  ROOM\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'ROOM\']) arrayData[\'AIP\'][11][\'DATA\'][\'ROOM\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'ROOM\'][\'ID\']) arrayData[\'AIP\'][11][\'DATA\'][\'ROOM\'][\'ID\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'ROOM\'][\'NAME\']) arrayData[\'AIP\'][11][\'DATA\'][\'ROOM\'][\'NAME\'] = new Array();\");\n//  SPECSPEC\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'SPECSPEC\']) arrayData[\'AIP\'][11][\'DATA\'][\'SPECSPEC\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'SPECSPEC\'][\'ID\']) arrayData[\'AIP\'][11][\'DATA\'][\'SPECSPEC\'][\'ID\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'SPECSPEC\'][\'NAME\']) arrayData[\'AIP\'][11][\'DATA\'][\'SPECSPEC\'][\'NAME\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'SPECSPEC\'][\'SPEC\']) arrayData[\'AIP\'][11][\'DATA\'][\'SPECSPEC\'][\'SPEC\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'SPECSPEC\'][\'PERIOD\']) arrayData[\'AIP\'][11][\'DATA\'][\'SPECSPEC\'][\'PERIOD\'] = new Array();\");\n//  PERSONALSPEC\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'PERSONALSPEC\']) arrayData[\'AIP\'][11][\'DATA\'][\'PERSONALSPEC\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'PERSONALSPEC\'][\'ID\']) arrayData[\'AIP\'][11][\'DATA\'][\'PERSONALSPEC\'][\'ID\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'PERSONALSPEC\'][\'CLIENT\']) arrayData[\'AIP\'][11][\'DATA\'][\'PERSONALSPEC\'][\'CLIENT\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'PERSONALSPEC\'][\'SPEC\']) arrayData[\'AIP\'][11][\'DATA\'][\'PERSONALSPEC\'][\'SPEC\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'PERSONALSPEC\'][\'SPECSPEC\']) arrayData[\'AIP\'][11][\'DATA\'][\'PERSONALSPEC\'][\'SPECSPEC\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'PERSONALSPEC\'][\'POINT\']) arrayData[\'AIP\'][11][\'DATA\'][\'PERSONALSPEC\'][\'POINT\'] = new Array();\");\n//  PERSONAL\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\']) arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'ID\']) arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'ID\'] = new Array();arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'ID\'].slice(0, 0);for (var tmpi in arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'ID\']) dojo.debug(\'ttmpi \'+tmpi+\' count\'+arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'ID\'].length+arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'ID\'][\'remove\']);\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'NAME\']) arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'NAME\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'IMG\']) arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'IMG\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'COLOR\']) arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'COLOR\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'D0\']) arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'D0\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'D1\']) arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'D1\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'D2\']) arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'D2\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'D3\']) arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'D3\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'D4\']) arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'D4\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'D5\']) arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'D5\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'D6\']) arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'D6\'] = new Array();\");\n//  CLIENT\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\']) arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'ID\']) arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'ID\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'NAME\']) arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'NAME\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'SECONDNAME\']) arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'SECONDNAME\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'MAIL\']) arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'MAIL\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'TEL\']) arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'TEL\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'CEL\']) arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'CEL\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'ADDRESS\']) arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'ADDRESS\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'CAP\']) arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'CAP\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'PREF_PERSONAL\']) arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'PREF_PERSONAL\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'LOGIN\']) arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'LOGIN\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'PW\']) arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'PW\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'PROFESSION\']) arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'PROFESSION\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'SEX\']) arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'SEX\'] = new Array();\");\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'BIRTHDAY\']) arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'BIRTHDAY\'] = new Array();\");\n// configurazione\n$mysql11 = new Mysql();\n$mysql11 ->Database=\'AID11\';\n$mysql11 ->connect();\n$this->resultPunto(\"if (!arrayData[\'AIP\'][11][\'CONFIG\']) arrayData[\'AIP\'][11][\'CONFIG\'] = new Array();\");\n$resMysql11 = $mysql11 ->query(\'SELECT * FROM AID11.OS_DATA_CONFIG\');\nwhile (	$linea11 = mysql_fetch_array($resMysql11, MYSQL_ASSOC))\n{\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'CONFIG\'][\'IMG_PERSONAL\'] = \".$linea11[\'IMG_PERSONAL\'].\";\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'CONFIG\'][\'IMG_ROOM\'] = \".$linea11[\'IMG_ROOM\'].\";\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'CONFIG\'][\'TYPE_SPEC_MENU\'] = \'\".$linea11[\'TYPE_SPEC_MENU\'].\"\';\");\n}\nmysql_free_result($resMysql11);\n// fasce orarie\n// leggere fassciaOrario\n$resMysql11 = $mysql11 -> query(\'SELECT ID,NAME,LEFT(AMBEGIN,5) AS AMBEGIN,LEFT(AMEND,5) AS AMEND,LEFT(PMBEGIN,5) AS PMBEGIN,LEFT(PMEND,5) AS PMEND FROM OS_DATA_TIME_DAY ORDER BY ID\');\nif ($mysql11 -> numRows == 0)\n{\n	$count[\'orari\']=0;\n}\nwhile ($linea11 = mysql_fetch_array($resMysql11, MYSQL_ASSOC)) \n{\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'TIME_DAY\'][\'ID\'][\".$linea11[\'ID\'].\"] = \".$linea11[\'ID\'].\";\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'TIME_DAY\'][\'NAME\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'NAME\'].\"\';\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'TIME_DAY\'][\'AMBEGIN\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'AMBEGIN\'].\"\';\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'TIME_DAY\'][\'AMEND\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'AMEND\'].\"\';\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'TIME_DAY\'][\'PMBEGIN\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'PMBEGIN\'].\"\';\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'TIME_DAY\'][\'PMEND\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'PMEND\'].\"\';\");\n}\nmysql_free_result($mysql11->Query_ID);\n// leggere PERIOD\n$resMysql11 = $mysql11 -> query(\'SELECT ID,NAME FROM OS_DATA_PERIOD ORDER BY ID\');\nif ($mysql11 -> numRows == 0)\n{\n	$count[\'orari\']=0;\n}\nwhile ($linea11 = mysql_fetch_array($resMysql11, MYSQL_ASSOC)) \n{\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'PERIOD\'][\'ID\'][\".$linea11[\'ID\'].\"] = \".$linea11[\'ID\'].\";\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'PERIOD\'][\'NAME\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'NAME\'].\"\';\");\n}\nmysql_free_result($mysql11->Query_ID);\n// leggere SPEC\n$resMysql11 = $mysql11 -> query(\'SELECT ID,NAME FROM OS_DATA_SPEC ORDER BY ID\');\nif ($mysql11 -> numRows == 0)\n{\n	$count[\'orari\']=0;\n}\nwhile ($linea11 = mysql_fetch_array($resMysql11, MYSQL_ASSOC)) \n{\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'SPEC\'][\'ID\'][\".$linea11[\'ID\'].\"] = \".$linea11[\'ID\'].\";\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'SPEC\'][\'NAME\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'NAME\'].\"\';\");\n}\nmysql_free_result($mysql11->Query_ID);\n// leggere ROOM\n$resMysql11 = $mysql11 -> query(\'SELECT ID,NAME FROM OS_DATA_ROOM ORDER BY ID\');\nif ($mysql11 -> numRows == 0)\n{\n	$count[\'orari\']=0;\n}\nwhile ($linea11 = mysql_fetch_array($resMysql11, MYSQL_ASSOC)) \n{\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'ROOM\'][\'ID\'][\".$linea11[\'ID\'].\"] = \".$linea11[\'ID\'].\";\");//$this->resultPunto(\"dojo.debug(\'kernel: ID \".$linea11[\'ID\'].\"\');\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'ROOM\'][\'NAME\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'NAME\'].\"\';\");\n}\nmysql_free_result($mysql11->Query_ID);\n// leggere SPECSPEC\n$resMysql11 = $mysql11 -> query(\'SELECT ID,NAME,SPEC,PERIOD FROM OS_DATA_SPECSPEC ORDER BY ID\');\nif ($mysql11 -> numRows == 0)\n{\n	$count[\'orari\']=0;\n}\nwhile ($linea11 = mysql_fetch_array($resMysql11, MYSQL_ASSOC)) \n{\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'SPECSPEC\'][\'ID\'][\".$linea11[\'ID\'].\"] = \".$linea11[\'ID\'].\";\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'SPECSPEC\'][\'NAME\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'NAME\'].\"\';\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'SPECSPEC\'][\'SPEC\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'SPEC\'].\"\';\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'SPECSPEC\'][\'PERIOD\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'PERIOD\'].\"\';\");\n}\nmysql_free_result($mysql11->Query_ID);\n// leggere PERSONALSPEC\n$resMysql11 = $mysql11 -> query(\'SELECT ID,CLIENT,SPEC,SPECSPEC,POINT FROM OS_DATA_PERSONALSPEC ORDER BY ID\');\nif ($mysql11 -> numRows == 0)\n{\n	$count[\'orari\']=0;\n}\nwhile ($linea11 = mysql_fetch_array($resMysql11, MYSQL_ASSOC)) \n{\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'PERSONALSPEC\'][\'ID\'][\".$linea11[\'ID\'].\"] = \".$linea11[\'ID\'].\";\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'PERSONALSPEC\'][\'CLIENT\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'CLIENT\'].\"\';\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'PERSONALSPEC\'][\'SPEC\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'SPEC\'].\"\';\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'PERSONALSPEC\'][\'SPECSPEC\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'SPECSPEC\'].\"\';\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'PERSONALSPEC\'][\'POINT\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'POINT\'].\"\';\");\n}\nmysql_free_result($mysql11->Query_ID);\n// leggere PERSONAL\n$resMysql11 = $mysql11 -> query(\'SELECT ID,NAME,D0,D1,D2,D3,D4,D5,D6,IMG,COLOR FROM OS_DATA_PERSONAL ORDER BY ID\');\nif ($mysql11 -> numRows == 0)\n{\n	$count[\'orari\']=0;\n}\nwhile ($linea11 = mysql_fetch_array($resMysql11, MYSQL_ASSOC)) \n{\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'ID\'][\".$linea11[\'ID\'].\"] = \".$linea11[\'ID\'].\";\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'NAME\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'NAME\'].\"\';\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'D0\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'D0\'].\"\';\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'D1\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'D1\'].\"\';\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'D2\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'D2\'].\"\';\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'D3\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'D3\'].\"\';\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'D4\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'D4\'].\"\';\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'D5\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'D5\'].\"\';\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'D6\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'D6\'].\"\';\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'IMG\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'IMG\'].\"\';\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'PERSONAL\'][\'COLOR\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'COLOR\'].\"\';\");\n}\nmysql_free_result($mysql11->Query_ID);\n// leggere CLIENT\n$resMysql11 = $mysql11 -> query(\'SELECT ID,NAME,SECONDNAME,MAIL,TEL,CEL,ADDRESS,CAP,PREF_PERSONAL,LOGIN,PW,PROFESSION,SEX,BIRTHDAY FROM OS_DATA_CLIENT ORDER BY ID\');\nif ($mysql11 -> numRows == 0)\n{\n	$count[\'orari\']=0;\n}\nwhile ($linea11 = mysql_fetch_array($resMysql11, MYSQL_ASSOC)) \n{\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'ID\'][\".$linea11[\'ID\'].\"] = \".$linea11[\'ID\'].\";\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'NAME\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'NAME\'].\"\';\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'SECONDNAME\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'SECONDNAME\'].\"\';\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'MAIL\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'MAIL\'].\"\';\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'TEL\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'TEL\'].\"\';\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'CEL\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'CEL\'].\"\';\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'ADDRESS\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'ADDRESS\'].\"\';\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'CAP\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'CAP\'].\"\';\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'PREF_PERSONAL\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'PREF_PERSONAL\'].\"\';\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'LOGIN\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'LOGIN\'].\"\';\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'PW\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'PW\'].\"\';\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'PROFESSION\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'PROFESSION\'].\"\';\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'SEX\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'SEX\'].\"\';\");\n	$this->resultPunto(\"arrayData[\'AIP\'][11][\'DATA\'][\'CLIENT\'][\'BIRTHDAY\'][\".$linea11[\'ID\'].\"] = \'\".$linea11[\'BIRTHDAY\'].\"\';\");\n}\nmysql_free_result($mysql11->Query_ID);\n	//$this->resultPunto(\"dojo.debug(\'KERNEL: \'+arrayData[\'AIP\'][11][\'DATA\'][\'SPEC\'][\'ID\'].count);\");\n','prendere dati'),(7,1,'',1,'arrayData[\'AIP\'][11][\'name\']=\'SUN DIVERS GESTIONE APPUNTAMENTI\';','nome dell\'applicazione');

--
-- Table structure for table `LISTA_ATTESA`
--

CREATE TABLE `LISTA_ATTESA` (
  `LISTA_ATTESA_ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `LISTA_ATTESA_DATA_INS` datetime NOT NULL,
  `LISTA_ATTESA_DATA` text NOT NULL,
  `LISTA_ATTESA_TIME` text NOT NULL,
  `LISTA_ATTESA_CLIENT` bigint(20) NOT NULL,
  `LISTA_ATTESA_PERS` bigint(20) NOT NULL,
  `LISTA_ATTESA_ROOM` bigint(20) NOT NULL,
  `LISTA_ATTESA_SPEC` bigint(20) NOT NULL,
  `LISTA_ATTESA_TRAT` bigint(20) NOT NULL,
  PRIMARY KEY (`LISTA_ATTESA_ID`)
) ENGINE=MyISAM AUTO_INCREMENT=57 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `LISTA_ATTESA`
--


--
-- Table structure for table `MODULE_GUI`
--

CREATE TABLE `MODULE_GUI` (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `SID` bigint(20) NOT NULL,
  `BID` varchar(255) NOT NULL,
  `TYPE` bigint(20) NOT NULL DEFAULT 1,
  `SCRIPT` longtext NOT NULL,
  `DESCRIPTION` varchar(255) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=45 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `MODULE_GUI`
--

INSERT INTO `MODULE_GUI` VALUES (1,0,'',2,'	$this->resultPunto(\"var TABLE_MAIN=create(\'table\',{width:\'100%\',border:0,border:\'0px\'},create(\'tr\',{},create(\'td\',{},create(\'div\',{id:\'AID11_MENU\'}))),create(\'tr\',{},create(\'td\',{},create(\'div\',{id:\'AID11_MAIN\'}))));\");\n	$this->resultPunto(\"$(\'DIVAID11BIDKERNEL\').appendChild(TABLE_MAIN);\");\n$this->resultPunto(\"dojo.widget.createWidget(\'ContentPane\',{id:\'IDAID11CPMENUINT\',widgetId:\'WIDAID11CPMENUMENU\'},AID11_MENU);\");\n$this->resultPunto(\"$(\'DIVAID11BIDKERNEL\').appendChild(create(\'div\',{id:\'IDAID11DIVCALENDAR\'}));\");\n	$this->resultPunto(\"$(\'AID11_MAIN\').appendChild(create(\'div\',{id:\'MAIN_WEST\'}));\");\n$this->resultPunto(\"dojo.widget.createWidget(\'ContentPane\',{id:\'IDAID11CPMENUINT\',widgetId:\'WIDAID11CPMENUINT\'},MAIN_WEST);\");\n	$this->resultPunto(\"$(\'AID11_MAIN\').appendChild(create(\'div\',{id:\'MAIN_NORTH\'}));\");\n	$this->resultPunto(\"$(\'AID11_MAIN\').appendChild(create(\'div\',{id:\'MAIN_CENTER2\'}));\");\n	$this->resultPunto(\"$(\'AID11_MAIN\').appendChild(create(\'div\',{id:\'MAIN_CENTER1\'}));\");\n	$this->resultPunto(\"$(\'AID11_MAIN\').appendChild(create(\'div\',{id:\'MAIN_PP\',width:\'200px\',height:\'200px\',overflow:\'hidden\'}));\");\n	$this->resultPunto(\"$(\'AID11_MAIN\').appendChild(create(\'div\',{id:\'MAIN_SOUTH\'}));\");\n	$this->resultPunto(\"$(\'DIVAID11BIDKERNEL\').appendChild(create(\'div\',{id:\'IDFILTRIPERSONAL\'}));\");\n//$this->resultPunto(\"dojo.widget.createWidget(\'ContentPane\',{id:\'FILTRIPERSONAL\',widgetId:\'FILTRIPERSONAL\'},$(\'IDFILTRIPERSONAL\'));\");\n	$this->resultPunto(\"$(\'DIVAID11BIDKERNEL\').appendChild(create(\'div\',{id:\'IDFILTRIROOM\'}));\");\n$this->resultPunto(\"dojo.widget.createWidget(\'ContentPane\',{id:\'FILTRIROOM\',widgetId:\'FILTRIROOM\'},$(\'IDFILTRIROOM\'));\");\n	$this->resultPunto(\"$(\'DIVAID11BIDKERNEL\').appendChild(create(\'div\',{id:\'IDFILTRISPEC\'}));\");\n$this->resultPunto(\"dojo.widget.createWidget(\'ContentPane\',{id:\'FILTRISPEC\',widgetId:\'FILTRISPEC\'},$(\'IDFILTRISPEC\'));\");\n$this->resultPunto(\"$(\'DIVAID11BIDKERNEL\').appendChild(create(\'div\',{id:\'IDFILTRITOOLS\'}));\");\n$this->resultPunto(\"dojo.widget.createWidget(\'ContentPane\',{id:\'FILTRITOOLS\',widgetId:\'FILTRITOOLS\'},$(\'IDFILTRITOOLS\'));\");\n\n\n',''),(2,1,'',1,'Ext.ux.Portal = Ext.extend(Ext.Panel, {layout: \'column\',autoScroll:true,cls:\'x-portal\',defaultType: \'portalcolumn\',initComponent : function(){Ext.ux.Portal.superclass.initComponent.call(this);this.addEvents({validatedrop:true,beforedragover:true,dragover:true,beforedrop:true,drop:true});},initEvents : function(){Ext.ux.Portal.superclass.initEvents.call(this);this.dd = new Ext.ux.Portal.DropZone(this, this.dropConfig);}});Ext.ux.Portal.DropZone = function(portal, cfg){this.portal = portal;Ext.dd.ScrollManager.register(portal.body);Ext.ux.Portal.DropZone.superclass.constructor.call(this,portal.bwrap.dom, cfg);portal.body.ddScrollConfig = this.ddScrollConfig;};Ext.extend(Ext.ux.Portal.DropZone, Ext.dd.DropTarget, {ddScrollConfig : {vthresh: 50,hthresh: -1,animate: true,increment: 200},createEvent : function(dd, e, data, col, c, pos){return {portal: this.portal,panel: data.panel,columnIndex: col,column: c,position: pos,data: data,source: dd,rawEvent: e,status: this.dropAllowed};},notifyOver : function(dd, e, data){var xy = e.getXY(), portal = this.portal, px = dd.proxy;if(!this.grid){this.grid = this.getGrid();}var cw = portal.body.dom.clientWidth;if(!this.lastCW){this.lastCW = cw;}else if(this.lastCW != cw){this.lastCW = cw;portal.doLayout();this.grid = this.getGrid();}var col = 0, xs = this.grid.columnX, cmatch = false;for(var len = xs.length; col < len; col++){if(xy[0] < (xs[col].x + xs[col].w)){cmatch = true;break;}}if(!cmatch){col--;}var p, match = false, pos = 0,c = portal.items.itemAt(col),items = c.items.items;for(var len = items.length; pos < len; pos++){p = items[pos];var h = p.el.getHeight();if(h !== 0 && (p.el.getY()+(h/2)) > xy[1]){match = true;break;}}var overEvent = this.createEvent(dd, e, data, col, c,match && p ? pos : c.items.getCount());if(portal.fireEvent(\'validatedrop\', overEvent) !== false &&portal.fireEvent(\'beforedragover\',overEvent) !== false){px.getProxy().setWidth(\'auto\');if(p){px.moveProxy(p.el.dom.parentNode, match ? p.el.dom : null);}else{px.moveProxy(c.el.dom, null);}this.lastPos = {c: c, col: col, p: match && p ? pos : false};this.scrollPos = portal.body.getScroll();portal.fireEvent(\'dragover\', overEvent);return overEvent.status;}else{return overEvent.status;}},notifyOut : function(){delete this.grid;},notifyDrop : function(dd, e, data){delete this.grid;if(!this.lastPos){return;}var c = this.lastPos.c, col = this.lastPos.col, pos = this.lastPos.p;var dropEvent = this.createEvent(dd, e, data, col, c,pos !== false ? pos : c.items.getCount());if(this.portal.fireEvent(\'validatedrop\', dropEvent) !== false &&this.portal.fireEvent(\'beforedrop\', dropEvent) !== false){dd.proxy.getProxy().remove();dd.panel.el.dom.parentNode.removeChild(dd.panel.el.dom);if(pos !== false){c.insert(pos, dd.panel);}else{c.add(dd.panel);}c.doLayout();this.portal.fireEvent(\'drop\', dropEvent);var st = this.scrollPos.top;if(st){var d = this.portal.body.dom;setTimeout(function(){d.scrollTop = st;}, 10);}}delete this.lastPos;},getGrid : function(){var box = this.portal.bwrap.getBox();box.columnX = [];this.portal.items.each(function(c){box.columnX.push({x: c.el.getX(), w: c.el.getWidth()});});return box;}});Ext.ux.PortalColumn = Ext.extend(Ext.Container, {layout: \'anchor\',autoEl: \'div\',defaultType: \'portlet\',cls:\'x-portal-column\'});Ext.reg(\'portalcolumn\', Ext.ux.PortalColumn);Ext.ux.Portlet = Ext.extend(Ext.Panel, {anchor: \'100%\',frame:true,collapsible:true,draggable:true,cls:\'x-portlet\'});Ext.reg(\'portlet\', Ext.ux.Portlet);Ext.state.Manager.setProvider(new Ext.state.CookieProvider());var tools = [{title:\'sd\',text:\'test\',handler: function(){Ext.Msg.alert(\'Message\', \'The Settings tool was clicked.\');}},{id:\'close\',handler: function(e, target, panel){panel.ownerCt.remove(panel, true);}}];Ext.reg(\'portal\', Ext.ux.Portal);Ext.state.Manager.setProvider(new Ext.state.CookieProvider());var viewport = new Ext.Viewport({layout:\'border\',items:[new Ext.BoxComponent({ region:\'north\',el: \'MAIN_NORTH\',height:32}),{region:\'west\',id:\'west-panel\',title:\'Promemoria\',split:true,width: 320,minSize: 175,maxSize: 400,collapsible: true,margins:\'0 0 0 5\',items: [{xtype:\'portal\',region:\'center\',margins:\'35 5 5 0\',items:[{style:\'padding:10px 0 10px 10px\',items:[{contentEl: \'IDFILTRIPERSONAL\',tools:[{id:\'plus\',handler: function(){for (var item in arrayData[\'AIP\'][11][\'FILTER\'][\'PERSONAL\'][\'ID\']) {arrayData[\'AIP\'][11][\'FILTER\'][\'PERSONAL\'][item]=1;}furoros.Runmodule(\'11\',\'REFRESH_PERSONAL\',\'APP\',\'\');furoros.Runmodule(\'11\',\'REFRESH_ROOM\',\'APP\',\'\');furoros.Runmodule(\'11\',\'REFRESH_SPEC\',\'APP\',\'\');furoros.Runmodule(\'11\',\'REFRESH_CALENDAR_MAIN\',\'APP\',\'\');}},{id:\'minus\',handler: function(){for (var item in arrayData[\'AIP\'][11][\'FILTER\'][\'PERSONAL\'][\'ID\']) {arrayData[\'AIP\'][11][\'FILTER\'][\'PERSONAL\'][item]=0;}furoros.Runmodule(\'11\',\'REFRESH_PERSONAL\',\'APP\',\'\');furoros.Runmodule(\'11\',\'REFRESH_ROOM\',\'APP\',\'\');furoros.Runmodule(\'11\',\'REFRESH_SPEC\',\'APP\',\'\');furoros.Runmodule(\'11\',\'REFRESH_CALENDAR_MAIN\',\'APP\',\'\');}}],title: \'PERSONALE\',html: \'\'},{contentEl: \'IDFILTRIROOM\',title: \'STANZE\',html: \'\',tools:[{id:\'minus\',handler: function(){for (var item in arrayData[\'AIP\'][11][\'FILTER\'][\'ROOM\'][\'ID\']) {arrayData[\'AIP\'][11][\'FILTER\'][\'ROOM\'][item]=0;}furoros.Runmodule(\'11\',\'REFRESH_ROOM\',\'APP\',\'\');furoros.Runmodule(\'11\',\'REFRESH_SPEC\',\'APP\',\'\');furoros.Runmodule(\'11\',\'REFRESH_PERSONAL\',\'APP\',\'\');furoros.Runmodule(\'11\',\'REFRESH_CALENDAR_MAIN\',\'APP\',\'\');}}]},{contentEl: \'IDFILTRISPEC\',title: \'SPECIALITA&apos;\',html: \'\',tools:[{id:\'minus\',handler: function(){for (var item in arrayData[\'AIP\'][11][\'FILTER\'][\'SPEC\'][\'ID\']) {arrayData[\'AIP\'][11][\'FILTER\'][\'SPEC\'][item]=0;}for (var item in arrayData[\'AIP\'][11][\'FILTER\'][\'SPECSPEC\'][\'ID\']) {arrayData[\'AIP\'][11][\'FILTER\'][\'SPECSPEC\'][item]=0;}furoros.Runmodule(\'11\',\'REFRESH_SPEC\',\'APP\',\'\');furoros.Runmodule(\'11\',\'REFRESH_ROOM\',\'APP\',\'\');furoros.Runmodule(\'11\',\'REFRESH_PERSONAL\',\'APP\',\'\');furoros.Runmodule(\'11\',\'REFRESH_CALENDAR_MAIN\',\'APP\',\'\');}}]},{contentEl: \'IDFILTRITOOLS\',title: \'TOOLS\',html: \'\'}]}]},{contentEl: \'MAIN_WEST\',border:false}]},new Ext.TabPanel({id:\'MAIN_TP\',region:\'center\',deferredRender:false,activeTab:0,items:[{contentEl:\'MAIN_CENTER1\',html:\'<br/><br/><br/><table align=center border=0 width=70%><tr><td><h2>Benvenuto.</h2><br/><p><font size=4 color=#376CAD>G</font><b>estione appuntamenti On Line</b> &egrave; un gestionale on-line che permette ...</p></td></tr></table>\',title: \'Benvenuto\',closable:true,autoScroll:true},{contentEl:\'IDAID11DIVCALENDAR\',html:\'\',title: \'Calendario\',closable:false,autoScroll:true}]})]});','creare div esterno per floating pane menu'),(3,2,'',0,'AID11DIVMENU.id=\'IDAID11DIVMENU\';',''),(4,3,'',0,'AID11DIVMENU.setAttribute(\'id\',\'IDAID11DIVMENU\');',''),(5,4,'',0,'',''),(6,5,'',0,'',''),(7,6,'',0,'AID11DIVMENU.style[\'id\']=\'IDAID11DIVMENU\';',''),(8,7,'',0,'document.getElementById(\'DIVAID11BIDKERNEL\').appendChild(AID11DIVMENU);','agiungere div per floating pane menu nel div della aplicazione'),(9,8,'',0,'var AID11FPMENU = dojo.widget.createWidget(\'FloatingPane\',{id:\'IDAID11FPMENU\', widgetId:\'WIDAID11FPMENU\',iconSrc:\'images/flatScreen.gif\',title: \'MENU\',displayMaximizeAction:\'true\',hasShadow:\'true\',displayCloseAction:false},AID11DIVMENU);','creare floating pane del menu'),(10,9,'',0,'AID11FPMENU.setContent(\\\"<div dojoType=\'ContentPane\' id=\'IDAID11CPMENUINT\'  widgetId=\'WIDAID11CPMENUINT\'></div>\\\");','creare div interno nel floating pane menu'),(11,10,'',1,'dojo.require(\'dojo.widget.Menu2\');dojo.widget.byId(\'WIDAID11CPMENUMENU\').setContent(\\\"<div dojoType=\'MenuBar2\'><div dojoType=\'MenuBarItem2\' caption=\'Menu rapido\' submenuId=\'submenuMenuRapido\'></div><div dojoType=\'MenuBarItem2\' caption=\'Report\' submenuId=\'submenuReport\'></div><div dojoType=\'MenuBarItem2\' caption=\'Configurazione\' submenuId=\'submenuConfigurazione\'></div></div><div dojoType=\'PopupMenu2\' widgetId=\'submenuMenuRapido\'  contextMenuForWindow=\'true\'><div dojoType=\'MenuItem2\' caption=\'Prendere appuntamento\'  onClick=\\\\\\\"furoros.Runmodule(\'11\',\'OS_MOD_GUI_APP2\',\'APP\',\'0:\\\"+new Date().getDate()+\\\":\\\"+(new Date().getMonth()+1)+\\\":\\\"+new Date().getFullYear()+\\\":0:\\\"+new Date().getHours()+\\\":00\')\\\\\\\"></div></div><div dojoType=\'PopupMenu2\' widgetId=\'submenuReport\'><div dojoType=\'MenuItem2\' caption=\'Lista di attesa\' onClick=\'\'></div><div dojoType=\'MenuItem2\' caption=\'Prima nota\' onClick=\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_MENUTREE_SELECT\',\'APP\',\'TREEMENU:CONFIG:DATA:PRIMANOTA\')\\\\\\\"></div></div><div dojoType=\'PopupMenu2\' widgetId=\'submenuConfigurazione\'><div dojoType=\'MenuItem2\' caption=\'Clienti\'  onClick=\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_MENUTREE_SELECT\',\'APP\',\'TREEMENU:CONFIG:DATA:CLIENT\')\\\\\\\"></div><div dojoType=\'MenuItem2\' caption=\'Dati interni\'  submenuId=\'submenuDatiInterni\'></div><div dojoType=\'MenuSeparator2\'></div><div dojoType=\'MenuItem2\' caption=\'Dati obbligatori\'  submenuId=\'submenuDatiObbligatori\'></div><div dojoType=\'MenuSeparator2\'></div><div dojoType=\'MenuItem2\' caption=\'Sistema\'  submenuId=\'submenuSistema\'></div></div><div dojoType=\'PopupMenu2\' widgetId=\'submenuDatiInterni\'><div dojoType=\'MenuItem2\' caption=\'Utenti del sistema\'  onClick=\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_MENUTREE_SELECT\',\'APP\',\'TREEMENU:CONFIG:DATA:USER\')\\\\\\\"></div><div dojoType=\'MenuItem2\' caption=\'Personale\'  onClick=\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_MENUTREE_SELECT\',\'APP\',\'TREEMENU:CONFIG:DATA:PERSONAL\')\\\\\\\"></div><div dojoType=\'MenuItem2\' caption=\'Stanze\'  onClick=\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_MENUTREE_SELECT\',\'APP\',\'TREEMENU:CONFIG:DATA:ROOM\')\\\\\\\"></div><div dojoType=\'MenuItem2\' caption=\'Categorie di specialita\'  onClick=\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_MENUTREE_SELECT\',\'APP\',\'TREEMENU:CONFIG:DATA:SPEC\')\\\\\\\"></div><div dojoType=\'MenuItem2\' caption=\'Specialita\'  onClick=\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_MENUTREE_SELECT\',\'APP\',\'TREEMENU:CONFIG:DATA:SPECSPEC\')\\\\\\\"></div><div dojoType=\'MenuItem2\' caption=\'Durata appuntamento\'  onClick=\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_MENUTREE_SELECT\',\'APP\',\'TREEMENU:CONFIG:DATA:PERIOD\')\\\\\\\"></div><div dojoType=\'MenuItem2\' caption=\'Fasce orarie\'  onClick=\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_MENUTREE_SELECT\',\'APP\',\'TREEMENU:CONFIG:DATA:TIME_DAY\')\\\\\\\"></div></div><div dojoType=\'PopupMenu2\' widgetId=\'submenuDatiObbligatori\'><div dojoType=\'MenuItem2\' caption=\'per cliente modalita&apos; &apos;Anagrafica&apos;\'  onClick=\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_MENUTREE_SELECT\',\'APP\',\'TREEMENU:CONFIG:DATA_VALIDATE:CLIENT\')\\\\\\\"></div><div dojoType=\'MenuItem2\' caption=\'per cliente modalita&apos; &apos;Appuntamento&apos;\'  onClick=\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_MENUTREE_SELECT\',\'APP\',\'TREEMENU:CONFIG:DATA_VALIDATE:CLIENT_APP\')\\\\\\\"></div><div dojoType=\'MenuItem2\' caption=\'per utente\'  onClick=\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_MENUTREE_SELECT\',\'APP\',\'TREEMENU:CONFIG:DATA_VALIDATE:USER\')\\\\\\\"></div><div dojoType=\'MenuItem2\' caption=\'per personale\'  onClick=\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_MENUTREE_SELECT\',\'APP\',\'TREEMENU:CONFIG:DATA_VALIDATE:PERSONAL\')\\\\\\\"></div></div><div dojoType=\'PopupMenu2\' widgetId=\'submenuSistema\'><div dojoType=\'MenuItem2\' caption=\'Interfaccia grafica\'  onClick=\\\\\\\"furoros.Runmodule(\'11\',\'EVENT_MENUTREE_SELECT\',\'APP\',\'TREEMENU:CONFIG:GUI:ALL\')\\\\\\\"></div></div>\\\");dojo.widget.byId(\'FILTRITOOLS\').setContent(\\\"<center><table align=\'center\' style=\'border:0px;background-color:white;\' width=\'100%\'><tr><td align=\'center\'><table style=\'border:0px;\' width=\'95%\'><tr><td><div lang=\'it_it\' style=\'border:0px;\' dojoType=\'datepicker\' widgetId=\'MENUDATEP\' onValueChanged=\\\\\\\"arrayData[\'AIP\'][11][\'CALENDAR\'][\'DATAFIRST\'] =this.value;furoros.Runmodule(\'11\',\'REFRESH_CALENDAR_MAIN\',\'APP\',\'1\');\\\\\\\"></div></td><td><div dojoType=\'timepicker\'  onValueChanged=\\\\\\\"\\\\\\\" lang=\'it_it\' onClick=\'alert(this.value)\'  style=\'border:0px;\'></div></td></tr></table></td></tr></table>\\\");','creare accordeon container'),(12,11,'REFRESH_PERSONAL',3,'','refresh del contenuto di personale'),(13,12,'REFRESH_ROOM',3,'','refresh del contenuto delle stanze'),(14,13,'REFRESH_SPEC',3,'','refresh del contenuto delle specialita\''),(15,14,'',1,'',''),(16,15,'GUI_CALENDAR',3,'','modulo calendar'),(17,16,'',1,'','refresh del contenuto di albero tree'),(18,17,'',1,'',''),(19,18,'',1,'',''),(20,19,'',1,'',''),(21,20,'',1,'',''),(22,21,'',1,'',''),(23,22,'',1,'',''),(24,24,'',1,'',''),(25,23,'',1,'',''),(26,25,'',1,'',''),(27,27,'',1,'',''),(28,26,'',1,'',''),(29,28,'',1,'',''),(30,29,'',1,'',''),(31,30,'',1,'',''),(32,31,'',1,'',''),(33,32,'',1,'',''),(39,43,'',1,'',''),(40,42,'',1,'',''),(41,41,'',1,'',''),(42,40,'',1,'',''),(43,39,'',1,'',''),(44,38,'',1,'',''),(34,33,'',1,'',''),(35,34,'',1,'',''),(36,35,'',1,'',''),(37,36,'',1,'',''),(38,37,'',1,'','');

--
-- Table structure for table `NOTES`
--

CREATE TABLE `NOTES` (
  `idNotes` bigint(20) NOT NULL AUTO_INCREMENT,
  `textNotes` text NOT NULL,
  PRIMARY KEY (`idNotes`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `NOTES`
--

INSERT INTO `NOTES` VALUES (1,'a');

--
-- Table structure for table `OS_DATA_ABBON_CLIENT`
--

CREATE TABLE `OS_DATA_ABBON_CLIENT` (
  `ID_ABBON` bigint(20) NOT NULL AUTO_INCREMENT,
  `ID_CLIENT` bigint(20) NOT NULL,
  `TOTALE` float NOT NULL DEFAULT 0,
  `JSON` text NOT NULL,
  `TIPO_SCONTO` tinyint(4) NOT NULL,
  `SCONTO` float NOT NULL,
  `OS_ID` bigint(20) NOT NULL,
  `OS_DATE_ADD` datetime NOT NULL,
  `OS_DATE_MOD` datetime NOT NULL,
  `OS_DATE_DEL` datetime NOT NULL,
  `OS_BARCODE` varchar(32) NOT NULL,
  PRIMARY KEY (`ID_ABBON`),
  KEY `ID_CLIENT` (`ID_CLIENT`),
  KEY `OS_BARCODE` (`OS_BARCODE`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `OS_DATA_ABBON_CLIENT`
--


--
-- Table structure for table `OS_DATA_APP`
--

CREATE TABLE `OS_DATA_APP` (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `CLIENT` bigint(20) NOT NULL,
  `SPEC` bigint(20) NOT NULL,
  `SPECSPEC` bigint(20) NOT NULL,
  `PERSONAL` bigint(20) NOT NULL,
  `ROOM` bigint(20) NOT NULL,
  `DATE` date NOT NULL,
  `TIME_BEGIN` time NOT NULL,
  `TIME_END` time NOT NULL,
  `DATE_GET` datetime NOT NULL,
  `DATE_CONFIRM` datetime NOT NULL,
  `STATUS` int(11) NOT NULL DEFAULT 0,
  `NOTE` varchar(2048) NOT NULL,
  `DATE_DONE` datetime DEFAULT NULL,
  `tipoPagamento` int(11) NOT NULL,
  `SCOUNT` float NOT NULL DEFAULT 0,
  `SCOUNT_TYPE` int(11) NOT NULL,
  `PRICE` float NOT NULL DEFAULT 0,
  `SCOUNT_VAL` int(11) NOT NULL DEFAULT 0,
  `accontoValue` float NOT NULL DEFAULT 0,
  `acconto` tinyint(4) NOT NULL,
  `ID_ABBON` bigint(20) NOT NULL,
  `IS_MANUALPRICE` tinyint(4) NOT NULL,
  `OS_ID` bigint(20) NOT NULL,
  `OS_DATE_ADD` datetime NOT NULL,
  `OS_DATE_MOD` datetime NOT NULL,
  `OS_DATE_DEL` datetime NOT NULL,
  `OLD_ID` bigint(20) NOT NULL,
  `TRAT_HOUR` varchar(5) NOT NULL,
  `OS_BARCODE` varchar(32) NOT NULL,
  PRIMARY KEY (`ID`),
  KEY `CLIENT` (`CLIENT`),
  KEY `SPEC` (`SPEC`),
  KEY `SPECSPEC` (`SPECSPEC`),
  KEY `PERSONAL` (`PERSONAL`),
  KEY `ROOM` (`ROOM`),
  KEY `DATE` (`DATE`),
  KEY `TIME_BEGIN` (`TIME_BEGIN`),
  KEY `TIME_END` (`TIME_END`),
  KEY `DATE_GET` (`DATE_GET`),
  KEY `DATE_CONFIRM` (`DATE_CONFIRM`),
  KEY `STATUS` (`STATUS`),
  KEY `NOTE` (`NOTE`(1000)),
  KEY `NOTE_2` (`NOTE`(1000)),
  KEY `DATE_DONE` (`DATE_DONE`),
  KEY `tipoPagamento` (`tipoPagamento`),
  KEY `SCOUNT` (`SCOUNT`),
  KEY `SCOUNT_TYPE` (`SCOUNT_TYPE`),
  KEY `PRICE` (`PRICE`),
  KEY `SCOUNT_VAL` (`SCOUNT_VAL`),
  KEY `accontoValue` (`accontoValue`),
  KEY `acconto` (`acconto`),
  KEY `ID_ABBON` (`ID_ABBON`),
  KEY `IS_MANUALPRICE` (`IS_MANUALPRICE`),
  KEY `OS_ID` (`OS_ID`),
  KEY `OS_DATE_ADD` (`OS_DATE_ADD`),
  KEY `OS_DATE_MOD` (`OS_DATE_MOD`),
  KEY `OS_DATE_DEL` (`OS_DATE_DEL`),
  KEY `OLD_ID` (`OLD_ID`),
  KEY `TRAT_HOUR` (`TRAT_HOUR`),
  KEY `OS_BARCODE` (`OS_BARCODE`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `OS_DATA_APP`
--


--
-- Table structure for table `OS_DATA_APP_DEL`
--

CREATE TABLE `OS_DATA_APP_DEL` (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `CLIENT` bigint(20) NOT NULL,
  `SPEC` bigint(20) NOT NULL,
  `SPECSPEC` bigint(20) NOT NULL,
  `PERSONAL` bigint(20) NOT NULL,
  `ROOM` bigint(20) NOT NULL,
  `DATE` date NOT NULL,
  `TIME_BEGIN` time NOT NULL,
  `TIME_END` time NOT NULL,
  `DATE_GET` datetime NOT NULL,
  `DATE_CONFIRM` datetime NOT NULL,
  `STATUS` int(11) NOT NULL DEFAULT 0,
  `NOTE` varchar(2048) NOT NULL,
  `DATE_DONE` datetime DEFAULT NULL,
  `tipoPagamento` int(11) NOT NULL,
  `SCOUNT` float NOT NULL DEFAULT 0,
  `SCOUNT_TYPE` int(11) NOT NULL,
  `PRICE` float NOT NULL DEFAULT 0,
  `SCOUNT_VAL` int(11) NOT NULL DEFAULT 0,
  `accontoValue` float NOT NULL DEFAULT 0,
  `acconto` tinyint(4) NOT NULL,
  `ID_ABBON` bigint(20) NOT NULL,
  `IS_MANUALPRICE` tinyint(4) NOT NULL,
  `OS_ID` bigint(20) NOT NULL,
  `OS_DATE_ADD` datetime NOT NULL,
  `OS_DATE_MOD` datetime NOT NULL,
  `OS_DATE_DEL` datetime NOT NULL,
  `OLD_ID` bigint(20) NOT NULL,
  `TRAT_HOUR` varchar(5) NOT NULL,
  `OS_BARCODE` varchar(32) NOT NULL,
  PRIMARY KEY (`ID`),
  KEY `STATUS` (`STATUS`),
  KEY `OS_BARCODE` (`OS_BARCODE`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `OS_DATA_APP_DEL`
--


--
-- Table structure for table `OS_DATA_APP_MOD`
--

CREATE TABLE `OS_DATA_APP_MOD` (
  `ID` bigint(20) NOT NULL,
  `CLIENT` bigint(20) NOT NULL,
  `SPEC` bigint(20) NOT NULL,
  `SPECSPEC` bigint(20) NOT NULL,
  `PERSONAL` bigint(20) NOT NULL,
  `ROOM` bigint(20) NOT NULL,
  `DATE` date NOT NULL,
  `TIME_BEGIN` time NOT NULL,
  `TIME_END` time NOT NULL,
  `DATE_GET` datetime NOT NULL,
  `DATE_CONFIRM` datetime NOT NULL,
  `STATUS` int(11) NOT NULL DEFAULT 0,
  `NOTE` varchar(2048) NOT NULL,
  `DATE_DONE` datetime DEFAULT NULL,
  `tipoPagamento` int(11) NOT NULL,
  `SCOUNT` float NOT NULL DEFAULT 0,
  `SCOUNT_TYPE` int(11) NOT NULL,
  `PRICE` float NOT NULL DEFAULT 0,
  `SCOUNT_VAL` int(11) NOT NULL DEFAULT 0,
  `accontoValue` float NOT NULL DEFAULT 0,
  `acconto` tinyint(4) NOT NULL,
  `ID_ABBON` bigint(20) NOT NULL,
  `IS_MANUALPRICE` tinyint(4) NOT NULL,
  `OS_ID` bigint(20) NOT NULL,
  `OS_DATE_ADD` datetime NOT NULL,
  `OS_DATE_MOD` datetime NOT NULL,
  `OS_DATE_DEL` datetime NOT NULL,
  `OLD_ID` bigint(20) NOT NULL,
  `TRAT_HOUR` varchar(5) NOT NULL,
  `OS_BARCODE` varchar(32) NOT NULL,
  PRIMARY KEY (`ID`),
  KEY `STATUS` (`STATUS`),
  KEY `STATUS_2` (`STATUS`),
  KEY `OS_BARCODE` (`OS_BARCODE`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `OS_DATA_APP_MOD`
--


--
-- Table structure for table `OS_DATA_APP_TRAT`
--

CREATE TABLE `OS_DATA_APP_TRAT` (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `ID_APP` bigint(20) NOT NULL,
  `ID_CAT` bigint(20) NOT NULL,
  `ID_TRAT` bigint(20) NOT NULL,
  `PRICE` bigint(20) NOT NULL,
  `OS_ID` bigint(20) NOT NULL,
  `OS_DATE_ADD` datetime NOT NULL,
  `OS_DATE_MOD` datetime NOT NULL,
  `OS_DATE_DEL` datetime NOT NULL,
  `OS_BARCODE` varchar(32) NOT NULL,
  PRIMARY KEY (`ID`),
  KEY `OS_BARCODE` (`OS_BARCODE`),
  KEY `ID_APP` (`ID_APP`),
  KEY `ID_CAT` (`ID_CAT`),
  KEY `ID_TRAT` (`ID_TRAT`),
  KEY `OS_ID` (`OS_ID`),
  KEY `OS_DATE_ADD` (`OS_DATE_ADD`),
  KEY `OS_DATE_MOD` (`OS_DATE_MOD`),
  KEY `OS_DATE_DEL` (`OS_DATE_DEL`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `OS_DATA_APP_TRAT`
--


--
-- Table structure for table `OS_DATA_BUONO`
--

CREATE TABLE `OS_DATA_BUONO` (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `ID_BUONO` bigint(20) NOT NULL DEFAULT 0,
  `ID_CAT` bigint(20) NOT NULL,
  `ID_TRAT` bigint(20) NOT NULL,
  `NUM` int(11) NOT NULL DEFAULT 1,
  `OS_ID` bigint(20) NOT NULL,
  `OS_DATE_ADD` datetime NOT NULL,
  `OS_DATE_MOD` datetime NOT NULL,
  `OS_DATE_DEL` datetime NOT NULL,
  `SESSION` varchar(128) NOT NULL,
  `TRAT_HOUR` varchar(5) NOT NULL,
  `OS_BARCODE` varchar(32) NOT NULL,
  PRIMARY KEY (`ID`),
  KEY `ID_BUONO` (`ID_BUONO`),
  KEY `SESSION` (`SESSION`),
  KEY `OS_BARCODE` (`OS_BARCODE`),
  KEY `ID_CAT` (`ID_CAT`),
  KEY `ID_TRAT` (`ID_TRAT`),
  KEY `OS_ID` (`OS_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `OS_DATA_BUONO`
--


--
-- Table structure for table `OS_DATA_BUONO_CLIENT`
--

CREATE TABLE `OS_DATA_BUONO_CLIENT` (
  `ID_BUONO` bigint(20) NOT NULL AUTO_INCREMENT,
  `ID_CLIENT` bigint(20) NOT NULL,
  `TOTALE` float NOT NULL DEFAULT 0,
  `TIPO_SCONTO` tinyint(4) NOT NULL,
  `SCONTO` float NOT NULL,
  `OS_ID` bigint(20) NOT NULL,
  `OS_DATE_ADD` datetime NOT NULL,
  `OS_DATE_MOD` datetime NOT NULL,
  `OS_DATE_DEL` datetime NOT NULL,
  `OS_BARCODE` varchar(32) NOT NULL,
  PRIMARY KEY (`ID_BUONO`),
  KEY `ID_CLIENT` (`ID_CLIENT`),
  KEY `OS_BARCODE` (`OS_BARCODE`),
  KEY `OS_ID` (`OS_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `OS_DATA_BUONO_CLIENT`
--


--
-- Table structure for table `OS_DATA_CLIENT`
--

CREATE TABLE `OS_DATA_CLIENT` (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `TYPE` int(11) NOT NULL DEFAULT 1,
  `NAME` varchar(32) NOT NULL,
  `SECONDNAME` varchar(32) NOT NULL,
  `MAIL` varchar(32) NOT NULL,
  `TEL` varchar(16) NOT NULL,
  `CEL` varchar(16) NOT NULL,
  `ADDRESS` varchar(128) NOT NULL,
  `CAP` varchar(5) NOT NULL,
  `PREF_DAY` tinyint(1) NOT NULL DEFAULT 0,
  `PREF_PERSONAL` tinyint(1) NOT NULL DEFAULT 0,
  `PREF_TIME` tinyint(1) NOT NULL DEFAULT 0,
  `PREF_SPEC` tinyint(1) NOT NULL DEFAULT 0,
  `LOGIN` varchar(16) NOT NULL,
  `PW` varchar(16) NOT NULL,
  `COLOR` varchar(16) NOT NULL,
  `IMG` varchar(128) NOT NULL,
  `PERIOD` bigint(20) NOT NULL,
  `TIME_DAY` bigint(20) NOT NULL,
  `CITY` varchar(64) NOT NULL,
  `PROFESSION` varchar(64) NOT NULL,
  `SEX` varchar(1) NOT NULL DEFAULT 'F',
  `BIRTHDAY` date NOT NULL,
  `SCOUNT` bigint(20) NOT NULL DEFAULT 0,
  `BUG` bigint(20) NOT NULL,
  `BUG_DATE` longtext NOT NULL,
  `TEL2` varchar(16) DEFAULT NULL,
  `TEL3` varchar(16) DEFAULT NULL,
  `PROVINCIA` varchar(2) DEFAULT NULL,
  `CF` varchar(16) DEFAULT NULL,
  `PIVA` varchar(11) DEFAULT NULL,
  `NOTE` text DEFAULT NULL,
  `LUOGONASCITA` varchar(64) DEFAULT NULL,
  `PW_SEND` tinyint(4) NOT NULL DEFAULT 0,
  `disdette` bigint(20) NOT NULL DEFAULT 0,
  `buche` bigint(20) NOT NULL DEFAULT 0,
  `PREF_PERS` bigint(20) NOT NULL,
  `BUONO` float NOT NULL DEFAULT 0,
  `ABBON` float NOT NULL DEFAULT 0,
  `privacy` tinyint(4) NOT NULL DEFAULT 0,
  `DA_PAGARE` float NOT NULL,
  `OMAGGI` int(11) NOT NULL DEFAULT 0,
  `IS_COLOR` tinyint(4) NOT NULL DEFAULT 0,
  `IS_DELETED` tinyint(4) NOT NULL DEFAULT 0,
  `OS_ID` bigint(20) NOT NULL,
  `OS_DATE_ADD` datetime NOT NULL,
  `OS_DATE_MOD` datetime NOT NULL,
  `OS_DATE_DEL` datetime NOT NULL,
  `OS_BARCODE` varchar(32) NOT NULL,
  PRIMARY KEY (`ID`),
  KEY `IS_DELETED` (`IS_DELETED`),
  KEY `OS_BARCODE` (`OS_BARCODE`),
  KEY `OS_ID` (`OS_ID`),
  KEY `NAME` (`NAME`),
  KEY `SECONDNAME` (`SECONDNAME`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `OS_DATA_CLIENT`
--


--
-- Table structure for table `OS_DATA_CLIENTSPEC`
--

CREATE TABLE `OS_DATA_CLIENTSPEC` (
  `ID` bigint(20) NOT NULL,
  `CLIENT` bigint(20) NOT NULL,
  `SPEC` bigint(20) NOT NULL,
  `SPECSPEC` bigint(20) NOT NULL,
  `POINT` int(11) NOT NULL,
  `OS_BARCODE` varchar(32) NOT NULL,
  KEY `OS_BARCODE` (`OS_BARCODE`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `OS_DATA_CLIENTSPEC`
--


--
-- Table structure for table `OS_DATA_CLIENT_APP_VALIDATE`
--

CREATE TABLE `OS_DATA_CLIENT_APP_VALIDATE` (
  `NAME` tinyint(1) NOT NULL,
  `SECONDNAME` tinyint(1) NOT NULL,
  `MAIL` tinyint(1) NOT NULL,
  `TEL` tinyint(1) NOT NULL,
  `CEL` tinyint(1) NOT NULL,
  `ADDRESS` tinyint(1) NOT NULL,
  `CAP` tinyint(1) NOT NULL,
  `PREF_PERSONAL` tinyint(1) NOT NULL,
  `PREF_TIME` tinyint(1) NOT NULL,
  `PREF_DAY` tinyint(1) NOT NULL,
  `PREF_SPEC` tinyint(1) NOT NULL,
  `LOGIN` tinyint(1) NOT NULL,
  `PW` tinyint(1) NOT NULL,
  `COLOR` tinyint(1) NOT NULL,
  `IMG` tinyint(1) NOT NULL,
  `PERIOD` tinyint(1) NOT NULL,
  `TIME_DAY` tinyint(1) NOT NULL,
  `CITY` tinyint(1) NOT NULL,
  `PROFESSION` tinyint(1) NOT NULL,
  `BIRTHDAY` tinyint(1) NOT NULL,
  `SEX` tinyint(1) NOT NULL,
  `SCOUNT` tinyint(4) NOT NULL DEFAULT 0,
  `OS_BARCODE` varchar(32) NOT NULL,
  KEY `OS_BARCODE` (`OS_BARCODE`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `OS_DATA_CLIENT_APP_VALIDATE`
--

INSERT INTO `OS_DATA_CLIENT_APP_VALIDATE` VALUES (1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'');

--
-- Table structure for table `OS_DATA_CLIENT_DATA`
--

