Line 22... |
Line 22... |
22 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
22 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
23 |
<div style="position:relative;">
|
23 |
<div style="position:relative;">
|
24 |
<?php if ($this->view['bp'] === false) { ?>
|
24 |
<?php if ($this->view['bp'] === false) { ?>
|
25 |
<p><?php echo __('Es wurde bisher kein Briefpapier hochgeladen', 'wpsg'); ?></p>
|
25 |
<p><?php echo __('Es wurde bisher kein Briefpapier hochgeladen', 'wpsg'); ?></p>
|
26 |
<?php } else { ?>
|
26 |
<?php } else { ?>
|
- |
|
27 |
<a href="<?php
|
- |
|
28 |
|
- |
|
29 |
echo wpsg_admin_url('Admin', 'module', ['do' => 'orderAjax', 'modul' => 'wpsg_mod_rechnungen', 'module_action' => 'getBp'], ['noheader' => '1']);
|
- |
|
30 |
|
27 |
<a href="<?php echo $this->view['bp']; ?>" target="_blank"><?php echo __('Derzeitiges Briefpapier', 'wpsg'); ?></a>
|
31 |
?>" target="_blank"><?php echo __('Derzeitiges Briefpapier', 'wpsg'); ?></a>
|
28 |
<?php } ?>
|
32 |
<?php } ?>
|
29 |
<a style="float:right; position:relative;" class="glyphicon glyphicon-question-sign form-control-feedback" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_rechnung_bp" data-wpsg-tip="mod_rechnung_bp" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_rechnung_bp"></a>
|
33 |
<a style="float:right; position:relative;" class="glyphicon glyphicon-question-sign form-control-feedback" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_rechnung_bp" data-wpsg-tip="mod_rechnung_bp" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_rechnung_bp"></a>
|
30 |
<input type="file" name="wpsg_rechnungen_bp">
|
34 |
<input type="file" name="wpsg_rechnungen_bp">
|
31 |
<?php $strSuffix = ''; if ($this->view['bp'] !== false) { $strSuffix = '
|
35 |
<?php $strSuffix = ''; if ($this->view['bp'] !== false) { $strSuffix = '
|
32 |
<label>
|
36 |
<label>
|
Line 42... |
Line 46... |
42 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
46 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
43 |
<div style="position:relative;">
|
47 |
<div style="position:relative;">
|
44 |
<?php if ($this->view['logo'] === false) { ?>
|
48 |
<?php if ($this->view['logo'] === false) { ?>
|
45 |
<p><?php echo __('Es wurde bisher kein Logo hochgeladen', 'wpsg'); ?></p>
|
49 |
<p><?php echo __('Es wurde bisher kein Logo hochgeladen', 'wpsg'); ?></p>
|
46 |
<?php } else { ?>
|
50 |
<?php } else { ?>
|
- |
|
51 |
<a href="<?php
|
- |
|
52 |
|
- |
|
53 |
echo wpsg_admin_url('Admin', 'module', ['do' => 'orderAjax', 'modul' => 'wpsg_mod_rechnungen', 'module_action' => 'getLogo'], ['noheader' => '1']);
|
- |
|
54 |
|
47 |
<a href="<?php echo stripslashes($this->view['logo']); ?>" target="_blank"><?php echo __('Derzeitiges Logo', 'wpsg'); ?></a>
|
55 |
?>" target="_blank"><?php echo __('Derzeitiges Logo', 'wpsg'); ?></a>
|
48 |
<?php } ?>
|
56 |
<?php } ?>
|
49 |
<a style="float:right; position:relative;" class="glyphicon glyphicon-question-sign form-control-feedback" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_rechnung_logo" data-wpsg-tip="mod_rechnung_logo" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_rechnung_logo"></a>
|
57 |
<a style="float:right; position:relative;" class="glyphicon glyphicon-question-sign form-control-feedback" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_rechnung_logo" data-wpsg-tip="mod_rechnung_logo" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_rechnung_logo"></a>
|
50 |
<input type="file" name="wpsg_rechnungen_logo">
|
58 |
<input type="file" name="wpsg_rechnungen_logo">
|
51 |
|
59 |
|
52 |
<?php $logo_pos = $this->get_option("wpsg_rechnungen_logo_position"); ?>
|
60 |
<?php $logo_pos = $this->get_option("wpsg_rechnungen_logo_position"); ?>
|
Line 60... |
Line 68... |
60 |
|
68 |
|
61 |
<?php $strSuffix = ''; if ($this->view['logo'] !== false) { $strSuffix = '
|
69 |
<?php $strSuffix = ''; if ($this->view['logo'] !== false) { $strSuffix = '
|
62 |
<div class="row">
|
70 |
<div class="row">
|
63 |
<div class="col-md-4">
|
71 |
<div class="col-md-4">
|
64 |
<div class="align-buttons">
|
72 |
<div class="align-buttons">
|
65 |
<input type="input" data-toggle="tooltip" class="logo-align-button logo-align-button-left '.$alignLeft.'" name="wpsg_rechnungen_logo_position_left" value="" onclick="handleLogoAlignClick($(this))" onkeydown="return false;" onfocus="return false;" autocomplete="off" title="'.__("Logo linksbündig ausrichten").'">
|
73 |
<input type="input" data-toggle="tooltip" class="logo-align-button logo-align-button-left '.$alignLeft.'" name="wpsg_rechnungen_logo_position_left" value="" onclick="handleLogoAlignClick(jQuery(this))" onkeydown="return false;" onfocus="return false;" autocomplete="off" title="'.__("Logo linksbündig ausrichten").'">
|
66 |
<input type="input" data-toggle="tooltip" class="logo-align-button logo-align-button-center '.$alignCenter.'" name="wpsg_rechnungen_logo_position_center" value="" onclick="handleLogoAlignClick($(this))" onkeydown="return false;" onfocus="return false;" autocomplete="off" title="'.__("Logo zentrieren").'">
|
74 |
<input type="input" data-toggle="tooltip" class="logo-align-button logo-align-button-center '.$alignCenter.'" name="wpsg_rechnungen_logo_position_center" value="" onclick="handleLogoAlignClick(jQuery(this))" onkeydown="return false;" onfocus="return false;" autocomplete="off" title="'.__("Logo zentrieren").'">
|
67 |
<input type="input" data-toggle="tooltip" class="logo-align-button logo-align-button-right '.$alignRight.' '.$defaultAlign.'" name="wpsg_rechnungen_logo_position_right" value="" onclick="handleLogoAlignClick($(this))" onkeydown="return false;" onfocus="return false;" autocomplete="off" title="'.__("Logo rechtsbündig ausrichten").'">
|
75 |
<input type="input" data-toggle="tooltip" class="logo-align-button logo-align-button-right '.$alignRight.' '.$defaultAlign.'" name="wpsg_rechnungen_logo_position_right" value="" onclick="handleLogoAlignClick(jQuery(this))" onkeydown="return false;" onfocus="return false;" autocomplete="off" title="'.__("Logo rechtsbündig ausrichten").'">
|
68 |
</div>
|
76 |
</div>
|
69 |
</div>
|
77 |
</div>
|
70 |
<div class="col-md-8 logo-transparency">
|
78 |
<div class="col-md-8 logo-transparency">
|
71 |
<label>
|
79 |
<label>
|
72 |
<input type="text" name="wpsg_rechnungen_logo_transparency" value="'.$logo_transparency.'" /> '.__('Logodeckkraft', 'wpsg').'
|
80 |
<input type="text" name="wpsg_rechnungen_logo_transparency" value="'.$logo_transparency.'" /> '.__('Logodeckkraft', 'wpsg').'
|
Line 232... |
Line 240... |
232 |
'tab2': function() {
|
240 |
'tab2': function() {
|
233 |
jQuery('.tablink').show();
|
241 |
jQuery('.tablink').show();
|
234 |
}
|
242 |
}
|
235 |
} );
|
243 |
} );
|
236 |
|
244 |
|
237 |
var onloadActiveBtn = $(".align-buttons-active")[0];
|
245 |
var onloadActiveBtn = jQuery(".align-buttons-active")[0];
|
238 |
|
246 |
|
239 |
if(onloadActiveBtn)
|
247 |
if(onloadActiveBtn)
|
240 |
{
|
248 |
{
|
241 |
if(!onloadActiveBtn.value.includes("selected"))
|
249 |
if(!onloadActiveBtn.value.includes("selected"))
|
242 |
onloadActiveBtn.value += " selected";
|
250 |
onloadActiveBtn.value += " selected";
|
243 |
}
|
251 |
}
|
244 |
|
252 |
|
245 |
$(".wpsg_rechnungen_preview").click(function(){ wpsg_rechnungen_preview(); });
|
253 |
jQuery(".wpsg_rechnungen_preview").click(function(){ wpsg_rechnungen_preview(); });
|
246 |
|
254 |
|
247 |
} );
|
255 |
} );
|
248 |
|
256 |
|
249 |
/**
|
257 |
/**
|
250 |
* Stellt sicher, dass immer nur ein Button der align-buttons die highlight Klasse hat
|
258 |
* Stellt sicher, dass immer nur ein Button der align-buttons die highlight Klasse hat
|
Line 257... |
Line 265... |
257 |
{
|
265 |
{
|
258 |
|
266 |
|
259 |
pressedEl.addClass("align-buttons-active");
|
267 |
pressedEl.addClass("align-buttons-active");
|
260 |
pressedEl[0].value = pressedEl[0].value + " selected";
|
268 |
pressedEl[0].value = pressedEl[0].value + " selected";
|
261 |
|
269 |
|
262 |
jQuery.each($(".logo-align-button"), function(index, element) {
|
270 |
jQuery.each(jQuery(".logo-align-button"), function(index, element) {
|
263 |
if(element.classList.contains("align-buttons-active") && element !== pressedEl[0]){
|
271 |
if(element.classList.contains("align-buttons-active") && element !== pressedEl[0]){
|
264 |
|
272 |
|
265 |
var values = element.value.split(" ");
|
273 |
var values = element.value.split(" ");
|
266 |
element.value = values[0];
|
274 |
element.value = values[0];
|
267 |
|
275 |
|
Line 275... |
Line 283... |
275 |
}
|
283 |
}
|
276 |
|
284 |
|
277 |
} // function handleLogoAlignClick()
|
285 |
} // function handleLogoAlignClick()
|
278 |
|
286 |
|
279 |
// Verhindern der Weiterleitung nach dem Klick auf einen Align Button
|
287 |
// Verhindern der Weiterleitung nach dem Klick auf einen Align Button
|
280 |
$(".logo-align-button").click(function() { return false; });
|
288 |
jQuery(".logo-align-button").click(function() { return false; });
|
281 |
|
289 |
|
282 |
/**
|
290 |
/**
|
283 |
* Wird beim Klicken auf den Vorschau Button ausgelöst
|
291 |
* Wird beim Klicken auf den Vorschau Button ausgelöst
|
284 |
*/
|
292 |
*/
|
285 |
function wpsg_rechnungen_preview()
|
293 |
function wpsg_rechnungen_preview()
|
286 |
{
|
294 |
{
|
287 |
|
295 |
|
- |
|
296 |
var url = "<?php echo wpsg_admin_url('Admin', 'module', ['modul' => 'wpsg_mod_rechnungen', 'do' => 'orderAjax', 'wpsg_rechnungen_preview' => '1'], ['noheader' => '1'], true); ?>";
|
288 |
var url = "<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_rechnungen&do=orderAjax&noheader=1&wpsg_rechnungen_preview=1";
|
297 |
//echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_rechnungen&do=orderAjax&noheader=1&wpsg_rechnungen_preview=1";
|
289 |
|
298 |
|
290 |
window.open(url, '_blank');
|
299 |
window.open(url, '_blank');
|
291 |
|
300 |
|
292 |
return false;
|
301 |
return false;
|
293 |
|
302 |
|