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
2975 daniel 1
<?php
2
 
3
	/**
4
	 * Template für die Einstellungen des "Lieferschein" Moduls
5
	 */
6
 
7
?>
5749 daniel 8
 
9
<div>
10
    <ul class="nav nav-tabs" role="tablist">
11
        <li role="presentation" class="active"><a href="#tab1" aria-controls="home" role="tab" data-toggle="tab"><?php echo __('Vordefinierte Textfelder', 'wpsg'); ?></a></li>
12
        <li role="presentation"><a href="#tab2" aria-controls="profile" role="tab" data-toggle="tab"><?php echo __('Fußzeile', 'wpsg'); ?></a></li>
13
        <li role="presentation"><a href="#tab3" aria-controls="messages" role="tab" data-toggle="tab"><?php echo __('Sonstiges', 'wpsg'); ?></a></li>
14
    </ul>
15
    <div class="tab-content">
16
        <div role="tabpanel" class="tab-pane active" id="tab1">
17
 
18
            <?php echo wpsg_drawForm_Input('wpsg_mod_deliverynote_adressrow', __('Adresszeile', 'wpsg'), $this->get_option('wpsg_mod_deliverynote_adressrow'), array('help' => 'wpsg_mod_deliverynote_adressrow')); ?>
19
 
20
            <?php echo wpsg_drawForm_TextStart(); ?>
21
                <?php if ($this->view['wpsg_mod_deliverynote']['bp'] === false) { ?>
22
                <p><?php echo __('Es wurde bisher kein Briefpapier hochgeladen', 'wpsg'); ?></p>
23
                <?php } else { ?>
24
                <a href="<?php echo $this->view['wpsg_mod_deliverynote']['bp']; ?>" target="_blank"><?php echo __('Derzeitiges Briefpapier', 'wpsg'); ?></a>
25
                <?php } ?>
5997 hartmut 26
                <a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_deliverynote_bp" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_deliverynote_bp"></a>
5749 daniel 27
                <input type="file" name="wpsg_mod_deliverynote_bp">
28
                <?php $strSuffix = ''; if ($this->view['wpsg_mod_deliverynote']['bp'] !== false) { $strSuffix = '
29
                    <label>
30
						<input type="checkbox" name="wpsg_mod_deliverynote_bp_del" value="1" />&nbsp;'.__('Löschen', 'wpsg').'
31
					</label>';
5997 hartmut 32
					echo __($strSuffix);
33
			} ?>
34
            <?php echo wpsg_drawForm_TextEnd(__('Briefpapier (PDF/JPG)', 'wpsg'), array('noP' => true, 'helps' => 'wpsg_mod_deliverynote_bp')); ?>
5749 daniel 35
 
36
            <?php echo wpsg_drawForm_TextStart(); ?>
37
                <?php if ($this->view['wpsg_mod_deliverynote']['logo'] === false) { ?>
38
                <p><?php echo __('Es wurde bisher kein Logo hochgeladen', 'wpsg'); ?></p>
39
                <?php } else { ?>
40
                <a href="<?php echo $this->view['wpsg_mod_deliverynote']['logo']; ?>" target="_blank"><?php echo __('Derzeitiges Logo', 'wpsg'); ?></a>
41
                <?php } ?>
5997 hartmut 42
                <a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_deliverynote_logo" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_deliverynote_logo"></a>
5749 daniel 43
                <input type="file" name="wpsg_mod_deliverynote_logo">
44
                <?php $strSuffix = ''; if ($this->view['wpsg_mod_deliverynote']['logo'] !== false) { $strSuffix = '
2975 daniel 45
					<label>
5749 daniel 46
						<input type="checkbox" name="wpsg_mod_deliverynote_logo_del" value="1" />&nbsp;'.__('Löschen', 'wpsg').'
47
					</label>';
5997 hartmut 48
					echo __($strSuffix);
5749 daniel 49
				} ?>
5997 hartmut 50
            <?php echo wpsg_drawForm_TextEnd(__('Logo (JPG)', 'wpsg'), array('noP' => true, 'helps' => 'wpsg_mod_deliverynote_logo')); ?>
5749 daniel 51
 
2975 daniel 52
			<br />
5749 daniel 53
 
54
			<table class="table table-body-striped wpsg_mod_deliverynote_fieldtable">
55
                <thead>
56
                    <tr>
57
                        <th class="col_bezeichnung"><?php echo __('Bezeichnung', 'wpsg'); ?></th>
58
                        <th class="col_freitext"><?php echo __('Freitext', 'wpsg'); ?></th>
59
                        <th class="col_x"><?php echo __('X', 'wpsg'); ?></th>
60
                        <th class="col_y"><?php echo __('Y', 'wpsg'); ?></th>
61
                        <th class="col_color"><?php echo __('Farbe', 'wpsg'); ?></th>
62
                        <th class="col_groesse"><?php echo __('Größe', 'wpsg'); ?></th>
63
                        <th class="col_action"></th>
64
                    </tr>
