diff options
Diffstat (limited to 'views/mods/mod_downloadplus')
| -rw-r--r-- | views/mods/mod_downloadplus/cronmail.phtml | 18 | ||||
| -rw-r--r-- | views/mods/mod_downloadplus/cronmail_html.phtml | 22 | ||||
| -rw-r--r-- | views/mods/mod_downloadplus/filelist.phtml | 20 | ||||
| -rw-r--r-- | views/mods/mod_downloadplus/order_view_sidebar.phtml | 110 | ||||
| -rw-r--r-- | views/mods/mod_downloadplus/order_view_sidebar_renderlist.phtml | 66 | ||||
| -rw-r--r-- | views/mods/mod_downloadplus/pdfdownloadmail.phtml | 18 | ||||
| -rw-r--r-- | views/mods/mod_downloadplus/pdfdownloadmail_html.phtml | 20 | ||||
| -rw-r--r-- | views/mods/mod_downloadplus/produkt_edit_sidebar.phtml | 105 | ||||
| -rw-r--r-- | views/mods/mod_downloadplus/settings_edit.phtml | 289 |
9 files changed, 668 insertions, 0 deletions
diff --git a/views/mods/mod_downloadplus/cronmail.phtml b/views/mods/mod_downloadplus/cronmail.phtml new file mode 100644 index 0000000..2e56cda --- /dev/null +++ b/views/mods/mod_downloadplus/cronmail.phtml @@ -0,0 +1,18 @@ +<?php
+
+ /**
+ * Template für die Mail, die bei erfolgreicher Individualisierung an den Admin gesendet wird
+ */
+
+?>
+<?php echo __('Hallo Administrator,', 'wpsg'); ?>
+
+<?php echo __('Es wurden PDFs von folgenden Bestellungen individualisiert:', 'wpsg'); ?>
+
+<?php foreach ($this->view['arOrder'] as $k => $o) { ?>
+<?php echo wpsg_translate(__('Bestellung ##1#: #2# Dateien', 'wpsg'), $o[1]['onr'], $o[0]); ?>
+<?php if ($this->get_option('wpsg_mod_downloadplus_autosend') != '1') { ?>
+<?php echo __('Links versenden: ', 'wpsg'); ?><?php echo preg_replace('/wp\-content/', '', WP_CONTENT_URL); ?>?wpsg_action=wpsg_mod_downloadplus_send&hash=<?php echo $o[2]; ?>&order=<?php echo $k; ?>
+<?php } ?>
+
+<?php } ?>
\ No newline at end of file diff --git a/views/mods/mod_downloadplus/cronmail_html.phtml b/views/mods/mod_downloadplus/cronmail_html.phtml new file mode 100644 index 0000000..bddc9d0 --- /dev/null +++ b/views/mods/mod_downloadplus/cronmail_html.phtml @@ -0,0 +1,22 @@ +<?php
+
+ /**
+ * Template für die Mail, die bei erfolgreicher Individualisierung an den Admin gesendet wird (HTML)
+ */
+
+?>
+<p><?php echo __('Hallo Administrator,', 'wpsg'); ?></p>
+
+<p><?php echo __('Es wurden PDFs von folgenden Bestellungen individualisiert:', 'wpsg'); ?></p>
+
+<ul>
+<?php foreach ($this->view['arOrder'] as $k => $o) { ?>
+<li>
+<?php echo wpsg_translate(__('Bestellung ##1#: #2# Dateien', 'wpsg'), $o[1]['onr'], $o[0]); ?>
+<?php if ($this->get_option('wpsg_mod_downloadplus_autosend') != '1') { ?>
+<br />
+<a href="<?php echo preg_replace('/wp\-content/', '', WP_CONTENT_URL); ?>?wpsg_action=wpsg_mod_downloadplus_send&hash=<?php echo $o[2]; ?>&order=<?php echo $k; ?>"><?php echo __('Links versenden', 'wpsg'); ?></a>
+<?php } ?>
+</li>
+<?php } ?>
+</ul>
\ No newline at end of file diff --git a/views/mods/mod_downloadplus/filelist.phtml b/views/mods/mod_downloadplus/filelist.phtml new file mode 100644 index 0000000..6b43615 --- /dev/null +++ b/views/mods/mod_downloadplus/filelist.phtml @@ -0,0 +1,20 @@ +<?php
+
+ /**
+ * Template für die Liste der Dateien im Backend
+ */
+
+?>
+<?php if (!wpsg_isSizedArray($this->view['files'])) { ?>
+<p><?php echo __('Bisher keine PDFs hochgeladen.', 'wpsg'); ?></p>
+<?php } else { ?>
+ <ul>
+ <?php foreach ($this->view['files'] as $v) { ?>
+ <li>
+ <a target="_blank" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_downloadplus&noheader=1&cmd=download_file&file=<?php echo rawurlencode($v); ?>&edit_id=<?php echo $_REQUEST['edit_id']; ?>" title="<?php echo wpsg_hspc($v); ?>"><?php echo wpsg_hspc(substr($v, 0, 25)); ?></a>
+ (<?php echo wpsg_formatSize($this->callMod('wpsg_mod_downloadplus', 'getPDFPath', array($_REQUEST['edit_id'])).'/'.$v); ?>)
+ <div class="wpsg_mod_downloadplus_admin_delete" title="<?php echo __('PDF löschen', 'wpsg'); ?>" onclick="return wpsg_pdfdownload_removePDF('<?php echo rawurlencode($v); ?>');"></div>
+ </li>
+ <?php } ?>
+ </ul>
+<?php } ?>
\ No newline at end of file diff --git a/views/mods/mod_downloadplus/order_view_sidebar.phtml b/views/mods/mod_downloadplus/order_view_sidebar.phtml new file mode 100644 index 0000000..d100189 --- /dev/null +++ b/views/mods/mod_downloadplus/order_view_sidebar.phtml @@ -0,0 +1,110 @@ +<?php
+
+ /**
+ * Template für die Integration des PDFDownload Moduls in die Bestellverwaltung
+ * sollte nicht verändert werden
+ */
+
+?>
+<script type="text/javascript">
+/* <![CDATA[ */
+
+ function wpsg_mod_downloadplus_schedule(product_key, file, product_index)
+ {
+
+ jQuery('#wpsg_mod_downloadplus_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
+
+ jQuery.ajax( {
+ url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_downloadplus&edit_id=<?php echo $this->view['order_id']; ?>&noheader=1&cmd=schedule_file&product_index=' + product_index + '&product_key='+ product_key + '&file=' + file,
+ success: function(data) {
+ jQuery('#wpsg_mod_downloadplus_target').html(data);
+ }
+ } );
+
+ return false;
+
+ } // function wpsg_mod_downloadplus_schedule(file)
+
+ function wpsg_mod_downloadplus_reindiv()
+ {
+
+ jQuery('#wpsg_mod_downloadplus_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
+
+ jQuery.ajax( {
+ url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_downloadplus&edit_id=<?php echo $this->view['order_id']; ?>&noheader=1&cmd=reindiv',
+ success: function(data) {
+
+ jQuery('#wpsg_mod_downloadplus_target').html(data);
+
+ }
+ } );
+
+ return false;
+
+ } // function wpsg_mod_downloadplus_reindiv()
+
+ function wpsg_mod_downloadplus_reset()
+ {
+
+ jQuery('#wpsg_mod_downloadplus_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
+
+ jQuery.ajax( {
+ url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_downloadplus&edit_id=<?php echo $this->view['order_id']; ?>&noheader=1&cmd=reset',
+ success: function(data) {
+
+ jQuery('#wpsg_mod_downloadplus_target').html(data);
+
+ }
+ } );
+
+ return false;
+
+ } // function wpsg_mod_downloadplus_reset()
+
+ function wpsg_mod_downloadplus_send()
+ {
+
+ jQuery('#wpsg_mod_downloadplus_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
+
+ jQuery.ajax( {
+ url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_downloadplus&edit_id=<?php echo $this->view['order_id']; ?>&noheader=1&cmd=send_files',
+ success: function(data) {
+
+ jQuery('#wpsg_mod_downloadplus_target').html(data);
+ wpsg_reloadOrderLog();
+
+ }
+ } );
+
+ return false;
+
+ } // function wpsg_mod_downloadplus_send()
+
+ function wpsg_mod_downloadplus_cangelschedule(product_key, file)
+ {
+
+ jQuery('#wpsg_mod_downloadplus_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
+
+ jQuery.ajax( {
+ url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_downloadplus&edit_id=<?php echo $this->view['order_id']; ?>&noheader=1&cmd=cancelschedule_file&product_key=' + product_key + '&file=' + file,
+ success: function(data) {
+ jQuery('#wpsg_mod_downloadplus_target').html(data);
+ }
+ } );
+
+ return false;
+
+ } // function wpsg_mod_downloadplus_cangelschedule(file)
+
+/* ]]> */
+</script>
+
+<div class="postbox" id="wpsg_pdfdownload">
+ <h3 class="wpsg_handlediv">
+ <span title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>" class="handlediv"><br /></span>
+ <span><?php echo __('Downloadplus', 'wpsg'); ?></span>
+ </h3>
+ <div class="inside" id="wpsg_mod_downloadplus_target">
+ <?php echo $this->callMod('wpsg_mod_downloadplus', 'order_view_sidebar_renderList', array($this->view['order_id'])); ?>
+ </div>
+</div>
\ No newline at end of file diff --git a/views/mods/mod_downloadplus/order_view_sidebar_renderlist.phtml b/views/mods/mod_downloadplus/order_view_sidebar_renderlist.phtml new file mode 100644 index 0000000..834c7c6 --- /dev/null +++ b/views/mods/mod_downloadplus/order_view_sidebar_renderlist.phtml @@ -0,0 +1,66 @@ +<?php
+
+ /**
+ * Template für die Liste der Produkte innerhalb der Bestellansicht, wird per Ajax neu geladen
+ */
+
+?>
+<?php if (wpsg_isSizedArray($this->view['messages'])) { ?>
+<?php foreach ($this->view['messages'] as $m) { ?>
+<div class="updated"><p><?php echo wpsg_hspc($m); ?></p></div>
+<?php } ?>
+<?php } ?>
+<?php if (wpsg_isSizedArray($this->view['errors'])) { ?>
+<?php foreach ($this->view['errors'] as $e) { ?>
+<div class="error"><p><?php echo wpsg_hspc($e); ?></p></div>
+<?php } ?>
+<?php } ?>
+<table class="wpsg_mod_downloadplus_order_view_filelist">
+ <tr>
+ <th class="col_file"><?php echo __('Datei', 'wpsg'); ?></th>
+ <th class="col_status"><?php echo __('Status', 'wpsg'); ?></th>
+ <th class="col_counter">#</th>
+ <th class="col_action"></th>
+ </tr>
+ <?php foreach ($this->view['arFiles'] as $f) { ?>
+ <tr class="<?php echo (($f[3] !== false && $f[3]['raid'] === true)?'row_raid':''); ?>">
+ <td class="col_file">
+
+ <?php if ($f[3] !== false && wpsg_isSizedArray($f[3]) && strtotime($f[3]['done']) > 0) { ?>
+ <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_downloadplus&cmd=download_indivfile&edit_id=<?php echo $f[3]['o_id']; ?>&product_id=<?php echo $f[0]; ?>&file=<?php echo rawurlencode($f[3]['out_file']); ?>&noheader=1">
+ <?php } ?>
+
+ <?php if ($f[3] === false) { ?>
+ <?php echo $f[1]; ?>
+ <?php } else { ?>
+ <?php echo $f[3]['out_file']; ?>
+ <?php } ?>
+
+ <?php if ($f[3] !== false && wpsg_isSizedArray($f[3]) && strtotime($f[3]['done']) > 0) { ?>
+ </a>
+ <?php } ?>
+ </td>
+ <td class="col_status">
+ <?php if ($f[3] === false) { ?>
+ <?php echo __('Noch nicht geplant.', 'wpsg'); ?>
+ <?php } else if (strtotime($f[3]['scheduled']) > 0 && strtotime($f[3]['done']) <= 0) { ?>
+ <?php echo wpsg_translate(__('Geplant am #1#', 'wpsg'), wpsg_fromDate($f[3]['scheduled'])); ?>
+ <?php } else if (strtotime($f[3]['done']) > 0) { ?>
+ <?php echo wpsg_translate(__('Durchgeführt am #1#', 'wpsg'), wpsg_fromDate($f[3]['done'])); ?>
+ <?php } ?>
+ </td>
+ <td class="col_counter"><?php echo (($f[3] !== false)?$f[3]['counter']:'0'); ?></td>
+ <td class="col_action">
+ <?php if ($f[3] === false) { ?>
+ <a href="#" onclick="return wpsg_mod_downloadplus_schedule('<?php echo $f[0]; ?>', '<?php echo rawurldecode($f[1]); ?>', '<?php echo $f[2]; ?>');"><?php echo __('Planen', 'wpsg'); ?></a>
+ <?php } else if (strtotime($f[2]['scheduled']) > 0 && strtotime($f[3]['done']) <= 0) { ?>
+ <a href="#" onclick="return wpsg_mod_downloadplus_cangelschedule('<?php echo $f[0]; ?>', '<?php echo rawurldecode($f[1]); ?>');"><?php echo __('Abbrechen', 'wpsg'); ?></a>
+ <?php } ?>
+ </td>
+ </tr>
+ <?php } ?>
+</table>
+<br />
+<input type="button" onclick="return wpsg_mod_downloadplus_send();" value="<?php echo __('Fertige Downloads an Kunden senden', 'wpsg'); ?>" /><br />
+<input type="button" onclick="return wpsg_mod_downloadplus_reindiv();" value="<?php echo __('Alle Dokumente neu planen', 'wpsg'); ?>" />
+<input type="button" onclick="return wpsg_mod_downloadplus_reset();" value="<?php echo __('Zähler zurücksetzen', 'wpsg'); ?>" />
\ No newline at end of file diff --git a/views/mods/mod_downloadplus/pdfdownloadmail.phtml b/views/mods/mod_downloadplus/pdfdownloadmail.phtml new file mode 100644 index 0000000..7e11f0e --- /dev/null +++ b/views/mods/mod_downloadplus/pdfdownloadmail.phtml @@ -0,0 +1,18 @@ +<?php
+
+ /**
+ * Mail, die die PDF Downloads an den Kunden sendet
+ */
+
+?>
+<?php echo wpsg_translate(__('Hallo #1# #2#,', 'wpsg'), $this->view['kunde']['vname'], $this->view['kunde']['name']); ?>
+
+<?php echo __('hiermit erhalten Sie die Downloadlinks für Ihre gekauften PDFs:', 'wpsg'); ?>
+
+<?php foreach ($this->view['arPDFs'] as $v) { ?>
+<?php echo $v['out_file']; ?>: <?php echo site_url(); ?>?wpsg_action=wpsg_mod_downloadplus_download&hash=<?php echo $v['hash']; ?>&indi=<?php echo $v['id']; ?>
+<?php } ?>
+
+<?php echo __("Mit freundlichen Grüßen", "wpsg"); ?>
+
+<?php echo __($this->get_option('wpsg_shopdata_name'), 'wpsg'); ?> - <?php echo __('Team', 'wpsg'); ?>
\ No newline at end of file diff --git a/views/mods/mod_downloadplus/pdfdownloadmail_html.phtml b/views/mods/mod_downloadplus/pdfdownloadmail_html.phtml new file mode 100644 index 0000000..e089454 --- /dev/null +++ b/views/mods/mod_downloadplus/pdfdownloadmail_html.phtml @@ -0,0 +1,20 @@ +<?php
+
+ /**
+ * Mail, die die PDF Downloads an den Kunden sendet (HTML)
+ */
+
+?>
+<p><?php echo wpsg_translate(__('Hallo #1# #2#,', 'wpsg'), $this->view['kunde']['vname'], $this->view['kunde']['name']); ?></p>
+
+<p><?php echo __('hiermit erhalten Sie die Downloadlinks für Ihre gekauften PDFs:', 'wpsg'); ?></p>
+
+<ul>
+<?php foreach ($this->view['arPDFs'] as $v) { ?>
+<li><?php echo $v['out_file']; ?>: <a href="<?php echo site_url(); ?>?wpsg_action=wpsg_mod_downloadplus_download&hash=<?php echo $v['hash']; ?>&indi=<?php echo $v['id']; ?>"><?php echo __('Download', 'wpsg'); ?></a></li>
+<?php } ?>
+</ul>
+
+<p><?php echo __("Mit freundlichen Grüßen", "wpsg"); ?></p>
+
+<p><?php echo __($this->get_option('wpsg_shopdata_name'), 'wpsg'); ?> - <?php echo __('Team', 'wpsg'); ?></p>
\ No newline at end of file diff --git a/views/mods/mod_downloadplus/produkt_edit_sidebar.phtml b/views/mods/mod_downloadplus/produkt_edit_sidebar.phtml new file mode 100644 index 0000000..a38ed90 --- /dev/null +++ b/views/mods/mod_downloadplus/produkt_edit_sidebar.phtml @@ -0,0 +1,105 @@ +<?php
+
+ /**
+ * Template für die Integration des Uploadformulars im rechten Bereich
+ * sollte nicht verändert werden
+ */
+
+?>
+<script type="text/javascript">
+/* <![CDATA[ */
+
+ function wpsg_pdfdownload_removePDF(file)
+ {
+
+ if (!confirm('<?php echo __('Sind sie sich sicher, dass sie die Datei löschen möchten?', 'wpsg'); ?>')) return false;
+
+ jQuery('#wpsg_mod_downloadplus_files').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
+
+ jQuery.ajax( {
+ url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_downloadplus&edit_id=<?php echo $this->view['data']['id']; ?>&noheader=1&cmd=delete_file&file=' + file,
+ success: function(response) {
+
+ if (response == '1')
+ {
+ jQuery("#wpsg_mod_downloadplus_files").load("<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_downloadplus&cmd=pdffiles_list&edit_id=<?php echo $_REQUEST['edit_id']; ?>&noheader=1");
+ }
+ else
+ {
+
+ alert(response);
+ jQuery("#wpsg_mod_downloadplus_files").load("<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_downloadplus&cmd=pdffiles_list&edit_id=<?php echo $_REQUEST['edit_id']; ?>&noheader=1");
+
+ }
+
+ }
+ } );
+
+ return false;
+
+ } // function wpsg_pdfdownload_removePDF($pdf)
+
+ jQuery(document).ready(function() {
+
+ <?php if ($this->get_option('wpsg_classicupload') != '1') { ?>
+ new AjaxUpload(
+ "wpsg_mod_downloadplus_upload", {
+ name: "wpsg_mod_downloadplus_file",
+ action: "<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_downloadplus&edit_id=<?php echo $this->view['data']['id'] ?>&noheader=1&cmd=upload_file",
+ onSubmit: function(file, extension) {
+
+ jQuery('#wpsg_mod_downloadplus_files').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
+
+ },
+ onComplete: function(file, response) {
+
+ if (response == '1')
+ {
+ jQuery("#wpsg_mod_downloadplus_files").load("<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_downloadplus&cmd=pdffiles_list&edit_id=<?php echo $_REQUEST['edit_id']; ?>&noheader=1");
+ }
+ else
+ {
+
+ alert(response);
+ jQuery("#wpsg_mod_downloadplus_files").load("<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_downloadplus&cmd=pdffiles_list&edit_id=<?php echo $_REQUEST['edit_id']; ?>&noheader=1");
+
+ }
+ }
+ }
+ );
+ <?php } ?>
+
+ });
+
+/* ]]> */
+</script>
+
+<div id="wpsg_pdfdownload" class="postbox">
+ <h3 class="wpsg_handlediv">
+ <span title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>" class="handlediv"><br /></span>
+ <span><?php echo __('DownloadPlus Produkt', 'wpsg'); ?> </span>
+ </h3>
+ <div class="inside">
+ <div id="wpsg_mod_downloadplus_files"><?php echo $this->view['filesList']; ?></div>
+
+ <?php if ($this->get_option('wpsg_classicupload') == '1') { ?>
+ <input type="file" name="wpsg_mod_downloadplus_file" />
+ <?php } else { ?>
+ <input value="<?php echo __("Upload", "wpsg"); ?>" type="text" style="text-align:center;" size="10" id="wpsg_mod_downloadplus_upload" />
+ <?php } ?>
+
+ <div class="wpsg_clear"></div><br />
+ <div class="wpsg_form_field">
+ <div class="wpsg_form_left" style="width:75px;">
+ <label for="feinheit"><?php echo __('FTP Pfad', 'wpsg'); ?>:</label>
+ </div>
+ <div class="wpsg_form_right">
+ <p>
+ <a href="#" onclick="alert('<?php echo addslashes($this->callMod('wpsg_mod_downloadplus', 'getPDFPath', array($this->view['data']['id'], true))); ?>'); return false;"><?php echo __('Anzeigen', 'wpsg'); ?></a>
+ </p>
+ </div>
+ <div class="wpsg_clear"></div>
+ </div>
+ </div>
+ <div class="clear"></div>
+</div>
\ No newline at end of file diff --git a/views/mods/mod_downloadplus/settings_edit.phtml b/views/mods/mod_downloadplus/settings_edit.phtml new file mode 100644 index 0000000..be972f0 --- /dev/null +++ b/views/mods/mod_downloadplus/settings_edit.phtml @@ -0,0 +1,289 @@ +<?php
+
+ /**
+ * Template für die Einstellungen des PDFDownload Moduls
+ */
+
+?>
+<div class="wpsg_admin_box wpsg_mod_downloadplus" id="wpsg_tab">
+ <div class="head">
+ <div class="title">
+ <div class="tab" id="tab1"><?php echo __('Einstellungen', 'wpsg'); ?></div>
+ <div class="tab" id="tab2"><?php echo __('Textfelder', 'wpsg'); ?></div>
+ <div class="tab" id="tab3"><?php echo __('Erweitert', 'wpsg'); ?></div>
+ <div class="tab tabright tabright-last" id="tab4"><?php echo __('Info / Hilfe', 'wpsg'); ?></div>
+ <div class="wpsg_clear"></div>
+ </div>
+ </div>
+ <div class="content">
+
+ <div id="tabcontent1" class="tabcontent">
+
+ <?php echo wpsg_drawForm_Input('wpsg_mod_downloadplus_filename', __('Personalisierter Dateiname', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_filename'), array('help' => 'mod_pdfdownload_einstellungen_filename')); ?>
+ <?php echo wpsg_drawForm_Select('wpsg_mod_downloadplus_indiv_mode', __('Individualisierung planen', 'wpsg'), array(0 => __('Manuell', 'wpsg'), 1 => __('Nach Zahlung', 'wpsg'), 2 => __('Nach Bestellung', 'wpsg')), $this->get_option('wpsg_mod_downloadplus_indiv_mode'), array('help' => 'mod_pdfdownload_einstellungen_individualisierungsmodus')); ?>
+ <?php echo wpsg_drawForm_Checkbox('wpsg_mod_downloadplus_autosend', __('PDFs nach Individualisierung sofort senden', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_autosend'), array('help' => 'mod_pdfdownload_einstellungen_autosend')); ?>
+ <?php echo wpsg_drawForm_Checkbox('wpsg_mod_downloadplus_shipping', __('Versandart "Versand per Mail" aktiv', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_shipping'), array('help' => 'wpsg_mod_downloadplus_shipping')); ?>
+ <?php echo wpsg_drawForm_Checkbox('wpsg_mod_downloadplus_einsplusx', __(' Mehr als ein Produkt im Warenkorb zulassen', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_einsplusx'), array('help' => 'wpsg_mod_downloadplus_einsplusx')); ?>
+ <?php echo wpsg_drawForm_Select('wpsg_mod_downloadplus_accepted', __('Gültigkeit von Links', 'wpsg'), array(0 => __('Unbegrenzt', 'wpsg'), 1 => __('Nach Downloads', 'wpsg'), 2 => __('Nach Tagen', 'wpsg')), $this->get_option('wpsg_mod_downloadplus_accepted'), array('help' => 'mod_pdfdownload_einstellungen_accepted')); ?>
+ <?php echo wpsg_drawForm_Input('wpsg_mod_downloadplus_days', __('Gültigkeit in Tagen', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_days'), array('help' => 'wpsg_mod_downloadplus_days')); ?>
+ <?php echo wpsg_drawForm_Input('wpsg_mod_downloadplus_downloads', __('Anzahl an möglichen Downloads', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_downloads'), array('help' => 'wpsg_mod_downloadplus_downloads')); ?>
+ <?php echo wpsg_drawForm_Checkbox('wpsg_mod_downloadplus_cleanraiddownloads', __('Abgelaufene Downloads bereinigen', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_cleanraiddownloads'), array('help' => 'wpsg_mod_downloadplus_cleanraiddownloads')); ?>
+ <?php echo wpsg_drawForm_Input('wpsg_mod_downloadplus_cleanolddownloads', __('Downloads nach X Tagen löschen', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_cleanolddownloads'), array('help' => 'wpsg_mod_downloadplus_cleanolddownloads')); ?>
+ <?php echo wpsg_drawForm_Input('wpsg_mod_downloadplus_pdfpath', __('Pfad für die PDFs der Produkte', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_pdfpath'), array('hint' => __('Standard: uploads/wpsg_pdfprodukte/', 'wpsg'), 'help' => 'wpsg_mod_downloadplus_pdfpath')); ?>
+ <?php echo wpsg_drawForm_Input('wpsg_mod_downloadplus_pdfindivpath', __('Pfad für die Individualisierten PDFs', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_pdfindivpath'), array('hint' => __('Standard: uploads/wpsg_pdfprodukte_order/', 'wpsg'), 'help' => 'wpsg_mod_downloadplus_pdfindivpath')); ?>
+ <?php echo wpsg_drawForm_Select('wpsg_mod_downloadplus_format', __('Auslieferungsformat', 'wpsg'), array(0 => __('Direkt', 'wpsg'), 1 => __('Gezippt (intern)', 'wpsg')), $this->get_option('wpsg_mod_downloadplus_format'), array('help' => 'wpsg_mod_downloadplus_format')); ?>
+ <?php echo wpsg_drawForm_Select('wpsg_mod_downloadplus_range', __('Anpassung', 'wpsg'), array(0 => __('Gesamtes Dokument', 'wpsg'), 1 => __('Bereich', 'wpsg')), $this->get_option('wpsg_mod_downloadplus_range'), array ('help' => 'wpsg_mod_downloadplus_range')); ?>
+ <div class="wpsg_form_field" style="display:none;" id="wpsg_mod_downloadplus_rangefield">
+ <div class="wpsg_form_left">
+ <label><?php echo __('Seitenbereich (Von/Bis)', 'wpsg'); ?>:</label>
+ </div>
+ <div class="wpsg_form_right">
+ <input type="text" style="width:100px;" size="5" name="wpsg_mod_downloadplus_range_von" value="<?php echo $this->get_option('wpsg_mod_downloadplus_range_von'); ?>" /> -
+ <input type="text" style="width:100px;" size="5" name="wpsg_mod_downloadplus_range_bis" value="<?php echo $this->get_option('wpsg_mod_downloadplus_range_bis'); ?>" />
+ </div>
+ <div class="wpsg_clear"></div>
+ </div>
+ <?php echo wpsg_drawForm_Input('wpsg_mod_downloadplus_masterpass', __('Passwort (Um Schutz aufzuheben)', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_masterpass'), array('help' => 'wpsg_mod_downloadplus_masterpass')); ?>
+ <?php echo wpsg_drawForm_Input('wpsg_mod_downloadplus_openpass', __('Passwort (Um Dokument öffnen zu können)', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_openpass'), array('help' => 'wpsg_mod_downloadplus_openpass')); ?>
+ <div class="wpsg_form_field">
+ <div class="wpsg_form_left">
+ <label><?php echo __('Dokumentenberechtigungen', 'wpsg'); ?>:</label>
+ </div>
+ <div class="wpsg_form_right wpsg_mod_downloadplus_security">
+ <p>
+ <input type="hidden" value="0" name="wpsg_mod_downloadplus_securitysave" />
+ <label><input type="checkbox" value="1" name="wpsg_mod_downloadplus_securitysave" <?php echo (($this->get_option('wpsg_mod_downloadplus_securitysave') == '1')?'checked="checked"':''); ?> /> <?php echo __('Speichern erlauben', 'wpsg'); ?></label><br />
+
+ <input type="hidden" value="0" name="wpsg_mod_downloadplus_securityprint" />
+ <label><input type="checkbox" value="1" name="wpsg_mod_downloadplus_securityprint" <?php echo (($this->get_option('wpsg_mod_downloadplus_securityprint') == '1')?'checked="checked"':''); ?> /> <?php echo __('Drucken erlauben', 'wpsg'); ?></label><br />
+
+ <input type="hidden" value="0" name="wpsg_mod_downloadplus_securitymod" />
+ <label><input type="checkbox" value="1" name="wpsg_mod_downloadplus_securitymod" <?php echo (($this->get_option('wpsg_mod_downloadplus_securitymod') == '1')?'checked="checked"':''); ?> /> <?php echo __('Modifizieren erlauben', 'wpsg'); ?></label><br />
+
+ <input type="hidden" value="0" name="wpsg_mod_downloadplus_securitynote" />
+ <label><input type="checkbox" value="1" name="wpsg_mod_downloadplus_securitynote" <?php echo (($this->get_option('wpsg_mod_downloadplus_securitynote') == '1')?'checked="checked"':''); ?> /> <?php echo __('Bemerkungen erlauben', 'wpsg'); ?></label><br />
+ </p>
+ </div>
+ <div class="wpsg_clear"></div>
+ </div>
+ <div class="wpsg_form_field">
+ <div class="wpsg_form_left">
+ <label><?php echo __('Mail für Individualisierungsbericht', 'wpsg'); ?>:</label>
+ </div>
+ <div class="wpsg_form_right">
+ <p><?php echo wpsg_translate(__('Kann <a href="#1#">hier</a> konfiguriert werden.', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=emailconf#pdfdownloadcronmail'); ?></p>
+ <a rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_pdfdownload_individualisierungsbericht" class="wpsg_form_help" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_pdfdownload_individualisierungsbericht"></a>
+ </div>
+ <div class="wpsg_clear"></div>
+ </div>
+ <div class="wpsg_form_field">
+ <div class="wpsg_form_left">
+ <label><?php echo __('Mail für Downloads an Kunden', 'wpsg'); ?>:</label>
+ </div>
+ <div class="wpsg_form_right">
+ <p><?php echo wpsg_translate(__('Kann <a href="#1#">hier</a> konfiguriert werden.', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=emailconf#pdfdownloadfiles'); ?></p>
+ <a rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_pdfdownload_kundenmail" class="wpsg_form_help" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_pdfdownload_kundenmail"></a>
+ </div>
+ <div class="wpsg_clear"></div>
+ </div>
+ <div class="wpsg_form_field">
+ <div class="wpsg_form_left">
+ <label><?php echo __('Letzte Ausführung des Crons', 'wpsg'); ?>:</label>
+ </div>
+ <div class="wpsg_form_right">
+ <p><?php echo (($this->get_option('wpsg_lastCron') > 0)?wpsg_formatTimestamp($this->get_option('wpsg_lastCron')):__('Noch nicht ausgeführt', 'wpsg')); ?></p>
+ <a rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_pdfdownload_einstellungen_cron" class="wpsg_form_help" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_pdfdownload_einstellungen_cron"></a>
+ </div>
+ <div class="wpsg_clear"></div>
+ </div>
+
+ </div>
+
+ <div id="tabcontent2" class="tabcontent">
+ <table class="wpsg_mod_downloadplus_fieldtable">
+ <tr>
+ <th class="col_bezeichnung"></th>
+ <th class="col_x"><?php echo __('X', 'wpsg'); ?></th>
+ <th class="col_y"><?php echo __('Y', 'wpsg'); ?></th>
+ <th class="col_align"><?php echo __('Zentriert', 'wpsg'); ?></th>
+ <th class="col_bg"><?php echo __('Hintergrund', 'wpsg'); ?></th>
+ <th class="col_color"><?php echo __('Farbe', 'wpsg'); ?></th>
+ <th class="col_alpha"><?php echo __('Opaque', 'wpsg'); ?></th>
+ <th class="col_angle"><?php echo __('Winkel', 'wpsg'); ?></th>
+ <th class="col_groesse"><?php echo __('Größe', 'wpsg'); ?></th>
+ <th class="col_action"></th>
+ </tr>
+ <?php for ($i = 0; $i < 10; $i ++) { ?>
+ <tr>
+ <td><?php echo '#'.($i + 1); ?></td>
+ <td>
+ <input type="text" style="width:100%;" name="text[<?php echo $i; ?>][x]" value="<?php echo wpsg_hspc($this->view['arTexte'][$i]['x']); ?>" />
+ </td>
+ <td>
+ <input type="text" style="width:100%;" name="text[<?php echo $i; ?>][y]" value="<?php echo wpsg_hspc($this->view['arTexte'][$i]['y']); ?>" />
+ </td>
+ <td class="col_align">
+ <input type="hidden" name="text[<?php echo $i; ?>][align]" value="0" />
+ <input class="wpsg_hideBarcode" type="checkbox" name="text[<?php echo $i; ?>][align]" value="1" <?php echo (($this->view['arTexte'][$i]['align'] == '1')?'checked="checked"':''); ?> />
+ </td>
+ <td class="col_bg">
+ <input type="hidden" name="text[<?php echo $i; ?>][bg]" value="0" />
+ <input class="wpsg_hideBarcode" type="checkbox" name="text[<?php echo $i; ?>][bg]" value="1" <?php echo (($this->view['arTexte'][$i]['bg'] == '1')?'checked="checked"':''); ?> />
+ </td>
+ <td>
+ <input class="wpsg_hideBarcode" type="text" style="width:100%;" name="text[<?php echo $i; ?>][color]" value="<?php echo wpsg_hspc($this->view['arTexte'][$i]['color']); ?>" />
+ </td>
+ <td>
+ <input class="wpsg_hideBarcode" type="text" style="width:100%;" name="text[<?php echo $i; ?>][alpha]" value="<?php echo wpsg_hspc($this->view['arTexte'][$i]['alpha']); ?>" />
+ </td>
+ <td>
+ <input class="wpsg_hideBarcode" type="text" style="width:100%;" name="text[<?php echo $i; ?>][angle]" value="<?php echo wpsg_hspc($this->view['arTexte'][$i]['angle']); ?>" />
+ </td>
+ <td>
+ <select name="text[<?php echo $i; ?>][fontsize]" style="width:100%;">
+ <option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "4")?'selected="selected"':''); ?> value="4">4</option>
+ <option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "5")?'selected="selected"':''); ?> value="5">5</option>
+ <option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "6")?'selected="selected"':''); ?> value="6">6</option>
+ <option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "7")?'selected="selected"':''); ?> value="7">7</option>
+ <option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "8")?'selected="selected"':''); ?> value="8">8</option>
+ <option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "9")?'selected="selected"':''); ?> value="9">9</option>
+ <option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "10")?'selected="selected"':''); ?> value="10">10</option>
+ <option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "11")?'selected="selected"':''); ?> value="11">11</option>
+ <option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "12")?'selected="selected"':''); ?> value="12">12</option>
+ <option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "13")?'selected="selected"':''); ?> value="13">13</option>
+ <option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "14")?'selected="selected"':''); ?> value="14">14</option>
+ <option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "16")?'selected="selected"':''); ?> value="16">16</option>
+ <option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "18")?'selected="selected"':''); ?> value="18">18</option>
+ <option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "20")?'selected="selected"':''); ?> value="20">20</option>
+ <option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "22")?'selected="selected"':''); ?> value="22">22</option>
+ <option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "24")?'selected="selected"':''); ?> value="24">24</option>
+ <option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "26")?'selected="selected"':''); ?> value="26">26</option>
+ <option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "28")?'selected="selected"':''); ?> value="28">28</option>
+ <option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "30")?'selected="selected"':''); ?> value="30">30</option>
+ <option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "32")?'selected="selected"':''); ?> value="32">32</option>
+ <option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "34")?'selected="selected"':''); ?> value="34">34</option>
+ </select>
+ </td>
+ <td>
+ <label><input type="checkbox" value="1" name="text[<?php echo $i; ?>][aktiv]" <?php echo (($this->view['arTexte'][$i]['aktiv'] == 1)?'checked="checked"':''); ?> /> <?php echo __("Aktiv", "wpsg"); ?></label>
+ <a style="float:right; position:relative;" class="wpsg_form_help" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_pdfdownload_fieldconfig" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_pdfdownload_fieldconfig"></a>
+ </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="col_freitext_label"><?php echo __('Freitext', 'wpsg'); ?>:</td>
+ <td colspan="7" class="col_freitext">
+ <input type="text" style="width:100%;" name="text[<?php echo $i; ?>][text]" value="<?php echo wpsg_hspc($this->view['arTexte'][$i]['text']); ?>" />
+ </td>
+ <td>
+ <select class="fontselect" name="text[<?php echo $i; ?>][font]" style="width:100%;">
+ <?php foreach ($this->view['wpsg_mod_downloadplus']['arFonts'] as $k => $v) { ?>
+ <option value="<?php echo wpsg_hspc($k); ?>" <?php echo (($k == $this->view['arTexte'][$i]['font'])?'selected="selected"':''); ?>><?php echo wpsg_hspc($v); ?></option>
+ <?php } ?>
+ </select>
+ </td>
+ </tr>
+ <?php if ($i < 9) { ?>
+ <tr class="wpsg_border_bottom"><td colspan="10"></td></tr>
+ <?php } ?>
+ <?php } ?>
+ </table>
+ </div>
+
+ <div id="tabcontent3" class="tabcontent">
+
+ <?php echo wpsg_drawForm_Checkbox('wpsg_mod_downloadplus_memorylimit', __('Versuche Speicherlimit hochzusetzen', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_memorylimit'), array('help' => 'wpsg_mod_downloadplus_memorylimit')); ?>
+ <?php echo wpsg_drawForm_Checkbox('wpsg_mod_downloadplus_timelimit', __('Versuche die Ausführungszeit hochzusetzen', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_timelimit'), array('help' => 'wpsg_mod_downloadplus_timelimit')); ?>
+ <?php echo wpsg_drawForm_Input('wpsg_mod_downloadplus_numberformat', __('Format der Downloadnummer', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_numberformat'), array('help' => 'wpsg_mod_downloadplus_numberformat')); ?>
+ <?php echo wpsg_drawForm_Input('wpsg_mod_downloadplus_startnumber', __('Downloadnummer Startnummer', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_startnumber'), array('help' => 'wpsg_mod_downloadplus_startnumber')); ?>
+ <?php echo wpsg_drawForm_Checkbox('wpsg_mod_downloadplus_attachement', __('Angepasste Dokumente als Anhang versenden', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_attachement'), array('help' => 'wpsg_mod_downloadplus_attachement')); ?>
+
+ </div>
+
+ <div id="tabcontent4" class="tabcontent">
+
+ <p>
+ <?php echo __('Das Downloadplus Modul ist eine erweiterung des Downloadprodukt Moduls und ermöglicht das Individualisieren von PDF Dokumenten.', 'wpsg'); ?>
+ </p>
+ <p>
+ <?php echo __('Weitere Informationen erhalten Sie auf der <a href="http://wpshopgermany.de/?p=1426">Hilfe Seite</a> oder in unserem <a href="http://forum.maennchen1.de">Support Forum</a>.', 'wpsg'); ?>
+ </p>
+
+ <p>
+ <?php echo __('Eintrag in der Crontab:', 'wpsg'); ?>:<br /><br />
+ <span style="font-weight:bold; font-family:monospace;">
+ */5 * * * * /usr/bin/php <?php echo WPSG_PATH.DIRECTORY_SEPARATOR; ?>cron.php
+ </span>
+ </p>
+ <p>
+ <?php echo __('HTTP Aufruf des Cron Scriptes:', 'wpsg'); ?><br /><br />
+ <a href="<?php echo WPSG_PLUGIN_URL; ?>/wpshopgermany/cron.php" target="_blank"><?php echo WPSG_PLUGIN_URL; ?>/wpshopgermany/cron.php</a>
+ </p>
+
+ </div>
+
+ </div>
+</div>
+
+<script type="text/javascript">/* <![CDATA[ */
+
+ function wpsg_mod_downloadplus_switchAccepted()
+ {
+
+ if (jQuery('#wpsg_mod_downloadplus_accepted').val() == '1')
+ jQuery('#wpsg_mod_downloadplus_downloads').parent().parent().show();
+ else
+ jQuery('#wpsg_mod_downloadplus_downloads').parent().parent().hide();
+
+ if (jQuery('#wpsg_mod_downloadplus_accepted').val() == '2')
+ jQuery('#wpsg_mod_downloadplus_days').parent().parent().show();
+ else
+ jQuery('#wpsg_mod_downloadplus_days').parent().parent().hide();
+
+ } // function wpsg_mod_downloadplus_switchAccepted()
+
+ function wpsg_mod_downloadplus_switchRange()
+ {
+
+ if (jQuery('#wpsg_mod_downloadplus_range').val() == '1')
+ jQuery('#wpsg_mod_downloadplus_rangefield').show();
+ else
+ jQuery('#wpsg_mod_downloadplus_rangefield').hide();
+
+ } // function wpsg_mod_downloadplus_switchRange()
+
+ jQuery(document).ready(function() {
+
+ jQuery('.wpsg_mod_downloadplus_fieldtable select.fontselect').bind('change', function() {
+
+ if (jQuery(this).val() == 'EAN13' || jQuery(this).val() == 'Code128' || jQuery(this).val() == 'UPC_A')
+ {
+
+ jQuery(this).parents('tr').prev().find('input.wpsg_hideBarcode').hide();
+
+ }
+ else
+ {
+
+ jQuery(this).parents('tr').prev().find('input.wpsg_hideBarcode').show();
+
+ }
+
+ } ).change();
+
+ jQuery('#wpsg_mod_downloadplus_range').bind('change', function() { wpsg_mod_downloadplus_switchRange(); } );
+ jQuery('#wpsg_mod_downloadplus_accepted').bind('change', function() { wpsg_mod_downloadplus_switchAccepted(); } );
+
+ wpsg_mod_downloadplus_switchAccepted();
+ wpsg_mod_downloadplus_switchRange();
+
+ jQuery('#wpsg_tab').wpsg_tab( {
+ 'cookiename': 'wpsg_pdfdownload_tab',
+ 'tab2': function() {
+ jQuery('.tablink').show();
+ }
+ } );
+ } );
+
+ /* ]]> */</script>
+
\ No newline at end of file |
