summaryrefslogtreecommitdiff
path: root/views/mods/mod_orderupload
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2016-01-14 14:55:36 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2016-01-14 14:55:36 +0000
commitad405c7045c6e242080ec9d3ce4c9e586b517c4f (patch)
treeb41905f4d27f3eaaabd5bad3a39f8d3873540b46 /views/mods/mod_orderupload
- Testweise 4
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5261 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_orderupload')
-rw-r--r--views/mods/mod_orderupload/checkout_inner_prebutton.phtml26
-rw-r--r--views/mods/mod_orderupload/order_view_sidebar.phtml22
-rw-r--r--views/mods/mod_orderupload/settings_edit.phtml11
3 files changed, 59 insertions, 0 deletions
diff --git a/views/mods/mod_orderupload/checkout_inner_prebutton.phtml b/views/mods/mod_orderupload/checkout_inner_prebutton.phtml
new file mode 100644
index 0000000..1c347b6
--- /dev/null
+++ b/views/mods/mod_orderupload/checkout_inner_prebutton.phtml
@@ -0,0 +1,26 @@
+<?php
+
+ /**
+ * Template für die Integration des Bestelluploads in den Bestellprozess
+ */
+
+?>
+<div class="wpsg_box wpsg_mod_orderupload">
+ <div class="wpsg_head"><?php echo __('Dateiupload', 'wpsg'); ?> <?php if ($this->get_option('wpsg_mod_orderupload_optional') != '1') { ?><span class="wpsg_required">*</span><?php } ?></div>
+ <div class="wpsg_inner">
+
+ <input type="file" name="wpsg_mod_orderupload_file" />
+
+ <?php if (wpsg_isSizedArray($_SESSION['wpsg']['checkout']['wpsg_mod_orderupload'])) { ?>
+ <br />
+ <label class="wpsg_checkout"><?php echo __('Bisher hochgeladene Dokumente', 'wpsg'); ?>:</label><br />
+ <?php foreach ($_SESSION['wpsg']['checkout']['wpsg_mod_orderupload'] as $ou_index => $ou) { ?>
+ <a onclick="return confirm('<?php echo __('Sind Sie sich sicher, dass Sie dieses Dokument aus der Bestellung entfernen möchten?', 'wpsg'); ?>');" href="?wpsg_plugin=wpsg_mod_orderupload&wpsg_action=remove&file_index=<?php echo $ou_index; ?>" class="wpsg_mod_orderupload_removelink">
+ <?php echo __('Entfernen', 'wpsg'); ?>
+ </a>
+ <a href="<?php echo $ou[2]; ?>"><?php echo wpsg_hspc($ou[0]); ?></a>&nbsp;<?php echo '('.wpsg_formatSize($ou[3]).')'; ?><br />
+ <?php } ?>
+ <?php } ?>
+
+ </div>
+</div> \ No newline at end of file
diff --git a/views/mods/mod_orderupload/order_view_sidebar.phtml b/views/mods/mod_orderupload/order_view_sidebar.phtml
new file mode 100644
index 0000000..759a153
--- /dev/null
+++ b/views/mods/mod_orderupload/order_view_sidebar.phtml
@@ -0,0 +1,22 @@
+<?php
+
+ /**
+ * Template für die Anzeige der Bestelluploads innerhalb der Bestellung
+ */
+
+?>
+<div class="postbox" id="wpsg_modorderupload">
+ <div title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>" class="handlediv"><br></div>
+ <h3 class="hndle">
+ <span><?php echo __('Bestelluploads', 'wpsg'); ?></span>
+ </h3>
+ <div class="inside">
+ <?php if (!wpsg_isSizedArray($this->view['arFiles'])) { ?>
+ <p><?php echo __('Keine Dateien hochgeladen.', 'wpsg'); ?></p>
+ <?php } else { ?>
+ <?php foreach ($this->view['arFiles'] as $f) { ?>
+ <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=view&edit_id=<?php echo $this->view['data']['id']; ?>&noheader=1&action=ajax&mod=wpsg_mod_orderupload&wpsg_mod_orderupload_download=<?php echo rawurlencode($f); ?>"><?php echo $f; ?></a> (<?php echo wpsg_formatSize($this->callMod('wpsg_mod_orderupload', 'getSavePath', array($this->view['data']['id'])).$f); ?>)<br />
+ <?php } ?>
+ <?php } ?>
+ </div>
+</div> \ No newline at end of file
diff --git a/views/mods/mod_orderupload/settings_edit.phtml b/views/mods/mod_orderupload/settings_edit.phtml
new file mode 100644
index 0000000..6750fba
--- /dev/null
+++ b/views/mods/mod_orderupload/settings_edit.phtml
@@ -0,0 +1,11 @@
+<?php
+
+ /**
+ * Template für die Einstellungen des Bestell Upload Moduls
+ */
+
+?>
+<?php echo wpsg_drawForm_Input('wpsg_mod_orderupload_filename', __('Neuer Dateiname', 'wpsg'), $this->get_option('wpsg_mod_orderupload_filename'), array('help' => 'wpsg_mod_orderupload_filename')); ?>
+<?php echo wpsg_drawForm_Input('wpsg_mod_orderupload_allowedext', __('Erlaubte Endungen (kommagetrennt)', 'wpsg'), $this->get_option('wpsg_mod_orderupload_allowedext'), array('help' => 'wpsg_mod_orderupload_allowedext')); ?>
+<?php echo wpsg_drawForm_Checkbox('wpsg_mod_orderupload_multifiles', __('Mehr als eine Datei erlauben', 'wpsg'), $this->get_option('wpsg_mod_orderupload_multifiles'), array('help' => 'wpsg_mod_orderupload_multifiles')); ?>
+<?php echo wpsg_drawForm_Checkbox('wpsg_mod_orderupload_optional', __('Upload ist kein Pflichtfeld', 'wpsg'), $this->get_option('wpsg_mod_orderupload_optional'), array('help' => 'wpsg_mod_orderupload_optional')); ?> \ No newline at end of file