Subversion Repositories wpShopGermany4

Rev

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