phpwcms generated <table><tr><td> question

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
submike
Posts: 50
Joined: Wed 25. Aug 2004, 17:36
Location: Chicago
Contact:

phpwcms generated <table><tr><td> question

Post by submike »

I am trying to update the attributes to the table that phpwcms generates, and add an <td> before the header and an additional <td> after the footer.

This is what is generated:

<table border="0" cellspacing="0" cellpadding="0" width="608" bgcolor="#87D3E5" class="tborder" align="center">
<tr>
<td style="height:20px;" >


I would like this to become:

<table border="0" cellspacing="0" cellpadding="0" width="608" bgcolor="#87D3E5" class="tborder" align="center" height="100%">
<tr>
<td background="img/left_rpt.gif"><img src="img/blank.gif"></td>
<td style="height:20px;" >

Items in bold represent changes

If someone can point me to which file needs to be updated or if there's a way to accomplish this through CSS.

Thanks in advance,
Mike
submike
Posts: 50
Joined: Wed 25. Aug 2004, 17:36
Location: Chicago
Contact:

Post by submike »

I found what I was looking for and fixed the table height, but I'm not sure how to make the modifications to the <td>. File in the include/inc_front/content.func.inc.php file starting on starting on line 211.

Where can I find the values that are being using in these statements?

211 $content["all"] .= colspan_table_row($pagelayout, "header", $colspan, $block["headertext"]);
223 $content["all"] .= colspan_table_row($pagelayout, "footer", $colspan, $block["footertext"]); //footer row

Thanks again for any help anyone may have to offer,
Mike

BTW, a big thanks to Oliver Georgi for all of his hard work.
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

why this (sorry - your solution is not optimal).

Use CSS. Or use custom layout - 3rd radio button!!!

It is not recommend to use the height attribute.
See this: http://www.blitzblau.de/blockierter-wandel/index.php


Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
submike
Posts: 50
Joined: Wed 25. Aug 2004, 17:36
Location: Chicago
Contact:

Post by submike »

why this (sorry - your solution is not optimal).
You're right, I'm in hack mode today. I didn't even see custom layout. Problem solved. Thanks again for all you hard work.
Post Reply