Toggle navigation
Toggle navigation
This project
Loading...
Sign in
data.posccaesar.org
/
npd
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
1
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Authored by
Holger Knublauch
2012-03-23 12:17:20 +1000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3cbeceb1a16e274e7f3d71989b94cc7c80753997
3cbeceb1
1 parent
7a6c46e8
Applied to * logic to cells as well
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
14 deletions
www.reportinghub.no/swp/DDRTable.uispin.html
www.reportinghub.no/swp/DDRTable.uispin.html
View file @
3cbeceb
...
...
@@ -5,25 +5,27 @@
<ui:setContext
ui:queryGraph=
"<http://www.reportinghub.no/ep/spin/ddr-tables>"
>
<h2>
{= ui:label(?template) }
</h2>
</ui:setContext>
<table
class=
"ddrTable"
>
<ui:setContext
ui:queryGraph=
"<http://www.reportinghub.no/ep/spin/ddr-tables>"
>
<tr
class=
"ddrTR"
>
<ui:forEach
ui:resultSet=
"{#
SELECT ?header
<table
class=
"ddrTable"
letrs:hrs=
"{#
SELECT ?header ?left
WHERE {
?template rhspin:tableHeaders ?list .
?list <http://jena.hpl.hp.com/ARQ/list#member> ?header .
GRAPH <http://www.reportinghub.no/ep/spin/ddr-tables> {
?template rhspin:tableHeaders ?list .
?list <http://jena.hpl.hp.com/ARQ/list#member> ?str .
BIND (fn:starts-with(?str, '*') AS ?left) .
BIND (IF(?left, fn:substring(?str, 2), ?str) AS ?header) .
}
}
}"
>
<th
class=
"ddrTH"
style=
"{= IF(fn:starts-with(?header, '*'), 'text-align: left', ?none) }"
let:h=
"{= IF(fn:starts-with(?header, '*'), fn:substring(?header, 2), ?header) }"
><ui:parse
ui:str=
"{= html:encodeBRs(spif:replaceAll(?h, ' ', ' ')) }"
/></th>
</ui:forEach>
</tr>
</ui:setContext>
<tr
class=
"ddrTR"
>
<ui:forEach
ui:resultSet=
"{= ?hrs }"
>
<th
class=
"ddrTH"
style=
"{= IF(?left, 'text-align: left', ?none) }"
><ui:parse
ui:str=
"{= html:encodeBRs(spif:replaceAll(?header, ' ', ' ')) }"
/></th>
</ui:forEach>
</tr>
<ui:forEach
ui:resultSet=
"{# SELECT ?row ?rowIndex WHERE { ?rs spr:rowIndices ?rowIndex } }"
>
<tr
class=
"ddrTR"
>
<ui:forEach
ui:resultSet=
"{# SELECT ?cell
WHERE { (?rs ?rowIndex) spr:rowCells (?cell ?cel
lIndex) } }"
>
<td
class=
"ddrTD"
>
{= ?cell }
</td>
<ui:forEach
ui:resultSet=
"{# SELECT ?cell
?colIndex WHERE { (?rs ?rowIndex) spr:rowCells (?cell ?co
lIndex) } }"
>
<td
class=
"ddrTD"
style=
"{= IF(spr:cell(?hrs, ?colIndex, 1), 'text-align: left', 'text-align: center') }"
>
{= ?cell }
</td>
</ui:forEach>
</tr>
</ui:forEach>
...
...
Please
register
or
login
to post a comment