Subversion Repositories wpShopGermany4

Rev

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

Rev Author Line No. Line
1068 daniel 1
<?php
2
 
3
	/**
4
	 * Template für die Liste der Versandarten
5
	 */
6
 
7
?>
8
<?php if (!is_array($this->view['data']) || sizeof($this->view['data']) <= 0) { ?>
9
<?php echo __('Bisher keine Versandarten angelegt.', 'wpsg'); ?>
10
<?php } else { ?>
5997 hartmut 11
 
12
	<?php foreach ($this->view['arVZ'] as $k=>$vz) { $arVzNamen[$k] = $vz['name']; } ?>
13
 
1068 daniel 14
	<?php $i = 0; foreach ($this->view['data'] as $va) { $i ++; ?>
15
 
5997 hartmut 16
    <hr />
17
	<div id="wpsg_mod_versandarten_row_<?php echo $va['id']; ?>">
1068 daniel 18
 
5997 hartmut 19
	    <?php echo wpsg_drawForm_TextStart(); ?>
20
    	<?php echo $va['id']; ?>
21
		<a data-id="<?php echo $va['id']; ?>" class="wpsg_oc_removeLink" href="#" onclick="return wpsg_removeVA(<?php echo $va['id']; ?>);" title="<?php echo __('Versandart löschen', 'wpsg'); ?>">
22
		<span class="wpsg_glyphicon_right glyphicon glyphicon-trash"></span></a>
23
    	<?php echo wpsg_drawForm_TextEnd(__('ID', 'wpsg')); ?>
1288 daniel 24
 
5997 hartmut 25
        <?php echo wpsg_drawForm_TextStart(); ?>
26
        <span id="va_name_<?php echo $va['id']; ?>"><?php echo $va['name']; ?></span>
6006 hartmut 27
        <a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign" data-wpsg-tip="wpsg_shippay_name" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_name" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_name"></a>
5997 hartmut 28
        <?php echo wpsg_drawForm_TextEnd(__('Bezeichnung', 'wpsg')); ?>
29
        <script type="text/javascript">/* <![CDATA[ */
30
            jQuery('#va_name_<?php echo $va['id']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_versandarten&do=inlinedit&noheader=1', {
31
                submitdata: {
32
                    field: 'name',
33
                    va_id: '<?php echo $va['id']; ?>'
34
                }
35
            });
36
        /* ]]> */</script>
1068 daniel 37
 
5997 hartmut 38
        <?php echo wpsg_drawForm_TextStart(); ?>
39
		<input type="checkbox" value="1" <?php echo (($va['aktiv'] == '1')?'checked="checked"':''); ?> id="va_<?php echo $va['id']; ?>_aktiv" />
6006 hartmut 40
		<a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign" data-wpsg-tip="wpsg_shippay_activ" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_activ" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_activ"></a>
5997 hartmut 41
        <?php echo wpsg_drawForm_TextEnd(__('Aktiv', 'wpsg')); ?>
42
        <script type="text/javascript">/* <![CDATA[ */
43
			jQuery('#va_<?php echo $va['id']; ?>_aktiv').bind('change', function() {
1068 daniel 44
 
5997 hartmut 45
				var value = 0;
46
				if (jQuery(this).attr("checked") == "checked") value = 1;
2946 david 47
 
5997 hartmut 48
				jQuery.ajax( {
49
					url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_versandarten&do=inlinedit&noheader=1',
50
					data: {
51
						field: 'aktiv',
52
						va_id: '<?php echo $va['id']; ?>',
53
						value: value
54
					}
55
				} );
56
			} );
57
        /* ]]> */</script>
1406 daniel 58
 
5997 hartmut 59
        <?php echo wpsg_drawForm_TextStart(); ?>
60
        <span id="va_hint_<?php echo $va['id']; ?>"><?php echo wpsg_hspc($va['hint']); ?></span>
6006 hartmut 61
		<a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign" data-wpsg-tip="wpsg_shippay_hint" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_hint" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_hint"></a>
5997 hartmut 62
        <?php echo wpsg_drawForm_TextEnd(__('Hinweistext', 'wpsg')); ?>
63
        <script type="text/javascript">/* <![CDATA[ */
64
            jQuery('#va_hint_<?php echo $va['id']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_versandarten&do=inlinedit&noheader=1', {
65
                submitdata: {
66
                    field: 'hint',
67
                    va_id: '<?php echo $va['id']; ?>'
68
                }
69
            });
70
        /* ]]> */</script>
1416 daniel 71
 
5997 hartmut 72
        <?php echo wpsg_drawForm_TextStart(); ?>
73
        <span id="va_typ_<?php echo $va['id']; ?>"><?php
74
        echo wpsg_hspc($this->view['arTypen'][$va['typ']]);
75
        ?></span>
6006 hartmut 76
		<a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign" data-wpsg-tip="wpsg_shippay_grundlage" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_grundlage" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_grundlage"></a>
5997 hartmut 77
        <?php echo wpsg_drawForm_TextEnd(__('Grundlage', 'wpsg')); ?>
78
        <script type="text/javascript">/* <![CDATA[ */
79
            jQuery('#va_typ_<?php echo $va['id']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_versandarten&do=inlinedit&noheader=1', {
80
                type: 'select',
81
				data: <?php echo wpsg_prepare_for_inlineEdit($this->view['arTypen']); ?>,
82
	            submitdata: {
83
                    field: 'typ',
84
                    va_id: '<?php echo $va['id']; ?>'
85
                }
86
            });
87
        /* ]]> */</script>
1416 daniel 88
 
5997 hartmut 89
        <?php echo wpsg_drawForm_TextStart(); ?>
90
        <span id="va_vz_<?php echo $va['id']; ?>">
91
        <?php if ($va['vz'] > 0) { ?>
92
        	<?php echo wpsg_hspc($this->view['arVZ'][$va['vz']]['name']); ?>
93
        	<?php } else { ?>
94
        	<?php echo __('Alle Versandzonen', 'wpsg'); ?>
95
        	<?php } ?>
96
        </span>
6006 hartmut 97
		<a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign" data-wpsg-tip="wpsg_shippay_versandzone" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_versandzone" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_versandzone"></a>
5997 hartmut 98
        <?php echo wpsg_drawForm_TextEnd(__('Versandzone', 'wpsg')); ?>
99
        <script type="text/javascript">/* <![CDATA[ */
100
            jQuery('#va_vz_<?php echo $va['id']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_versandarten&do=inlinedit&noheader=1', {
101
                type: 'select',
102
				data   : <?php echo wpsg_prepare_for_inlineEdit($arVzNamen) ?>,
103
	            submitdata: {
104
                    field: 'vz',
105
                    va_id: '<?php echo $va['id']; ?>'
106
                }
107
            });
108
        /* ]]> */</script>
1416 daniel 109
 
5997 hartmut 110
        <?php echo wpsg_drawForm_TextStart(); ?>
111
        <span id="va_kosten_<?php echo $va['id']; ?>"><?php echo wpsg_hspc($va['kosten']); ?></span>
6006 hartmut 112
		<a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign" data-wpsg-tip="wpsg_shippay_kostenschluessel" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_kostenschluessel" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_kostenschluessel"></a>
5997 hartmut 113
        <?php echo wpsg_drawForm_TextEnd(__('Kostenschlüssel', 'wpsg')); ?>
114
        <script type="text/javascript">/* <![CDATA[ */
115
            jQuery('#va_kosten_<?php echo $va['id']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_versandarten&do=inlinedit&noheader=1', {
116
                submitdata: {
117
                    field: 'kosten',
118
                    va_id: '<?php echo $va['id']; ?>'
119
                }
120
            });
121
        /* ]]> */</script>
2949 daniel 122
 
5997 hartmut 123
		<?php if (wpsg_isSizedArray($this->view['arVZ'][$va['vz']]['arPLZ'])) { ?>
124
		<?php $index = 1; foreach ((array)$this->view['arVZ'][$va['vz']]['arPLZ'] as $plz_key => $plz) { ?>
3441 daniel 125
 
5997 hartmut 126
        	<?php echo wpsg_drawForm_TextStart(); ?>
127
        	<span id="va_plz_<?php echo $va['id'].'_'.$index; ?>"><?php echo wpsg_hspc(wpsg_getStr($va['kosten_plz'][$plz_key])); ?></span>
128
        	<?php echo wpsg_drawForm_TextEnd(__('Kostenschlüssel PLZ', 'wpsg').' ['.$plz.']:'); ?> <?php /*echo $plz*/ ?>
129
        	<script type="text/javascript">/* <![CDATA[ */
130
            	jQuery('#va_plz_<?php echo $va['id'].'_'.$index; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_versandarten&do=inlinedit&noheader=1', {
131
                	submitdata: {
132
                    	field: 'kosten_plz',
133
                    	va_id: '<?php echo $va['id']; ?>',
134
                    	key: '<?php echo $index; ?>'
135
                	}
136
            	});
137
        	/* ]]> */</script>
138
 
139
		<?php $index++; } ?>
140
		<?php } ?>
141
 
142
        <?php echo wpsg_drawForm_TextStart(); ?>
143
        <span id="va_mwst_key_<?php echo $va['id']; ?>"><?php
144
        	$tax_groups = wpsg_tax_groups();
145
        	echo wpsg_hspc($tax_groups[$va['mwst_key']]);
146
        ?></span>
6006 hartmut 147
		<a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign" data-wpsg-tip="wpsg_shippay_mwst" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_mwst" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_mwst"></a>
5997 hartmut 148
        <?php echo wpsg_drawForm_TextEnd(__('Steuersatz', 'wpsg')); ?>
149
        <script type="text/javascript">/* <![CDATA[ */
150
            jQuery('#va_mwst_key_<?php echo $va['id']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_versandarten&do=inlinedit&noheader=1', {
151
                type: 'select',
152
				data: <?php echo wpsg_prepare_for_inlineEdit(wpsg_tax_groups()); ?>,
153
	                submitdata: {
154
                    field: 'mwst_key',
155
                    va_id: '<?php echo $va['id']; ?>'
156
                }
157
            });
158
        /* ]]> */</script>
159
 
160
        <?php echo wpsg_drawForm_TextStart(); ?>
161
		<input type="checkbox" value="1" <?php echo (($va['mwst_laender'] == '1')?'checked="checked"':''); ?> id="va_mwst_laender_<?php echo $va['id']; ?>" />
6006 hartmut 162
		<a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign" data-wpsg-tip="wpsg_shippay_mwstland" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_mwstland" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_mwstland"></a>
5997 hartmut 163
        <?php echo wpsg_drawForm_TextEnd(__('Keine MwSt. wenn Land steuerfrei', 'wpsg')); ?>
164
        <script type="text/javascript">/* <![CDATA[ */
165
			jQuery('#va_mwst_laender_<?php echo $va['id']; ?>').bind('change', function() {
166
 
167
				var value = 0;
168
				if (jQuery(this).attr("checked") == "checked") value = 1;
169
 
170
				jQuery.ajax( {
171
					url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_versandarten&do=inlinedit&noheader=1',
172
					data: {
173
						field: 'mwst_laender',
174
						va_id: '<?php echo $va['id']; ?>',
175
						value: value
176
					}
2949 daniel 177
				} );
5997 hartmut 178
			} );
179
        /* ]]> */</script>
7065 thomas 180
 
181
		<?php /* Paketverfolgung */ ?>
182
		<?php if ($this->hasMod('wpsg_mod_packagetracking') == '1') { ?>
183
			<?php echo wpsg_drawForm_TextStart(); ?>
184
				<?php $this->callMods('wpsg_mod_versandarten_listrow', [&$va]);  ?>
185
       	 	<?php echo wpsg_drawForm_TextEnd(__('Paketverfolgung', 'wpsg')); ?>
186
       	<?php } ?>
187
 
5997 hartmut 188
	</div>
189
	<?php if ($i == sizeof($this->view['data'])) { ?><hr /><?php } ?>
5934 hartmut 190
 
5997 hartmut 191
<?php } ?>
5439 daniel 192
<?php } ?>