Subversion Repositories wpShopGermany4

Rev

Rev 6639 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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&amp;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&amp;action=import&amp;noheader=1" id="import_form" enctype="multipart/form-data">
1626 daniel 31
 
7566 daniel 32
					<?php wpsg_formNounce('Customer', 'import'); ?>
33
 
6639 thomas 34
					<div class="wpsg_hinweis"><?php echo __('Laden Sie ein vorher exportiertes CSV File hoch, die Kundendaten werden dann aus dieser Datei importiert.', 'wpsg'); ?></div>
35
					<br />
36
 
37
					<input type="file" id="wpsg_importfile" name="wpsg_importfile" />
38
 
39
					<br /><br />
40
					<input type="submit" class="button-primary" value="<?php echo __('Import der Kundendaten starten', 'wpsg'); ?>" class="button-primary" name="wpsg_import" />
41
 
42
				</form>
43
 
44
				<script type="text/javascript">/* <![CDATA[ */
45
 
46
					jQuery('#import_form').on('submit', function(evt) {
47
 
48
						var file = jQuery('#wpsg_importfile')[0].files[0];
49
 
50
						if (file && file.size < <?php echo wpsg_get_file_upload_max_size(); ?>){
51
 
52
							return true;
53
 
54
						} else if (file) {
55
 
56
							alert("<?php echo wpsg_translate(__('Dateigröße übersteigt Upload Limit von #1#.', 'wpsg'), wpsg_formatSize(wpsg_get_file_upload_max_size())); ?>");
57
 
58
							evt.preventDefault();
59
							return false;
60
 
61
						} else {
62
 
63
							alert("<?php echo wpsg_translate(__('Es wurde keine Datei ausgewählt.', 'wpsg')); ?>");
64
 
65
							evt.preventDefault();
66
							return false;
67
 
68
						}
69
 
70
					} );
71
 
72
				/* ]]> */</script>
73
			</div>
74
		</div>
75
	</div>
1626 daniel 76
</div>