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" /> '.__('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" /> '.__('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&action=module&modul=<?php echo $_REQUEST['modul']; ?>&do=reset&noheader=1';" type="button" value="<?php echo __('Standardeinstellungen laden', 'wpsg'); ?>" />
|
|
|
106 |
|
|
|
107 |
<br /><br />
|
|
|
108 |
|
|
|
109 |
<div class="info">
|
2975 |
daniel |
110 |
<?php echo __('Die Angaben für X (Abstand von Links) und Y (Abstand von Oben) werden in mm eingetragen.', 'wpsg'); ?><br />
|
5997 |
hartmut |
111 |
<?php echo __('Die Farbe wird im Hexadezimalformat angegeben (#FFFFFF für weiß, #000000 für schwarz).', 'wpsg'); ?>
|
2975 |
daniel |
112 |
</div>
|
5749 |
daniel |
113 |
|
2975 |
daniel |
114 |
<br />
|
5749 |
daniel |
115 |
|
|
|
116 |
</div>
|
|
|
117 |
<div role="tabpanel" class="tab-pane" id="tab2">
|
|
|
118 |
|
|
|
119 |
<div id="foottext_list"><?php echo $this->view['foottext_list']; ?></div>
|
|
|
120 |
|
|
|
121 |
<br />
|
|
|
122 |
|
|
|
123 |
<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>
|
|
|
124 |
|
|
|
125 |
<br /><br />
|
|
|
126 |
|
|
|
127 |
<div class="info">
|
2975 |
daniel |
128 |
<?php echo __('Hier können Sie Texte vordefinieren, die sie unter den Lieferschein setzen können.', 'wpsg'); ?>
|
|
|
129 |
</div>
|
5749 |
daniel |
130 |
|
|
|
131 |
</div>
|
|
|
132 |
<div role="tabpanel" class="tab-pane" id="tab3">
|
|
|
133 |
|
|
|
134 |
<?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 |
135 |
<?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 |
136 |
<?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')); ?>
|
|
|
137 |
<?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 |
138 |
|
|
|
139 |
<?php if ($this->hasMod('wpsg_mod_produktattribute') == '1') {?>
|
6006 |
hartmut |
140 |
<?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 |
141 |
<?php }?>
|
|
|
142 |
|
4923 |
thomas |
143 |
<?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 |
144 |
<?php echo wpsg_drawForm_Select('wpsg_mod_deliverynote_anr', __('Artikelnummer anzeigen', 'wpsg'), array(
|
|
|
145 |
'0' => __('Nicht anzeigen', 'wpsg'),
|
|
|
146 |
'1' => __('In Spalte "Nr." zeigen', 'wpsg'),
|
5749 |
daniel |
147 |
'2' => __('Als extra Zeile anzeigen', 'wpsg')
|
4923 |
thomas |
148 |
), $this->get_option('wpsg_mod_deliverynote_anr'), array('help' => 'wpsg_mod_deliverynote_anr')); ?>
|
5749 |
daniel |
149 |
|
|
|
150 |
</div>
|
|
|
151 |
</div>
|
2975 |
daniel |
152 |
</div>
|
|
|
153 |
|
|
|
154 |
<script type="text/javascript">/* <![CDATA[ */
|
|
|
155 |
|
|
|
156 |
/**
|
|
|
157 |
* Wird beim anlegen einer neuen Fußzeile aufgerufen
|
|
|
158 |
*/
|
|
|
159 |
function wpsg_addFooter()
|
|
|
160 |
{
|
|
|
161 |
|
|
|
162 |
jQuery('#foottext_list').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
|
|
|
163 |
|
|
|
164 |
jQuery.ajax( {
|
|
|
165 |
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_deliverynote&do=addFoottext&noheader=1',
|
|
|
166 |
success: function(data) {
|
|
|
167 |
jQuery('#foottext_list').html(data);
|
|
|
168 |
}
|
|
|
169 |
} );
|
|
|
170 |
|
|
|
171 |
return false;
|
|
|
172 |
|
|
|
173 |
} // function wpsg_addFooter()
|
|
|
174 |
|
|
|
175 |
/**
|
|
|
176 |
* Wird beim entfernen einer Fußzeile aufgerufen
|
|
|
177 |
*/
|
|
|
178 |
function wpsg_removeFooter(foot_id)
|
|
|
179 |
{
|
|
|
180 |
|
|
|
181 |
if (!confirm('<?php echo __('Sind Sie sich sicher, dass Sie diese Fußzeile löschen möchten?', 'wpsg'); ?>')) return false;
|
|
|
182 |
|
|
|
183 |
jQuery('#foottext_list').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
|
|
|
184 |
|
|
|
185 |
jQuery.ajax( {
|
|
|
186 |
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_deliverynote&do=removeFoottext&noheader=1',
|
|
|
187 |
data: {
|
|
|
188 |
foot_id: foot_id
|
|
|
189 |
},
|
|
|
190 |
success: function(data) {
|
|
|
191 |
jQuery('#foottext_list').html(data);
|
|
|
192 |
}
|
|
|
193 |
} );
|
|
|
194 |
|
|
|
195 |
return false;
|
|
|
196 |
|
|
|
197 |
} // function wpsg_removeFooter()
|
|
|
198 |
|
|
|
199 |
jQuery(document).ready(function() {
|
|
|
200 |
jQuery('#wpsg_tab').wpsg_tab( {
|
|
|
201 |
'cookiename': 'wpsg_mod_deliverynote_tab',
|
|
|
202 |
'tab2': function() {
|
|
|
203 |
jQuery('.tablink').show();
|
|
|
204 |
}
|
|
|
205 |
} );
|
|
|
206 |
} );
|
|
|
207 |
|
|
|
208 |
/* ]]> */</script>
|