Browse Source

Anbindung an REST in Kern 6.0 #1

master
Daniel Quathamer 1 week ago
parent
commit
8d411f3096
  1. 11
      build.xml
  2. 10
      conf/excludes.txt
  3. 4
      conf/includes.txt
  4. 716
      conf/portal.xml
  5. 19
      src-modules/module/portal/conf/portal.xml
  6. 12
      src-modules/module/portal/masken/52000_maskeninfo.unl
  7. 7
      src-modules/module/portal/schluesseltabellen/portal_layout_fuellen.sql
  8. 33
      src/de/superx/portal/PortalConfig.java
  9. 151
      src/de/superx/portal/PortalElement.java
  10. BIN
      superx/WEB-INF/lib/superx-portal.jar
  11. 3
      superx/edit/portal/portal_htmlhead.inc
  12. 42
      superx/edit/portal/portal_init.inc
  13. 3
      superx/edit/portal/portal_menue_gang.jsp
  14. 35
      superx/edit/portal/portal_show.jsp
  15. 13
      superx/edit/portal/portal_show_bulma_columns.inc
  16. 43
      superx/edit/portal/portal_show_content_maske.inc
  17. 4
      superx/edit/portal/portal_show_frameset_gang.inc
  18. 84
      superx/edit/portal/portal_show_header_menu_tab_flexbox.inc
  19. 82
      superx/edit/portal/portal_show_header_tab_flexbox.inc
  20. 142
      superx/edit/portal/portal_viewer.js

11
build.xml

@ -10,6 +10,10 @@ ant -DMODULE_PATH=$PORTAL_PFAD -DWEBAPP_DIR=$WEBAPP -DMODULE=portal dist @@ -10,6 +10,10 @@ ant -DMODULE_PATH=$PORTAL_PFAD -DWEBAPP_DIR=$WEBAPP -DMODULE=portal dist
PORTAL-JAR erzeugen:
ant -DWEBAPP=$WEBAPP distPortal
für Kern 5.3:
SQL_ENV von KERN 5.3 laden, dann
ant -DWEBAPP=$WEBAPP distPortalJava8
ant -DWEBAPP=$WEBAPP cleanBuildPath
-->
@ -67,14 +71,15 @@ ant -DWEBAPP=$WEBAPP cleanBuildPath @@ -67,14 +71,15 @@ ant -DWEBAPP=$WEBAPP cleanBuildPath
<!--WEB-INF/lib-->
<fileset dir="${WEBAPP}/WEB-INF">
<include name="lib/**/*.jar" />
<!--<include name="lib_ext/**/*.jar" />-->
<include name="classes" />
</fileset>
</path>
<path id="processor.path">
<pathelement location="lib/spring-context-indexer-${spring.version}.jar"/>
</path>
<!--<path id="processor.path">
<pathelement location="${LIB_EXT_SUPERX_DIR}/spring-context-indexer-${spring.version}.jar"/>
</path>-->
<condition property="isWindoze">
<os family="windows" />
</condition>

10
conf/excludes.txt

