Subversion Repositories wpShopGermany4

Rev

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

Rev Author Line No. Line
1297 daniel 1
<?php
2
 
3
	/**
4
	 * Template für die Liste von Zahlungsarten
5
	 */
6
 
7
?>
8
<?php if (!is_array($this->view['wpsg_mod_userpayment']['data']) || sizeof($this->view['wpsg_mod_userpayment']['data']) <= 0) { ?>
9
<?php echo __('Bisher keine Zahlvarianten angelegt.', 'wpsg'); ?>
10
<?php } else { ?>
11
 
5997 hartmut 12
<?php $i = 0; foreach ($this->view['wpsg_mod_userpayment']['data'] as $zv) { $i ++; ?>
1297 daniel 13
 
5997 hartmut 14
    <hr />
15
	<div id="wpsg_mod_userpayment_row_<?php echo $zv['id']; ?>">
1406 daniel 16
 
5997 hartmut 17
        <?php echo wpsg_drawForm_TextStart(); ?>
7391 daniel 18
        <?php echo $zv['id']; ?><a data-id="<?php echo $zv['id']; ?>" onclick="return wpsg_removeZV(<?php echo $zv['id']; ?>); return false;" class="wpsg_oc_removeLink" href="#"><span class="wpsg_glyphicon_right glyphicon glyphicon-trash form-control-feedback"></span></a>
5997 hartmut 19
        <?php echo wpsg_drawForm_TextEnd(__('ID', 'wpsg')); ?>
1297 daniel 20
 
5997 hartmut 21
        <?php echo wpsg_drawForm_TextStart(); ?>
6955 daniel 22
        <span id="zv_name_<?php echo $zv['id']; ?>"><?php echo wpsg_hspc($zv['name']); ?></span>
6006 hartmut 23
        <a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign form-control-feedback" data-wpsg-tip="wpsg_shippay_name"
24
         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 25
        <?php echo wpsg_drawForm_TextEnd(__('Bezeichnung', 'wpsg')); ?>
26
        <script type="text/javascript">/* <![CDATA[ */
27
            jQuery('#zv_name_<?php echo $zv['id']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_userpayment&do=inlinedit&noheader=1', {
28
                submitdata: {
29
                    field: 'name',
30
                    zv_id: '<?php echo $zv['id']; ?>'
31
                }
32
            });
33
        /* ]]> */</script>
1297 daniel 34
 
5997 hartmut 35
        <?php echo wpsg_drawForm_TextStart(); ?>
36
		<input type="checkbox" value="1" <?php echo (($zv['aktiv'] == '1')?'checked="checked"':''); ?> id="zv_<?php echo $zv['id']; ?>_aktiv" />
6006 hartmut 37
		<a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign form-control-feedback" 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 38
        <?php echo wpsg_drawForm_TextEnd(__('Aktiv', 'wpsg')); ?>
39
        <script type="text/javascript">/* <![CDATA[ */
40
			jQuery('#zv_<?php echo $zv['id']; ?>_aktiv').bind('change', function() {
1416 daniel 41
 
5997 hartmut 42
				var value = 0;
7761 daniel 43
				if (jQuery(this).attr("checked") === true) value = 1;
1416 daniel 44
 
5997 hartmut 45
				jQuery.ajax( {
46
					url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_userpayment&do=inlinedit&noheader=1',
47
					data: {
48
						field: 'aktiv',
49
						zv_id: '<?php echo $zv['id']; ?>',
50
						value: value
51
					}
52
				} );
53
			} );
54
        /* ]]> */</script>
1416 daniel 55
 
5997 hartmut 56
        <?php echo wpsg_drawForm_TextStart(); ?>
57
        <span id="zv_hint_<?php echo $zv['id']; ?>"><?php echo wpsg_hspc($zv['hint']); ?></span>
6006 hartmut 58
		<a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign form-control-feedback" 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 59
        <?php echo wpsg_drawForm_TextEnd(__('Hinweistext', 'wpsg')); ?>
60
        <script type="text/javascript">/* <![CDATA[ */
61
            jQuery('#zv_hint_<?php echo $zv['id']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_userpayment&do=inlinedit&noheader=1', {
62
                submitdata: {
63
                    field: 'hint',
64
                    zv_id: '<?php echo $zv['id']; ?>'
65
                }
66
            });
67
        /* ]]> */</script>
68
 
69
        <?php echo wpsg_drawForm_TextStart(); ?>
70
        <span id="zv_rabgeb_<?php echo $zv['id']; ?>"><?php echo wpsg_hspc($zv['rabgeb']); ?></span>
6006 hartmut 71
		<a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign form-control-feedback" data-wpsg-tip="wpsg_shippay_gebuehr" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_gebuehr" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_gebuehr"></a>
5997 hartmut 72
        <?php echo wpsg_drawForm_TextEnd(__('Gebühr/Rabatt', 'wpsg')); ?>
73
        <script type="text/javascript">/* <![CDATA[ */
74
            jQuery('#zv_rabgeb_<?php echo $zv['id']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_userpayment&do=inlinedit&noheader=1', {
75
                submitdata: {
76
                    field: 'rabgeb',
77
                    zv_id: '<?php echo $zv['id']; ?>'
78
                }
79
            });
80
        /* ]]> */</script>
81
 
82
        <?php echo wpsg_drawForm_TextStart(); ?>
83
        <span id="zv_mwst_key_<?php echo $zv['id']; ?>"><?php
84
        	$tax_groups = wpsg_tax_groups();
7347 daniel 85
        	echo wpsg_hspc(@$tax_groups[$zv['mwst_key']]);
5997 hartmut 86
        ?></span>
6006 hartmut 87
		<a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign form-control-feedback" 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 88
        <?php echo wpsg_drawForm_TextEnd(__('Steuersatz', 'wpsg')); ?>
89
        <script type="text/javascript">/* <![CDATA[ */
90
            jQuery('#zv_mwst_key_<?php echo $zv['id']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_userpayment&do=inlinedit&noheader=1', {
91
                type: 'select',
92
				data: <?php echo wpsg_prepare_for_inlineEdit(wpsg_tax_groups()); ?>,
93
	                submitdata: {
94
                    field: 'mwst_key',
95
                    zv_id: '<?php echo $zv['id']; ?>'
96
                }
97
            });
98
        /* ]]> */</script>
99
 
100
        <?php echo wpsg_drawForm_TextStart(); ?>
101
		<input type="checkbox" value="1" <?php echo (($zv['mwst_laender'] == '1')?'checked="checked"':''); ?> id="zv_mwst_laender_<?php echo $zv['id']; ?>" />
6006 hartmut 102
		<a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign form-control-feedback" 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 103
        <?php echo wpsg_drawForm_TextEnd(__('Keine MwSt. wenn Land steuerfrei', 'wpsg')); ?>
104
        <script type="text/javascript">/* <![CDATA[ */
105
			jQuery('#zv_mwst_laender_<?php echo $zv['id']; ?>').bind('change', function() {
106
 
107
				var value = 0;
108
				if (jQuery(this).attr("checked") == "checked") value = 1;
109
 
110
				jQuery.ajax( {
111
					url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_userpayment&do=inlinedit&noheader=1',
112
					data: {
113
						field: 'mwst_laender',
114
						zv_id: '<?php echo $zv['id']; ?>',
115
						value: value
116
					}
117
				} );
118
			} );
119
        /* ]]> */</script>
120
 
121
	</div>
122
 
123
	<?php if ($i == sizeof($this->view['wpsg_mod_userpayment']['data'])) { ?><hr /><?php } ?>
124
	<?php } ?>
125
 
126
 
5439 daniel 127
<?php } ?>