[freeside-commits] freeside/httemplate/misc cdr-import.html, 1.5, 1.6
Ivan,,,
ivan at wavetail.420.am
Thu Apr 10 18:50:12 PDT 2008
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv22034/httemplate/misc
Modified Files:
cdr-import.html
Log Message:
checkpoint taqua
Index: cdr-import.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/cdr-import.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- cdr-import.html 29 Feb 2008 04:31:41 -0000 1.5
+++ cdr-import.html 11 Apr 2008 01:50:10 -0000 1.6
@@ -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 $format ( keys %formats ) {
+ <OPTION VALUE="<% $format %>"><% $format{$format} %></OPTION>
+% }
+</SELECT>
+<BR><BR>
Filename: <INPUT TYPE="file" NAME="csvfile"><BR><BR>
@@ -19,4 +21,6 @@
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Import');
+tie my %formats, FS::cdr->import_formats;
+
</%init>
More information about the freeside-commits
mailing list