@ -0,0 +1,10 @@ @@ -0,0 +1,10 @@
rohdaten/ETL_ENV
rohdaten/*.properties
preparation.sql
finalize.sql
rohdaten/*.err
*.log
*.err
rohdaten/unl/*
conf/customize.sql
conf/*.log

4
conf/includes.txt

@ -0,0 +1,4 @@ @@ -0,0 +1,4 @@
doku/portal_modul/portal.html
WEB-INF/conf/edustore/db/bin/SQL_ENV_portal.sam
WEB-INF/lib/superx-portal.jar

716
conf/portal.xml

@ -0,0 +1,716 @@ @@ -0,0 +1,716 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--<!DOCTYPE module SYSTEM "../../../conf/superx-module.dtd"> -->
<module name="portal" version="0.1b" sachgebiet_id="380"
sachgebiet="Portalkonfiguration" systeminfo_id="380"
system="Portalkonfiguration" thema="Portalkonfiguration" thema_parent="Administration">
<database name="superx" system="superx">
<sachgebiete>
<sachgebiet id="381" name="Portalkonfiguration Administr."
rightname="CS_BIA_ADMINISTRATE_TOPIC_AREA[PORTAL]" />
</sachgebiete>
<table name="portal_config" thema="Portalkonfiguration" caption="Portalkonfigurationen" typ="Schlüsseltabelle"
releaseUnload="empty">
<description>Schlüsseltabelle für Portalkonfigurationen</description>
<columns>
<column name="tid" type="SERIAL" size="" default="" notnull="true" description="tid" isKey="true"/>
<column name="uniquename" type="VARCHAR" size="255" default="" notnull="true" description="Schlüssel" />
<column name="caption" type="VARCHAR" size="255" default="" notnull="" description="Bezeichnung" />
<column name="userinfo_id" type="INTEGER" size="255" default="" notnull="" description="Benutzer_in"><comment> (optional)</comment></column>
<column name="print_maskeninfo_id" type="INTEGER" size="255" default="" notnull="" description="Maske für Druckversion" />
<column name="booklet_stylesheet" type="VARCHAR" size="255" default="" notnull="" description="Stylesheet für Druckversion" />
<column name="id_param_name" type="VARCHAR" size="255" default="" notnull="" description="ID-Parametername" ><comment> (optional für Filterung)</comment></column>
</columns>
<primaryKeys><rs>
<row>
<fld name='table_cat'>superx</fld>
<fld name='table_schem'>superx</fld>
<fld name='table_name'>portal_config</fld>
<fld name='column_name'>tid</fld>
<fld name='key_seq'>1</fld>
<fld name='pk_name'>portal_config_pk</fld>
</row>
</rs>
</primaryKeys>
<indexes>
</indexes>
</table>
<table name="portal_config_tab" thema="Portalkonfiguration" caption="Portalkonfiguration Reiter" typ="Datentabelle"
releaseUnload="demo">
<description>Portal-Tab Metadaten</description>
<columns>
<column name="tid" type="SERIAL" size="" default="" notnull="true" description="tid" isKey="true"/>
<column name="portal_config_id" type="INTEGER" size="255" default="" isKey="true" notnull="true" description="Dashboard" />
<column name="caption" type="VARCHAR" size="255" default="" notnull="" description="Bezeichnung" />
<column name="print_maskeninfo_id" type="INTEGER" size="255" default="" notnull="" description="Maske für Druckversion" />
<column name="booklet_stylesheet" type="VARCHAR" size="255" default="" notnull="" description="Stylesheet für Druckversion" />
<column name="sortnr" type="SMALLINT" size="255" default="0" notnull="false" description="Sortiernr." sortable="true" ><comment></comment></column>
<column name="tab_id" type="VARCHAR" size="255" default="" notnull="true" description="HTML-Element ID" />
<column name="target_url" type="VARCHAR" size="255" default="" notnull="" description="Ziel-URL" ><comment>bei Frames</comment></column>
<column name="target_window" type="VARCHAR" size="255" default="" notnull="" description="Ziel-Fenster" ><comment>bei Frames</comment></column>
<column name="target_div" type="VARCHAR" size="255" default="" notnull="" description="Ziel-DIV" ><comment>bei DOM</comment></column>
<column name="active" type="SMALLINT" size="" default="1"
notnull="true" description="Aktiv" />
</columns>
<primaryKeys><rs>
<row>
<fld name='table_cat'>superx</fld>
<fld name='table_schem'>superx</fld>
<fld name='table_name'>portal_config_tab</fld>
<fld name='column_name'>tid</fld>
<fld name='key_seq'>1</fld>
<fld name='pk_name'>portal_config_tab_pk</fld>
</row>
</rs>
</primaryKeys>
<indexes>
</indexes>
</table>
<table name="portal_config_menu" thema="Portalkonfiguration" caption="Portalkonfiguration Menü" typ="Datentabelle"
releaseUnload="demo">
<description>Portalkonfiguration-Menü Metadaten</description>
<columns>
<column name="tid" type="SERIAL" size="" default="" notnull="true" description="tid" isKey="true"/>
<column name="portal_config_id" type="INTEGER" size="255" default="" isKey="true" notnull="true" description="Portalkonfiguration" />
<column name="caption" type="VARCHAR" size="255" default="" notnull="" description="Bezeichnung" />
<column name="maskeninfo_id" type="INTEGER" size="255" default="" notnull="" description="Maske" />
<column name="js_handler" type="VARCHAR" size="255" default="" notnull="" description="Javascript Methode" />
</columns>
<primaryKeys><rs>
<row>
<fld name='table_cat'>superx</fld>
<fld name='table_schem'>superx</fld>
<fld name='table_name'>portal_config_menu</fld>
<fld name='column_name'>tid</fld>
<fld name='key_seq'>1</fld>
<fld name='pk_name'>portal_config_menu_pk</fld>
</row>
</rs>
</primaryKeys>
<indexes>
</indexes>
</table>
<table name="portal_element" thema="Portalkonfiguration" caption="Portalelement" typ="Datentabelle"
releaseUnload="demo">
<description>Portal-Elemente</description>
<columns>
<column name="tid" type="SERIAL" size="" default="" notnull="true" description="tid" isKey="true"/>
<column name="element_type_id" type="INTEGER" size="255" default="1" notnull="true" description="Art des Elements" ><comment>Maske, Wiki, static_html, dbform</comment></column>
<column name="caption" type="VARCHAR" size="255" default="" notnull="" description="Bezeichnung" />
<column name="uniquename" type="VARCHAR" size="255" default="" notnull="" description="Schlüssel" />
<column name="onclick_event" type="VARCHAR" size="255" default="" notnull="" description="Mausklick-Ereignis" ><comment>JS-Hander, wenn auf das Element geklickt wird</comment></column>
<column name="description" type="VARCHAR" size="255" default="" notnull="" description="Beschreibung" />
<column name="open_modal_card_detail" type="SMALLINT" size="255" default="1" notnull="" description="Grafik bei Mausklick vergrößern" />
<column name="src_url" type="VARCHAR" size="255" default="" notnull="" description="URL" />
<column name="content_static" type="TEXT" size="255" default="" notnull="" description="Statischer Inhalt" ><comment>Bei Wiki und static_html</comment></column>
<column name="content_maskeninfo_id" type="INTEGER" size="255" default="" notnull="" description="Detail-Maske" />
<column name="content_chart_uniquename" type="VARCHAR" size="255" default="" notnull="" description="Detail-Maske Grafik" />
<column name="content_rpta_column_layout_uniquename" type="VARCHAR" size="255" default="" notnull="" description="Detail-Maske Spaltenlayout" />
<column name="content_tablestylesheet" type="VARCHAR" size="255" default="" notnull="" description="Detail-Maske Stylesheet" />
<column name="link_maskeninfo_id" type="INTEGER" size="255" default="" notnull="" description="Detail-Maske" />
<column name="link_chart_uniquename" type="VARCHAR" size="255" default="" notnull="" description="Detail-Maske Grafik" />
<column name="link_tablestylesheet" type="VARCHAR" size="255" default="" notnull="" description="Detail-Maske Stylesheet" />
<column name="active" type="SMALLINT" size="" default="1"
notnull="true" description="Aktiv" />
</columns>
<primaryKeys><rs>
<row>
<fld name='table_cat'>superx</fld>
<fld name='table_schem'>superx</fld>
<fld name='table_name'>portal_element</fld>
<fld name='column_name'>tid</fld>
<fld name='key_seq'>1</fld>
<fld name='pk_name'>portal_element_pk</fld>
</row>
</rs>
</primaryKeys>
<indexes>
</indexes>
</table>
<table name="portal_element_type" thema="Portalkonfiguration" caption="Portalelement Typ" typ="Schlüsseltabelle"
releaseUnload="empty">
<description>Schlüsseltabelle für Arten von Portalelementen</description>
<columns>
<column name="tid" type="SERIAL" size="" default="" notnull="true" description="tid" isKey="true"/>
<column name="uniquename" type="VARCHAR" size="255" default="" notnull="true" description="Schlüssel" />
<column name="caption" type="VARCHAR" size="255" default="" notnull="" description="Bezeichnung" />
</columns>
<primaryKeys><rs>
<row>
<fld name='table_cat'>superx</fld>
<fld name='table_schem'>superx</fld>
<fld name='table_name'>portal_element_type</fld>
<fld name='column_name'>tid</fld>
<fld name='key_seq'>1</fld>
<fld name='pk_name'>portal_element_type_pk</fld>
</row>
</rs>
</primaryKeys>
<indexes>
</indexes>
</table>
<table name="portal_element_role" thema="Portalkonfiguration" caption="Portalelement Rolle" typ="Schlüsseltabelle"
releaseUnload="empty">
<description>Schlüsseltabelle für Rollen von Portalelementen</description>
<columns>
<column name="tid" type="SERIAL" size="" default="" notnull="true" description="tid" isKey="true"/>
<column name="uniquename" type="VARCHAR" size="255" default="" notnull="true" description="Schlüssel" />
<column name="caption" type="VARCHAR" size="255" default="" notnull="" description="Bezeichnung" />
<column name="is_dynamic" type="SMALLINT" size="255" default="" notnull="" description="Dynamisch" />
</columns>
<primaryKeys><rs>
<row>
<fld name='table_cat'>superx</fld>
<fld name='table_schem'>superx</fld>
<fld name='table_name'>portal_element_role</fld>
<fld name='column_name'>tid</fld>
<fld name='key_seq'>1</fld>
<fld name='pk_name'>portal_element_role_pk</fld>
</row>
</rs>
</primaryKeys>
<indexes>
</indexes>
</table>
<table name="portal_config2element" thema="Portalkonfiguration" caption="Element zu Portal" typ="Datentabelle"
releaseUnload="demo">
<description>Zuordnung Element zu Portal</description>
<columns>
<column name="tid" type="SERIAL" size="" default="" notnull="true" description="tid" isKey="true"/>
<column name="portal_config_id" type="INTEGER" size="255" default="" isKey="true" notnull="true" description="Portal" />
<column name="portal_element_id" type="INTEGER" size="255" default="" isKey="true" notnull="true" description="Portal-Element" />
<column name="portal_config_tab_id" type="INTEGER" size="255" default="" isKey="" notnull="false" description="Reiter" />
<column name="sortnr" type="INTEGER" size="255" default="" isKey="" notnull="false" description="Sortiernummer" />
<column name="element_role_id" type="INTEGER" size="255" default="" isKey="" notnull="false" description="Elementrolle" ><comment>Header,Footer,Sidebar-left, sidebar-right, content</comment></column>
<column name="is_foldable" type="INTEGER" size="255" default="" isKey="" notnull="false" description="Einklappbar" />
<column name="is_maximizable" type="INTEGER" size="255" default="" isKey="" notnull="false" description="Maximierbar" />
<column name="min_width" type="INTEGER" size="255" default="" isKey="" notnull="false" description="Minimale Breite" ><comment>Wert 1-32 (max)</comment></column>
<column name="height" type="INTEGER" size="255" default="" isKey="" notnull="false" description="Höhe" ><comment>in px</comment></column>
<column name="active" type="SMALLINT" size="" default="1"
notnull="true" description="Aktiv" />
</columns>
<primaryKeys><rs>
<row>
<fld name='table_cat'>superx</fld>
<fld name='table_schem'>superx</fld>
<fld name='table_name'>portal_config2element</fld>
<fld name='column_name'>tid</fld>
<fld name='key_seq'>1</fld>
<fld name='pk_name'>portal_config2element_pk</fld>
</row>
</rs>
</primaryKeys>
<indexes>
</indexes>
</table>
<table name="portal_layout" thema="Portalkonfiguration" caption="Portal-Layout" typ="Datentabelle"
releaseUnload="demo">
<description>Portal-Layout</description>
<columns>
<column name="tid" type="SERIAL" size="" default="" notnull="true" description="tid" isKey="true"/>
<column name="caption" type="VARCHAR" size="255" default="" notnull="" description="Bezeichnung" />
<column name="uniquename" type="VARCHAR" size="255" default="" notnull="" description="Schlüssel" />
<column name="grid_type" type="VARCHAR" size="255" default="" notnull="" description="Grid-Typ" ><comment>fixed (Feste Spalten), smart (Responsiv)</comment></column>
<column name="fixed_grid_column_count" type="SMALLINT" size="255" default="" notnull="" description="Spaltenanzahl (bei fixed grid)" ><comment>1-32</comment></column>
<column name="css_url" type="VARCHAR" size="255" default="" notnull="" description="CSS-URL" />
<column name="js_url" type="VARCHAR" size="255" default="" notnull="" description="JS-URL" />
<column name="onload_handler" type="VARCHAR" size="255" default="" notnull="" description="JS-Methode beim Onload" />
</columns>
<primaryKeys><rs>
<row>
<fld name='table_cat'>superx</fld>
<fld name='table_schem'>superx</fld>
<fld name='table_name'>portal_layout</fld>
<fld name='column_name'>tid</fld>
<fld name='key_seq'>1</fld>
<fld name='pk_name'>portal_layout_pk</fld>
</row>
</rs>
</primaryKeys>
</table>
<table name="portal_config2layout" thema="Portalkonfiguration" caption="Layout zu Portal" typ="Datentabelle"
releaseUnload="demo">
<description>Zuordnung Layout zu Portal</description>
<columns>
<column name="tid" type="SERIAL" size="" default="" notnull="true" description="tid" isKey="true"/>
<column name="portal_config_id" type="INTEGER" size="255" default="" isKey="true" notnull="true" description="Portal" />
<column name="portal_layout_id" type="INTEGER" size="255" default="" isKey="true" notnull="true" description="Portal-Layout" />
<column name="userinfo_id" type="INTEGER" size="255" default="" isKey="" notnull="false" description="Benutzer_in" ><cpmment>optional</cpmment></column>
<column name="active" type="SMALLINT" size="" default="1"
notnull="true" description="Aktiv" />
</columns>
<primaryKeys><rs>
<row>
<fld name='table_cat'>superx</fld>
<fld name='table_schem'>superx</fld>
<fld name='table_name'>portal_config2layout</fld>
<fld name='column_name'>tid</fld>
<fld name='key_seq'>1</fld>
<fld name='pk_name'>portal_config2layout_pk</fld>
</row>
</rs>
</primaryKeys>
<indexes>
</indexes>
</table>
<table name="portal_config_menu2element" thema="Portalkonfiguration" typ="Datentabelle"
releaseUnload="demo">
<description>Verlinkung Portal-Menü zu Elementen</description>
<columns>
<column name="tid" type="SERIAL" size="" default="" notnull="true" description="tid" isKey="true"/>
<column name="portal_menu_id" type="INTEGER" size="255" default="" isKey="true" notnull="true" description="Portal-Menü" />
<column name="portal2element_id" type="INTEGER" size="255" default="" isKey="true" notnull="true" description="Portal-Element" />
</columns>
<primaryKeys><rs>
<row>
<fld name='table_cat'>superx</fld>
<fld name='table_schem'>superx</fld>
<fld name='table_name'>portal_config_menu2element</fld>
<fld name='column_name'>tid</fld>
<fld name='key_seq'>1</fld>
<fld name='pk_name'>portal_config_menu2element_pk</fld>
</row>
</rs>
</primaryKeys>
<indexes>
</indexes>
</table>
<views>
<!--
<view name="portal_element_role">
<description>View Portalelement-Rollen</description>
<columns>
<column name="tid" type="INTEGER" size="" default="" notnull="true" description="tid" isKey="true"/>
<column name="caption" type="VARCHAR" size="255" default="" notnull="" description="Bezeichnung" />
<column name="is_dynamic" type="SMALLINT" size="255" default="" notnull="" description="Dynamisch" />
</columns>
<sql dbsystem=""><![CDATA[
select 1 as tid,'Header'::varchar(255) as caption,
0::smallint as is_dynamic
union
select 2,'Footer',
0::smallint as is_dynamic
union
select 3,'Sidebar-links',
0::smallint as is_dynamic
union
select 4,'Sidebar-rechts',
0::smallint as is_dynamic
union
select 5,'content',
1::smallint as is_dynamic
]]></sql>
</view> -->
</views>
<functions>
</functions>
<themen>
<thema name="Administration Portalkonfiguration"
parent="Portalkonfiguration">Abfragen zur Administration von Portalkonfiguration </thema>
</themen>
<masken>
<maske tid="52000" name="Portalkonfiguration verwalten" thema="Administration Portalkonfiguration">
<description>Portalkonfiguration verwalten</description>
<src>
<path>$PORTAL_PFAD/masken</path>
</src>
</maske>
</masken>
<data-integrity>
<!--portal_element-->
<relation from="portal_element_type" to="portal_element" delete="FALSE"
displayType="select" visibleFields="caption" format="%s">
<relation-column from="tid" to="element_type_id" />
</relation>
<relation from="maskeninfo" to="portal_element" delete="FALSE"
displayType="select" visibleFields="name" format="%s">
<relation-column from="tid" to="content_maskeninfo_id" />
</relation>
<relation from="maskeninfo" to="portal_element" delete="FALSE"
displayType="select" visibleFields="name" format="%s">
<relation-column from="tid" to="link_maskeninfo_id" />
</relation>
<!--portal_config2element-->
<relation from="portal_element_role" to="portal_config2element" delete="FALSE"
displayType="select" visibleFields="caption" format="%s">
<relation-column from="tid" to="element_role_id" />
</relation>
<relation from="portal_config" to="portal_config2element" delete="FALSE"
displayType="select" visibleFields="caption" format="%s">
<relation-column from="tid" to="portal_config_id" />
</relation>
<relation from="portal_element" to="portal_config2element" delete="FALSE"
displayType="select" visibleFields="caption" format="%s">
<relation-column from="tid" to="portal_element_id" />
</relation>
<relation from="portal_config" to="portal_tab" delete="FALSE"
displayType="select" visibleFields="caption" format="%s">
<relation-column from="tid" to="portal_config_id" />
</relation>
<relation from="portal_config" to="portal_config2layout" delete="FALSE"
displayType="select" visibleFields="caption" format="%s">
<relation-column from="tid" to="portal_config_id" />
</relation>
<relation from="portal_layout" to="portal_config2layout" delete="FALSE"
displayType="select" visibleFields="caption" format="%s">
<relation-column from="tid" to="portal_layout_id" />
</relation>
</data-integrity>
</database>
<!-- ********************* Liste der PORTAL-Prozesse ************************** -->
<etl>
<etl-step name="Transformation" type="trans">
<action>
<nativeaction sql="update systeminfo set datum=today() where tid in (370)" scriptfile="" database=""/>
</action>
</etl-step>
</etl>
<install>
<install-step name="Füllen der Modul-Tabellen">
<action>
<nativeaction sql="create table tmp_templates(tid integer,
id char(200) not null,
content text not null,
description char(200) ,
comment char(200) ,
version integer default 1
) ;" scriptfile="" database="" />
</action>
<action error="stop">
<loadtable refresh="true" delimiter="^" header="false" tabname="portal_element_type"><file path="$PORTAL_PFAD/schluesseltabellen/portal_element_type.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="portal_element_role"><file path="$PORTAL_PFAD/schluesseltabellen/portal_element_role.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="tmp_templates">
<file path="$PORTAL_PFAD/schluesseltabellen/fm_templates.unl" />
</loadtable>
</action>
<action>
<nativeaction sql="" scriptfile="$PORTAL_PFAD/schluesseltabellen/sachgebiete_fuellen.sql" database=""/>
<nativeaction sql="" scriptfile="$PORTAL_PFAD/schluesseltabellen/portal_layout_fuellen.sql" database=""/>
<nativeaction sql="" scriptfile="$PORTAL_PFAD/schluesseltabellen/fm_templates_fuellen.sql" database="" />
<nativeaction sql="" scriptfile="$PORTAL_PFAD/schluesseltabellen/portal_config_fuellen_sample_superx.sql" database="" />
<nativeaction sql="" scriptfile="$PORTAL_PFAD/schluesseltabellen/portal_config_fuellen_gang.sql" database="" />
</action>
</install-step>
</install>
<!-- Elemente nur für die neue KV von HIS:-->
<install_upgrade_job>
<install-upgrade-step name="pre_upgrade" type="container" id="portal_preupgrade_containernode">
<action error="stop"/>
</install-upgrade-step>
<install-upgrade-step name="upgrade_tables" type="" id="portal_upgrade_tables_actionstep">
<action error="stop">
<nativeaction sql="" scriptfile="$PORTAL_PFAD/upgrade/portal_upgrade_tables_pg.sql" database=""/>
</action>
</install-upgrade-step>
<install-upgrade-step name="upgrade_fields" type="" id="portal_upgrade_fields_actionstep">
<action error="stop">
<nativeaction sql="" scriptfile="$PORTAL_PFAD/upgrade/portal_upgrade_fields_pg.sql" database=""/>
</action>
</install-upgrade-step>
<install-upgrade-step name="upgrade_views" type="" id="portal_upgrade_views_actionstep">
<action error="stop">
<nativeaction sql="" scriptfile="$PORTAL_PFAD/upgrade/portal_upgrade_views_pg.sql" database=""/>
</action>
</install-upgrade-step>
<install-upgrade-step name="install_functions" type="container" id="portal_install_functions_containernode">
<action error="stop"/>
</install-upgrade-step>
<install-upgrade-step name="upgrade_indices" type="" id="portal_upgrade_indices_actionstep">
<action error="stop">
<nativeaction sql="" scriptfile="$PORTAL_PFAD/upgrade/portal_upgrade_indexes_pg.sql" database=""/>
</action>
</install-upgrade-step>
<install-upgrade-step name="fill_tables" type="" id="portal_fill_tables_actionstep">
<action error="stop">
<nativeaction sql="" scriptfile="$PORTAL_PFAD/conf/sx_tables_fuellen.sql" database=""/>
</action>
</install-upgrade-step>
<install-upgrade-step name="Update Module Metadata" type="container" id="portal_update_module_metadata_container">
<action error="stop">
<nativeaction sql="" scriptfile="$PORTAL_PFAD/conf/module_metadata.sql" database=""/>
</action>
</install-upgrade-step>
<install-upgrade-step name="update_topic_tree" type="" id="portal_update_topictree_actionstep">
<action error="stop">
<nativeaction sql="" scriptfile="$PORTAL_PFAD/upgrade/portal_upgrade_themenbaum.sql" database=""/>
</action>
</install-upgrade-step>
<install-upgrade-step name="install_masks" type="container" id="portal_install_masks_containernode">
<action error="stop"/>
</install-upgrade-step>
</install_upgrade_job>
<upgrade>
<upgrade-step>
<action>
<nativeaction sql="create table tmp_templates(tid integer,
id char(200) not null,
content text not null,
description char(200) ,
comment char(200) ,
version integer default 1
) ;" scriptfile="" database="" />
</action>
<action error="stop">
<loadtable refresh="true" delimiter="^" header="false" tabname="portal_element_type"><file path="$PORTAL_PFAD/schluesseltabellen/portal_element_type.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="portal_element_role"><file path="$PORTAL_PFAD/schluesseltabellen/portal_element_role.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="tmp_templates">
<file path="$PORTAL_PFAD/schluesseltabellen/fm_templates.unl" />
</loadtable>
</action>
<action>
<nativeaction sql="" scriptfile="$PORTAL_PFAD/schluesseltabellen/sachgebiete_fuellen.sql" database=""/>
<nativeaction sql="" scriptfile="$PORTAL_PFAD/schluesseltabellen/fm_templates_fuellen.sql" database="" />
<nativeaction sql="" scriptfile="$PORTAL_PFAD/schluesseltabellen/portal_layout_fuellen.sql" database=""/>
<nativeaction sql="" scriptfile="$PORTAL_PFAD/schluesseltabellen/portal_config_fuellen_sample_superx.sql" database="" />
<nativeaction sql="" scriptfile="$PORTAL_PFAD/schluesseltabellen/portal_config_fuellen_gang.sql" database="" />
</action>
</upgrade-step>
</upgrade>
<uninstall-step name="Deinstalliere Schlüssel">
<action error="stop">
<nativeaction sql="" scriptfile="$PORTAL_PFAD/schluesseltabellen/sachgebiete_loeschen.sql" database=""/>
</action>
</uninstall-step>
<!-- ********************* Liste der PORTAL-Prozesse ************************** -->
<dbforms>
<form name="portal_config_list"
table="portal_config"
path="/edit/portal/portal_config_list.jsp"
followUp=""
caption="Portale verwalten"
orderBy="caption"
gotoHt=""
helpfile=""
maxRows="*"
mode="full">
<description>In diesem Formular können Sie Portale verwalten. Im Details-Formular können Sie Eigenschaften zuordnen.</description>
<filters>
</filters>
<field-selection complete="false" />
<customfield name="tid" nullFieldValue="" />
<customfield name="caption" nullFieldValue="" visibleSize="30" />
<customfield name="uniquename" nullFieldValue="" visibleSize="30" />
<customfield type="link" name="Details" path="/superx/edit/portal/portal_config_edit.jsp" linkid="tid"/>
</form>
<form name="portal_config_edit"
table="portal_config"
path="/edit/portal/portal_config_edit.jsp"
followUp=""
caption="Portale bearbeiten"
orderBy="caption"
gotoHt=""
helpfile=""
maxRows="1"
mode="full">
<description>In diesem Formular können Sie Layouts verwalten.</description>
<filters>
<filter mandatory="false" type="equals">tid</filter>
</filters>
<field-selection complete="false" />
<customfield name="tid" />
<customfield name="caption" visibleSize="50" nullFieldValue="" />
<customfield name="uniquename" visibleSize="50" nullFieldValue="" />
<customfield name="id_param" visibleSize="50" nullFieldValue="" />
<customfield name="id_param_name" visibleSize="50" nullFieldValue="" />
<customfield name="print_maskeninfo_id" visibleSize="50" nullFieldValue="" />
<customfield name="booklet_stylesheet" visibleSize="50" nullFieldValue="" />
<customfield name="Layout" type="subform" multipart="false" autoUpdate="false"
maxRows="*" table="portal_config2layout" parentField="tid" childField="portal_config_id"
orderBy="portal_layout_id" allowNew="true"
mode="full">
<field-selection complete="false" />
<customfield name="tid" nullFieldValue="" />
<customfield name="portal_config_id" type="hidden" overrideValue="tid" />
<customfield name="portal_layout_id" type="" overrideValue="" />
<customfield name="active" nullFieldValue="" visibleSize="30" />
<customfield type="link" name="Details" path="/superx/edit/portal/portal_layout_edit.jsp" linkVar="tid" linkid="portal_layout_id"/>
</customfield>
<customfield name="Elemente" type="subform" multipart="false" autoUpdate="false"
maxRows="*" table="portal_config2element" parentField="tid" childField="portal_config_id"
orderBy="sortnr" allowNew="true"
mode="full">
<field-selection complete="false" />
<customfield name="tid" nullFieldValue="" />
<customfield name="portal_config_id" type="hidden" overrideValue="tid" />
<customfield name="portal_element_id" type="hidden" overrideValue="" />
<customfield name="element_role_id" nullFieldValue="" visibleSize="30" />
<customfield name="sortnr" nullFieldValue="" visibleSize="30" />
<customfield name="min_width" nullFieldValue="" visibleSize="30" />
<customfield name="height" nullFieldValue="" visibleSize="30" />
<customfield name="is_foldable" nullFieldValue="" visibleSize="30" />
<customfield name="is_maximizable" nullFieldValue="" visibleSize="30" />
<customfield name="active" nullFieldValue="" visibleSize="30" />
<customfield type="link" name="Details" path="/superx/edit/portal/portal_element_edit.jsp" linkVar="tid" linkid="portal_element_id"/>
</customfield>
<customfield name="Reiter" type="subform" multipart="false" autoUpdate="false"
maxRows="*" table="portal_config_tab" parentField="tid" childField="portal_config_id"
orderBy="sortnr" allowNew="true"
mode="full">
<field-selection complete="false" />
<customfield name="tid" nullFieldValue="" />
<customfield name="portal_config_id" type="hidden" overrideValue="tid" />
<customfield name="caption" visibleSize="15" overrideValue="" />
<customfield name="active" nullFieldValue="" visibleSize="30" />
<customfield type="link" name="Details" path="/superx/edit/portal/portal_tab_edit.jsp" linkVar="tid" linkid="tid"/>
</customfield>
</form>
<form name="portal_layout_list"
table="portal_layout"
path="/edit/portal/portal_layout_list.jsp"
followUp=""
caption="Layouts verwalten"
orderBy="caption"
gotoHt=""
helpfile=""
maxRows="*"
mode="full">
<description>In diesem Formular können Sie Portal Layouts verwalten. Im Details-Formular können Sie Eigenschaften zuordnen.</description>
<filters>
</filters>
<field-selection complete="false" />
<customfield name="tid" nullFieldValue="" />
<customfield name="caption" nullFieldValue="" visibleSize="30" />
<customfield name="uniquename" nullFieldValue="" visibleSize="30" />
<customfield type="link" name="Details" path="/superx/edit/portal/portal_layout_edit.jsp" linkid="tid"/>
</form>
<form name="portal_layout_edit"
table="portal_layout"
path="/edit/portal/portal_layout_edit.jsp"
followUp=""
caption="Layouts bearbeiten"
orderBy="caption"
gotoHt=""
helpfile=""
maxRows="1"
mode="full">
<description>In diesem Formular können Sie Layouts verwalten.</description>
<filters>
<filter mandatory="false" type="equals">tid</filter>
</filters>
<field-selection complete="false" />
<customfield name="tid" />
<customfield name="caption" visibleSize="50" nullFieldValue="" />
<customfield name="uniquename" visibleSize="50" nullFieldValue="" />
<customfield name="grid_type" visibleSize="50" nullFieldValue="" />
<customfield name="fixed_grid_column_count" visibleSize="50" nullFieldValue="" />
<customfield name="css_url" visibleSize="50" nullFieldValue="" />
<customfield name="js_url" visibleSize="50" nullFieldValue="" />
<customfield name="onload_handler" visibleSize="50" nullFieldValue="" />
</form>
<form name="portal_element_edit"
table="portal_element"
path="/edit/portal/portal_element_edit.jsp"
followUp=""
caption="Elemente bearbeiten"
orderBy="caption"
gotoHt=""
helpfile=""
maxRows="1"
mode="full">
<description>In diesem Formular können Sie Elemente verwalten.</description>
<filters>
<filter mandatory="false" type="equals">tid</filter>
</filters>
<field-selection complete="false" />
<customfield name="tid" />
<customfield name="caption" visibleSize="50" nullFieldValue="" />
<customfield name="uniquename" visibleSize="50" nullFieldValue="" />
<customfield name="element_type_id" visibleSize="50" nullFieldValue="" />
<customfield name="content_static" visibleSize="50" nullFieldValue="" />
<customfield name="content_maskeninfo_id" visibleSize="50" nullFieldValue="" />
<customfield name="content_chart_uniquename" visibleSize="50" nullFieldValue="" />
<customfield name="content_rpta_column_layout_uniquename" visibleSize="50" nullFieldValue="" />
</form>
<form name="portal_tab_edit"
table="portal_tab"
path="/edit/portal/portal_tab_edit.jsp"
followUp=""
caption="Reiter bearbeiten"
orderBy="sortnr"
gotoHt=""
helpfile=""
maxRows="1"
mode="full">
<description>In diesem Formular können Sie Portalreiter verwalten.</description>
<filters>
<filter mandatory="false" type="equals">tid</filter>
</filters>
<field-selection complete="false" />
<customfield name="tid" />
<customfield name="caption" visibleSize="50" nullFieldValue="" />
<customfield name="uniquename" visibleSize="50" nullFieldValue="" />
<customfield name="portal_config_id" visibleSize="50" nullFieldValue="" />
<customfield name="tab_id" visibleSize="50" nullFieldValue="" />
<customfield name="target_url" visibleSize="50" nullFieldValue="" />
<customfield name="target_window" visibleSize="50" nullFieldValue="" />
<customfield name="target_div" visibleSize="50" nullFieldValue="" />
<customfield name="active" visibleSize="50" nullFieldValue="" />
</form>
</dbforms>
</module>

19
src-modules/module/portal/conf/portal.xml

@ -380,6 +380,14 @@ parent="Portalkonfiguration">Abfragen zur Administration von Portalkonfiguration @@ -380,6 +380,14 @@ parent="Portalkonfiguration">Abfragen zur Administration von Portalkonfiguration
displayType="select" visibleFields="caption" format="%s">
<relation-column from="tid" to="portal_config_id" />
</relation>
<relation from="portal_config" to="portal_config2layout" delete="FALSE"
displayType="select" visibleFields="caption" format="%s">
<relation-column from="tid" to="portal_config_id" />
</relation>
<relation from="portal_layout" to="portal_config2layout" delete="FALSE"
displayType="select" visibleFields="caption" format="%s">
<relation-column from="tid" to="portal_layout_id" />
</relation>
</data-integrity>
@ -562,6 +570,17 @@ mode="full"> @@ -562,6 +570,17 @@ mode="full">
<customfield name="id_param_name" visibleSize="50" nullFieldValue="" />
<customfield name="print_maskeninfo_id" visibleSize="50" nullFieldValue="" />
<customfield name="booklet_stylesheet" visibleSize="50" nullFieldValue="" />
<customfield name="Layout" type="subform" multipart="false" autoUpdate="false"
maxRows="*" table="portal_config2layout" parentField="tid" childField="portal_config_id"
orderBy="portal_layout_id" allowNew="true"
mode="full">
<field-selection complete="false" />
<customfield name="tid" nullFieldValue="" />
<customfield name="portal_config_id" type="hidden" overrideValue="tid" />
<customfield name="portal_layout_id" type="" overrideValue="" />
<customfield name="active" nullFieldValue="" visibleSize="30" />
<customfield type="link" name="Details" path="/superx/edit/portal/portal_layout_edit.jsp" linkVar="tid" linkid="portal_layout_id"/>
</customfield>
<customfield name="Elemente" type="subform" multipart="false" autoUpdate="false"
maxRows="*" table="portal_config2element" parentField="tid" childField="portal_config_id"
orderBy="sortnr" allowNew="true"

12
src-modules/module/portal/masken/52000_maskeninfo.unl

@ -18,7 +18,7 @@ booklet_stylesheet VARCHAR(255) ,\ @@ -18,7 +18,7 @@ booklet_stylesheet VARCHAR(255) ,\
layout_uniquename varchar(255),\
layout_caption varchar(255),\
layout_id integer,\
id_param_name VARCHAR(255) ,\
entry_param_name VARCHAR(255) ,\
nextedit varchar(255),\
nextedit2 varchar(255)\
);\
@ -29,8 +29,8 @@ insert into tmp_portal_config (tid,\ @@ -29,8 +29,8 @@ insert into tmp_portal_config (tid,\
print_maskeninfo_id,\
booklet_stylesheet,\
layout_id,\
-- id_param,\
-- id_param_name,\
-- entry_param,\
-- entry_param_name,\
nextedit) \
select C.tid,\
C.uniquename,\
@ -39,8 +39,8 @@ select C.tid,\ @@ -39,8 +39,8 @@ select C.tid,\
C.print_maskeninfo_id,\
C.booklet_stylesheet,\
L.portal_layout_id,\
-- id_param,\
-- id_param_name\
-- entry_param,\
-- entry_param_name\
('../edit/portal/portal_config_edit.jsp|tid=' || C.tid)::varchar(255)\
\
FROM portal_config C left outer join portal_config2layout L\
@ -58,7 +58,7 @@ where L.tid=T.layout_id;\ @@ -58,7 +58,7 @@ where L.tid=T.layout_id;\
<#if gang_installed==1>\
update tmp_portal_config set nextedit2='../edit/portal/portal_show.jsp?config=' || trim(uniquename)\
|| '&layout=' || trim(layout_uniquename);\
update tmp_portal_config set nextedit2=nextedit2 || '&idParam=' || (select min(G.tid)\
update tmp_portal_config set nextedit2=nextedit2 || '&entryParam=' || (select min(G.tid)\
from gang_stg_ab G)\
where uniquename='portal_config_gang_bearbeiten';\
</#if>\

7
src-modules/module/portal/schluesseltabellen/portal_layout_fuellen.sql

@ -14,7 +14,12 @@ @@ -14,7 +14,12 @@
"caption":"Flexbox-Grid (responsiv)"},
{"uniquename":"COLUMNS_2",
"caption":"Inhalt zweispaltig",
"fixed_grid_column_count","2"}
"fixed_grid_column_count","2"},
{"uniquename":"HEADER_TAB_FLEXBOX",
"caption":"Portal mit Header, TABs und Flexboxen"},
{"uniquename":"HEADER_MENU_TAB_FLEXBOX",
"caption":"Portal mit Header, Menü, TABs und Flexboxen"}
]
/>

33
src/de/superx/portal/PortalConfig.java

@ -16,7 +16,7 @@ public class PortalConfig { @@ -16,7 +16,7 @@ public class PortalConfig {
String uniquename;
int configTid;
String configCaption;
String idParamName;
String entryParamName;
String layoutUniquename;
String gridType;
String fixedGridColumnCount;
@ -38,11 +38,11 @@ public class PortalConfig { @@ -38,11 +38,11 @@ public class PortalConfig {
public void setConfigCaption(String configCaption) {
this.configCaption = configCaption;
}
public String getIdParamName() {
return idParamName;
public String getEntryParamName() {
return entryParamName;
}
public void setIdParamName(String idParamName) {
this.idParamName = idParamName;
public void setEntryParamName(String entryParamName) {
this.entryParamName = entryParamName;
}
public String getLayoutUniquename() {
return layoutUniquename;
@ -105,7 +105,7 @@ public class PortalConfig { @@ -105,7 +105,7 @@ public class PortalConfig {
{
configTid=(int) rs.getObject(1);
configCaption=rs.getString(2);
idParamName=rs.getString(3);
entryParamName=rs.getString(3);
layoutUniquename=rs.getString(4);
gridType=rs.getString(5);
fixedGridColumnCount=rs.getString(5);
@ -120,8 +120,13 @@ public class PortalConfig { @@ -120,8 +120,13 @@ public class PortalConfig {
sql+="E.content_static,E.src_url,";
sql+="E.caption as element_caption,E.uniquename as element_uniquename,";
sql+= "EC.tid as portal_element2config_tid,";
sql+= "EC.min_width,EC.height,EC.sortnr,EC.is_foldable,EC.is_maximizable";
sql+= "EC.min_width,EC.height,EC.sortnr,EC.is_foldable,EC.is_maximizable,";
sql+= "E.content_maskeninfo_id,E.content_chart_uniquename,E.content_rpta_column_layout_uniquename,";
sql+= "V.chart_width,V.chart_height,V.chart_miniature_width,V.chart_miniature_height,";
sql+= "V.chart_card_class,V.chart_container_class,V.chart_container_id,V.chart_class_name,V.chart_element_id,V.chart_title_position,";
sql+="V.js_handler";
sql+=" from portal_element_type T, portal_config2element EC, portal_config C,portal_element_role R, portal_element E";
sql+=" left outer join viz_chart V on (V.uniquename=E.content_chart_uniquename)";
sql+=" where T.tid=E.element_type_id and C.tid=EC.portal_config_id and R.tid=EC.element_role_id ";
sql+=" and E.tid=EC.portal_element_id";
sql+=" and E.active=1 and EC.active=1";
@ -146,6 +151,20 @@ public class PortalConfig { @@ -146,6 +151,20 @@ public class PortalConfig {
myElem.setSortnr(getIntFromRs(rs.getObject(10),0));
myElem.setFoldable( (rs.getObject(11)==null || getIntFromRs(rs.getObject(11),0)==0 ?false:true));
myElem.setIs_maximizable( (rs.getObject(12)==null || getIntFromRs(rs.getObject(12),0)==0 ?false:true));
myElem.setContentMaskeninfoId(rs.getString(13));
myElem.setContentChartUniquename(rs.getString(14));
myElem.setContentRptaColumnLayoutUniquename(rs.getString(15));
myElem.setChartWidth(rs.getString(16));
myElem.setChartHeight(rs.getString(17));
myElem.setChartMiniature_width(rs.getString(18));
myElem.setChartMiniature_height(rs.getString(19));
myElem.setChartCardClass(rs.getString(20));
myElem.setChartContainerClass(rs.getString(21));
myElem.setChartContainerId(rs.getString(22));
myElem.setChartClassName(rs.getString(23));
myElem.setChartElementId(rs.getString(24));
myElem.setChartTitlePosition(rs.getString(25));
myElem.setChartHandler(rs.getString(26));
elementList.add(myElem);
}

151
src/de/superx/portal/PortalElement.java

@ -13,6 +13,22 @@ public class PortalElement { @@ -13,6 +13,22 @@ public class PortalElement {
String elementUniquename;
String contentStatic;
String srcUrl;
String contentMaskeninfoId;
String contentChartUniquename;
String contentRptaColumnLayoutUniquename;
String chartWidth;
String chartHeight;
String chartMiniature_width;
String chartMiniature_height;
String chartCardClass;
String chartContainerClass;
String chartContainerId;
String chartClassName;
String chartElementId;
String chartTitlePosition;
String chartHandler;
int detailChartId; //not yet used
int portalElement2configTid;
int minWidth;
int height;
@ -93,9 +109,96 @@ public class PortalElement { @@ -93,9 +109,96 @@ public class PortalElement {
public void setIs_maximizable(boolean is_maximizable) {
this.is_maximizable = is_maximizable;
}
public String toHtml(List<PortalTab> tabs)
public String getContentMaskeninfoId() {
return contentMaskeninfoId;
}
public void setContentMaskeninfoId(String contentMaskeninfoId) {
this.contentMaskeninfoId = contentMaskeninfoId;
}
public String getContentChartUniquename() {
return contentChartUniquename;
}
public void setContentChartUniquename(String contentChartUniquename) {
this.contentChartUniquename = contentChartUniquename;
}
public String getContentRptaColumnLayoutUniquename() {
return contentRptaColumnLayoutUniquename;
}
public void setContentRptaColumnLayoutUniquename(String contentRptaColumnLayoutUniquename) {
this.contentRptaColumnLayoutUniquename = contentRptaColumnLayoutUniquename;
}
public String getChartWidth() {
return chartWidth;
}
public void setChartWidth(String chartWidth) {
this.chartWidth = chartWidth;
}
public String getChartHeight() {
return chartHeight;
}
public void setChartHeight(String chartHeight) {
this.chartHeight = chartHeight;
}
public String getChartMiniature_width() {
return chartMiniature_width;
}
public void setChartMiniature_width(String chartMiniature_width) {
this.chartMiniature_width = chartMiniature_width;
}
public String getChartMiniature_height() {
return chartMiniature_height;
}
public void setChartMiniature_height(String chartMiniature_height) {
this.chartMiniature_height = chartMiniature_height;
}
public String getChartCardClass() {
return chartCardClass;
}
public void setChartCardClass(String chartCardClass) {
this.chartCardClass = chartCardClass;
}
public String getChartContainerClass() {
return chartContainerClass;
}
public void setChartContainerClass(String chartContainerClass) {
this.chartContainerClass = chartContainerClass;
}
public String getChartContainerId() {
return chartContainerId;
}
public void setChartContainerId(String chartContainerId) {
this.chartContainerId = chartContainerId;
}
public String getChartClassName() {
return chartClassName;
}
public void setChartClassName(String chartClassName) {
this.chartClassName = chartClassName;
}
public String getChartElementId() {
return chartElementId;
}
public void setChartElementId(String chartElementId) {
this.chartElementId = chartElementId;
}
public String getChartTitlePosition() {
return chartTitlePosition;
}
public void setChartTitlePosition(String chartTitlePosition) {
this.chartTitlePosition = chartTitlePosition;
}
public String getChartHandler() {
return chartHandler;
}
public void setChartHandler(String chartHandler) {
this.chartHandler = chartHandler;
}
public String toHtml(List<PortalTab> tabs,String entryNameParam,String entryNameParamVal,int elementnr)
{
String ret="";
if(entryNameParam!=null && !entryNameParam.equals("") && entryNameParamVal!=null && !entryNameParamVal.equals("") )
srcUrl+="?"+entryNameParam+"="+entryNameParamVal;
switch(elementTypeUniquename)
{
case "IFRAME":
@ -106,35 +209,71 @@ public class PortalElement { @@ -106,35 +209,71 @@ public class PortalElement {
ret+="</iframe>";
break;
case "TAB":
ret+=tabs2Html(tabs);
ret+=tabs2Html(tabs, entryNameParam,entryNameParamVal);
break;
case "MASKE":
ret+=mask2Html(elementnr);
break;
default:
ret=contentStatic;
}
return ret;
}
private String mask2Html(int elementnr)
{
String ret="";
if(contentChartUniquename!=null && !contentChartUniquename.equals(""))
{
if(chartCardClass!=null && !chartCardClass.equals(""))
ret+="<div class=\""+chartCardClass+"\">";
else
ret+="<div class=\"chart-card\">";
if(elementCaption!=null && !elementCaption.equals(""))
ret+="<h3>"+elementCaption+"</h3>";
ret+="<div ";
if(chartContainerId!=null && !chartContainerId.equals(""))
ret+="id=\""+chartContainerId+"\"";
else
ret+="id=\"chartDiv"+elementnr+"\"";
if(chartClassName!=null && !chartClassName.equals(""))
ret+=" class=\""+chartClassName+"\"";
private String tabs2Html(List<PortalTab> tabs)
ret+=" /></div>";
}
return ret;
}
private String tabs2Html(List<PortalTab> tabs,String entryNameParam,String entryNameParamVal)
{
String ret="<div id=\"PortalTabs\" class=\"tabs is-small is-toggle\"><ul>\n";
for (int i = 0; i < tabs.size(); i++) {
PortalTab myTab=(PortalTab) tabs.get(i);
String myTargetUrl=myTab.getTargetUrl();
String myTargetWindow=myTab.getTargetWindow();
ret+="<li id='"+myTab.tabId+"' class='"+(i==0?"is-active":"")+"' style='font-size:0.8em'><a";
if(myTab.targetUrl!=null)
{
ret+=" href='"+myTab.getTargetUrl()+"'";
if(entryNameParam!=null && !entryNameParam.equals("") && entryNameParamVal!=null && !entryNameParamVal.equals("") )
myTargetUrl+="?"+entryNameParam+"="+entryNameParamVal;
//ret+=" href='"+myTargetUrl+"'";
}
if(myTab.targetWindow!=null)
{
ret+=" target='"+myTab.getTargetWindow()+"'";
//ret+=" target='"+myTab.getTargetWindow()+"'";
}
ret+=" onClick='toggleTabs("+myTab.sortnr+")'";
ret+=" onClick='toggleTabs("+myTab.sortnr+",\""+myTab.getTargetUrl()+"\",\""+myTargetWindow+"\")'";
ret+=">"+myTab.getCaption()+"</a></li>";
}
ret+="</ul></div>";
ret+="<form name='tabs'><input type='hidden' name='currentTab' value='1' />";
ret+="<input type='hidden' name='entryName' value='"+entryNameParam+"' />";
ret+="<input type='hidden' name='entryValue' value='"+entryNameParamVal+"' />";
ret+="</form>";
return ret;
}
}

BIN
superx/WEB-INF/lib/superx-portal.jar

Binary file not shown.

3
superx/edit/portal/portal_htmlhead.inc

@ -2,4 +2,7 @@ @@ -2,4 +2,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script defer type="text/javascript" src="/superx/xml/js/memtext/sx_functions.js"></script>
<script type="text/javascript" src="/superx/xml/js/memtext/nd_functions.js"></script>
<script type="text/javascript" src="/superx/xml/js/viz/echarts.min.js"></script>
<script type="text/javascript" src="/superx/xml/js/viz/viz_viewer.js"></script>

42
superx/edit/portal/portal_init.inc

@ -1,25 +1,51 @@ @@ -1,25 +1,51 @@
<script language="javascript">
//declare global Variables:
var portalNavigation;
const charts = {};
var staticHtmlSrcUrls=new Array();
var contentMasks=new Array();
<%
if(elementList!=null && elementList.size()>0)
{
//collect all srcUrls:
out.println("<script language='javascript'>");
out.println("var srcUrls=new Array();");
//collect all staticHtmlSrcUrls:
for (int i = 0; i < elementList.size(); i++) {
PortalElement myElem=(PortalElement) elementList.get(i);
if(myElem.getSrcUrl() != null && !myElem.getSrcUrl().equals("") && !myElem.getElementTypeUniquename().equals("IFRAME"))
if(myElem.getContentMaskeninfoId() !=null)
{
out.println("var newSrcUrl= new srcUrl('"+myElem.getSrcUrl()+"','portalElement_"+i+"');");
out.println("srcUrls.push(newSrcUrl);");
String outp="var newContentMask= new contentMask('";
outp +=myElem.getContentMaskeninfoId()+"','";
outp +=myElem.getContentChartUniquename()+"','";
outp +=myElem.getContentRptaColumnLayoutUniquename()+"','";
outp +=myElem.getChartContainerId()+"','";
outp +=i+"','";
outp +=myElem.getChartHandler()+"')";
out.println(outp);
out.println("contentMasks.push(newContentMask);");
}
else if(myElem.getSrcUrl() != null && !myElem.getSrcUrl().equals("")
&& !myElem.getElementTypeUniquename().equals("IFRAME")
&& !myElem.getElementRoleUniquename().equals("HEADER")
)
{
out.println("var newStaticHtmlSrcUrl= new staticHtmlSrcUrl('"+myElem.getSrcUrl()+"','portalElement_"+i+"');");
out.println("staticHtmlSrcUrls.push(newStaticHtmlSrcUrl);");
}
}
out.println("</script>");
}
%>
<body onload="loadSrcUrls()">
</script>
<body onload="initPortal('','<%= portalConfig.getEntryParamName()%>','<%= entryParam %>')">

3
superx/edit/portal/portal_menue_gang.jsp

@ -19,6 +19,7 @@ @@ -19,6 +19,7 @@
String baum=request.getParameter("baum").toString();
String status=request.getParameter("status");
String nur_aktiv="false";
if (!(status==null))
nur_aktiv=status.toString();
@ -346,7 +347,7 @@ function getGangTargetTab(nodeId) @@ -346,7 +347,7 @@ function getGangTargetTab(nodeId)
var currentTab=parent.document.forms["tabs"].elements["currentTab"].value;
if(currentTab==null)
currentTab=1;
parent.document.forms["tabs"].elements["entryValue"].value=nodeId;
var myurl="../../edit/gang/"+ gangTabs[currentTab]+"?tid="+nodeId;
parent.editPane.location.href=myurl;

35
superx/edit/portal/portal_show.jsp

@ -18,7 +18,7 @@ String username=""; @@ -18,7 +18,7 @@ String username="";
String portlet_config_uniquename_param=request.getParameter("config");
String portlet_layout_uniquename_param=request.getParameter("layout");
String idParam=request.getParameter("idParam");
String entryParam=request.getParameter("entryParam");
//TODO: SQL injection abfangen
//Defaults zum Testen, TODO entfernen und Warnung wenn leer:
@ -26,8 +26,8 @@ if(portlet_config_uniquename_param ==null) @@ -26,8 +26,8 @@ if(portlet_config_uniquename_param ==null)
portlet_config_uniquename_param="portal_config_gang_bearbeiten";
if(portlet_layout_uniquename_param ==null)
portlet_layout_uniquename_param="FRAMESET";
if(idParam ==null)
idParam="";
if(entryParam ==null)
entryParam="";
String defaultMandantenIDParam=request.getParameter("MandantID");
StringBuffer LinkMandantenID=new StringBuffer("");
@ -43,7 +43,7 @@ if(defaultMandantenIDParam != null && !defaultMandantenIDParam.toString().equals @@ -43,7 +43,7 @@ if(defaultMandantenIDParam != null && !defaultMandantenIDParam.toString().equals
String config_tid;
String config_caption="";
String config_layout="";
String id_param_name="";
String entry_param_name="";
String element_type_uniquename="";
String element_role_uniquename="";
String content_static="";
@ -109,13 +109,14 @@ rs.close(); @@ -109,13 +109,14 @@ rs.close();
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" class="has-navbar-fixed-top">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><%=portalConfig.getConfigCaption() + " " + portalConfig.getLayoutUniquename() %></title>
<%@ include file="./portal_htmlhead.inc" %>
<%
if(portalConfig.getCssUrl() != null && !portalConfig.getCssUrl().equals(""))
{
out.println("<link rel=\"stylesheet\" type=\"text/css\" href=\"/superx/style/bulma.css\" />");
out.println("<link rel=\"stylesheet\" type=\"text/css\" href=\""+portalConfig.getCssUrl()+"\" />");
}
else
@ -124,9 +125,20 @@ else @@ -124,9 +125,20 @@ else
<%@ include file="./portal_htmlhead_css_superx.inc" %>
<%
}
if(portalConfig.getJsUrl() != null && !portalConfig.getJsUrl().equals(""))
{
out.println("<script language=\"javascript\" src=\""+portalConfig.getJsUrl()+"\" />");
}
%>
<script language="javascript" src="../../xml/js/memtext/mwtools.js"></script>
<script language="javascript" src="../../xml/js/viz/viz_viewer.js"></script>
<script language="javascript" src="../../edit/portal/portal_viewer.js"></script>
<script language="javascript" src="../../xml/js/viz/sum_donut_uzk_portal.js"></script>
<script language="javascript" src="../../xml/js/viz/sum_sem_bar_stacked_uzk_portal.js"></script>
<!--<script language="javascript" src="../../xml/js/viz/chart-utils_uzk.js"></script>-->
</head>
<%@ include file="portal_init.inc" %>
<%
@ -148,6 +160,19 @@ switch (portalConfig.getLayoutUniquename()) { @@ -148,6 +160,19 @@ switch (portalConfig.getLayoutUniquename()) {
<%
break;
case "HEADER_TAB_FLEXBOX":
%>
<%@ include file="portal_show_header_tab_flexbox.inc" %>
<%
break;
//TODO: startWith
case "HEADER_MENU_TAB_FLEXBOX_UZK":
%>
<%@ include file="portal_show_header_menu_tab_flexbox.inc" %>
<%
break;
default:
%>
<%@ include file="portal_show_invalid.inc" %>

13
superx/edit/portal/portal_show_bulma_columns.inc

@ -9,7 +9,7 @@ if(elementList!=null && elementList.size()>0) @@ -9,7 +9,7 @@ if(elementList!=null && elementList.size()>0)
if(myElem.getElementRoleUniquename().equals("HEADER"))
{
out.println("<nav id='portalElement_"+i+"' class='navbar is-fixed-top' role='navigation' aria-label='main navigation'><div class='navbar-brand'>");
out.println(myElem.toHtml(tabList));
out.println(myElem.toHtml(tabList,portalConfig.getEntryParamName() ,entryParam,i));
out.println("</div></nav>");
}
}
@ -21,7 +21,7 @@ if(elementList!=null && elementList.size()>0) @@ -21,7 +21,7 @@ if(elementList!=null && elementList.size()>0)
{
out.println("<div class='column is-"+myElem.getMinWidth()+"'>");
out.println("<div id='portalElement_"+i+"'>");
out.println(myElem.toHtml(tabList));
out.println(myElem.toHtml(tabList,portalConfig.getEntryParamName() ,entryParam,i));
out.println("</div></div>");
}
myElem=null;
@ -34,9 +34,8 @@ if(elementList!=null && elementList.size()>0) @@ -34,9 +34,8 @@ if(elementList!=null && elementList.size()>0)
if(myElem.getElementRoleUniquename().equals("TAB_TOP"))
{
out.println("<div id='portalElement_"+i+"'>");
out.println(myElem.toHtml(tabList));
out.println("<form name='tabs'><input type='hidden' name='currentTab' value='1' />");
out.println("</form>");
out.println(myElem.toHtml(tabList,portalConfig.getEntryParamName() ,entryParam,i));
out.println("</div>");
}
myElem=null;
@ -47,7 +46,7 @@ if(elementList!=null && elementList.size()>0) @@ -47,7 +46,7 @@ if(elementList!=null && elementList.size()>0)
if(myElem.getElementRoleUniquename().equals("CONTENT"))
{
out.println("<div id='portalElement_"+i+"'>");
out.println(myElem.toHtml(tabList));
out.println(myElem.toHtml(tabList,portalConfig.getEntryParamName() ,entryParam,i));
out.println("</div>");
}
myElem=null;
@ -59,7 +58,7 @@ if(elementList!=null && elementList.size()>0) @@ -59,7 +58,7 @@ if(elementList!=null && elementList.size()>0)
if(myElem.getElementRoleUniquename().equals("FOOTER"))
{
out.println("<nav id='portalElement_"+i+"' class='bottom-nav'>");
out.println(myElem.toHtml(tabList));
out.println(myElem.toHtml(tabList,portalConfig.getEntryParamName() ,entryParam,i));
out.println("</nav>");
}

43
superx/edit/portal/portal_show_content_maske.inc

@ -0,0 +1,43 @@ @@ -0,0 +1,43 @@
<div id="testportlet">News werden geladen ...</div>
<script>
(async function () {
const portlet = document.getElementById('testportlet');
try {
const response = await fetch(
'https://superxhosting.de/superx/ds/api/report' +
'?tid=71920' +
'&kennung=gast_news' +
'&login=superx',
{
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: '{}'
}
);
if (!response.ok) {
throw new Error('HTTP ' + response.status);
}
const result = await response.json();
const content = result.rows?.[0]?.cells?.content;
if (!content) {
throw new Error('Kein News-Inhalt gefunden');
}
portlet.innerHTML = content;
} catch (e) {
console.error(e);
portlet.textContent =
'News konnten nicht geladen werden: ' + e.message;
}
})();
</script>

4
superx/edit/portal/portal_show_frameset_gang.inc

@ -4,8 +4,8 @@ @@ -4,8 +4,8 @@
<frameset cols="30%,*">
<frame name="menue" scrolling="auto" src="<%= response.encodeURL("../../edit/gang/menue.jsp")+"?baum=abschluss&status=true" %>" border ="1" />
<frameset rows="75,*" frameborder="0" framespacing="0" border="0">
<frame name="tabPane" scrolling="no" src="<%= response.encodeURL("../../edit/gang/tabPane_60.jsp")+"?"+id_param_name+"="+idParam %>" marginwidth="0" marginheight="0" noresize="noresize" frameborder="0"/>
<frame name="editPane" id="editPane" src="<%= response.encodeURL("../../edit/gang/studiengang_edit.jsp")+"?"+id_param_name+"="+idParam %>" marginwidth="0" marginheight="0" noresize="noresize" frameborder="0"/>
<frame name="tabPane" scrolling="no" src="<%= response.encodeURL("../../edit/gang/tabPane_60.jsp")+"?"+entry_param_name+"="+entryParam %>" marginwidth="0" marginheight="0" noresize="noresize" frameborder="0"/>
<frame name="editPane" id="editPane" src="<%= response.encodeURL("../../edit/gang/studiengang_edit.jsp")+"?"+entry_param_name+"="+entryParam %>" marginwidth="0" marginheight="0" noresize="noresize" frameborder="0"/>
</frameset>
</frameset>

84
superx/edit/portal/portal_show_header_menu_tab_flexbox.inc

@ -0,0 +1,84 @@ @@ -0,0 +1,84 @@
<%
if(elementList!=null && elementList.size()>0)
{
//First print header, if available:
for (int i = 0; i < elementList.size(); i++) {
PortalElement myElem=(PortalElement) elementList.get(i);
if(myElem.getElementRoleUniquename().equals("HEADER"))
{
out.println("<nav id='portalElement_"+i+"' class='navbar' role='navigation' aria-label='main navigation'> ");
if(myElem.getSrcUrl().indexOf(".inc")>0)
{
%>
<jsp:include page="<%= myElem.getSrcUrl() %>" flush="true" />
<%
//out.println("<p>ende</p>");
}
else
{
out.println(myElem.toHtml(tabList,portalConfig.getEntryParamName() ,entryParam,i));
}
out.println("</nav>");
}
}
out.println("<div class='columns' style='margin-top:1em'>");
//Menu top:
for (int i = 0; i < elementList.size(); i++) {
PortalElement myElem=(PortalElement) elementList.get(i);
if(myElem.getElementRoleUniquename().equals("MENU"))
{
out.println("<div class='column'>");
out.println("<div id='portalElement_"+i+"'>");
out.println(myElem.toHtml(tabList,portalConfig.getEntryParamName() ,entryParam,i));
out.println("</div></div>");
}
myElem=null;
}
out.println("</div>");
//Content:
//TAB_TOP:
for (int i = 0; i < elementList.size(); i++) {
PortalElement myElem=(PortalElement) elementList.get(i);
if(myElem.getElementRoleUniquename().equals("TAB_TOP"))
{
out.println("<div id='portalElement_"+i+"'>");
out.println(myElem.toHtml(tabList,portalConfig.getEntryParamName() ,entryParam,i));
out.println("</div>");
}
myElem=null;
}
//Content:
out.println("<div class='grid'>");
for (int i = 0; i < elementList.size(); i++) {
PortalElement myElem=(PortalElement) elementList.get(i);
if(myElem.getElementRoleUniquename().equals("CONTENT"))
{
out.println("<div class='cell' id='portalElement_"+i+"'>");
out.println(myElem.toHtml(tabList,portalConfig.getEntryParamName() ,entryParam,i));
out.println("</div>");
}
myElem=null;
}
out.println("</div>"); //grid , TODO sidebar_right
//out.println("</div>");//columns
for (int i = 0; i < elementList.size(); i++) {
PortalElement myElem=(PortalElement) elementList.get(i);
if(myElem.getElementRoleUniquename().equals("FOOTER"))
{
out.println("<nav id='portalElement_"+i+"' class='bottom-nav'>");
out.println(myElem.toHtml(tabList,portalConfig.getEntryParamName() ,entryParam,i));
out.println("</nav>");
}
}
}
%>

82
superx/edit/portal/portal_show_header_tab_flexbox.inc

@ -0,0 +1,82 @@ @@ -0,0 +1,82 @@
<%
if(elementList!=null && elementList.size()>0)
{
//First print header, if available:
for (int i = 0; i < elementList.size(); i++) {
PortalElement myElem=(PortalElement) elementList.get(i);
if(myElem.getElementRoleUniquename().equals("HEADER"))
{
out.println("<nav id='portalElement_"+i+"' class='navbar' role='navigation' aria-label='main navigation'> ");
if(myElem.getSrcUrl().indexOf(".inc")>0)
{
%>
<jsp:include page="<%= myElem.getSrcUrl() %>" flush="true" />
<%
//out.println("<p>ende</p>");
}
else
{
out.println(myElem.toHtml(tabList,portalConfig.getEntryParamName() ,entryParam,i));
}
out.println("</nav>");
}
}
out.println("<div class='columns'>");
//Sidebar left:
for (int i = 0; i < elementList.size(); i++) {
PortalElement myElem=(PortalElement) elementList.get(i);
if(myElem.getElementRoleUniquename().equals("SIDEBAR_LEFT"))
{
out.println("<div class='column is-"+myElem.getMinWidth()+"'>");
out.println("<div id='portalElement_"+i+"'>");
out.println(myElem.toHtml(tabList,portalConfig.getEntryParamName() ,entryParam,i));
out.println("</div></div>");
}
myElem=null;
}
//Content:
out.println("<div class='column'>");
//TAB_TOP:
for (int i = 0; i < elementList.size(); i++) {
PortalElement myElem=(PortalElement) elementList.get(i);
if(myElem.getElementRoleUniquename().equals("TAB_TOP"))
{
out.println("<div id='portalElement_"+i+"'>");
out.println(myElem.toHtml(tabList,portalConfig.getEntryParamName() ,entryParam,i));
out.println("</div>");
}
myElem=null;
}
//Content:
for (int i = 0; i < elementList.size(); i++) {
PortalElement myElem=(PortalElement) elementList.get(i);
if(myElem.getElementRoleUniquename().equals("CONTENT"))
{
out.println("<div id='portalElement_"+i+"'>");
out.println(myElem.toHtml(tabList,portalConfig.getEntryParamName() ,entryParam,i));
out.println("</div>");
}
myElem=null;
}
out.println("</div>"); //content, TODO sidebar_right
out.println("</div>");//columns
for (int i = 0; i < elementList.size(); i++) {
PortalElement myElem=(PortalElement) elementList.get(i);
if(myElem.getElementRoleUniquename().equals("FOOTER"))
{
out.println("<nav id='portalElement_"+i+"' class='bottom-nav'>");
out.println(myElem.toHtml(tabList,portalConfig.getEntryParamName() ,entryParam,i));
out.println("</nav>");
}
}
}
%>

142
superx/edit/portal/portal_viewer.js

@ -1,7 +1,27 @@ @@ -1,7 +1,27 @@
function srcUrl(url,targetElem)
function staticHtmlSrcUrl(url,targetElem,onloadHandler)
{
this.url=url;
this.targetElem=targetElem;
this.onloadHandler=onloadHandler;
}
function contentMask(contentMaskeninfoId,contentChartUniquename,contentRptaColumnLayoutUniquename,targetElement,elementNr,jsHandler)
{
this.contentMaskeninfoId=contentMaskeninfoId;
this.contentChartUniquename=contentChartUniquename;
this.contentRptaColumnLayoutUniquename=contentRptaColumnLayoutUniquename;
this.targetElement=targetElement;
this.elementNr=elementNr;
this.jsHandler=jsHandler;
}
function portalNavigationObj(currentTabNr,entryName,entryValue)
{
this.currentTabNr=currentTabNr;
this.entryName=entryName;
this.entryValue=entryValue;
}
function treeNode(name,apnr,parent,level,nodeattrib,linkUrl,linkTarget,onClickHandler,isFolder)
@ -44,27 +64,114 @@ async function loadHtml(url,targetElement) { @@ -44,27 +64,114 @@ async function loadHtml(url,targetElement) {
}
const result = await response.text();
console.log(result);
//console.log(result);
document.getElementById(targetElement).insertAdjacentHTML("beforeend", result);
if(url=="../../edit/portal/portal_uzk_111044900_barchart1.inc")
{
charts.barChart = echarts.init(document.getElementById('barChart'));
charts.barChart.setOption({
tooltip: { trigger: 'axis', axisPointer: { type: 'shadow' } },
xAxis: {
type: 'category',
data: ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun'],
axisLabel: { rotate: 0, fontSize: 12, fontWeight: '500' }
},
yAxis: { type: 'value', name: 'Umsatz (€)', axisLabel: { fontSize: 12 } },
series: [{
data: [120, 180, 150, 200, 220, 250],
type: 'bar',
barWidth: '40%',
itemStyle: { color: '#3498db' },
label: { show: true, fontSize: 10 }
}]
});
}
} catch (error) {
console.error(error.message);
}
}
async function loadMask(contentMaskeninfoId,targetElement,elementNr,jsHandler) {
try {
var url="/superx/ds/api/report?tid="+contentMaskeninfoId;
const response = await fetch(url,{
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: '{}'
});
if (!response.ok) {
throw new Error(`Response status: ${response.status}`);
}
const result = await response.json();
//console.log(JSON.stringify(result));
if(!targetElement || targetElement=="null" || targetElement=="")
targetElement="chartDiv"+elementNr;
renderChart(targetElement,result,"TEST",jsHandler);
//document.getElementById(targetElement).insertAdjacentHTML("beforeend", JSON.stringify(result));
} catch (error) {
console.error(error.message);
}
}
function loadSrcUrls()
function renderChart(targetElement,rs,title,handler)
{
//var handler="render_sum_donut_uzk";
this.callFunction = this.call_function = function(name) {
var args = Array.prototype.slice.call(arguments, 1);
return window[name].call(this, ...args);
};
var myDiv="";
if(targetElement && targetElement!="")
myDiv=targetElement;
else
myDiv="chartDiv"+elementNr;
call_function(handler,myDiv,rs,"");
}
function initPortal(currentTabNr,entryName,entryValue)
{
console.log("init running");
if(srcUrls && srcUrls.length >0)
portalNavigation=new portalNavigationObj(currentTabNr,entryName ,entryValue);
console.log("portalNavigation:"+portalNavigation.entryName+"="+entryValue);
if(staticHtmlSrcUrls && staticHtmlSrcUrls.length >0)
{
for(var i=0;i < srcUrls.length;i++)
for(var i=0;i < staticHtmlSrcUrls.length;i++)
{
console.log("loading "+srcUrls[i].url +" to "+srcUrls[i].targetElem);
loadHtml(srcUrls[i].url,srcUrls[i].targetElem);
console.log("loading "+staticHtmlSrcUrls[i].url +" to "+staticHtmlSrcUrls[i].targetElem);
loadHtml(staticHtmlSrcUrls[i].url,staticHtmlSrcUrls[i].targetElem);
}
}
if(contentMasks && contentMasks.length >0)
{
for(var i=0;i < contentMasks.length;i++)
{
var handler="renderChartDefault"; //default
if(contentMasks[i].jsHandler && contentMasks[i].jsHandler!="")
handler="render_"+contentMasks[i].contentChartUniquename;
console.log("loading mask "+contentMasks[i].contentMaskeninfoId +" to elementNr "+contentMasks[i].targetElement+" with handler "+handler);
loadMask(contentMasks[i].contentMaskeninfoId,contentMasks[i].targetElement,contentMasks[i].elementNr,handler);
}
}
}
function toggleTabs(activeTabSortnr)
function toggleTabs(activeTabSortnr,targetUrl,targetWindow)
{
var myTabsElem=document.getElementById("PortalTabs");
var myTabsUL=myTabsElem.childNodes;
@ -76,9 +183,22 @@ function toggleTabs(activeTabSortnr) @@ -76,9 +183,22 @@ function toggleTabs(activeTabSortnr)
else
node.classList.remove('is-active');
}
if(document.forms["tabs"] && document.forms["tabs"].elements["currentTab"])
document.forms["tabs"].elements["currentTab"].value=activeTabSortnr;
if(document.forms["tabs"] )
{
if(document.forms["tabs"].elements["currentTab"])
document.forms["tabs"].elements["currentTab"].value=activeTabSortnr;
if(document.forms["tabs"].elements["entryName"])
entryParamName=document.forms["tabs"].elements["entryName"].value;
if(document.forms["tabs"].elements["entryValue"])
entryParamValue=document.forms["tabs"].elements["entryValue"].value;
}
if(targetUrl!="")
{
var targetUrlPlusParam=targetUrl;
if(entryParamName && entryParamName!="")
targetUrlPlusParam+="?"+entryParamName+"="+entryParamValue ;
document.editPane.location.href=targetUrlPlusParam;
}
}
function renderTree(treeNodes,targetDiv)

Loading…
Cancel
Save