php - Table width with Smarty -


how use alternative width in table php? used way getting error.

<table width="100%" border="0" cellspacing="0" cellpadding="0">     <tr>         <td width="{if $label_payment}{echo = 50%}{else}{echo = 100%}{/if}">shipping address         </td>         <td>payment address         </td>     </tr>     <tr>         <td width="{if $label_payment}{echo = 50%}{else}{echo = 100%}{/if}">{$address_label_shipping}         </td>          {if $address_label_payment}             <td width="50%">{$address_label_payment}             </td>         {if}      </tr> </table> 

is correct way?

{if $label_payment}{echo = 50%}{else}{echo = 100%}{/if} 

there no echo:

{if $label_payment}50%{else}100%{/if} 

leading to:

<td width="{if $label_payment}50%{else}100%{/if}"> 

Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -