If I understand you correctly, this has nothing to do with
HTML::Template ... you need to use the colspan
attribute on your TD tag
<td colspan="3"> ( or 4 or how ever
many columns you want to span)
-----Original Message-----hey,
From: Senthil Nathan [mailto:[EMAIL PROTECTED]
Sent: Thursday, 15 December 2005 08:59
To: [EMAIL PROTECTED]
Cc: Html-template-users@lists.sourceforge.net
Subject: Re: [htmltmpl] HTML::Template - need to merge the columns of a table
thats not the one i expect.
i tell the first row with the spacing as some amount of % and then check for the bool var inside that loop.
sample code is here,
<TABLE BORDER=0 cellpadding="0" width="100%">
<TR bgcolor="87b77b">
<td width="15%" align="center">
<font face="Arial" size="2"><b>Job ID</b></font></td>
<td width="10%" align="center">
<font face="Arial" size="2"><b>Passed</b></font></td>
<td width="10%" align="center">
<font face="Arial" size="2"><b>Failed</b></font></td>
<td width="10%" align="center">
<font face="Arial" size="2"><b>Total</b></font></td>
</TR>
<TMPL_LOOP NAME="job_loop">
<TD align="center"><a href=""job_id">"> <TMPL_VAR NAME="job_id"></TD>
<TMPL_IF rep_found>
<TD>Reports are missing in the location</TD> ------> this comes under only one column. remaining 2 columns are empty. i would like to merge all the columns and display.
<TMPL_ELSE>
<TD align="center"><TMPL_VAR NAME="passed"></TD>
<TD align="center"><TMPL_VAR NAME="failed"></TD>
<TD align="center"><TMPL_VAR NAME="total"></TD>
</TMPL_IF>
</TR>
</TMPL_LOOP>
</TABLE>
On 12/15/05, Dan Horne <[EMAIL PROTECTED]> wrote:<tmpl_if my_flag><!-- merged cells here --><tmpl_else><!-- non-merged cells--></tmpl_if>-----Original Message-----Hi All,
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Senthil Nathan
Sent: Thursday, 15 December 2005 08:19
To: Html-template-users@lists.sourceforge.net
Subject: [htmltmpl] HTML::Template - need to merge the columns of a table
I need to merge the columns of a table during runtime in HTNL Template.
I have a bool variable set, whenever the cells needs to be merged.
So, chking for that var if its set, need to merge the cells else need to have the cells as defined earlier.
How this can be done in HTML::Template??
Thanks
Senthil