Subversion Repositories wpShopGermany4

Rev

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

Rev 6846 Rev 7087
Line 14... Line 14...
14
            <div class="modal-header">
14
            <div class="modal-header">
15
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
15
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
16
                <h4 class="modal-title"><?php echo __('Kundendaten bearbeiten', 'wpsg'); ?></h4>
16
                <h4 class="modal-title"><?php echo __('Kundendaten bearbeiten', 'wpsg'); ?></h4>
17
            </div>
17
            </div>
18
            <div class="modal-body">
18
            <div class="modal-body">
19
 
-
 
-
 
19
				<?php if ($this->view['pflicht']['firma'] != '2') { ?>	
20
                <?php echo wpsg_drawForm_Input('dialog_firma', __('Firma', 'wpsg'), $this->view['data']['firma']); ?>
20
                	<?php echo wpsg_drawForm_Input('dialog_firma', __('Firma', 'wpsg'), $this->view['data']['firma']); ?>
-
 
21
                <?php } ?>
-
 
22
                <?php if ($this->view['pflicht']['ustidnr'] != '2') { ?>
21
                <?php echo wpsg_drawForm_Input('dialog_ustidnr', __('UStIdNr', 'wpsg'), $this->view['data']['ustidnr']); ?>
23
                	<?php echo wpsg_drawForm_Input('dialog_ustidnr', __('UStIdNr', 'wpsg'), $this->view['data']['ustidnr']); ?>
-
 
24
               	<?php } ?>
22
                <br />
25
                <br />
-
 
26
                <?php if ($this->view['pflicht']['anrede'] != '2') { ?>
23
                <?php echo wpsg_drawForm_Select('dialog_title', __('Anrede', 'wpsg'), $this->view['arTitles'], $this->view['data']['title'], array('noIndex' => true)); ?>
27
                	<?php echo wpsg_drawForm_Select('dialog_title', __('Anrede', 'wpsg'), $this->view['arTitles'], $this->view['data']['title'], array('noIndex' => true)); ?>
-
 
28
                 <?php } ?>
-
 
29
                <?php if ($this->view['pflicht']['vname'] != '2') { ?>
24
                <?php echo wpsg_drawForm_Input('dialog_vname', __('Vorname', 'wpsg'), $this->view['data']['vname']); ?>
30
                	<?php echo wpsg_drawForm_Input('dialog_vname', __('Vorname', 'wpsg'), $this->view['data']['vname']); ?>
-
 
31
                <?php } ?>
-
 
32
                <?php if ($this->view['pflicht']['name'] != '2') { ?> 
25
                <?php echo wpsg_drawForm_Input('dialog_name', __('Name', 'wpsg'), $this->view['data']['name']); ?>
33
                	<?php echo wpsg_drawForm_Input('dialog_name', __('Name', 'wpsg'), $this->view['data']['name']); ?>
-
 
34
                <?php } ?>
26
                <br />
35
                <br />
-
 
36
                <?php if ($this->view['pflicht']['geb'] != '2') { ?>
27
 				<?php echo wpsg_drawForm_Input('dialog_geb', __('Geburtsdatum', 'wpsg'), $this->view['data']['geb']); ?>
37
 					<?php echo wpsg_drawForm_Input('dialog_geb', __('Geburtsdatum', 'wpsg'), $this->view['data']['geb']); ?>
-
 
38
                <?php } ?>
28
                <br />
39
                <br />
-
 
40
                <?php if ($this->view['pflicht']['tel'] != '2') { ?>
29
                <?php echo wpsg_drawForm_Input('dialog_tel', __('Telefon', 'wpsg'), $this->view['data']['tel']); ?>
41
                	<?php echo wpsg_drawForm_Input('dialog_tel', __('Telefon', 'wpsg'), $this->view['data']['tel']); ?>
-
 
42
                <?php } ?>
-
 
43
                <?php if ($this->view['pflicht']['fax'] != '2') { ?>
30
                <?php echo wpsg_drawForm_Input('dialog_fax', __('Fax', 'wpsg'), $this->view['data']['fax']); ?>
44
                	<?php echo wpsg_drawForm_Input('dialog_fax', __('Fax', 'wpsg'), $this->view['data']['fax']); ?>
-
 
45
                <?php } ?>
