Subversion Repositories wpShopGermany4

Rev

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