Jump to content

Client Area {if} Questions


gigageta

Recommended Posts

This is already included when a client is viewing the client area homepage. You can open up clientareahome.tpl to find the following:

 

{if in_array('invoices',$contactpermissions)}
<h2><strong>{$clientsstats.numdueinvoices}</strong> {$LANG.invoicesdue}</h2>
<form method="post" action="clientarea.php?action=masspay">
<table width="100%" border="0" align="center" cellpadding="10" cellspacing="0" class="data">
 <tr>
   {if $masspay}<th width="15"></th>{/if}
   <th>{$LANG.invoicenumber}</th>
   <th>{$LANG.invoicesdatecreated}</th>
   <th>{$LANG.invoicesdatedue}</th>
   <th>{$LANG.invoicestotal}</th>
   <th>{$LANG.invoicesbalance}</th>
   <th>{$LANG.invoicesstatus}</th>
   <th> </th>
 </tr>
 {foreach key=num item=invoice from=$invoices}
 <tr>
   {if $masspay}<td><input type="checkbox" name="invoiceids[]" value="{$invoice.id}" /></td>{/if}
   <td><a href="viewinvoice.php?id={$invoice.id}" target="_blank">{$invoice.invoicenum}</a></td>
   <td>{$invoice.datecreated}</td>
   <td>{$invoice.datedue}</td>
   <td>{$invoice.total}</td>
   <td>{$invoice.balance}</td>
   <td>{$invoice.status}</td>
   <td><a href="viewinvoice.php?id={$invoice.id}" target="_blank">{$LANG.invoicesview}</a></td>
 </tr>
 {foreachelse}
 <tr>
   <td colspan="{if $masspay}8{else}7{/if}" align="center">{$LANG.norecordsfound}</td>
 </tr>
 {/foreach}
 {if $invoices}
 <tr style="font-weight:bold;">
   <td colspan="{if $masspay}4{else}3{/if}">{if $masspay}<input type="submit" value="{$LANG.masspayselected}" />{/if}</td>
   <td style="text-align:right;">{$LANG.invoicestotaldue}</td>
   <td>{$totalbalance}</td>
   <td colspan="2">{if $masspay}<a href="clientarea.php?action=masspay&all=true">{$LANG.masspayall}</a>{/if}</td>
 </tr>
 {/if}
</table>
</form>
{/if}

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