Re: Templates

[email protected] (J-F Mammet)
Newsgroups php.template
Message-ID <[email protected]>
>
>Does your system support inclusion of one template within the other?
>Perhaps, my french is too bad but I couldn't really figure it out from
>the code.
Yes here is a sample code template :
{HEADER}
              </td>
               <td width=155 align=right>
{TOP10}
                 <table border=0 cellsapcing=0 cellpadding=0>
                   <tr>
                     <td>
                       <img src="images/vide.gif" width=3 height=3></td>
                   </tr>
                 </table>
{NEWS}
                 <table border=0 cellsapcing=0 cellpadding=0>
                   <tr>
                     <td>
                       <img src="images/vide.gif" width=3 height=3></td>
                   </tr>
                 </table>
               </td>
               <td width=4><img src="images/vide.gif" width=4 height=10></td>
             </tr>
           </table>
         </td>
{FOOTER}

With for exemple {NEWS}:
                 <table width=151 cellspacing="0" cellpadding="0" 
border="1" bordercolor=#10247C><tr><td>
                   <table width=151 cellspacing="0" cellpadding="0" border="0">
                     <tr>
                       <td bgcolor=#10107b align=center>
                         <font face="arial" color=FFFFFF><b>New 
Arrivals</b></font>
                       </td>
                     </tr>
{NEWSS}
                   </table>
                 </tr></td></table>

and {NEWSS}
                     <tr>
                       <td bgcolor=#FFF8CE align=left nowrap>
                         <font face="arial" color=#10107B size=1> 
{NEW_LIEN}{NEW_NOM}</A></font>
                       </td>
                     </tr>

the values in this one are replaced by values I get from the database. It's 
looped for all lines of result of the SQL select.

Hope this helps.

J-F Mammet
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.