{* $Id$ *} {if $tiki_p_acct_manage_accounts=='y'} {/if} {foreach from=$accounts item=a}{cycle values="odd,even" assign="style"} {if $tiki_p_acct_manage_accounts=='y'} {/if} {/foreach}
{tr}Account{/tr} {tr}Account name{/tr} {tr}Notes{/tr} {tr}Budget{/tr} {tr}Locked{/tr} {tr}Debit{/tr} {tr}Credit{/tr} {tr}Tax{/tr}
{$a.accountId} {$a.accountName|escape} {$a.accountNotes|escape} {if $book.bookCurrencyPos==-1}{$book.bookCurrency}{/if} {$a.accountBudget|number_format:$book.bookDecimals:$book.bookDecPoint:$book.bookThousand} {if $book.bookCurrencyPos==1}{$book.bookCurrency}{/if} {if $a.accountLocked==1}{tr}Yes{/tr}{else}{tr}No{/tr}{/if} {if $book.bookCurrencyPos==-1}{$book.bookCurrency}{/if} {$a.debit|number_format:$book.bookDecimals:$book.bookDecPoint:$book.bookThousand} {if $book.bookCurrencyPos==1}{$book.bookCurrency}{/if} {if $book.bookCurrencyPos==-1}{$book.bookCurrency}{/if} {$a.credit|number_format:$book.bookDecimals:$book.bookDecPoint:$book.bookThousand} {if $book.bookCurrencyPos==1}{$book.bookCurrency}{/if} {$a.accountTax} {actions} {strip} {icon name="edit" _menu_text='y' _menu_icon='y' alt="{tr}Edit{/tr}"} {if $a.accountLocked==1} {$iconName = 'unlock'} {$iconLabel = "{tr}Unlock{/tr}"} {$confirmMsg = "{tr}Unlock account?{/tr}"} {else} {$iconName = 'lock'} {$iconLabel = "{tr}Lock{/tr}"} {$confirmMsg = "{tr}Lock account?{/tr}"} {/if}
{ticket}
{icon name="remove" _menu_text='y' _menu_icon='y' alt="{tr}Remove{/tr}"} {/strip} {/actions}
{button href="tiki-accounting_account.php?action=new&bookId={$bookId|escape:'attr'}" _text="{tr}Create a new account{/tr}"} {icon name="print" alt="{tr}printable version{/tr}"} {icon name="export" alt="{tr}export table{/tr}"}