CreateLinkByDestination("Tag- und Nachtstunden in $Location", $YearMediaId, $categoryId_WebFrontBottom, 10); CreateLinkByDestination('Show Limited', $DisplaySwitchId, $categoryId_WebFrontRight, 10); CreateLinkByDestination('Aktueller Tag', $DayMediaId, $categoryId_WebFrontRight, 20); $UId = date('Hi'); $tabItem = $WFC10_TabPaneItem.$WFC10_TabItem; DeleteWFCItems($WFC10_ConfigId, 'WeatherTPSunrise'); DeleteWFCItems($WFC10_ConfigId, $tabItem); CreateWFCItemTabPane ($WFC10_ConfigId, $WFC10_TabPaneItem, $WFC10_TabPaneParent, $WFC10_TabPaneOrder, $WFC10_TabPaneName, $WFC10_TabPaneIcon); CreateWFCItemSplitPane ($WFC10_ConfigId, $tabItem, $WFC10_TabPaneItem, $WFC10_TabOrder, $WFC10_TabName, $WFC10_TabIcon, 1 /*Vertical*/, 300 /*Width*/, 1 /*Target=Pane2*/, 1/*UsePixel*/, 'true'); CreateWFCItemSplitPane ($WFC10_ConfigId, $tabItem.'_Left', $tabItem, 10, '', '', 0 /*Horicontal*/, 205 /*Height*/, 0 /*Target=Pane1*/, 1 /*UsePixel*/, 'true'); CreateWFCItemCategory ($WFC10_ConfigId, $tabItem.'_Right'.$UId, $tabItem, 20, '', '', $categoryId_WebFrontRight /*BaseId*/, 'false' /*BarBottomVisible*/); CreateWFCItemSplitPane ($WFC10_ConfigId, $tabItem.'_Top', $tabItem.'_Left', 10, '', '', 1 /*Vertical*/, 50 /*Width*/, 0 /*Target=Pane1*/, 0 /*UsePercentage*/, 'true'); CreateWFCItemCategory ($WFC10_ConfigId, $tabItem.'_Bottom'.$UId, $tabItem.'_Left', 20, '', '', $categoryId_WebFrontBottom /*BaseId*/, 'false' /*BarBottomVisible*/); CreateWFCItemCategory ($WFC10_ConfigId, $tabItem.'_TopLeft'.$UId, $tabItem.'_Top', 10, '', '', $categoryId_WebFrontTopLeft /*BaseId*/, 'false' /*BarBottomVisible*/); CreateWFCItemCategory ($WFC10_ConfigId, $tabItem.'_TopRight'.$UId, $tabItem.'_Top', 20, '', '', $categoryId_WebFrontTopRight /*BaseId*/, 'false' /*BarBottomVisible*/); ReloadAllWebFronts(); } // ---------------------------------------------------------------------------------------------------------------------------- // Mobile Installation // ---------------------------------------------------------------------------------------------------------------------------- if ($Mobile_Enabled) { $mobileId = CreateCategoryPath($Mobile_Path, $Mobile_PathOrder, $Mobile_PathIcon); $mobileId = CreateCategoryPath($Mobile_Path.'.'.$Mobile_Name, $Mobile_Order, $Mobile_Icon); $InstanceId = CreateDummyInstance("Sonnen-Aufgang/Untergang", $mobileId, 10); CreateLink('Begin/Ende', $SunriseDisplay, $InstanceId, 10); CreateLink('Limits', $SunriseLimits, $InstanceId, 20); $InstanceId = CreateDummyInstance("Zivile Dämmerung", $mobileId, 20); CreateLink('Begin/Ende', $CivilDisplay, $InstanceId, 10);
$variableIdStatus = CreateVariable(IPSMMG_VAR_ACTION, 3 /*String*/, $CategoryIdData, 10, '~String', null, 'Overview', ''); $variableIdModule = CreateVariable(IPSMMG_VAR_MODULE, 3 /*String*/, $CategoryIdData, 20, '~String', null, '', ''); $variableIdInfo = CreateVariable(IPSMMG_VAR_INFO, 3 /*String*/, $CategoryIdData, 30, '~String', null, '', ''); $variableIdHTML = CreateVariable(IPSMMG_VAR_HTML, 3 /*String*/, $CategoryIdData, 40, '~HTMLBox', null, '<iframe frameborder="0" width="100%" height="600px" src="../user/IPSModuleManagerGUI/IPSModuleManagerGUI.php"</iframe>', 'Information'); // ---------------------------------------------------------------------------------------------------------------------------- // Webfront Installation // ---------------------------------------------------------------------------------------------------------------------------- if ($WFC10_Enabled) { $categoryId_WebFront = CreateCategoryPath($WFC10_Path); EmptyCategory($categoryId_WebFront); CreateLink('IPSLibrary', $variableIdHTML, $categoryId_WebFront, 10); // System Tabpane CreateWFCItemTabPane ($WFC10_ConfigId, $WFC10_TabPaneItem, $WFC10_TabPaneParent, $WFC10_TabPaneOrder, $WFC10_TabPaneName, $WFC10_TabPaneIcon); // IPSLibrary Tabpane $tabItem = $WFC10_TabPaneItem.$WFC10_TabItem; DeleteWFCItems($WFC10_ConfigId, $tabItem); //CreateWFCItemExternalPage ($WFC10_ConfigId, $tabItem, $WFC10_TabPaneItem, $WFC10_TabOrder, $WFC10_TabName, $WFC10_TabIcon, "user\/IPSModuleManagerGUI\/IPSModuleManagerGUI.php", 'false' /*BarBottomVisible*/); CreateWFCItemCategory ($WFC10_ConfigId, $tabItem, $WFC10_TabPaneItem, $WFC10_TabOrder, $WFC10_TabName, $WFC10_TabIcon, $categoryId_WebFront, 'false' /*BarBottomVisible*/); ReloadAllWebFronts(); } // ---------------------------------------------------------------------------------------------------------------------------- // Mobile Installation // ---------------------------------------------------------------------------------------------------------------------------- // Not Supported ?>
$ID_CategorySettingsWidget = CreateCategory( 'Widget', $ID_CategorySettings, 200); $ID_CategorySettingsWebFront = CreateCategory( 'WebFront',$ID_CategorySettings, 300); $ID_CategorySettingsIPS = CreateCategory( 'IPS', $ID_CategorySettings, 400); $ID_CategorySettingsFile = CreateCategory( 'File', $ID_CategorySettings, 500); $ID_CategorySettingsLog4IPS = CreateCategory( 'Log4IPS', $ID_CategorySettings, 600); $ID_CategorySettingsEMail = CreateCategory( 'EMail', $ID_CategorySettings, 700); $ID_CategorySettingsProwl = CreateCategory( 'Prowl', $ID_CategorySettings, 800); $UniqueId = date('Hi'); DeleteWFCItems($WFC10_ConfigId, 'SystemTP_LogWindow'); DeleteWFCItems($WFC10_ConfigId, 'SystemTP_LogSettings'); DeleteWFCItems($WFC10_ConfigId, $WFC10_TabPaneItem.$WFC10_TabItem1); DeleteWFCItems($WFC10_ConfigId, $WFC10_TabPaneItem.$WFC10_TabItem2); CreateWFCItemTabPane ($WFC10_ConfigId, $WFC10_TabPaneItem, $WFC10_TabPaneParent, $WFC10_TabPaneOrder, $WFC10_TabPaneName, $WFC10_TabPaneIcon); CreateWFCItemCategory ($WFC10_ConfigId, $WFC10_TabPaneItem.$WFC10_TabItem1.$UniqueId, $WFC10_TabPaneItem, $WFC10_TabOrder1, $WFC10_TabName1, $WFC10_TabIcon1, $ID_CategoryOutput /*BaseId*/, 'false' /*BarBottomVisible*/); CreateWFCItemCategory ($WFC10_ConfigId, $WFC10_TabPaneItem.$WFC10_TabItem2.$UniqueId, $WFC10_TabPaneItem, $WFC10_TabOrder2, $WFC10_TabName2, $WFC10_TabIcon2, $ID_CategorySettings /*BaseId*/, 'true' /*BarBottomVisible*/); CreateLink('Logging Window', $ID_HtmlOutMsgList, $ID_CategoryOutput, 10); // Output Overview CreateLink('Output Widget', $ID_SingleOutEnabled, $ID_CategorySettings, 10); CreateLink('Output WebFront', $ID_HtmlOutEnabled, $ID_CategorySettings, 20); CreateLink('Output IPS', $ID_IPSOutEnabled, $ID_CategorySettings, 30); CreateLink('Output File', $ID_FileOutEnabled, $ID_CategorySettings, 40); CreateLink('Output Log4IPS', $ID_Log4IPSOutEnabled, $ID_CategorySettings, 50); CreateLink('Output EMail', $ID_EMailOutEnabled, $ID_CategorySettings, 60); CreateLink('Output Echo', $ID_EchoOutEnabled, $ID_CategorySettings, 70); CreateLink('Output Prowl', $ID_ProwlOutEnabled, $ID_CategorySettings, 80); // Output Detail CreateLink('Output Enabled', $ID_SingleOutEnabled, $ID_CategorySettingsWidget, 10);
CreateWFCItemCategory ($WFC10_ConfigId, $WFC10_TabPaneItem.'_OVTop2', $WFC10_TabPaneItem.'_OVTop', 10, 'Column_2', '', $WebFrontOverviewTop2 /*BaseId*/, 'false' /*BarBottomVisible*/); CreateWFCItemCategory ($WFC10_ConfigId, $WFC10_TabPaneItem.'_OVBottom1',$WFC10_TabPaneItem.'_OVBottom', 20, 'Column_1', '', $WebFrontOverviewBottom1 /*BaseId*/, 'false' /*BarBottomVisible*/); CreateWFCItemCategory ($WFC10_ConfigId, $WFC10_TabPaneItem.'_OVBottom2',$WFC10_TabPaneItem.'_OVBottom', 20, 'Column_2', '', $WebFrontOverviewBottom2 /*BaseId*/, 'false' /*BarBottomVisible*/); // Webfront Overview $Idx = 10; foreach ($WaterConfig as $CircleId=>$CircleData) { $CirclyId = get_WateringCirclyId($CircleId, $CategoryIdCircles); $CircleName = $CircleData[c_Property_Name]; // Overview Data CreateLink ($CircleName, get_WateringControlId(c_Control_Active, $CirclyId), $WebFrontOverviewTop1, $Idx); CreateLinkByDestination ('Status', get_WateringControlId(c_Control_ToBeDone, $CirclyId), $WebFrontOverviewTop2, $Idx); // Detailed CirclyData $WebFrontDetailId = CreateCategory($CircleName, $WebFrontId, 100+$Idx); CreateWFCItemCategory ($WFC10_ConfigId, $WFC10_TabPaneItem.'_'.$Idx,$WFC10_TabPaneItem.'', 100+$Idx, $CircleName, '', $WebFrontDetailId /*BaseId*/, 'false' /*BarBottomVisible*/); CreateLink('Status', get_WateringControlId(c_Control_Active, $CirclyId), $WebFrontDetailId, 10); CreateLink('Automatik', get_WateringControlId(c_Control_Automatic, $CirclyId), $WebFrontDetailId, 20); CreateLink('Programm', get_WateringControlId(c_Control_Program, $CirclyId), $WebFrontDetailId, 30); CreateLink('Regen Sensor', get_WateringControlId(c_Control_Sensor, $CirclyId), $WebFrontDetailId, 35); CreateLink('Beregnungs Dauer', get_WateringControlId(c_Control_Duration, $CirclyId), $WebFrontDetailId, 40); CreateLink('Start Zeit', get_WateringControlId(c_Control_StartTime, $CirclyId), $WebFrontDetailId, 50); $Idx = $Idx + 10; } // Bottom Left CreateLink('Meldungen', $ControlIdLog, $WebFrontOverviewBottom1, 10); // Bottom Right CreateLink('Automatic Ein', $ScriptIdAutomaticOn, $WebFrontOverviewBottom2, 10); CreateLink('Automatic Aus', $ScriptIdAutomaticOff, $WebFrontOverviewBottom2, 20);