3 param_to_global( 'ac', '#^\d+(\.\d{0,2})?$#', 'ac', 'accountcode', 'id' );
5 // Viewer component for account
6 $viewer = new Viewer("Account", 'chartofaccount');
7 $viewer->SetWhere( "accountcode=$ac");
10 $template = <<<EOTEMPLATE
13 <th class="right">Account:</th>
14 <td class="left">##accountcode.format.%07.2lf##</td>
17 <th class="right">Short name:</th>
18 <td class="left">##shortname##</td>
21 <th class="right">Name:</th>
22 <td class="left">##name##</td>
25 <th class="right">Group:</th>
26 <td class="left"><a href="/view.php?t=accountgroup&id=##accountgroupcode.urlencode##">##accountgroupcode##</a></td>
29 <th class="right">High volume:</th>
30 <td class="left">##highvolume##</td>
33 <th class="right">Update to:</th>
34 <td class="left">##updateto##</td>
40 $viewer->SetTemplate( $template );
41 $viewer->SetTitle("Account $ac - " . $viewer->Record
->{'name'});
42 $c->page_title
= $viewer->Title
;
43 $page_elements[] = $viewer;
45 include_once("menus_entityaccount.php");