65
                </thead>
66
                <tbody>
67
                    <?php foreach ($this->view['wpsg_mod_deliverynote']['fields'] as $f => $field_name) { ?>
68
                    <tr>
69
                        <td><?php echo wpsg_hspc($field_name); ?></td>
70
                        <td>
71
                            <input type="text" style="width:100%;" name="text[<?php echo $f; ?>][text]" value="<?php echo wpsg_getStr($this->view['wpsg_mod_deliverynote']['arTexte'][$f]['text']); ?>" />
72
                        </td>
73
                        <td>
74
                            <input type="text" style="width:100%;" name="text[<?php echo $f; ?>][x]" value="<?php echo wpsg_getStr($this->view['wpsg_mod_deliverynote']['arTexte'][$f]['x']); ?>" />
75
                        </td>
76
                        <td>
77
                            <input type="text" style="width:100%;" name="text[<?php echo $f; ?>][y]" value="<?php echo wpsg_getStr($this->view['wpsg_mod_deliverynote']['arTexte'][$f]['y']); ?>" />
78
                        </td>
79
                        <td>
80
                            <input type="text" style="width:100%;" name="text[<?php echo $f; ?>][color]" value="<?php echo wpsg_getStr($this->view['wpsg_mod_deliverynote']['arTexte'][$f]['color']); ?>" />
81
                        </td>
82
                        <td>
83
                            <select name="text[<?php echo $f; ?>][fontsize]" style="width:100%;">
84
                                <option <?php echo ((wpsg_getStr($this->view['wpsg_mod_deliverynote']['arTexte'][$f]['fontsize']) == "8")?'selected="selected"':''); ?> value="8">8</option>
85
                                <option <?php echo ((wpsg_getStr($this->view['wpsg_mod_deliverynote']['arTexte'][$f]['fontsize']) == "9")?'selected="selected"':''); ?> value="9">9</option>
86
                                <option <?php echo ((wpsg_getStr($this->view['wpsg_mod_deliverynote']['arTexte'][$f]['fontsize']) == "10")?'selected="selected"':''); ?> value="10">10</option>
87
                                <option <?php echo ((wpsg_getStr($this->view['wpsg_mod_deliverynote']['arTexte'][$f]['fontsize']) == "11")?'selected="selected"':''); ?> value="11">11</option>
88
                                <option <?php echo ((wpsg_getStr($this->view['wpsg_mod_deliverynote']['arTexte'][$f]['fontsize']) == "12")?'selected="selected"':''); ?> value="12">12</option>
89
                                <option <?php echo ((wpsg_getStr($this->view['wpsg_mod_deliverynote']['arTexte'][$f]['fontsize']) == "13")?'selected="selected"':''); ?> value="13">13</option>
90
                                <option <?php echo ((wpsg_getStr($this->view['wpsg_mod_deliverynote']['arTexte'][$f]['fontsize']) == "14")?'selected="selected"':''); ?> value="14">14</option>
91
                            </select>
92
                        </td>
93
                        <td>
94
                            <input type="checkbox" title="<?php echo __('Diese Checkbox aktivieren, damit die Textzeile verwendet wird.'. 'wpsg'); ?>" value="1" name="text[<?php echo $f; ?>][aktiv]" <?php echo ((wpsg_isSizedInt($this->view['wpsg_mod_deliverynote']['arTexte'][$f]['aktiv']))?'checked="checked"':''); ?> />
95
                        </td>
96
                    </tr>
97
                    <?php } ?>
98
                </tbody>
2975 daniel 99
			</table>
5749 daniel 100
 
101
			<input class="button" onclick="if (!confirm('<?php echo __('Sind Sie sich sicher? Ihre bisherigen Einstellungen gehen verloren!', 'wpsg'); ?>')) return false; else location.href = '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;action=module&amp;modul=<?php echo $_REQUEST['modul']; ?>&amp;do=reset&amp;noheader=1';" type="button" value="<?php echo __('Standardeinstellungen laden', 'wpsg'); ?>" />
102
 
103
            <br /><br />
104
 
105
			<div class="info">
2975 daniel 106
				<?php echo __('Die Angaben für X (Abstand von Links) und Y (Abstand von Oben) werden in mm eingetragen.', 'wpsg'); ?><br />
5997 hartmut 107
				<?php echo __('Die Farbe wird im Hexadezimalformat angegeben (#FFFFFF für weiß, #000000 für schwarz).', 'wpsg'); ?>
2975 daniel 108
			</div>
5749 daniel 109
 
2975 daniel 110
			<br />
5749 daniel 111
 
112
        </div>
113
        <div role="tabpanel" class="tab-pane" id="tab2">
114
 
115
            <div id="foottext_list"><?php echo $this->view['foottext_list']; ?></div>
116
 
117
            <br />
118
 
119
            <a title="<?php echo __('Neue Fußzeile anlegen', 'wpsg'); ?>" href="" class="" onclick="return wpsg_addFooter();"><span class="glyphicon wpsg-glyphicon glyphicon-plus"></span><?php echo __('Neue Fußzeile anlegen.', 'wpsg'); ?></a>
