<INPUT TYPE="hidden" NAME="availbatch" VALUE="<% $availbatch %>">
- <INPUT TYPE="hidden" NAME="countrycode" VALUE="1">
-
<% include( '/elements/tr-select-table.html',
'table' => 'part_export',
'name_col' => 'machine',
)
%>
+ <TR>
+ <TH ALIGN="right">Country code</TH>
+ <TD>
+ <INPUT TYPE = "text"
+ NAME = "countrycode"
+ VALUE = "<% $conf->config('default_phone_countrycode') || 1 %>"
+ >
+ </TD>
+ </TR>
+
<% include( '/elements/file-upload.html',
'field' => 'file',
'label' => 'Filename',
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Import');
-my $availbatch = time2str('webimport-%Y/%m/%d-%T'. "-$$-". rand() * 2**32, time);
+my $conf = new FS::Conf;
+
+my $availbatch =
+ time2str('webimport-%Y/%m/%d-%T'. "-$$-". rand() * 2**32, time);
</%init>