1626 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
6639 |
thomas |
4 |
* Template für die Importmaske in der Kundenverwaltung
|
1626 |
daniel |
5 |
*/
|
|
|
6 |
|
|
|
7 |
?>
|
6639 |
thomas |
8 |
<div class="wpsg_productgroups" id="wpsg-bs">
|
1626 |
daniel |
9 |
|
6639 |
thomas |
10 |
<nav class="navbar navbar-default">
|
|
|
11 |
|
|
|
12 |
<div class="container-fluid">
|
|
|
13 |
<div class="navbar-header">
|
|
|
14 |
<a class="navbar-brand" href="#"><?php echo __('wpShopGermany', 'wpsg'); ?></a>
|
|
|
15 |
</div>
|
|
|
16 |
<div class="collapse navbar-collapse" id="bs-customer-navbar-collapse-1">
|
|
|
17 |
<ul class="nav navbar-nav">
|
|
|
18 |
<li role="presentation" class="wpsg-customer-tab-a active"><a href="#" onclick="return false;"><?php echo __("Kundenverwaltung - Kundendatenimport", "wpsg"); ?></a></li>
|
|
|
19 |
</ul>
|
|
|
20 |
<ul class="nav navbar-nav navbar-right">
|
|
|
21 |
<li role="presentation" class="wpsg-customer-tab-a wpsg_showhide_filter" id="wpsg-customer-tab-0"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customer&action=index" class="add-new-h2" class="add-new-h2"><span class="glyphicon glyphicon-search"></span><?php echo __("Zurück zur Kundenverwaltung", "wpsg"); ?></a></li>
|
|
|
22 |
</ul>
|
|
|
23 |
</div>
|
|
|
24 |
</div>
|
|
|
25 |
</nav>
|
|
|
26 |
<div class="wpsg-filter wpsg-customer-tab wpsg-customer-tab-0 container-fluid from horizontal" >
|
|
|
27 |
<div class="row">
|
|
|
28 |
<div class="col-lg-4">
|
|
|
29 |
|
|
|
30 |
<form method="POST" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customer&action=import&noheader=1" id="import_form" enctype="multipart/form-data">
|
1626 |
daniel |
31 |
|
6639 |
thomas |
32 |
<div class="wpsg_hinweis"><?php echo __('Laden Sie ein vorher exportiertes CSV File hoch, die Kundendaten werden dann aus dieser Datei importiert.', 'wpsg'); ?></div>
|
|
|
33 |
<br />
|
|
|
34 |
|
|
|
35 |
<input type="file" id="wpsg_importfile" name="wpsg_importfile" />
|
|
|
36 |
|
|
|
37 |
<br /><br />
|
|
|
38 |
<input type="submit" class="button-primary" value="<?php echo __('Import der Kundendaten starten', 'wpsg'); ?>" class="button-primary" name="wpsg_import" />
|
|
|
39 |
|
|
|
40 |
</form>
|
|
|
41 |
|
|
|
42 |
<script type="text/javascript">/* <![CDATA[ */
|
|
|
43 |
|
|
|
44 |
jQuery('#import_form').on('submit', function(evt) {
|
|
|
45 |
|
|
|
46 |
var file = jQuery('#wpsg_importfile')[0].files[0];
|
|
|
47 |
|
|
|
48 |
if (file && file.size < <?php echo wpsg_get_file_upload_max_size(); ?>){
|
|
|
49 |
|
|
|
50 |
return true;
|
|
|
51 |
|
|
|
52 |
} else if (file) {
|
|
|
53 |
|
|
|
54 |
alert("<?php echo wpsg_translate(__('Dateigröße übersteigt Upload Limit von #1#.', 'wpsg'), wpsg_formatSize(wpsg_get_file_upload_max_size())); ?>");
|
|
|
55 |
|
|
|
56 |
evt.preventDefault();
|
|
|
57 |
return false;
|
|
|
58 |
|
|
|
59 |
} else {
|
|
|
60 |
|
|
|
61 |
alert("<?php echo wpsg_translate(__('Es wurde keine Datei ausgewählt.', 'wpsg')); ?>");
|
|
|
62 |
|
|
|
63 |
evt.preventDefault();
|
|
|
64 |
return false;
|
|
|
65 |
|
|
|
66 |
}
|
|
|
67 |
|
|
|
68 |
} );
|
|
|
69 |
|
|
|
70 |
/* ]]> */</script>
|
|
|
71 |
</div>
|
|
|
72 |
</div>
|
|
|
73 |
</div>
|
1626 |
daniel |
74 |
</div>
|