Subversion Repositories wpShopGermany4

Rev

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