Line 5... |
Line 5... |
5 |
*/
|
5 |
*/
|
6 |
|
6 |
|
7 |
?>
|
7 |
?>
|
8 |
|
8 |
|
9 |
<div>
|
9 |
<div>
|
10 |
<ul class="nav nav-tabs" role="tablist">
|
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>
|
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>
|
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>
|
13 |
<li role="presentation"><a href="#tab3" aria-controls="messages" role="tab" data-toggle="tab"><?php echo __('Sonstiges', 'wpsg'); ?></a></li>
|
14 |
</ul>
|
14 |
</ul>
|
15 |
<div class="tab-content">
|
15 |
<div class="tab-content">
|
16 |
<div role="tabpanel" class="tab-pane active" id="tab1">
|
16 |
<div role="tabpanel" class="tab-pane active" id="tab1">
|
17 |
|
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')); ?>
|
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 |
|
19 |
|
20 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
20 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
21 |
<div style="position:relative;">
|
21 |
<div style="position:relative;">
|
22 |
<?php if ($this->view['wpsg_mod_deliverynote']['bp'] === false) { ?>
|
22 |
<?php if ($this->view['wpsg_mod_deliverynote']['bp'] === false) { ?>
|
23 |
<p><?php echo __('Es wurde bisher kein Briefpapier hochgeladen', 'wpsg'); ?></p>
|
23 |
<p><?php echo __('Es wurde bisher kein Briefpapier hochgeladen', 'wpsg'); ?></p>
|
24 |
<?php } else { ?>
|
24 |
<?php } else { ?>
|
25 |
<a href="<?php echo $this->view['wpsg_mod_deliverynote']['bp']; ?>" target="_blank"><?php echo __('Derzeitiges Briefpapier', 'wpsg'); ?></a>
|
25 |
<a href="<?php echo $this->view['wpsg_mod_deliverynote']['bp']; ?>" target="_blank"><?php echo __('Derzeitiges Briefpapier', 'wpsg'); ?></a>
|
26 |
<?php } ?>
|
26 |
<?php } ?>
|
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>
|
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>
|
28 |
<input type="file" name="wpsg_mod_deliverynote_bp">
|
28 |
<input type="file" name="wpsg_mod_deliverynote_bp">
|
29 |
<?php $strSuffix = ''; if ($this->view['wpsg_mod_deliverynote']['bp'] !== false) { $strSuffix = '
|
29 |
<?php $strSuffix = ''; if ($this->view['wpsg_mod_deliverynote']['bp'] !== false) { $strSuffix = '
|
30 |
<label>
|
30 |
<label>
|
31 |
<input type="checkbox" name="wpsg_mod_deliverynote_bp_del" value="1" /> '.__('Löschen', 'wpsg').'
|
31 |
<input type="checkbox" name="wpsg_mod_deliverynote_bp_del" value="1" /> '.__('Löschen', 'wpsg').'
|
32 |
</label>';
|
32 |
</label>';
|
33 |
echo __($strSuffix);
|
33 |
echo __($strSuffix);
|
34 |
} ?>
|
34 |
} ?>
|
35 |
</div>
|
35 |
</div>
|
36 |
<?php echo wpsg_drawForm_TextEnd(__('Briefpapier (PDF/JPG)', 'wpsg'), array('noP' => true, 'helps' => 'wpsg_mod_deliverynote_bp')); ?>
|
36 |
<?php echo wpsg_drawForm_TextEnd(__('Briefpapier (PDF/JPG)', 'wpsg'), array('noP' => true, 'helps' => 'wpsg_mod_deliverynote_bp')); ?>
|
37 |
|
37 |
|
38 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
38 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
39 |
<div style="position:relative;">
|
39 |
<div style="position:relative;">
|
40 |
<?php if ($this->view['wpsg_mod_deliverynote']['logo'] === false) { ?>
|
40 |
<?php if ($this->view['wpsg_mod_deliverynote']['logo'] === false) { ?>
|
41 |
<p><?php echo __('Es wurde bisher kein Logo hochgeladen', 'wpsg'); ?></p>
|
41 |
<p><?php echo __('Es wurde bisher kein Logo hochgeladen', 'wpsg'); ?></p>
|
42 |
<?php } else { ?>
|
42 |
<?php } else { ?>
|
43 |
<a href="<?php echo $this->view['wpsg_mod_deliverynote']['logo']; ?>" target="_blank"><?php echo __('Derzeitiges Logo', 'wpsg'); ?></a>
|
43 |
<a href="<?php echo stripslashes($this->view['wpsg_mod_deliverynote']['logo']); ?>" target="_blank"><?php echo __('Derzeitiges Logo', 'wpsg'); ?></a>
|
- |
|
44 |
<?php } ?>
|
44 |
<?php } ?>
|
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>
|
- |
|
46 |
<input type="file" name="wpsg_mod_deliverynote_logo">
|
- |
|
47 |
<?php $logo_pos = $this->get_option("wpsg_mod_deliverynote_logo_position"); ?>
|
- |
|
48 |
<?php $defaultAlign = !isset($logo_pos) || empty($logo_pos) ? "align-buttons-active" : ""; ?>
|
- |
|
49 |
|
- |
|
50 |
<?php $alignLeft = $logo_pos === 'left' ? "align-buttons-active" : ""; ?>
|
- |
|
51 |
<?php $alignCenter = $logo_pos === 'center' ? "align-buttons-active" : ""; ?>
|
- |
|
52 |
<?php $alignRight = $logo_pos === 'right' ? "align-buttons-active" : ""; ?>
|
- |
|
53 |
|
- |
|
54 |
<?php $logo_transparency = $this->get_option("wpsg_mod_deliverynote_logo_transparency") ?: "0%"; ?>
|
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>
|
55 |
|
- |
|
56 |
<?php $strSuffix = ''; if ($this->view['logo'] !== false) { $strSuffix = '
|
- |
|
57 |
<div class="row">
|
- |
|
58 |
<div class="col-md-4">
|
- |
|
59 |
<div class="align-buttons">
|
46 |
<input type="file" name="wpsg_mod_deliverynote_logo">
|
60 |
<input type="input" data-toggle="tooltip" class="logo-align-button logo-align-button-left '.$alignLeft.'" name="wpsg_mod_deliverynote_logo_position_left" value="" onclick="handleLogoAlignClick($(this))" onkeydown="return false;" onfocus="return false;" autocomplete="off" title="'.__("Logo linksbündig ausrichten").'">
|
47 |
<?php $strSuffix = ''; if ($this->view['wpsg_mod_deliverynote']['logo'] !== false) { $strSuffix = '
|
61 |
<input type="input" data-toggle="tooltip" class="logo-align-button logo-align-button-center '.$alignCenter.'" name="wpsg_mod_deliverynote_logo_position_center" value="" onclick="handleLogoAlignClick($(this))" onkeydown="return false;" onfocus="return false;" autocomplete="off" title="'.__("Logo zentrieren").'">
|
48 |
<label>
|
62 |
<input type="input" data-toggle="tooltip" class="logo-align-button logo-align-button-right '.$alignRight.' '.$defaultAlign.'" name="wpsg_mod_deliverynote_logo_position_right" value="" onclick="handleLogoAlignClick($(this))" onkeydown="return false;" onfocus="return false;" autocomplete="off" title="'.__("Logo rechtsbündig ausrichten").'">
|
- |
|
63 |
</div>
|
- |
|
64 |
</div>
|
- |
|
65 |
<div class="col-md-8 logo-transparency">
|
- |
|
66 |
<label>
|
- |
|
67 |
<input type="text" name="wpsg_mod_deliverynote_logo_transparency" value="'.$logo_transparency.'" /> '.__('Logodeckkraft', 'wpsg').'
|
- |
|
68 |
</label>
|
- |
|
69 |
</div>
|
- |
|
70 |
<div class="col-md-12">
|
- |
|
71 |
<label>
|
49 |
<input type="checkbox" name="wpsg_mod_deliverynote_logo_del" value="1" /> '.__('Löschen', 'wpsg').'
|
72 |
<input type="checkbox" name="wpsg_mod_deliverynote_logo_del" value="1" /> '.__('Löschen', 'wpsg').'
|
50 |
</label>';
|
73 |
</label>
|
- |
|
74 |
</div>
|
- |
|
75 |
</div>';
|
51 |
echo __($strSuffix);
|
76 |
echo __($strSuffix);
|
52 |
} ?>
|
77 |
} ?>
|
- |
|
78 |
|
- |
|
79 |
<button class="button wpsg_deliverynote_preview" style="float:right; margin-right:10px;" name="wpsg_deliverynote_preview" type="button">
|
- |
|
80 |
<?php echo __("Vorschau", "wpsg"); ?>
|
- |
|
81 |
</button>
|
- |
|
82 |
|
53 |
</div>
|
83 |
</div>
|
54 |
<?php echo wpsg_drawForm_TextEnd(__('Logo (JPG)', 'wpsg'), array('noP' => true, 'helps' => 'wpsg_mod_deliverynote_logo')); ?>
|
84 |
<?php echo wpsg_drawForm_TextEnd(__('Logo (JPG)', 'wpsg'), array('noP' => true, 'helps' => 'wpsg_mod_deliverynote_logo')); ?>
|
55 |
|
85 |
|
56 |
<br />
|
86 |
<br />
|
57 |
|
87 |
|
58 |
<table class="table table-body-striped wpsg_mod_deliverynote_fieldtable">
|
88 |
<table class="table table-body-striped wpsg_mod_deliverynote_fieldtable">
|
59 |
<thead>
|
89 |
<thead>
|
60 |
<tr>
|
90 |
<tr>
|
61 |
<th class="col_bezeichnung"><?php echo __('Bezeichnung', 'wpsg'); ?></th>
|
91 |
<th class="col_bezeichnung"><?php echo __('Bezeichnung', 'wpsg'); ?></th>
|
62 |
<th class="col_freitext"><?php echo __('Freitext', 'wpsg'); ?></th>
|
92 |
<th class="col_freitext"><?php echo __('Freitext', 'wpsg'); ?></th>
|
63 |
<th class="col_x"><?php echo __('X', 'wpsg'); ?></th>
|
93 |
<th class="col_x"><?php echo __('X', 'wpsg'); ?></th>
|
64 |
<th class="col_y"><?php echo __('Y', 'wpsg'); ?></th>
|
94 |
<th class="col_y"><?php echo __('Y', 'wpsg'); ?></th>
|
65 |
<th class="col_color"><?php echo __('Farbe', 'wpsg'); ?></th>
|
95 |
<th class="col_color"><?php echo __('Farbe', 'wpsg'); ?></th>
|
66 |
<th class="col_groesse"><?php echo __('Größe', 'wpsg'); ?></th>
|
96 |
<th class="col_groesse"><?php echo __('Größe', 'wpsg'); ?></th>
|
67 |
<th class="col_action"></th>
|
97 |
<th class="col_action"></th>
|
68 |
</tr>
|
98 |
</tr>
|
69 |
</thead>
|
99 |
</thead>
|
70 |
<tbody>
|
100 |
<tbody>
|
71 |
<?php foreach ($this->view['wpsg_mod_deliverynote']['fields'] as $f => $field_name) { ?>
|
101 |
<?php foreach ($this->view['wpsg_mod_deliverynote']['fields'] as $f => $field_name) { ?>
|
72 |
<tr>
|
102 |
<tr>
|
73 |
<td><?php echo wpsg_hspc($field_name); ?></td>
|
103 |
<td><?php echo wpsg_hspc($field_name); ?></td>
|
74 |
<td>
|
104 |
<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']); ?>" />
|
105 |
<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>
|
106 |
</td>
|
77 |
<td>
|
107 |
<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']); ?>" />
|
108 |
<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>
|
109 |
</td>
|
80 |
<td>
|
110 |
<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']); ?>" />
|
111 |
<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>
|
112 |
</td>
|
83 |
<td>
|
113 |
<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']); ?>" />
|
114 |
<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>
|
115 |
</td>
|
86 |
<td>
|
116 |
<td>
|
87 |
<select name="text[<?php echo $f; ?>][fontsize]" style="width:100%;">
|
117 |
<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>
|
118 |
<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>
|
119 |
<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>
|
120 |
<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>
|
121 |
<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>
|
122 |
<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>
|
123 |
<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>
|
124 |
<option <?php echo ((wpsg_getStr($this->view['wpsg_mod_deliverynote']['arTexte'][$f]['fontsize']) == "14")?'selected="selected"':''); ?> value="14">14</option>
|
95 |
</select>
|
125 |
</select>
|
96 |
</td>
|
126 |
</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"':''); ?> />
|
127 |
<td>
|
99 |
</td>
|
128 |
<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"':''); ?> />
|
- |
|
129 |
</td>
|
100 |
</tr>
|
130 |
</tr>
|
101 |
<?php } ?>
|
131 |
<?php } ?>
|
102 |
</tbody>
|
132 |
</tbody>
|
103 |
</table>
|
133 |
</table>
|
104 |
|
134 |
|
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'); ?>" />
|
135 |
<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 |
|
136 |
|
107 |
<br /><br />
|
137 |
<br /><br />
|
108 |
|
138 |
|
109 |
<div class="info">
|
139 |
<div class="info">
|
110 |
<p style="line-height:none;">
|
140 |
<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 />
|
141 |
<?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'); ?>
|
142 |
<?php echo __('Die Farbe wird im Hexadezimalformat angegeben (#FFFFFF für weiß, #000000 für schwarz).', 'wpsg'); ?>
|
113 |
</p>
|
143 |
</p>
|
114 |
</div>
|
144 |
</div>
|
115 |
|
145 |
|
116 |
<br />
|
146 |
<br />
|
117 |
|
147 |
|
118 |
</div>
|
148 |
</div>
|
119 |
<div role="tabpanel" class="tab-pane" id="tab2">
|
149 |
<div role="tabpanel" class="tab-pane" id="tab2">
|
120 |
|
150 |
|
121 |
<div id="foottext_list"><?php echo $this->view['foottext_list']; ?></div>
|
151 |
<div id="foottext_list"><?php echo $this->view['foottext_list']; ?></div>
|
122 |
|
152 |
|
123 |
<br />
|
153 |
<br />
|
124 |
|
154 |
|
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>
|
155 |
<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 |
|
156 |
|
127 |
<br /><br />
|
157 |
<br /><br />
|
128 |
|
158 |
|
129 |
<div class="info">
|
159 |
<div class="info">
|
130 |
<p style="line-height:none;">
|
160 |
<p style="line-height:none;">
|
131 |
<?php echo __('Hier können Sie Texte vordefinieren, die sie unter den Lieferschein setzen können.', 'wpsg'); ?>
|
161 |
<?php echo __('Hier können Sie Texte vordefinieren, die sie unter den Lieferschein setzen können.', 'wpsg'); ?>
|
132 |
</p>
|
162 |
</p>
|
133 |
</div>
|
163 |
</div>
|
134 |
|
164 |
|
135 |
</div>
|
165 |
</div>
|
136 |
<div role="tabpanel" class="tab-pane" id="tab3">
|
166 |
<div role="tabpanel" class="tab-pane" id="tab3">
|
137 |
|
167 |
|
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')); ?>
|
168 |
<?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')); ?>
|
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')); ?>
|
169 |
<?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')); ?>
|
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')); ?>
|
170 |
<?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')); ?>
|
171 |
<?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')); ?>
|
142 |
|
172 |
|
143 |
<?php if ($this->hasMod('wpsg_mod_produktattribute') == '1') {?>
|
173 |
<?php if ($this->hasMod('wpsg_mod_produktattribute') == '1') {?>
|
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')); ?>
|
174 |
<?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')); ?>
|
145 |
<?php }?>
|
175 |
<?php }?>
|
146 |
|
176 |
|
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')); ?>
|
177 |
<?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')); ?>
|
148 |
<?php echo wpsg_drawForm_Select('wpsg_mod_deliverynote_anr', __('Artikelnummer anzeigen', 'wpsg'), array(
|
178 |
<?php echo wpsg_drawForm_Select('wpsg_mod_deliverynote_anr', __('Artikelnummer anzeigen', 'wpsg'), array(
|
149 |
'0' => __('Nicht anzeigen', 'wpsg'),
|
179 |
'0' => __('Nicht anzeigen', 'wpsg'),
|
150 |
'1' => __('In Spalte "Nr." zeigen', 'wpsg'),
|
180 |
'1' => __('In Spalte "Nr." zeigen', 'wpsg'),
|
151 |
'2' => __('Als extra Zeile anzeigen', 'wpsg')
|
181 |
'2' => __('Als extra Zeile anzeigen', 'wpsg')
|
152 |
), $this->get_option('wpsg_mod_deliverynote_anr'), array('help' => 'wpsg_mod_deliverynote_anr')); ?>
|
182 |
), $this->get_option('wpsg_mod_deliverynote_anr'), array('help' => 'wpsg_mod_deliverynote_anr')); ?>
|
153 |
|
183 |
|
154 |
</div>
|
184 |
</div>
|
155 |
</div>
|
185 |
</div>
|
156 |
</div>
|
186 |
</div>
|
157 |
|
187 |
|
158 |
<script type="text/javascript">/* <![CDATA[ */
|
188 |
<script type="text/javascript">/* <![CDATA[ */
|
159 |
|
189 |
|
160 |
/**
|
190 |
/**
|
- |
|
191 |
* Stellt sicher, dass immer nur ein Button der align-buttons die highlight Klasse hat
|
- |
|
192 |
*/
|
- |
|
193 |
function handleLogoAlignClick(pressedEl)
|
- |
|
194 |
{
|
- |
|
195 |
|
- |
|
196 |
if(pressedEl.hasClass("align-buttons-active")) return;
|
- |
|
197 |
else
|
- |
|
198 |
{
|
- |
|
199 |
|
- |
|
200 |
pressedEl.addClass("align-buttons-active");
|
- |
|
201 |
pressedEl[0].value = pressedEl[0].value + " selected";
|
- |
|
202 |
|
- |
|
203 |
jQuery.each($(".logo-align-button"), function(index, element) {
|
- |
|
204 |
if(element.classList.contains("align-buttons-active") && element !== pressedEl[0]){
|
- |
|
205 |
|
- |
|
206 |
var values = element.value.split(" ");
|
- |
|
207 |
element.value = values[0];
|
- |
|
208 |
|
- |
|
209 |
element.classList.remove("align-buttons-active");
|
- |
|
210 |
|
- |
|
211 |
return false;
|
- |
|
212 |
|
- |
|
213 |
}
|
- |
|
214 |
});
|
- |
|
215 |
|
- |
|
216 |
}
|
- |
|
217 |
|
- |
|
218 |
} // function handleLogoAlignClick()
|
- |
|
219 |
|
- |
|
220 |
/**
|
- |
|
221 |
* Wird beim Klicken auf den Vorschau Button ausgelöst
|
- |
|
222 |
*/
|
- |
|
223 |
function wpsg_deliverynote_preview()
|
- |
|
224 |
{
|
- |
|
225 |
|
- |
|
226 |
let url = "<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_deliverynote&do=orderAjax&noheader=1&wpsg_deliverynote_preview=1";
|
- |
|
227 |
|
- |
|
228 |
window.open(url, '_blank');
|
- |
|
229 |
|
- |
|
230 |
return false;
|
- |
|
231 |
|
- |
|
232 |
} // function wpsg_rechnungen_preview()
|
- |
|
233 |
|
- |
|
234 |
/**
|
161 |
* Wird beim anlegen einer neuen Fußzeile aufgerufen
|
235 |
* Wird beim anlegen einer neuen Fußzeile aufgerufen
|
162 |
*/
|
236 |
*/
|
163 |
function wpsg_addFooter()
|
237 |
function wpsg_addFooter()
|
164 |
{
|
238 |
{
|
165 |
|
239 |
|
166 |
jQuery('#foottext_list').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
|
240 |
jQuery('#foottext_list').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
|
167 |
|
241 |
|
168 |
jQuery.ajax( {
|
242 |
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',
|
243 |
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) {
|
244 |
success: function(data) {
|
171 |
jQuery('#foottext_list').html(data);
|
245 |
jQuery('#foottext_list').html(data);
|
172 |
}
|
246 |
}
|
173 |
} );
|
247 |
} );
|
174 |
|
248 |
|
175 |
return false;
|
249 |
return false;
|
176 |
|
250 |
|
177 |
} // function wpsg_addFooter()
|
251 |
} // function wpsg_addFooter()
|
178 |
|
252 |
|
179 |
/**
|
253 |
/**
|
180 |
* Wird beim entfernen einer Fußzeile aufgerufen
|
254 |
* Wird beim entfernen einer Fußzeile aufgerufen
|
181 |
*/
|
255 |
*/
|
182 |
function wpsg_removeFooter(foot_id)
|
256 |
function wpsg_removeFooter(foot_id)
|
183 |
{
|
257 |
{
|
184 |
|
258 |
|
185 |
if (!confirm('<?php echo __('Sind Sie sich sicher, dass Sie diese Fußzeile löschen möchten?', 'wpsg'); ?>')) return false;
|
259 |
if (!confirm('<?php echo __('Sind Sie sich sicher, dass Sie diese Fußzeile löschen möchten?', 'wpsg'); ?>')) return false;
|
186 |
|
260 |
|
187 |
jQuery('#foottext_list').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
|
261 |
jQuery('#foottext_list').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
|
188 |
|
262 |
|
189 |
jQuery.ajax( {
|
263 |
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',
|
264 |
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: {
|
265 |
data: {
|
192 |
foot_id: foot_id
|
266 |
foot_id: foot_id
|
193 |
},
|
267 |
},
|
194 |
success: function(data) {
|
268 |
success: function(data) {
|
195 |
jQuery('#foottext_list').html(data);
|
269 |
jQuery('#foottext_list').html(data);
|
196 |
}
|
270 |
}
|
197 |
} );
|
271 |
} );
|
198 |
|
272 |
|
199 |
return false;
|
273 |
return false;
|
200 |
|
274 |
|
201 |
} // function wpsg_removeFooter()
|
275 |
} // function wpsg_removeFooter()
|
202 |
|
276 |
|
203 |
jQuery(document).ready(function() {
|
277 |
jQuery(document).ready(function() {
|
- |
|
278 |
|
204 |
jQuery('#wpsg_tab').wpsg_tab( {
|
279 |
jQuery('#wpsg_tab').wpsg_tab( {
|
205 |
'cookiename': 'wpsg_mod_deliverynote_tab',
|
280 |
'cookiename': 'wpsg_mod_deliverynote_tab',
|
206 |
'tab2': function() {
|
281 |
'tab2': function() {
|
207 |
jQuery('.tablink').show();
|
282 |
jQuery('.tablink').show();
|
208 |
}
|
283 |
}
|
209 |
} );
|
284 |
} );
|
- |
|
285 |
|
- |
|
286 |
jQuery(".wpsg_deliverynote_preview").click(function(){ wpsg_deliverynote_preview(); });
|
- |
|
287 |
|
210 |
} );
|
288 |
} );
|
211 |
|
289 |
|
212 |
/* ]]> */</script>
|
- |
|
213 |
|
290 |
/* ]]> */</script>
|
- |
|
291 |
|
214 |
|
292 |
|