Subversion Repositories wpShopGermany4

Rev

Rev 6503 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6503 Rev 6639
Line 1... Line 1...
1
<?php
1
<?php
2
 
2
 
3
	/**
3
	/**
4
	 * Template für den Import der Kundendaten 
4
	 * Template für die Importmaske in der Kundenverwaltung 
5
	 */
5
	 */
6
 
6
 
7
?>
7
?>
8
<div class="wrap">
-
 
9
	<div class="icon32 icon32-posts-post" id="icon-edit"><br></div>
8
<div class="wpsg_productgroups" id="wpsg-bs">
10
	<h2>
-
 
11
		<?php echo __('Kundenimport', 'wpsg'); ?>
-
 
12
		<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customer&amp;action=index" class="add-new-h2"><?php echo __("Zurück zur Kundenverwaltung", "wpsg"); ?></a>
-
 
13
	</h2>
-
 
14
	
9
	
15
	<br />
10
		<nav class="navbar navbar-default">	
16
	
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">
17
	<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">
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">
18
	
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>
19
		<div class="wpsg_hinweis"><?php echo __('Laden Sie ein vorher exportiertes CSV File hoch, die Kundendaten werden dann aus dieser Datei importiert.', 'wpsg'); ?></div>
26
	<div class="wpsg-filter wpsg-customer-tab wpsg-customer-tab-0 container-fluid from horizontal" >
20
		<br />
27
		<div class="row">	
-
 
28
			<div class="col-lg-4">
21
	
29
			
22
		<input type="file" name="wpsg_importfile" />
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">
23
		
31
		
-
 
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
					
24
		<br /><br />
37
					<br /><br />
25
		<input type="submit" value="<?php echo __('Import starten', 'wpsg'); ?>" class="button-primary" name="wpsg_import" />
38
					<input type="submit" class="button-primary" value="<?php echo __('Import der Kundendaten starten', 'wpsg'); ?>" class="button-primary" name="wpsg_import" />
26
		
39
					
27
	</form>
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
					} );
28
	
69
													
-
 
70
				/* ]]> */</script>
-
 
71
			</div>
-
 
72
		</div>
-
 
73
	</div>	
29
</div>
74
</div>
30
75