120
 
121
            <br /><br />
122
 
123
			<div class="info">
2975 daniel 124
				<?php echo __('Hier können Sie Texte vordefinieren, die sie unter den Lieferschein setzen können.', 'wpsg'); ?>
125
			</div>
5749 daniel 126
 
127
        </div>
128
        <div role="tabpanel" class="tab-pane" id="tab3">
129
 
130
            <?php echo wpsg_drawForm_Input('wpsg_mod_deliverynote_nrformat', __('Format der Lieferscheinnummer', 'wpsg'), $this->get_option('wpsg_mod_deliverynote_nrformat'), array('help' => 'wpsg_mod_deliverynote_nrformat')); ?>
2975 daniel 131
			<?php echo wpsg_drawForm_Input('wpsg_mod_deliverynote_nr', __('Start für Lieferscheinnummer', 'wpsg'), $this->get_option('wpsg_mod_deliverynote_nr'), array('help' => 'wpsg_mod_deliverynote_nr')); ?>
5255 thomas 132
			<?php echo wpsg_drawForm_Input('wpsg_mod_deliverynote_url', __('URL Für URL Benachrichtigung', 'wpsg'), $this->get_option('wpsg_mod_deliverynote_url'), array('help' => 'wpsg_mod_deliverynote_url')); ?>
133
			<?php echo wpsg_drawForm_Checkbox('wpsg_mod_deliverynote_url_standard', __('URL Benachrichtigung standardmäßig aktiv', 'wpsg'), $this->get_option('wpsg_mod_deliverynote_url_standard'), array('help' => 'wpsg_mod_deliverynote_url_standard')); ?>
5765 thomas 134
 
135
			<?php if ($this->hasMod('wpsg_mod_produktattribute') == '1') {?>
136
				<?php echo wpsg_drawForm_Checkbox('wpsg_rechnungen_produktattribute', __('Produktattribute auf der Rechnung anzeigen', 'wpsg'), $this->get_option('wpsg_rechnungen_produktattribute'), array('help' => 'wpsg_rechnungen_produktattribute')); ?>
137
			<?php }?>
138
 
4923 thomas 139
			<?php echo wpsg_drawForm_Checkbox('wpsg_mod_deliverynote_hideCountry', __('Land auf Lieferschein verbergen', 'wpsg'), $this->get_option('wpsg_mod_deliverynote_hideCountry'), array('help' => 'wpsg_mod_deliverynote_hideCountry')); ?>
3748 daniel 140
			<?php echo wpsg_drawForm_Select('wpsg_mod_deliverynote_anr', __('Artikelnummer anzeigen', 'wpsg'), array(
141
				'0' => __('Nicht anzeigen', 'wpsg'),
142
				'1' => __('In Spalte "Nr." zeigen', 'wpsg'),
5749 daniel 143
				'2' => __('Als extra Zeile anzeigen', 'wpsg')
4923 thomas 144
			), $this->get_option('wpsg_mod_deliverynote_anr'), array('help' => 'wpsg_mod_deliverynote_anr')); ?>
5749 daniel 145
 
146
        </div>
147
      </div>
2975 daniel 148
</div>
149
 
150
<script type="text/javascript">/* <![CDATA[ */
151
 
152
	/**
153
	 * Wird beim anlegen einer neuen Fußzeile aufgerufen
154
	 */
155
	function wpsg_addFooter()
156
	{
157
 
158
		jQuery('#foottext_list').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
159
 
160
		jQuery.ajax( {
161
			url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_deliverynote&do=addFoottext&noheader=1',
162
			success: function(data) {
163
				jQuery('#foottext_list').html(data);
164
			}
165
		} );
166
 
167
		return false;
168
 
169
	} // function wpsg_addFooter()
170
 
171
	/**
172
	 * Wird beim entfernen einer Fußzeile aufgerufen
173
	 */
174
	function wpsg_removeFooter(foot_id)
175
	{
176
 
177
		if (!confirm('<?php echo __('Sind Sie sich sicher, dass Sie diese Fußzeile löschen möchten?', 'wpsg'); ?>')) return false;
178
 
179
		jQuery('#foottext_list').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
180
 
181
		jQuery.ajax( {
182
			url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_deliverynote&do=removeFoottext&noheader=1',
183
			data: {
184
				foot_id: foot_id
185
			},
186
			success: function(data) {
187
				jQuery('#foottext_list').html(data);
188
			}
189
		} );
190
 
191
		return false;
192
 
193
	} // function wpsg_removeFooter()
194
 
195
	jQuery(document).ready(function() {
196
		jQuery('#wpsg_tab').wpsg_tab( {
197
			'cookiename': 'wpsg_mod_deliverynote_tab',
198
			'tab2': function() {
199
				jQuery('.tablink').show();
200
			}
201
		} );
202
	} );
203
 
204
/* ]]> */</script>