4718b7147f5434c55cdb8a981cdc2d607dd790b5
[freeside.git] / httemplate / browse / rate.cgi
1 <!-- mason kludge -->
2 <%= include("/elements/header.html","Rate plan listing", menubar( 'Main Menu' => "$p#sysadmin" )) %>
3 Rate plans, regions and prefixes for VoIP and call billing.<BR><BR>
4 <A HREF="<%=$p%>edit/rate.cgi"><I>Add a rate plan</I></A>
5 | <A HREF="<%=$p%>edit/rate_region.cgi"><I>Add a region</I></A>
6 <BR><BR>
7 <SCRIPT>
8 function rate_areyousure(href) {
9   if (confirm("Are you sure you want to delete this rate plan?") == true)
10     window.location.href = href;
11 }
12 </SCRIPT>
13
14 <%= table() %>
15   <TR>
16     <TH COLSPAN=2>Rate plan</TH>
17   </TR>
18
19 <% foreach my $rate ( sort { 
20      $a->getfield('ratenum') <=> $b->getfield('ratenum')
21    } qsearch('rate',{}) ) {
22 %>
23   <TR>
24     <TD><A HREF="<%= $p %>edit/rate.cgi?<%= $rate->ratenum %>"><%= $rate->ratenum %></A></TD>
25     <TD><A HREF="<%= $p %>edit/rate.cgi?<%= $rate->ratenum %>"><%= $rate->ratename %></A></TD>
26   </TR>
27
28 <% } %>
29
30 </TABLE>
31 </BODY>
32 </HTML>
33
34