summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorjeff <jeff>2008-05-19 04:07:45 +0000
committerjeff <jeff>2008-05-19 04:07:45 +0000
commit93810e2d18325d6f3b56cb3738d4400af69e6908 (patch)
treedf153b58bb9ab3a9bf6cd208d388240a3e3dbc45 /httemplate
parenta374e45e9ecbe5451e83dbb81f8873d2d909b2ac (diff)
backport voip_cdr's upstream_simple, and the columnization features
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/misc/cdr-import.html14
1 files changed, 9 insertions, 5 deletions
diff --git a/httemplate/misc/cdr-import.html b/httemplate/misc/cdr-import.html
index 60f619e81..b71a3e365 100644
--- a/httemplate/misc/cdr-import.html
+++ b/httemplate/misc/cdr-import.html
@@ -1,11 +1,13 @@
<% include("/elements/header.html",'Call Detail Record Import') %>
<FORM ACTION="process/cdr-import.html" METHOD="POST" ENCTYPE="multipart/form-data">
Import a CSV file containing Call Detail Records (CDRs).<BR><BR>
-CDR Format: <SELECT NAME="format">
-<OPTION VALUE="asterisk">Asterisk</OPTION>
-<OPTION VALUE="unitel">Unitel/RSLCOM</OPTION>
-<OPTION VALUE="simple">Simple</OPTION>
-</SELECT><BR><BR>
+CDR Format:
+<SELECT NAME="format">
+% foreach my $format ( keys %formats ) {
+ <OPTION VALUE="<% $format %>"><% $formats{$format} %></OPTION>
+% }
+</SELECT>
+<BR><BR>
Filename: <INPUT TYPE="file" NAME="csvfile"><BR><BR>
@@ -19,4 +21,6 @@ Filename: <INPUT TYPE="file" NAME="csvfile"><BR><BR>
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Import');
+tie my %formats, 'Tie::IxHash', FS::cdr->import_formats;
+
</%init>