40361: Vocus CDR Format
[freeside.git] / httemplate / edit / cdr_type.cgi
1 <% include('/elements/header.html', { title => 'CDR Types' } ) %>
2 <% include('/elements/menubar.html', 'Rate plans' => "${p}browse/rate.cgi" ) %>
3 <BR><% include('/elements/error.html') %>
4 <BR>
5 CDR types define types of phone usage for billing, such as voice 
6 calls and SMS messages.  Each CDR type must have a set of rates 
7 configured in the rate tables.
8 <BR>
9 <FORM METHOD="POST" ACTION="<% "${p}edit/process/cdr_type.cgi" %>">
10 <TABLE ID="AutoTable" BORDER=0 CELLSPACING=0>
11   <TR>
12     <TH>Type#</TH>
13     <TH>Name</TH>
14   </TR>
15   <TR ID="cdr_template">
16     <TD>
17       <INPUT NAME="cdrtypenum" SIZE=16 MAXLENGTH=16 ALIGN="right">
18     </TD>
19     <TD>
20       <INPUT NAME="cdrtypename" SIZE=16 MAXLENGTH=80>
21     </TD>
22   </TR>
23 <&  /elements/auto-table.html,
24   'template_row' => 'cdr_template',
25   'data'   => \@data,
26 &>
27 </TABLE>
28 <INPUT TYPE="submit" VALUE="Apply changes"> </FORM> <BR>
29 <% include('/elements/footer.html') %>
30 <%init>
31
32 die "access denied"
33   unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
34
35 my @data = (
36   qsearch({ 
37     'table' => 'cdr_type',
38     'hashref' => {},
39     'order_by' => 'ORDER BY cdrtypenum ASC'
40   })
41 );
42
43 </%init>