-
 
46
                <?php if ($this->view['pflicht']['email'] != '2') { ?>
31
                <?php if ($this->hasMod('wpsg_mod_kundenverwaltung')) { ?>
47
	                <?php if ($this->hasMod('wpsg_mod_kundenverwaltung')) { ?>
32
	            	<?php echo wpsg_drawForm_Text(__('E-Mail', 'wpsg'),'<a href="'.WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Customer&action=edit&edit_id='.$this->view['data']['k_id'].'">'.$this->view['data']['email'].'</a>'); ?>
48
		            	<?php echo wpsg_drawForm_Text(__('E-Mail', 'wpsg'),'<a href="'.WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Customer&action=edit&edit_id='.$this->view['data']['k_id'].'">'.$this->view['data']['email'].'</a>'); ?>
-
 
49
					<?php } ?>
33
				<?php } ?>
50
				<?php } ?>
34
                <br />
51
                <br />
-
 
52
                <?php if ($this->view['pflicht']['strasse'] != '2') { ?>
35
                <?php echo wpsg_drawForm_Input('dialog_strasse', __('Straße', 'wpsg'), $this->view['data']['strasse']); ?>
53
                	<?php echo wpsg_drawForm_Input('dialog_strasse', __('Straße', 'wpsg'), $this->view['data']['strasse']); ?>
-
 
54
                <?php } ?>
-
 
55
                <?php if ($this->view['pflicht']['plz'] != '2') { ?>     
36
                <?php echo wpsg_drawForm_Input('dialog_plz', __('Postleitzahl', 'wpsg'), $this->view['data']['plz']); ?>
56
                	<?php echo wpsg_drawForm_Input('dialog_plz', __('Postleitzahl', 'wpsg'), $this->view['data']['plz']); ?>
-
 
57
                <?php } ?>	
-
 
58
                <?php if ($this->view['pflicht']['ort'] != '2') { ?>
37
                <?php echo wpsg_drawForm_Input('dialog_ort', __('Ort', 'wpsg'), $this->view['data']['ort']); ?>
59
                	<?php echo wpsg_drawForm_Input('dialog_ort', __('Ort', 'wpsg'), $this->view['data']['ort']); ?>
-
 
60
                <?php } ?>
-
 
61
                <?php if ($this->view['pflicht']['land'] != '2') { ?>
38
                <?php echo wpsg_drawForm_Select('dialog_land', __('Land', 'wpsg'), $this->view['arCountry'], $this->view['data']['land']); ?>
62
                	<?php echo wpsg_drawForm_Select('dialog_land', __('Land', 'wpsg'), $this->view['arCountry'], $this->view['data']['land']); ?>	
39
 
63
				<?php } ?>
40
                <br />
64
                <br />
41
 
65
 
42
                <?php echo wpsg_drawForm_Checkbox('dialog_customer', __('Auch Kundendaten anpassen', 'wpsg'), false, array('help' => 'dialog_customer')); ?>
66
                <?php echo wpsg_drawForm_Checkbox('dialog_customer', __('Auch Kundendaten anpassen', 'wpsg'), false, array('help' => 'dialog_customer')); ?>
43
                <?php echo wpsg_drawForm_Checkbox('dialog_all', __('Alle Bestellungen des Kunden ändern', 'wpsg'), false, array('help' => 'dialog_all')); ?>
67
                <?php echo wpsg_drawForm_Checkbox('dialog_all', __('Alle Bestellungen des Kunden ändern', 'wpsg'), false, array('help' => 'dialog_all')); ?>
44
                
68
                
Line 64... Line 88...
64
	[&nbsp; <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customer&action=edit&edit_id=<?php echo $this->view['data']['k_id']; ?>"><?php echo __('Zum Kunden', 'wpsg'); ?></a>&nbsp;]
88
	[&nbsp; <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customer&action=edit&edit_id=<?php echo $this->view['data']['k_id']; ?>"><?php echo __('Zum Kunden', 'wpsg'); ?></a>&nbsp;]
65
	<?php } ?>
89
	<?php } ?>
66
    <?php echo wpsg_drawForm_TextEnd(__('Kundennummer', 'wpsg')); ?>
90
    <?php echo wpsg_drawForm_TextEnd(__('Kundennummer', 'wpsg')); ?>
67
 
91
 
68
    <?php echo wpsg_drawForm_TextStart(); ?>
92
    <?php echo wpsg_drawForm_TextStart(); ?>
-
 
93
	<?php if ($this->view['pflicht']['firma'] != '2') { ?>
69
    <?php if (trim($this->view['data']['firma']) != '') { ?>
94
    	<?php if (trim($this->view['data']['firma']) != '') { ?>
70
    <?php echo wpsg_hspc($this->view['data']['firma']); ?><br />
95
    		<?php echo wpsg_hspc($this->view['data']['firma']); ?><br />
-
 
96
    	<?php } ?>
-
 
97
    <?php } ?>                    
-
 
98
 	<?php if ($this->view['pflicht']['anrede'] != '2') { ?>
-
 
99
    	<?php echo (($this->view['data']['title'] != '' && $this->view['data']['title'] != '-1')?wpsg_hspc($this->view['arTitles'][$this->view['data']['title']]).' ':''); ?>
-
 
100
    <?php } ?>                    
-
 
101
    <?php if ($this->view['pflicht']['vname'] != '2') { ?>
-
 
102
    	<?php echo wpsg_hspc($this->view['data']['vname']); ?>
-
 
103
    <?php } ?>                    
-
 
104
    <?php if ($this->view['pflicht']['name'] != '2') { ?>
-
 
105
    	<?php echo wpsg_hspc($this->view['data']['name']); ?><br />
71
    <?php } ?>
106
    <?php } ?>                    
72
    <?php echo (($this->view['data']['title'] != '' && $this->view['data']['title'] != '-1')?wpsg_hspc($this->view['arTitles'][$this->view['data']['title']]).' ':''); ?><?php echo wpsg_hspc($this->view['data']['vname']); ?> <?php echo wpsg_hspc($this->view['data']['name']); ?><br />
107
    <?php if ($this->view['pflicht']['strasse'] != '2') { ?>
73
    <?php echo wpsg_hspc($this->view['data']['strasse']); ?> <?php echo wpsg_hspc($this->view['data']['nr']); ?><br />
108
    	<?php echo wpsg_hspc($this->view['data']['strasse']); ?> <?php echo wpsg_hspc($this->view['data']['nr']); ?><br />
-
 
109
    <?php } ?>                    
-
 
110
   	<?php if ($this->view['pflicht']['plz'] != '2') { ?>
-
 
111
    	<?php echo wpsg_hspc($this->view['data']['plz']); ?>
-
 
112
    <?php } ?>                    
-
 
113
   	<?php if ($this->view['pflicht']['ort'] != '2') { ?>
-
 
114
    	<?php echo wpsg_hspc($this->view['data']['ort']); ?> 
-
 
115
    <?php } ?>                    
-
 
116
    <?php if ($this->view['pflicht']['land'] != '2') { ?>
74
    <?php echo wpsg_hspc($this->view['data']['plz']); ?> <?php echo wpsg_hspc($this->view['data']['ort']); ?> <?php echo wpsg_hspc($this->view['country']['kuerzel']); ?><br />
117
    	<?php echo wpsg_hspc($this->view['country']['kuerzel']); ?><br />
75
 
118
	<?php } ?>
76
    <a style="position: absolute; right:25px; top:10px; display:inline-block;" data-toggle="modal" data-target="#wpsg_customer_edit" href="#" title="<?php echo __('Anschrift ändern', 'wpsg'); ?>">
119
    <a style="position: absolute; right:25px; top:10px; display:inline-block;" data-toggle="modal" data-target="#wpsg_customer_edit" href="#" title="<?php echo __('Anschrift ändern', 'wpsg'); ?>">
77
        <span class="glyphicon glyphicon-pencil"></span>
120
        <span class="glyphicon glyphicon-pencil"></span>
78
    </a>
121
    </a>
79
 
122
 
80
    <?php echo wpsg_drawForm_TextEnd(__('Anschrift', 'wpsg')); ?>
123
    <?php echo wpsg_drawForm_TextEnd(__('Anschrift', 'wpsg')); ?>
81
 
124
	    
-
 
125
    <?php if ($this->view['pflicht']['geb'] != '2') { ?>
82
    <?php if (strtotime($this->view['data']['geb']) > 0) { ?>
126
    	<?php if (strtotime($this->view['data']['geb']) > 0) { ?>
83
    <?php echo wpsg_drawForm_Text(__('Geburtsdatum', 'wpsg'), wpsg_fromDate($this->view['data']['geb']), array('text' => true)); ?>
127
    		<?php echo wpsg_drawForm_Text(__('Geburtsdatum', 'wpsg'), wpsg_fromDate($this->view['data']['geb']), array('text' => true)); ?>
84
    <?php } ?>
128
    	<?php } ?>
85
 
129
	<?php } ?>                    
-
 
130
    <?php if ($this->view['pflicht']['fax'] != '2') { ?>
86
    <?php if (strlen($this->view['data']['fax']) > 0) { ?>
131
	    <?php if (strlen($this->view['data']['fax']) > 0) { ?>
87
    <?php echo wpsg_drawForm_Text(__('Fax', 'wpsg'), $this->view['data']['fax'], array('text' => true)); ?>
132
	    	<?php echo wpsg_drawForm_Text(__('Fax', 'wpsg'), $this->view['data']['fax'], array('text' => true)); ?>
88
    <?php } ?>
133
	    <?php } ?>
89
 
134
	<?php } ?>                    
-
 
135
    <?php if ($this->view['pflicht']['tel'] != '2') { ?>
90
    <?php if (strlen($this->view['data']['tel']) > 0) { ?>
136
	    <?php if (strlen($this->view['data']['tel']) > 0) { ?>
91
    <?php echo wpsg_drawForm_Text(__('Telefon', 'wpsg'), $this->view['data']['tel'], array('text' => true)); ?>
137
	    	<?php echo wpsg_drawForm_Text(__('Telefon', 'wpsg'), $this->view['data']['tel'], array('text' => true)); ?>
92
    <?php } ?>
138
	    <?php } ?>
93
 
139
	<?php } ?>                    
-
 
140
    <?php if ($this->view['pflicht']['ustidnr'] != '2') { ?>
94
    <?php if (strlen($this->view['data']['ustidnr']) > 0) { ?>
141
	    <?php if (strlen($this->view['data']['ustidnr']) > 0) { ?>
95
    <?php echo wpsg_drawForm_Text(__('UStIdNr.', 'wpsg'), $this->view['data']['ustidnr'], array('text' => true)); ?>
142
	   		<?php echo wpsg_drawForm_Text(__('UStIdNr.', 'wpsg'), $this->view['data']['ustidnr'], array('text' => true)); ?>
96
    <?php } ?>
143
	    <?php } ?>
97
 
144
	<?php } ?>                    
98
    <?php $this->callMods('wpsg_order_view_customerdata', array(&$this->view['data']['id'])); ?>
145
    <?php $this->callMods('wpsg_order_view_customerdata', array(&$this->view['data']['id'])); ?>
99
 
146
 
100
    <?php echo wpsg_drawForm_TextStart(); ?>
147
    <?php echo wpsg_drawForm_TextStart(); ?>
-
 
148
     <?php if ($this->view['pflicht']['email'] != '2') { ?>
101
    <a href="mailto:<?php echo $this->view['data']['email']; ?>"><?php echo $this->view['data']['email']; ?></a>
149
    	<a href="mailto:<?php echo $this->view['data']['email']; ?>"><?php echo $this->view['data']['email']; ?></a>
-
 
150
    <?php } ?>
102
    <?php echo wpsg_drawForm_TextEnd(__('E-Mail', 'wpsg')); ?>
151
    <?php echo wpsg_drawForm_TextEnd(__('E-Mail', 'wpsg')); ?>
103
 
152
	
104
    <script type="text/javascript">/* <![CDATA[ */
153
    <script type="text/javascript">/* <![CDATA[ */
105
 
154
 
106
        function wpsg_saveInvoiceAdress()
155
        function wpsg_saveInvoiceAdress()
107
        {
156
        {
108
 
157