Ich habe mir ein Template entwickelt, bei dem ich Spalten nach Bedarf in der Tabelle ausgeben möchte. Normalerweise kein Problem (lerne ja dazu), aber.....
Bei dem Template habe ich rechts 2 Spalten liegen. Je nachdem, wie nun die Module right und user3 veröffentlicht sind, soll nun entweder 1 Spalte oder auch 2 Spalten in der Tabelle ausgegeben werden.
Wie kann ich das am eleganesten lösen? Mein Ansätze als nicht php´ler sind kläglich gescheitert![]()
Hier einmal der betreffende Auszug aus meiner index:
Ich freu mich über jeden Ratschlag, denn ich komme nicht so wirklich weiter...Code:<table align="center" border="0" cellpadding="0" cellspacing="1" width="100%"> <tr> <td valign="top" width="146"><table background="XXX/images/pink_slice_13.gif" border="0" cellpadding="0" cellspacing="0" width="146"> <tr> <td><table border="0" cellpadding="0" cellspacing="3" width="100%"> <tr> <td class="Stil4"><?php mosLoadModules ( 'right' ); ?></td> </tr> </table></td> </tr> </table> <table background="XXX/images/pink_slice_13.gif" border="0" cellpadding="0" cellspacing="0" width="146"> <tr> <td><table border="0" cellpadding="0" cellspacing="0" height="17" width="2"> <tr> <td height="17" width="1"></td> <td align="right" height="17" width="1"></td> </tr> </table></td> </tr> <tr> <td><table border="0" cellpadding="0" cellspacing="3" width="100%"> <tr> <td> </td> </tr> </table><img src="XXX/images/pink_slice_40.gif" height="66" width="146"></td> </tr> </table></td> <td valign="top" width="146"><table background="XXX/images/pink_slice_41.gif" border="0" cellpadding="0" cellspacing="0" width="146"> <tr> <td><table border="0" cellpadding="0" cellspacing="3" width="100%"> <tr> <td class="Stil4"><?php mosLoadModules ( 'user3' ); ?></td> </tr> </table></td> </tr> </table> <table background="XXX/images/pink_slice_41.gif" border="0" cellpadding="0" cellspacing="0" width="146"> <tr> <td><table border="0" cellpadding="0" cellspacing="0" height="17" width="2"> <tr> <td height="17" width="1"></td> <td align="right" height="17" width="1"></td> </tr> </table></td> </tr> <tr> <td><table border="0" cellpadding="0" cellspacing="3" width="100%"> <tr> <td><p> </p> </td> </tr> </table></td> </tr> </table><img src="XXX/images/pink_slice_40.gif" height="66" width="146"></td> </tr> </table>
Lieben Gruß,
Weird


LinkBack URL
About LinkBacks
Zitieren
Lesezeichen