gigageta Posted October 24, 2010 Share Posted October 24, 2010 Hi, im trying to make this work, can u tell me if it is possible, I want to show a message in the client area if someone has a overdue invoice or a invoice is ready to be paid, can anyone tell me if there is a {if ........} code that can do it. 0 Quote Link to comment Share on other sites More sharing options...
Jordan Posted October 24, 2010 Share Posted October 24, 2010 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} 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.