Subversion Repositories wpShopGermany4

Rev

Rev 1068 | Rev 4943 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1067 daniel 1
<?php
2
 
3
	/**
4
	 * Template für die Verwaltung der Kundendaten
5
	 */
6
 
7
?>
8
<div class="wpsg_admin_submenu">
9
 
10
	<div class="head">
11
		<div class="title"><?php echo __("Einstellungen", "wpsg"); ?></div>
12
		<div style="clear:both;"></div>
13
	</div>
14
 
15
	<ul>
16
		<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
17
		<li class="<?php echo (($k == $this->view['subAction'])?'current':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a></li>
18
		<?php } ?>
19
	</ul>
20
 
21
</div>
22
 
23
<div class="wpsg_admin_content">
24
	<div class="wpsg_admin_box" id="wpsg_tab">
25
 
26
		<form name="form1" method="post" enctype="multipart/form-data" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;subaction=<?php echo $_REQUEST['subaction']; ?>">
27
 
28
			<div class="head">
29
				<div class="title">
30
					<div class="tab" id="tab1"><?php echo __('Pfllichtfelder', 'wpsg'); ?></div>
31
					<div class="tab" id="tab2"><?php echo __('Weitere Kundendaten', 'wpsg'); ?></div>
32
					<div class="tabcontent tablink">
33
						<a href="" title="<?php echo __('Neues Kundenfeld hinzufügen', 'wpsg'); ?>" class="wpsg_icon wpsg_icon_right wpsg_icon_add" onclick="return wpsg_addCustomField();"></a>
34
					</div>
35
					<div class="wpsg_clear"></div>
36
				</div>
37
			</div>
38
			<div class="content" id="wpsg_mwst_list">
39
 
40
				<div id="tabcontent1" class="tabcontent">
1068 daniel 41
					<?php echo $this->render(WPSG_PATH_VIEW.'/admin/kundendaten_tab1.phtml'); ?>
1067 daniel 42
				</div>
43
				<div id="tabcontent2" class="tabcontent">
44
 
1068 daniel 45
					<?php echo $this->render(WPSG_PATH_VIEW.'/admin/kundendaten_tab2.phtml'); ?>
1067 daniel 46
 
47
				</div>
48
 
49
			</div>
50
 
51
			<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit" /></p>
52
 
53
		</form>
54
 
55
		<script type="text/javascript">
56
 
57
			/**
58
			 * Wird beim hinzufügen eines benutzerdefinierten Kundenfeldes aufgerufen
59
			 */
60
			function wpsg_addCustomField()
61
			{
62
 
63
				jQuery('#tabcontent2').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
64
 
65
				jQuery.ajax( {
66
					url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=kundendaten&do=add&noheader=1',
67
					success: function(data) {
68
						jQuery('#tabcontent2').html(data);
69
					}
70
				} );
71
 
72
				return false;
73
 
74
			} // function wpsg_addCustomField()
75
 
76
			jQuery(document).ready(function() {
77
				jQuery('#wpsg_tab').wpsg_tab( {
78
					'cookiename': 'wpsg_kundendaten_tab',
79
					'tab2': function() {
80
						jQuery('.tablink').show();
81
					}
82
				} );
83
			} );
84
 
85
		</script>
86
 
87
	</div>
88
</div>