40 changed files with 1799 additions and 303 deletions
@ -0,0 +1,30 @@ |
|||||||
|
44570^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^1^<<SQL>> select apnr, eintrag from koepfe_oder_faelle order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from koepfe_oder_faelle where eintrag='Köpfe';^ |
||||||
|
44571^Seit Semester^3^0^0^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^Eintrag^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
||||||
|
44572^Stichtag^1^350^-1^140^100^1^sql^30^0^1^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende';^^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende' and appl_key='0';^ |
||||||
|
44573^Staatsangehörigkeit^36^0^0^130^150^10^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Staaten-Sicht' order by 3,2;^hidden^^ |
||||||
|
44574^Status^14^350^-1^140^180^1^sql^30^0^1^<<SQL>> select apnr,eintrag from sos_status order by 2^^<<SQL>> select apnr,eintrag from sos_status where eintrag='Alle ohne Beurl.';^ |
||||||
|
44575^Hörerstatus^33^0^0^140^170^1^sql^30^0^1^<<SQL>> select apnr, eintrag from hoererstatus order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from hoererstatus where eintrag='alle';^ |
||||||
|
44577^bis Fachsemester^35^350^-1^140^100^1^integer^30^0^13^^^^ |
||||||
|
44579^Bis Semester^4^350^-1^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^Eintrag^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
||||||
|
44580^Filter Studierende^119^0^0^140^150^1^sql^20^0^999^<<SQL>> SELECT id,caption from sx_repository where aktiv =1 and today() between gueltig_seit and gueltig_bis and art='SOS_STUD_FILTER' order by 2;^^^ |
||||||
|
44581^Geschlecht^37^0^0^140^80^1^integer^30^0^999^<<SQL>> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^^^ |
||||||
|
44583^Studiengang^6^0^0^140^150^50^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^^^ |
||||||
|
44584^Schlüssel anzeigen^150^0^0^100^100^1^integer^30^1^1^<<SQL>> select 1,'Ja' from xdummy union select 0,'Nein' from xdummy^hidden^<<SQL>> select 1,'Ja' from xdummy^ |
||||||
|
44585^tablestylesheet^150^0^0^100^100^1^char^255^1^1^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44570 order by ord^ ^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44570 order by ord limit 1^ |
||||||
|
44587^Grafik^1000^300^-1^170^150^1^char^30^0^1^<<SQL>> select uniquename, caption from viz_chart where maskeninfo_id=44570 order by 2;^ ^<<SQL>> select uniquename, caption from viz_chart where maskeninfo_id=44570 order by 2 limit 1;^ |
||||||
|
44588^Spaltenlayout^3000^350^-1^140^180^1^char^30^1^1^<<SQL>>SELECT uniquename,\ |
||||||
|
caption\ |
||||||
|
FROM rpta_column_layout \ |
||||||
|
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename='sos_stud_astat'\ |
||||||
|
and R.systeminfo_id=7)\ |
||||||
|
order by sortnr, caption\ |
||||||
|
;^^<<SQL>>SELECT uniquename,\ |
||||||
|
caption\ |
||||||
|
FROM rpta_column_layout \ |
||||||
|
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename='sos_stud_astat'\ |
||||||
|
and R.systeminfo_id=7) and uniquename='sos_stud_sem';^ |
||||||
|
44589^Semestertyp^5^350^-1^140^80^1^integer^255^0^1^<<SQL>> select 1,'nur Sommersemester' from xdummy union select 2,'nur Wintersemester' from xdummy^Eintrag^<<SQL>> select 2,'nur Wintersemester' from xdummy^ |
||||||
|
44590^##line##^30^0^0^100^100^1^char^5000^0^8^^^1^ |
||||||
|
44591^Abschluss^7^0^0^140^170^5^char^30^0^1^<<SQL>> select abint,dtxt from k_abint order by 2;^^^ |
||||||
|
44592^Matrikel-Nr.^20^350^-1^150^180^1^char^200^0^13^^{InputCheck:matrikelnummern}^^ |
||||||
|
44593^##line##^40^0^0^100^100^1^char^5000^0^8^^^1^ |
@ -0,0 +1,20 @@ |
|||||||
|
44570^44570^ |
||||||
|
44570^44571^ |
||||||
|
44570^44572^ |
||||||
|
44570^44573^ |
||||||
|
44570^44574^ |
||||||
|
44570^44575^ |
||||||
|
44570^44577^ |
||||||
|
44570^44579^ |
||||||
|
44570^44580^ |
||||||
|
44570^44581^ |
||||||
|
44570^44583^ |
||||||
|
44570^44584^ |
||||||
|
44570^44585^ |
||||||
|
44570^44587^ |
||||||
|
44570^44588^ |
||||||
|
44570^44589^ |
||||||
|
44570^44590^ |
||||||
|
44570^44591^ |
||||||
|
44570^44592^ |
||||||
|
44570^44593^ |
@ -0,0 +1 @@ |
|||||||
|
44570^Studierende nach Semester^<sximport>select select_stmt from maskeninfo where tid=45000</sximport>^<sximport>select xil_proplist from maskeninfo where tid=45000</sximport>^Altersgruppe^Anzahl^Studienanfänger_innen als Zeitreihe, nach Gesschlecht und Fakultät in verschiedenen Visualisierungen^<sximport>select cleanup_stmt from maskeninfo where tid=45000</sximport>^^3^700^360^0^1^^ |
@ -0,0 +1 @@ |
|||||||
|
16^44570^ |
@ -0,0 +1,255 @@ |
|||||||
|
--freemarker template |
||||||
|
<sqlvars> |
||||||
|
<sqlvar name="rpta_installed"> |
||||||
|
select count(*) from systeminfo where tid=330; |
||||||
|
</sqlvar> |
||||||
|
</sqlvars> |
||||||
|
<#assign rpta_column_layout = {"uniquename":"sos_stud_fak_sem", |
||||||
|
"caption":"Studierende nach Fak. und Semester", |
||||||
|
"rpta_resultset":"sos_stud_astat", |
||||||
|
"whereclause":"", |
||||||
|
"description":"Studierende nach Fak. und Semester" |
||||||
|
} |
||||||
|
/> |
||||||
|
|
||||||
|
<#assign rpta_columns = [ |
||||||
|
{"uniquename":"dim_studiengang_fak", |
||||||
|
"caption":"Fakultät", |
||||||
|
"srcfieldname":"dim_studiengang_fb_str", |
||||||
|
"column_type":"physicalColumn", |
||||||
|
"col_function":"", |
||||||
|
"is_visible":"1", |
||||||
|
"visible_size":"10", |
||||||
|
"is_aggregate":"0", |
||||||
|
"description":"Fakultät" |
||||||
|
}, |
||||||
|
{"uniquename":"sem_rueck_beur_ein", |
||||||
|
"caption":"Semester", |
||||||
|
"srcfieldname":"sem_rueck_beur_ein", |
||||||
|
"targetfieldname":"", |
||||||
|
"column_type":"logicalColumn", |
||||||
|
"col_function":"substring(sem_rueck_beur_ein::varchar(255) from 1 for 4)", |
||||||
|
"is_visible":"1", |
||||||
|
"format_code":"", |
||||||
|
"visible_size":"5", |
||||||
|
"is_aggregate":"0", |
||||||
|
"description":"Semester" |
||||||
|
}, |
||||||
|
{"uniquename":"summe", |
||||||
|
"caption":"Anzahl der Studierenden", |
||||||
|
"srcfieldname":"summe", |
||||||
|
"column_type":"physicalColumn", |
||||||
|
"col_function":"sum", |
||||||
|
"is_visible":"1", |
||||||
|
"visible_size":"5", |
||||||
|
"is_aggregate":"1", |
||||||
|
"description":"Summe der Studierenden" |
||||||
|
} |
||||||
|
] |
||||||
|
/> |
||||||
|
|
||||||
|
<#if rpta_installed==1> |
||||||
|
---ab hier nicht mehr ändern: |
||||||
|
|
||||||
|
CREATE temp TABLE tmp_rpta_column |
||||||
|
( |
||||||
|
uniquename varchar(255) NOT NULL, |
||||||
|
caption varchar(255), |
||||||
|
srcfieldname varchar(255), |
||||||
|
targetfieldname varchar(255), |
||||||
|
column_type integer, |
||||||
|
col_function text, |
||||||
|
is_visible smallint, |
||||||
|
visible_size smallint, |
||||||
|
is_aggregate smallint, |
||||||
|
resultset_id integer, |
||||||
|
sortnr integer, |
||||||
|
description TEXT |
||||||
|
); |
||||||
|
|
||||||
|
CREATE temp TABLE tmp_rpta_column_layout |
||||||
|
( |
||||||
|
uniquename varchar(255) NOT NULL, |
||||||
|
caption varchar(255), |
||||||
|
resultset_id integer, |
||||||
|
whereclause text, |
||||||
|
description text |
||||||
|
); |
||||||
|
|
||||||
|
insert into tmp_rpta_column_layout( |
||||||
|
resultset_id, |
||||||
|
uniquename, |
||||||
|
caption, |
||||||
|
whereclause, |
||||||
|
description |
||||||
|
) |
||||||
|
select tid, |
||||||
|
'${rpta_column_layout.uniquename}', |
||||||
|
'${rpta_column_layout.caption}', |
||||||
|
'${rpta_column_layout.whereclause}', |
||||||
|
'${rpta_column_layout.description}' |
||||||
|
FROM rpta_resultset |
||||||
|
where uniquename='${rpta_column_layout.rpta_resultset}'; |
||||||
|
|
||||||
|
<#assign sortnr=0 /> |
||||||
|
<#foreach column in rpta_columns> |
||||||
|
<#assign sortnr=sortnr +1 /> |
||||||
|
|
||||||
|
INSERT INTO tmp_rpta_column |
||||||
|
(resultset_id, |
||||||
|
uniquename, |
||||||
|
caption, |
||||||
|
srcfieldname, |
||||||
|
targetfieldname, |
||||||
|
column_type, |
||||||
|
col_function, |
||||||
|
is_visible, |
||||||
|
visible_size, |
||||||
|
is_aggregate, |
||||||
|
sortnr, |
||||||
|
description |
||||||
|
) |
||||||
|
select R.tid, |
||||||
|
'${column.uniquename}', |
||||||
|
'${column.caption}', |
||||||
|
'${column.srcfieldname}', |
||||||
|
<#if !column.targetfieldname?exists || column.targetfieldname=="">null::varchar <#else>'${column.targetfieldname}' </#if>, |
||||||
|
T.tid as column_type, |
||||||
|
'${column.col_function}', |
||||||
|
${column.is_visible}, |
||||||
|
${column.visible_size}, |
||||||
|
${column.is_aggregate}, |
||||||
|
${sortnr*10}, |
||||||
|
'${column.description}' |
||||||
|
FROM rpta_resultset R, rpta_column_type T |
||||||
|
where R.uniquename='${rpta_column_layout.rpta_resultset}' |
||||||
|
and T.uniquename='${column.column_type}'; |
||||||
|
|
||||||
|
</#foreach> |
||||||
|
|
||||||
|
|
||||||
|
select * into temp tmp_rpta_column2layout |
||||||
|
from rpta_column2layout |
||||||
|
where layout_id in (select L.tid |
||||||
|
from rpta_column_layout L,rpta_resultset R |
||||||
|
where R.tid=L.resultset_id |
||||||
|
and R.uniquename='${rpta_column_layout.rpta_resultset}' |
||||||
|
and L.uniquename='${rpta_column_layout.uniquename}' |
||||||
|
) |
||||||
|
; |
||||||
|
|
||||||
|
select * into temp tmp_rpta_column_layout_target |
||||||
|
from rpta_column_layout |
||||||
|
where resultset_id in (select tid |
||||||
|
FROM rpta_resultset |
||||||
|
where uniquename='${rpta_column_layout.rpta_resultset}') |
||||||
|
and uniquename in (select uniquename from tmp_rpta_column_layout) |
||||||
|
; |
||||||
|
|
||||||
|
insert into rpta_column_layout |
||||||
|
(uniquename, |
||||||
|
caption, |
||||||
|
resultset_id, |
||||||
|
whereclause, |
||||||
|
description) |
||||||
|
select uniquename, |
||||||
|
caption, |
||||||
|
resultset_id, |
||||||
|
whereclause, |
||||||
|
description |
||||||
|
FROM tmp_rpta_column_layout T |
||||||
|
where 0=(select count(*) from tmp_rpta_column_layout_target T2 |
||||||
|
where T.uniquename=T2.uniquename); |
||||||
|
|
||||||
|
drop table tmp_rpta_column_layout_target; |
||||||
|
|
||||||
|
delete from rpta_column2layout |
||||||
|
where layout_id in (select L.tid |
||||||
|
from rpta_column_layout L,rpta_resultset R |
||||||
|
where R.tid=L.resultset_id |
||||||
|
and R.uniquename='${rpta_column_layout.rpta_resultset}' |
||||||
|
and L.uniquename='${rpta_column_layout.uniquename}' |
||||||
|
) |
||||||
|
; |
||||||
|
|
||||||
|
select * into temp tmp_rpta_column2 |
||||||
|
from tmp_rpta_column T |
||||||
|
where (resultset_id,uniquename) not in |
||||||
|
(select resultset_id,uniquename from rpta_column); |
||||||
|
|
||||||
|
INSERT INTO rpta_column |
||||||
|
(resultset_id, |
||||||
|
uniquename, |
||||||
|
caption, |
||||||
|
srcfieldname, |
||||||
|
targetfieldname, |
||||||
|
column_type, |
||||||
|
col_function, |
||||||
|
is_aggregate, |
||||||
|
description, |
||||||
|
custom |
||||||
|
) |
||||||
|
select |
||||||
|
resultset_id, |
||||||
|
uniquename, |
||||||
|
caption, |
||||||
|
srcfieldname, |
||||||
|
targetfieldname, |
||||||
|
column_type, |
||||||
|
col_function, |
||||||
|
is_aggregate, |
||||||
|
description, |
||||||
|
0 as custom |
||||||
|
from tmp_rpta_column2; |
||||||
|
|
||||||
|
--evtl. neuen Satz einfügen, dann alle updaten |
||||||
|
|
||||||
|
update rpta_column set ( caption, |
||||||
|
srcfieldname, |
||||||
|
targetfieldname, |
||||||
|
column_type, |
||||||
|
col_function, |
||||||
|
is_aggregate, |
||||||
|
description) |
||||||
|
= (select caption, |
||||||
|
srcfieldname, |
||||||
|
targetfieldname, |
||||||
|
column_type, |
||||||
|
col_function, |
||||||
|
is_aggregate, |
||||||
|
description |
||||||
|
from tmp_rpta_column T |
||||||
|
where T.resultset_id=rpta_column.resultset_id |
||||||
|
and T.uniquename=rpta_column.uniquename) |
||||||
|
where custom=0 |
||||||
|
and (resultset_id,uniquename) in |
||||||
|
(select T.resultset_id,T.uniquename |
||||||
|
from tmp_rpta_column T) |
||||||
|
; |
||||||
|
|
||||||
|
drop table tmp_rpta_column2; |
||||||
|
|
||||||
|
insert into rpta_column2layout(column_id, |
||||||
|
layout_id, |
||||||
|
sortnr, |
||||||
|
is_visible, |
||||||
|
visible_size, |
||||||
|
caption, |
||||||
|
description) |
||||||
|
select C.tid as column_id, |
||||||
|
L.tid as layout_id, |
||||||
|
T.sortnr, |
||||||
|
T.is_visible, |
||||||
|
T.visible_size, |
||||||
|
T.caption, |
||||||
|
T.description |
||||||
|
FROM rpta_column C, rpta_column_layout L, tmp_rpta_column T |
||||||
|
where C.uniquename=T.uniquename |
||||||
|
and C.resultset_id=T.resultset_id |
||||||
|
and L.uniquename='${rpta_column_layout.uniquename}' |
||||||
|
and L.resultset_id=T.resultset_id |
||||||
|
; |
||||||
|
drop table tmp_rpta_column; |
||||||
|
drop TABLE tmp_rpta_column_layout; |
||||||
|
drop TABLE tmp_rpta_column2layout; |
||||||
|
</#if> |
@ -0,0 +1,258 @@ |
|||||||
|
--freemarker template |
||||||
|
<sqlvars> |
||||||
|
<sqlvar name="rpta_installed"> |
||||||
|
select count(*) from systeminfo where tid=330; |
||||||
|
</sqlvar> |
||||||
|
</sqlvars> |
||||||
|
<#assign rpta_column_layout = |
||||||
|
{"uniquename":"sos_stud_sem_jahr", |
||||||
|
"caption":"Studierende nach Studienjahr", |
||||||
|
"rpta_resultset":"sos_stud_astat", |
||||||
|
"whereclause":"", |
||||||
|
"description":"Studierende nach Studienjahr" |
||||||
|
} |
||||||
|
/> |
||||||
|
|
||||||
|
<#assign rpta_columns = [ |
||||||
|
{"uniquename":"jahr", |
||||||
|
"caption":"Jahr", |
||||||
|
"srcfieldname":"sem_rueck_beur_ein", |
||||||
|
"targetfieldname":"jahr", |
||||||
|
"column_type":"logicalColumn", |
||||||
|
"col_function":"get_akad_jahr(sem_rueck_beur_ein,''A'')", |
||||||
|
"is_visible":"1", |
||||||
|
"format_code":"", |
||||||
|
"visible_size":"5", |
||||||
|
"is_aggregate":"0", |
||||||
|
"description":"(WS + darauffolgendes SS)" |
||||||
|
}, |
||||||
|
{"uniquename":"semestertyp", |
||||||
|
"caption":"Semestertyp", |
||||||
|
"srcfieldname":"sem_rueck_beur_ein", |
||||||
|
"targetfieldname":"semestertyp", |
||||||
|
"column_type":"logicalColumn", |
||||||
|
"col_function":"(case when substring('''' || sem_rueck_beur_ein from 5 for 1)=''2'' then ''WiSe'' else ''SoSe'' end)::varchar(255) ", |
||||||
|
"is_visible":"1", |
||||||
|
"format_code":"", |
||||||
|
"visible_size":"5", |
||||||
|
"is_aggregate":"0", |
||||||
|
"description":"Winter oder Sommersemester" |
||||||
|
}, |
||||||
|
{"uniquename":"summe", |
||||||
|
"caption":"Anzahl der Studierenden", |
||||||
|
"srcfieldname":"summe", |
||||||
|
"column_type":"physicalColumn", |
||||||
|
"col_function":"sum", |
||||||
|
"is_visible":"1", |
||||||
|
"visible_size":"5", |
||||||
|
"is_aggregate":"1", |
||||||
|
"description":"Summe der Studierenden" |
||||||
|
} |
||||||
|
] |
||||||
|
/> |
||||||
|
|
||||||
|
<#if rpta_installed==1> |
||||||
|
---ab hier nicht mehr ändern: |
||||||
|
|
||||||
|
CREATE temp TABLE tmp_rpta_column |
||||||
|
( |
||||||
|
uniquename varchar(255) NOT NULL, |
||||||
|
caption varchar(255), |
||||||
|
srcfieldname varchar(255), |
||||||
|
targetfieldname varchar(255), |
||||||
|
column_type integer, |
||||||
|
col_function text, |
||||||
|
is_visible smallint, |
||||||
|
visible_size smallint, |
||||||
|
is_aggregate smallint, |
||||||
|
resultset_id integer, |
||||||
|
sortnr integer, |
||||||
|
description TEXT |
||||||
|
); |
||||||
|
|
||||||
|
CREATE temp TABLE tmp_rpta_column_layout |
||||||
|
( |
||||||
|
uniquename varchar(255) NOT NULL, |
||||||
|
caption varchar(255), |
||||||
|
resultset_id integer, |
||||||
|
whereclause text, |
||||||
|
description text |
||||||
|
); |
||||||
|
|
||||||
|
insert into tmp_rpta_column_layout( |
||||||
|
resultset_id, |
||||||
|
uniquename, |
||||||
|
caption, |
||||||
|
whereclause, |
||||||
|
description |
||||||
|
) |
||||||
|
select tid, |
||||||
|
'${rpta_column_layout.uniquename}', |
||||||
|
'${rpta_column_layout.caption}', |
||||||
|
'${rpta_column_layout.whereclause}', |
||||||
|
'${rpta_column_layout.description}' |
||||||
|
FROM rpta_resultset |
||||||
|
where uniquename='${rpta_column_layout.rpta_resultset}'; |
||||||
|
|
||||||
|
<#assign sortnr=0 /> |
||||||
|
<#foreach column in rpta_columns> |
||||||
|
<#assign sortnr=sortnr +1 /> |
||||||
|
|
||||||
|
INSERT INTO tmp_rpta_column |
||||||
|
(resultset_id, |
||||||
|
uniquename, |
||||||
|
caption, |
||||||
|
srcfieldname, |
||||||
|
targetfieldname, |
||||||
|
column_type, |
||||||
|
col_function, |
||||||
|
is_visible, |
||||||
|
visible_size, |
||||||
|
is_aggregate, |
||||||
|
sortnr, |
||||||
|
description |
||||||
|
) |
||||||
|
select R.tid, |
||||||
|
'${column.uniquename}', |
||||||
|
'${column.caption}', |
||||||
|
'${column.srcfieldname}', |
||||||
|
<#if !column.targetfieldname?exists || column.targetfieldname=="">null::varchar <#else>'${column.targetfieldname}' </#if>, |
||||||
|
T.tid as column_type, |
||||||
|
'${column.col_function}', |
||||||
|
${column.is_visible}, |
||||||
|
${column.visible_size}, |
||||||
|
${column.is_aggregate}, |
||||||
|
${sortnr*10}, |
||||||
|
'${column.description}' |
||||||
|
FROM rpta_resultset R, rpta_column_type T |
||||||
|
where R.uniquename='${rpta_column_layout.rpta_resultset}' |
||||||
|
and T.uniquename='${column.column_type}'; |
||||||
|
|
||||||
|
</#foreach> |
||||||
|
|
||||||
|
|
||||||
|
select * into temp tmp_rpta_column2layout |
||||||
|
from rpta_column2layout |
||||||
|
where layout_id in (select L.tid |
||||||
|
from rpta_column_layout L,rpta_resultset R |
||||||
|
where R.tid=L.resultset_id |
||||||
|
and R.uniquename='${rpta_column_layout.rpta_resultset}' |
||||||
|
and L.uniquename='${rpta_column_layout.uniquename}' |
||||||
|
) |
||||||
|
; |
||||||
|
|
||||||
|
select * into temp tmp_rpta_column_layout_target |
||||||
|
from rpta_column_layout |
||||||
|
where resultset_id in (select tid |
||||||
|
FROM rpta_resultset |
||||||
|
where uniquename='${rpta_column_layout.rpta_resultset}') |
||||||
|
and uniquename in (select uniquename from tmp_rpta_column_layout) |
||||||
|
; |
||||||
|
|
||||||
|
insert into rpta_column_layout |
||||||
|
(uniquename, |
||||||
|
caption, |
||||||
|
resultset_id, |
||||||
|
whereclause, |
||||||
|
description) |
||||||
|
select uniquename, |
||||||
|
caption, |
||||||
|
resultset_id, |
||||||
|
whereclause, |
||||||
|
description |
||||||
|
FROM tmp_rpta_column_layout T |
||||||
|
where 0=(select count(*) from tmp_rpta_column_layout_target T2 |
||||||
|
where T.uniquename=T2.uniquename); |
||||||
|
|
||||||
|
drop table tmp_rpta_column_layout_target; |
||||||
|
|
||||||
|
delete from rpta_column2layout |
||||||
|
where layout_id in (select L.tid |
||||||
|
from rpta_column_layout L,rpta_resultset R |
||||||
|
where R.tid=L.resultset_id |
||||||
|
and R.uniquename='${rpta_column_layout.rpta_resultset}' |
||||||
|
and L.uniquename='${rpta_column_layout.uniquename}' |
||||||
|
) |
||||||
|
; |
||||||
|
|
||||||
|
select * into temp tmp_rpta_column2 |
||||||
|
from tmp_rpta_column T |
||||||
|
where (resultset_id,uniquename) not in |
||||||
|
(select resultset_id,uniquename from rpta_column); |
||||||
|
|
||||||
|
INSERT INTO rpta_column |
||||||
|
(resultset_id, |
||||||
|
uniquename, |
||||||
|
caption, |
||||||
|
srcfieldname, |
||||||
|
targetfieldname, |
||||||
|
column_type, |
||||||
|
col_function, |
||||||
|
is_aggregate, |
||||||
|
description, |
||||||
|
custom |
||||||
|
) |
||||||
|
select |
||||||
|
resultset_id, |
||||||
|
uniquename, |
||||||
|
caption, |
||||||
|
srcfieldname, |
||||||
|
targetfieldname, |
||||||
|
column_type, |
||||||
|
col_function, |
||||||
|
is_aggregate, |
||||||
|
description, |
||||||
|
0 as custom |
||||||
|
from tmp_rpta_column2; |
||||||
|
|
||||||
|
--evtl. neuen Satz einfügen, dann alle updaten |
||||||
|
|
||||||
|
update rpta_column set ( caption, |
||||||
|
srcfieldname, |
||||||
|
targetfieldname, |
||||||
|
column_type, |
||||||
|
col_function, |
||||||
|
is_aggregate, |
||||||
|
description) |
||||||
|
= (select caption, |
||||||
|
srcfieldname, |
||||||
|
targetfieldname, |
||||||
|
column_type, |
||||||
|
col_function, |
||||||
|
is_aggregate, |
||||||
|
description |
||||||
|
from tmp_rpta_column T |
||||||
|
where T.resultset_id=rpta_column.resultset_id |
||||||
|
and T.uniquename=rpta_column.uniquename) |
||||||
|
where custom=0 |
||||||
|
and (resultset_id,uniquename) in |
||||||
|
(select T.resultset_id,T.uniquename |
||||||
|
from tmp_rpta_column T) |
||||||
|
; |
||||||
|
|
||||||
|
drop table tmp_rpta_column2; |
||||||
|
|
||||||
|
insert into rpta_column2layout(column_id, |
||||||
|
layout_id, |
||||||
|
sortnr, |
||||||
|
is_visible, |
||||||
|
visible_size, |
||||||
|
caption, |
||||||
|
description) |
||||||
|
select C.tid as column_id, |
||||||
|
L.tid as layout_id, |
||||||
|
T.sortnr, |
||||||
|
T.is_visible, |
||||||
|
T.visible_size, |
||||||
|
T.caption, |
||||||
|
T.description |
||||||
|
FROM rpta_column C, rpta_column_layout L, tmp_rpta_column T |
||||||
|
where C.uniquename=T.uniquename |
||||||
|
and C.resultset_id=T.resultset_id |
||||||
|
and L.uniquename='${rpta_column_layout.uniquename}' |
||||||
|
and L.resultset_id=T.resultset_id |
||||||
|
; |
||||||
|
drop table tmp_rpta_column; |
||||||
|
drop TABLE tmp_rpta_column_layout; |
||||||
|
drop TABLE tmp_rpta_column2layout; |
||||||
|
</#if> |
File diff suppressed because one or more lines are too long
@ -0,0 +1,266 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<xsl:stylesheet version="1.0" |
||||||
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:HtmlUtils="de.superx.util.HtmlUtils"> |
||||||
|
<xsl:import href="resultset_html.xsl" /> |
||||||
|
<xsl:import href="interLinks_html.xsl" /> |
||||||
|
<xsl:import href="nd_templates.xsl" /> |
||||||
|
<xsl:import href="pageComponents_html.xsl" /> |
||||||
|
<xsl:import href="viz_components.xsl" /> |
||||||
|
<!--In diesem Stylesheet können Sie individuelle templates unterbringen, |
||||||
|
die in ihrer Präzedenz das normale Stylesheet |
||||||
|
pageComponents_html.xsl überragt. --> |
||||||
|
<xsl:import href="pageComponents_html_final.xsl" /> |
||||||
|
|
||||||
|
<xsl:decimal-format name="German" grouping-separator="." NaN="" zero-digit ="0" decimal-separator="," /> |
||||||
|
|
||||||
|
<!-- wichtig für DOJO!--> |
||||||
|
<xsl:output method="xml" media-type="text/html" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" |
||||||
|
doctype-system="DTD/xhtml1-strict.dtd" cdata-section-elements="script style" indent="yes" encoding="UTF-8"/> |
||||||
|
|
||||||
|
<xsl:variable name="colon"><xsl:text>'</xsl:text></xsl:variable> |
||||||
|
<xsl:variable name="quote"><xsl:text>"</xsl:text></xsl:variable> |
||||||
|
|
||||||
|
<xsl:variable name="defaultRenderer" select="'plot'" /> |
||||||
|
<xsl:variable name="availableRendererPlot" select="'true'" /> |
||||||
|
<xsl:variable name="availableRendererD3" select="'true'" /> |
||||||
|
|
||||||
|
<xsl:template match="/"> |
||||||
|
<xsl:variable name="maskenname"> |
||||||
|
<xsl:choose> |
||||||
|
<xsl:when test="/ergebnisse/@isMakro='true'"> |
||||||
|
<xsl:value-of select="/ergebnisse/makro/name" /> |
||||||
|
</xsl:when> |
||||||
|
<xsl:otherwise> |
||||||
|
<xsl:value-of select="/ergebnisse/ergebnis/maskenname" /> |
||||||
|
</xsl:otherwise> |
||||||
|
</xsl:choose> |
||||||
|
</xsl:variable> |
||||||
|
<html> |
||||||
|
<head> |
||||||
|
<xsl:call-template name="nd_htmlhead"> |
||||||
|
<xsl:with-param name="title" select="concat('Tabelle ',$maskenname)" /> |
||||||
|
</xsl:call-template> |
||||||
|
|
||||||
|
<link rel="stylesheet" href="../style/sx_tabelle.css" /> |
||||||
|
<!--<link rel="stylesheet" href="../style/superx.css" />--> |
||||||
|
|
||||||
|
</head> |
||||||
|
<xsl:call-template name="nd_htmlscript" /> |
||||||
|
<xsl:call-template name="nd_tableJavascript" /> |
||||||
|
<xsl:call-template name="nd_tableCSS" /> |
||||||
|
<xsl:call-template name="importVizJavascriptLibsViewer"></xsl:call-template> |
||||||
|
|
||||||
|
<body class="has-navbar-fixed-top" onload="document.getElementById('progressbar').style.display='none';initPage();"> |
||||||
|
<!--#Template Beginn Top-Navigation--> |
||||||
|
<!--<xsl:call-template name="nd_navi_top" />--> |
||||||
|
<!--#Template Ende Top-Navigation--> |
||||||
|
|
||||||
|
<div class="columns"> |
||||||
|
|
||||||
|
<!--#Template Beginn Navigations-Panel Auswertungen--> |
||||||
|
<xsl:if test="/ergebnisse/@showNavigation='true' and 1=0"><!-- erstmal kein Panel,weil der Asssistent schon recht breit ist --> |
||||||
|
<xsl:for-each select="/ergebnisse"> |
||||||
|
<xsl:call-template name="nd_navi_panel" /> |
||||||
|
</xsl:for-each> |
||||||
|
</xsl:if> |
||||||
|
<!--#Template Ende Navigations-Panel Auswertungen--> |
||||||
|
|
||||||
|
<!--Beginn Seitentitel, Krümelpfad, Knopfleiste, Legende, Erläuterung--> |
||||||
|
<section class="hero-body"> |
||||||
|
<div class="container"> |
||||||
|
<div class="columns is-mobile is-left"> |
||||||
|
<div class="column is-full"> |
||||||
|
<div class="card "> |
||||||
|
<div class="card-content"> |
||||||
|
|
||||||
|
<xsl:call-template name="nd_progressbar" /> |
||||||
|
|
||||||
|
<xsl:call-template name="viz_viewer_columnwise"/> |
||||||
|
<xsl:call-template name="bottombar" /> |
||||||
|
<xsl:comment>customfooter</xsl:comment> |
||||||
|
</div> <!--Ende content --> |
||||||
|
</div> <!--Ende card-content--> |
||||||
|
</div> <!--Ende card-background --> |
||||||
|
</div> <!--Ende column--> |
||||||
|
</div> <!--Ende hero-columns--> |
||||||
|
|
||||||
|
</section> <!--Ende hero = Berichts-Card--> |
||||||
|
</div> <!--Ende site-columns--> |
||||||
|
<xsl:call-template name="modalCards" /> |
||||||
|
</body> |
||||||
|
<!-- end body --> |
||||||
|
</html> |
||||||
|
</xsl:template> |
||||||
|
<!-- end main --> |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<xsl:template name="viz_viewer_columnwise"> |
||||||
|
<xsl:if test="/ergebnisse/@isMakro='true'"> |
||||||
|
<h1><xsl:value-of select="/ergebnisse/makro/name" /></h1> |
||||||
|
</xsl:if> |
||||||
|
<p></p> |
||||||
|
<xsl:call-template name="buildVizMetadata" /> |
||||||
|
|
||||||
|
<!-- end Kopf--> |
||||||
|
<!-- start Grafiken--> |
||||||
|
<!-- Berechne den Umbruch der Spalten für die Kacheln |
||||||
|
z.B. 6 Grafiken ergibt einen Umbruch nach der 3. Teiltabelle |
||||||
|
Formel: ANZ / 2 kaufm. gerundet |
||||||
|
--> |
||||||
|
<xsl:variable name="spalten_anz"> |
||||||
|
<xsl:value-of select="max(number(/ergebnisse/ergebnis/felder/feld[@varname='Spaltenanzahl']/value))"/> |
||||||
|
</xsl:variable> |
||||||
|
<xsl:variable name="colwidth"> |
||||||
|
<xsl:value-of select="12 div $spalten_anz"/> |
||||||
|
</xsl:variable> |
||||||
|
|
||||||
|
<xsl:variable name="ergebniselemente_anz"> |
||||||
|
<xsl:value-of select="count(/ergebnisse/ergebnis[felder/feld[@varname='Grafik']])"/> |
||||||
|
</xsl:variable> |
||||||
|
<xsl:variable name="ergebniselemente_umbruch"> |
||||||
|
<xsl:value-of select="round($ergebniselemente_anz div max(number(/ergebnisse/ergebnis/felder/feld[@varname='Spaltenanzahl']/value)))"/> |
||||||
|
</xsl:variable> |
||||||
|
<!--<p>plan: <xsl:value-of select="/ergebnisse/ergebnis/felder/feld[@varname='Spaltenanzahl']/value"/> |
||||||
|
</p>--> |
||||||
|
<span class="separator"> </span> |
||||||
|
<!--Beginn Selektions-Card--> |
||||||
|
<!--Beginn Berichtstitel, Pfad, Knopfleiste--> |
||||||
|
<section class="hero-body has-background-light"> |
||||||
|
<section class="container"> <!--Beginn Kartenreihe --> |
||||||
|
<div class="columns features is-mobile is-left"> <!--Beginn columns Kartenreihe --> |
||||||
|
|
||||||
|
<xsl:for-each select="ergebnisse/ergebnis[felder/feld[@varname='Grafik']/value!='']/ergebniselement"> |
||||||
|
<xsl:variable name="ergebniselement_counter" select="position()" /> |
||||||
|
<xsl:variable name="chart_uniquename"><xsl:value-of select="../felder/feld[@varname='Grafik']/value" /></xsl:variable> |
||||||
|
<xsl:variable name="ergebniselement_ordnr"><xsl:value-of select="@ordnr" /></xsl:variable> |
||||||
|
|
||||||
|
|
||||||
|
<!--<p><xsl:value-of select="concat('Zähler: ',$ergebniselement_counter)"/></p>--> |
||||||
|
<div> |
||||||
|
<xsl:attribute name="class"><xsl:text>column is-</xsl:text><xsl:value-of select="$colwidth"/></xsl:attribute> |
||||||
|
<h2><xsl:value-of select="viz_charts/viz_chart[@uniquename=$chart_uniquename]/@caption"/></h2> |
||||||
|
|
||||||
|
<xsl:call-template name="viewer_kachel"> |
||||||
|
<xsl:with-param name="caption" select="viz_charts/viz_chart[@uniquename=$chart_uniquename]/@caption"/> |
||||||
|
<xsl:with-param name="ergebniselement_ordnr" select="$ergebniselement_ordnr" /> |
||||||
|
</xsl:call-template> |
||||||
|
<!--<p><xsl:value-of select="concat($spalten_anz,'-',$ergebniselement_counter,':',$ergebniselement_counter mod $spalten_anz)"/></p>--> |
||||||
|
</div> |
||||||
|
<!-- neue Zeile wenn counter mod Spaltenanz. =0 --> |
||||||
|
|
||||||
|
<!--<xsl:if test="$ergebniselement_counter >= $spalten_anz and ($ergebniselement_counter mod $spalten_anz) =0">--> |
||||||
|
<xsl:text disable-output-escaping="yes"><![CDATA[ |
||||||
|
</div> |
||||||
|
</section> |
||||||
|
<hr /> |
||||||
|
<section class="container"> |
||||||
|
<div class="columns features is-mobile is-left"> |
||||||
|
]]></xsl:text> |
||||||
|
<!--</xsl:if>--> |
||||||
|
</xsl:for-each> |
||||||
|
</div><!-- der columns --> |
||||||
|
</section><!-- der letzten Kartenreihe --> |
||||||
|
</section><!-- des Portals --> |
||||||
|
</xsl:template> |
||||||
|
<!--<xsl:template name="viewer_kachel"> |
||||||
|
<xsl:param name="caption" /> |
||||||
|
<xsl:param name="ergebniselement_ordnr" /> |
||||||
|
<div class="card is-shady"> |
||||||
|
<div class="card-image"> |
||||||
|
<div id="{concat('chartDiv',$ergebniselement_ordnr)}"> |
||||||
|
Platzhalter |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<p> |
||||||
|
<a onClick="{concat('javascript:openModalImage(',$ergebniselement_ordnr,');')}"> |
||||||
|
<span class="button is-success is-small modal-button">Vergrößern ...</span></a> |
||||||
|
|
||||||
|
<a onClick="{concat('javascript:openModalCardDetail(',$ergebniselement_ordnr,');')}"> |
||||||
|
<span class="button is-link is-small modal-button">Mehr Infos ...</span></a> |
||||||
|
|
||||||
|
</p> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
</xsl:template>--> |
||||||
|
<xsl:template name="importVizJavascriptLibsViewer"> |
||||||
|
<script language="Javascript" type="text/javascript" src="../xml/js/jquery-2.1.1.min.js" /> |
||||||
|
<script language="JavaScript" type="text/javascript" src="../xml/js/memtext/sx_functions.js"></script> |
||||||
|
<xsl:call-template name="tableJavascript_viz" /> |
||||||
|
<script language="Javascript" type="text/javascript"> |
||||||
|
<xsl:text><![CDATA[ |
||||||
|
|
||||||
|
function initPage() |
||||||
|
{ |
||||||
|
var myChartModelStr=""; |
||||||
|
var myDiv=""; |
||||||
|
]]></xsl:text> |
||||||
|
<xsl:for-each select="ergebnisse"> |
||||||
|
<xsl:for-each select="ergebnis/ergebniselement"> |
||||||
|
<xsl:variable name="chart_uniquename"><xsl:value-of select="../felder/feld[@varname='Grafik']/value" /></xsl:variable> |
||||||
|
<xsl:variable name="ergebniselement_ordnr"><xsl:value-of select="@ordnr" /></xsl:variable> |
||||||
|
<xsl:if test="$chart_uniquename != ''"> |
||||||
|
<xsl:text> |
||||||
|
myChartModelStr='</xsl:text> |
||||||
|
<xsl:call-template name="getChartModel"> |
||||||
|
<xsl:with-param name="chart_uniquename" select="$chart_uniquename"/> |
||||||
|
<xsl:with-param name="useMiniatureIfAvailable" select="'true'"/> |
||||||
|
</xsl:call-template> |
||||||
|
<xsl:text>'; |
||||||
|
myDiv="</xsl:text> |
||||||
|
<xsl:value-of select="concat('chartDiv',$ergebniselement_ordnr)" /> |
||||||
|
<xsl:text><![CDATA["; |
||||||
|
createViewer(myChartModelStr,myDiv); |
||||||
|
myDiv="]]></xsl:text> |
||||||
|
<xsl:value-of select="concat('modalCardImage',$ergebniselement_ordnr)" /> |
||||||
|
<xsl:text>"; |
||||||
|
myChartModelStr='</xsl:text> |
||||||
|
<xsl:call-template name="getChartModel"> |
||||||
|
<xsl:with-param name="chart_uniquename" select="$chart_uniquename"/> |
||||||
|
<xsl:with-param name="useMiniatureIfAvailable" select="'false'"/> |
||||||
|
</xsl:call-template> |
||||||
|
<xsl:text>'; |
||||||
|
|
||||||
|
createViewer(myChartModelStr,myDiv); |
||||||
|
myDiv="</xsl:text> |
||||||
|
<xsl:value-of select="concat('modalCardDetailImage',$ergebniselement_ordnr)" /> |
||||||
|
<xsl:text>"; |
||||||
|
myChartModelStr='</xsl:text> |
||||||
|
<xsl:call-template name="getChartModel"> |
||||||
|
<xsl:with-param name="chart_uniquename" select="$chart_uniquename"/> |
||||||
|
<xsl:with-param name="useMiniatureIfAvailable" select="'false'"/> |
||||||
|
</xsl:call-template> |
||||||
|
<xsl:text>'; |
||||||
|
createViewer(myChartModelStr,myDiv); |
||||||
|
</xsl:text> |
||||||
|
</xsl:if> |
||||||
|
</xsl:for-each> |
||||||
|
</xsl:for-each> |
||||||
|
<xsl:text><![CDATA[ |
||||||
|
} |
||||||
|
|
||||||
|
function createViewer(myChartModelStr,chartDiv) |
||||||
|
{ |
||||||
|
myChartModel=JSON.parse(myChartModelStr); |
||||||
|
renderChart(chartDiv,myChartModel); |
||||||
|
} |
||||||
|
|
||||||
|
function toggleLegendeDisplay(legendeDiv) |
||||||
|
{ |
||||||
|
var myDiv=document.getElementById(legendeDiv); |
||||||
|
if(myDiv.style.display=="block") |
||||||
|
myDiv.style.display="none"; |
||||||
|
else |
||||||
|
myDiv.style.display="block"; |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
]]></xsl:text> |
||||||
|
</script> |
||||||
|
|
||||||
|
</xsl:template> |
||||||
|
</xsl:stylesheet> |
@ -0,0 +1,261 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<xsl:stylesheet version="1.0" |
||||||
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:HtmlUtils="de.superx.util.HtmlUtils"> |
||||||
|
<xsl:import href="resultset_html.xsl" /> |
||||||
|
<xsl:import href="interLinks_html.xsl" /> |
||||||
|
<xsl:import href="nd_templates.xsl" /> |
||||||
|
<xsl:import href="pageComponents_html.xsl" /> |
||||||
|
<xsl:import href="viz_components.xsl" /> |
||||||
|
<!--In diesem Stylesheet können Sie individuelle templates unterbringen, |
||||||
|
die in ihrer Präzedenz das normale Stylesheet |
||||||
|
pageComponents_html.xsl überragt. --> |
||||||
|
<xsl:import href="pageComponents_html_final.xsl" /> |
||||||
|
|
||||||
|
<xsl:decimal-format name="German" grouping-separator="." NaN="" zero-digit ="0" decimal-separator="," /> |
||||||
|
|
||||||
|
<!-- wichtig für DOJO!--> |
||||||
|
<xsl:output method="xml" media-type="text/html" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" |
||||||
|
doctype-system="DTD/xhtml1-strict.dtd" cdata-section-elements="script style" indent="yes" encoding="UTF-8"/> |
||||||
|
|
||||||
|
<xsl:variable name="colon"><xsl:text>'</xsl:text></xsl:variable> |
||||||
|
<xsl:variable name="quote"><xsl:text>"</xsl:text></xsl:variable> |
||||||
|
<xsl:variable name="colwidth"><xsl:text>is-full</xsl:text></xsl:variable> |
||||||
|
|
||||||
|
<xsl:variable name="defaultRenderer" select="'plot'" /> |
||||||
|
<xsl:variable name="availableRendererPlot" select="'true'" /> |
||||||
|
<xsl:variable name="availableRendererD3" select="'true'" /> |
||||||
|
|
||||||
|
<xsl:template match="/"> |
||||||
|
<xsl:variable name="maskenname"> |
||||||
|
<xsl:choose> |
||||||
|
<xsl:when test="/ergebnisse/@isMakro='true'"> |
||||||
|
<xsl:value-of select="/ergebnisse/makro/name" /> |
||||||
|
</xsl:when> |
||||||
|
<xsl:otherwise> |
||||||
|
<xsl:value-of select="/ergebnisse/ergebnis/maskenname" /> |
||||||
|
</xsl:otherwise> |
||||||
|
</xsl:choose> |
||||||
|
</xsl:variable> |
||||||
|
<html> |
||||||
|
<head> |
||||||
|
<xsl:call-template name="nd_htmlhead"> |
||||||
|
<xsl:with-param name="title" select="concat('Tabelle ',$maskenname)" /> |
||||||
|
</xsl:call-template> |
||||||
|
|
||||||
|
<link rel="stylesheet" href="../style/sx_tabelle.css" /> |
||||||
|
<!--<link rel="stylesheet" href="../style/superx.css" />--> |
||||||
|
|
||||||
|
</head> |
||||||
|
<xsl:call-template name="nd_htmlscript" /> |
||||||
|
<xsl:call-template name="nd_tableJavascript" /> |
||||||
|
<xsl:call-template name="nd_tableCSS" /> |
||||||
|
<xsl:call-template name="importVizJavascriptLibsViewer"></xsl:call-template> |
||||||
|
<xsl:call-template name="tableMaskenfelderJS" /> |
||||||
|
|
||||||
|
<body class="has-navbar-fixed-top" onload="document.getElementById('progressbar').style.display='none';initPage();"> |
||||||
|
<!--#Template Beginn Top-Navigation--> |
||||||
|
<xsl:call-template name="nd_navi_top" /> |
||||||
|
<!--#Template Ende Top-Navigation--> |
||||||
|
|
||||||
|
<div class="columns"> |
||||||
|
|
||||||
|
<!--#Template Beginn Navigations-Panel Auswertungen--> |
||||||
|
<xsl:if test="/ergebnisse/@showNavigation='true' and 1=0"><!-- erstmal kein Panel,weil der Asssistent schon recht breit ist --> |
||||||
|
<xsl:for-each select="/ergebnisse"> |
||||||
|
<!--kein Navi Panel bei Maskenfeldern <xsl:call-template name="nd_navi_panel" />--> |
||||||
|
</xsl:for-each> |
||||||
|
</xsl:if> |
||||||
|
<!--#Template Ende Navigations-Panel Auswertungen--> |
||||||
|
|
||||||
|
<!--Beginn Seitentitel, Krümelpfad, Knopfleiste, Legende, Erläuterung--> |
||||||
|
<section class="hero-body"> |
||||||
|
<div class="container"> |
||||||
|
<div class="columns is-mobile is-left"> |
||||||
|
<div class="column is-two-thirds"> |
||||||
|
<div class="card "> |
||||||
|
<div class="card-content"> |
||||||
|
|
||||||
|
<xsl:call-template name="nd_progressbar" /> |
||||||
|
|
||||||
|
<xsl:call-template name="viz_viewer"/> |
||||||
|
<!-- jetzt Tabelle--> |
||||||
|
<div style="margin-left:50px"> |
||||||
|
<xsl:for-each select="/ergebnisse/ergebnis/ergebniselement"> |
||||||
|
<p class="teiltabelle_titel"> |
||||||
|
<xsl:text>Tabelle </xsl:text><a onclick="{concat('toggleTableVisibility(',$colon,'toggleBtnTable',@ordnr+1, $colon,',',$colon, 'table',@ordnr+1,$colon,');')}"> <img id="{concat('toggleBtnTable',@ordnr+1)}" src="../images/minus-circled.svg" height="10px" border="0" /></a></p> |
||||||
|
|
||||||
|
<xsl:call-template name="nd_singleTable"> |
||||||
|
<xsl:with-param name="ergebniselement_ordnr" select="@ordnr" /> |
||||||
|
<xsl:with-param name="showPager" select="'none'" /> |
||||||
|
</xsl:call-template> |
||||||
|
</xsl:for-each> |
||||||
|
</div> |
||||||
|
<xsl:call-template name="bottombar" /> |
||||||
|
<xsl:comment>customfooter</xsl:comment> |
||||||
|
</div> <!--Ende content --> |
||||||
|
</div> <!--Ende card-content--> |
||||||
|
</div> <!--Ende card-background --> |
||||||
|
|
||||||
|
<div class="column"> |
||||||
|
<xsl:if test="count(/ergebnisse/ergebnis[@ordnr='0']/completefields/feld[@art='1']) > 0"> |
||||||
|
<xsl:call-template name="renderTableDialogs" /> |
||||||
|
</xsl:if> |
||||||
|
</div> |
||||||
|
</div> <!--Ende column--> |
||||||
|
</div> <!--Ende hero-columns--> |
||||||
|
|
||||||
|
</section> <!--Ende hero = Berichts-Card--> |
||||||
|
</div> <!--Ende site-columns--> |
||||||
|
<xsl:call-template name="modalCards" /> |
||||||
|
</body> |
||||||
|
<!-- end body --> |
||||||
|
</html> |
||||||
|
</xsl:template> |
||||||
|
<!-- end main --> |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<xsl:template name="viz_viewer"> |
||||||
|
<xsl:param name="show_maskenfelder" select="'true'" /> |
||||||
|
<xsl:variable name="pageTitle"> |
||||||
|
<xsl:choose> |
||||||
|
<xsl:when test="/ergebnisse/@isMakro='true'"> |
||||||
|
<xsl:value-of select="/ergebnisse/makro/name" /> |
||||||
|
</xsl:when> |
||||||
|
<xsl:otherwise> |
||||||
|
<xsl:value-of select="/ergebnisse/ergebnis[@ordnr='0']/maskenname" /> |
||||||
|
</xsl:otherwise> |
||||||
|
</xsl:choose> |
||||||
|
</xsl:variable> |
||||||
|
|
||||||
|
<xsl:call-template name="buildVizMetadata" /> |
||||||
|
|
||||||
|
<!-- end Kopf--> |
||||||
|
<!-- start Grafiken--> |
||||||
|
<!-- Berechne den Umbruch der Spalten für die Kacheln |
||||||
|
z.B. 6 Grafiken ergibt einen Umbruch nach der 3. Teiltabelle |
||||||
|
Formel: ANZ / 2 kaufm. gerundet |
||||||
|
--> |
||||||
|
<span class="separator"> </span> |
||||||
|
<!--Beginn Selektions-Card--> |
||||||
|
<!--Beginn Berichtstitel, Pfad, Knopfleiste--> |
||||||
|
<section class="hero-body has-background-light"> |
||||||
|
<xsl:call-template name="nd_pagetitle"> |
||||||
|
<xsl:with-param name="title" select="$pageTitle" /> |
||||||
|
<xsl:with-param name="subtitle" /> |
||||||
|
<xsl:with-param name="icon_classname" /> |
||||||
|
</xsl:call-template> |
||||||
|
|
||||||
|
<section class="container"> <!--Beginn Kartenreihe --> |
||||||
|
<div class="columns features is-mobile is-left"> <!--Beginn columns Kartenreihe --> |
||||||
|
|
||||||
|
<xsl:for-each select="/ergebnisse/ergebnis[felder/feld[@varname='Grafik']/value!='']/ergebniselement"> |
||||||
|
<xsl:variable name="ergebniselement_counter" select="position()" /> |
||||||
|
<xsl:variable name="chart_uniquename"><xsl:value-of select="../felder/feld[@varname='Grafik']/value" /></xsl:variable> |
||||||
|
<xsl:variable name="ergebniselement_ordnr"><xsl:value-of select="@ordnr" /></xsl:variable> |
||||||
|
|
||||||
|
|
||||||
|
<!--<p><xsl:value-of select="concat('Zähler: ',$ergebniselement_counter)"/></p>--> |
||||||
|
|
||||||
|
<div> |
||||||
|
<xsl:attribute name="class"><xsl:text>column is-</xsl:text><xsl:value-of select="$colwidth"/></xsl:attribute> |
||||||
|
<xsl:call-template name="viewer_kachel"> |
||||||
|
<xsl:with-param name="caption" select="viz_charts/viz_chart[@uniquename=$chart_uniquename]/@caption"/> |
||||||
|
<xsl:with-param name="ergebniselement_ordnr" select="$ergebniselement_ordnr" /> |
||||||
|
</xsl:call-template> |
||||||
|
<!--<p><xsl:value-of select="concat($spalten_anz,'-',$ergebniselement_counter,':',$ergebniselement_counter mod $spalten_anz)"/></p>--> |
||||||
|
</div> |
||||||
|
<!-- neue Zeile wenn counter mod Spaltenanz. =0 --> |
||||||
|
|
||||||
|
|
||||||
|
</xsl:for-each> |
||||||
|
</div><!-- der columns --> |
||||||
|
</section><!-- der letzten Kartenreihe --> |
||||||
|
</section><!-- des Portals --> |
||||||
|
</xsl:template> |
||||||
|
<!--<xsl:template name="viewer_kachel"> |
||||||
|
<xsl:param name="caption" /> |
||||||
|
<xsl:param name="ergebniselement_ordnr" /> |
||||||
|
<div class="card is-shady"> |
||||||
|
<div class="card-image"> |
||||||
|
<div id="{concat('chartDiv',$ergebniselement_ordnr)}"> |
||||||
|
Platzhalter |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<p> |
||||||
|
<a onClick="{concat('javascript:openModalImage(',$ergebniselement_ordnr,');')}"> |
||||||
|
<span class="button is-success is-small modal-button">Vergrößern ...</span></a> |
||||||
|
|
||||||
|
<a onClick="{concat('javascript:openModalCardDetail(',$ergebniselement_ordnr,');')}"> |
||||||
|
<span class="button is-link is-small modal-button">Mehr Infos ...</span></a> |
||||||
|
|
||||||
|
</p> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
</xsl:template>--> |
||||||
|
<xsl:template name="importVizJavascriptLibsViewer"> |
||||||
|
<script language="Javascript" type="text/javascript" src="../xml/js/jquery-2.1.1.min.js" /> |
||||||
|
<script language="JavaScript" type="text/javascript" src="../xml/js/memtext/sx_functions.js"></script> |
||||||
|
<xsl:call-template name="tableJavascript_viz" /> |
||||||
|
<script language="Javascript" type="text/javascript"> |
||||||
|
<xsl:text><![CDATA[ |
||||||
|
|
||||||
|
function initPage() |
||||||
|
{ |
||||||
|
var myChartModelStr=""; |
||||||
|
var myDiv=""; |
||||||
|
]]></xsl:text> |
||||||
|
<xsl:for-each select="ergebnisse"> |
||||||
|
<xsl:for-each select="ergebnis/ergebniselement"> |
||||||
|
<xsl:variable name="chart_uniquename"><xsl:value-of select="../felder/feld[@varname='Grafik']/value" /></xsl:variable> |
||||||
|
<xsl:variable name="ergebniselement_ordnr"><xsl:value-of select="@ordnr" /></xsl:variable> |
||||||
|
<xsl:if test="$chart_uniquename != ''"> |
||||||
|
<xsl:text><![CDATA[ |
||||||
|
myChartModelStr=']]></xsl:text> |
||||||
|
<xsl:value-of select="translate(viz_charts/viz_chart[@uniquename=$chart_uniquename]/@chartmodel,'§',$quote)" /> |
||||||
|
<xsl:text><![CDATA['; |
||||||
|
myDiv="]]></xsl:text> |
||||||
|
<xsl:value-of select="concat('chartDiv',$ergebniselement_ordnr)" /> |
||||||
|
<xsl:text><![CDATA["; |
||||||
|
createViewer(myChartModelStr,myDiv); |
||||||
|
myDiv="]]></xsl:text> |
||||||
|
<xsl:value-of select="concat('modalCardImage',$ergebniselement_ordnr)" /> |
||||||
|
<xsl:text><![CDATA["; |
||||||
|
createViewer(myChartModelStr,myDiv); |
||||||
|
myDiv="]]></xsl:text> |
||||||
|
<xsl:value-of select="concat('modalCardDetailImage',$ergebniselement_ordnr)" /> |
||||||
|
<xsl:text><![CDATA["; |
||||||
|
createViewer(myChartModelStr,myDiv); |
||||||
|
|
||||||
|
]]></xsl:text> |
||||||
|
</xsl:if> |
||||||
|
</xsl:for-each> |
||||||
|
</xsl:for-each> |
||||||
|
<xsl:text><![CDATA[ |
||||||
|
} |
||||||
|
|
||||||
|
function createViewer(myChartModelStr,chartDiv) |
||||||
|
{ |
||||||
|
myChartModel=JSON.parse(myChartModelStr); |
||||||
|
renderChart(chartDiv,myChartModel); |
||||||
|
} |
||||||
|
|
||||||
|
function toggleLegendeDisplay(legendeDiv) |
||||||
|
{ |
||||||
|
var myDiv=document.getElementById(legendeDiv); |
||||||
|
if(myDiv.style.display=="block") |
||||||
|
myDiv.style.display="none"; |
||||||
|
else |
||||||
|
myDiv.style.display="block"; |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
]]></xsl:text> |
||||||
|
</script> |
||||||
|
|
||||||
|
</xsl:template> |
||||||
|
</xsl:stylesheet> |
Loading…
Reference in new issue