17 <tr class="listheading">
18 <th>[% 'Account' | $T8 %]</td>
19 <th colspan="3">[% 'Description (Click on Description for details)' | $T8 %]</td>
20 <th>[% 'Debit' | $T8 %]</td>
21 <th>[% 'Credit' | $T8 %]</td>
24 [%- FOREACH row = CA %]
26 <tr class="listheading">
27 <td><a href="[% row.link_edit_account %]">[% row.accno | html %]</a></td>
28 <td colspan="5">[% row.description | html %]</td>
31 <tr class="listrow[% loop.count % 2 %]">
32 <td><b><a href="[% row.link_edit_account %]">[% row.accno | html %]</a></b></td>
33 <td colspan="3" onclick="account_details([% row.id %])">[% row.description | html %]</td>
34 <td class='numeric'>[% row.debit | html %]</td>
35 <td class='numeric'>[% row.credit | html %]</td>
38 <tr id="ajaxrow[% row.id %]" style="display:none", onclick="$(this).toggle()">
39 <td colspan="6" width="100%"><div id="ajaxcontent[% row.id %]"></div></td>
47 <script type='text/javascript'>
48 function account_details(id) {
50 url: 'am.pl?action=list_account_details',
53 success: function (data) { $('#ajaxcontent' + id).html(data) },
55 $('#ajaxrow' + id).toggle();