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