Jump to content

Varable enable between templates


Recommended Posts

Hello,

Is it possible to get some variable avalaible from all template , for example is it possible to retrieve list of services in the clientareahome template, when i try to add this code , the list is empty, so how could i get the $services variable

 

Thanks

 

Code in clientareahome.tpl that doesn't work :

 

 

{foreach key=num item=service from=$services}

<tr class="clientareatable{$service.class}">

<td>{if $service.product eq 'Licence 1 ClickBackup + 5 Go'}<img src="images/1cb.png" />

{elseif $service.product eq 'Licence InfoBackup Manager + 5 Go'}<img src="images/im.png" />

{elseif $service.product eq 'Produit Test'}Produit Test{/if}</td>

<td>{$service.amount}</td>

<td>{$service.billingcycle}</td>

<td>{$service.nextduedate}</td>

<td><form method="post" action="{$smarty.server.PHP_SELF}?action=productdetails">

<input type="hidden" name="id" value="{$service.id}" />

<input type="image" src="images/details_open.png" alt="{$LANG.clientareaviewdetails}" />

</form></td>

</tr>

{foreachelse}

<tr>

<td colspan="6">{$LANG.norecordsfound}</td>

</tr>

{/foreach}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated