paragraph_table für w2d 5.0
Um den gesamten Code ansehen zu können, nutzen Sie bitte die Markierfunktion mit Hilfe der Maus.
CCML:
<cc:*>
--------------------------------------------------
Web2Date
Layout: all
Datei: paragraph_table.ccml
--------------------------------------------------
</cc:*>
<table id="tab<cc:print value="¶graph.table.colcount"><cc:print value="¶graph.table.rowcount">">
<cc:loop type="row" obj="myrow">
<cc:if cond="&myrow.number | 2=1">
<cc:if cond="&myrow.header"><tr class="header">
<cc:else><tr class="even">
</cc:if>
<cc:else><tr class="odd">
</cc:if>
<cc:loop type="col" obj="mycol" row="&myrow.number">
<cc:if cond="&myrow.header">
<td class="rowheader">
<cc:else><cc:if cond="&mycol.header"><td class="colheader">
<cc:else><cc:if cond="&mycol.picture"><td class="tablepic">
<cc:else>
<td class="cell"></cc:if></cc:if></cc:if>
<cc:if cond="&mycol.picture"><cc:picture uid="&mycol.picture" obj="tablepic" width="500 / ¶graph.table.colcount - 9" suffix="'cols'+¶graph.table.colcount">
<cc:if cond="&mycol.picture.zoom.isonsite"><a href="<cc:print value="&mycol.picture.zoom.url">"><cc:printpicture obj="tablepic" suffix="'cols'+¶graph.table.colcount" alt="&page.content.caption" title="&page.content.caption"></img></a></cc:if>
<cc:if cond="&mycol.picture.zoom.isoffsite"><a href="<cc:print value="&mycol.picture.zoom.url">"><cc:printpicture obj="tablepic" suffix="'cols'+¶graph.table.colcount" alt="&page.content.caption" title="&page.content.caption"></img></a></cc:if>
<cc:if cond="&mycol.picture.zoom.isnone"><cc:printpicture obj="tablepic" suffix="'cols'+¶graph.table.colcount" alt="&page.content.caption" title="&page.content.caption"></img></cc:if>
<cc:if cond="&mycol.picture.zoom.ispicture"><cc:picture uid="&mycol.picture.zoom.uid" obj="hugepic"><a rel="lightbox[<cc:print value="&page.content.caption">]" href="<cc:printpictureurl obj="hugepic">" onmouseover="return overlib('Grafik in Großansicht anzeigen?');" onmouseout="return nd(500);"><cc:printpicture obj="tablepic" suffix="'cols'+¶graph.table.colcount" alt="&page.content.caption" title="&page.content.caption"></img></a></cc:if>
<cc:if cond="&mycol.picture.zoom.isdownload"><cc:download uid="&mycol.picture.zoom.uid" obj="mydownload"><a href="<cc:print value="&mydownload.url">"><cc:printpicture obj="tablepic" suffix="'cols'+¶graph.table.colcount" alt="&page.content.caption" title="&page.content.caption"></img></a></cc:if>
<cc:else>
<cc:print value="&mycol.text"></cc:if></td>
</cc:loop>
</tr>
</cc:loop>
</table>
<div class="clearer"></div>
<br />
<cc:if cond="&mycol.picture"><cc:picture uid="&mycol.picture" obj="tablepic" width="500 / ¶graph.table.colcount - 9" suffix="'cols'+¶graph.table.colcount">
Die fett markierte Codezeile ist zuständig für die Augabeformate von Bildern in Tabellen. Die Größe der einzelnen Grafiken ist abhängig von der Anzahl der Tabellenspalten.