summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/mods/mod_bankalignment/order_ajax.phtml95
-rw-r--r--views/mods/mod_bankalignment/product_index_tab.phtml21
-rw-r--r--views/mods/mod_bankalignment/settings_edit.phtml9
-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
-rw-r--r--views/mods/mod_ordervars/settings_edit.phtml22
7 files changed, 5 insertions, 201 deletions
diff --git a/views/mods/mod_bankalignment/order_ajax.phtml b/views/mods/mod_bankalignment/order_ajax.phtml
deleted file mode 100644
index d0fa44a..0000000
--- a/views/mods/mod_bankalignment/order_ajax.phtml
+++ /dev/null
@@ -1,95 +0,0 @@
-<?php
-
- /**
- * Template für die Zuweisung der Bestellungen zu Datensätzen aus der CSV Datei
- */
-
-?>
-<div class="wrap wpsg_mod_bankalignment_order_ajax">
- <div class="icon32 icon32-posts-post" id="icon-edit"><br></div>
- <h2>
- <?php echo __('Bestellverwaltung', 'wpsg'); ?> - <?php echo __('Bankabgleich', 'wpsg'); ?>
- </h2>
-
- <br />
-
- <form method="post" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&noheader=1&mod=wpsg_mod_bankalignment">
-
- <table class="widefat post fixed">
- <thead>
- <tr>
- <th class="manage-column wpsg-nr"><?php echo __('Zeile', 'wpsg'); ?></th>
- <th class="manage-column wpsg-order"><?php echo __('Bestellung', 'wpsg'); ?></th>
- </tr>
- </thead>
- <tbody>
- <?php $i = 0; foreach ($this->view['set'] as $row) { $i ++; ?>
- <tr>
- <td class="wpsg-nr">
- <?php echo $i; ?>
- <?php if ($row['order_id'] === false) { ?>
- <span class="wpsg_error"><?php echo __('Bestellung konnte nicht automatisch ermittelt werden.', 'wpsg'); ?></span>
- <?php } else { ?>
- <span class="wpsg_erfolg"><?php echo wpsg_translate(__('Bestellung #1# wurde automatisch erkannt.', 'wpsg'), $row['onr']); ?></span>
- <?php } ?>
- <div class="row-actions">
- <span class="view"><a onclick="return wpsg_mod_bankalignment_show(this);" title="<?php echo __("Details anzeigen", "wpsg"); ?>" href="#"><?php echo __("Details anzeigen", "wpsg"); ?></a></span>
- </div>
- <div class="row-details">
- <br />
- <?php foreach ($this->view['colInfo'] as $k => $v) { ?>
- <?php echo $v; ?>: <?php echo $row['data'][$k]; ?> <br />
- <?php } ?>
- </div>
- </td>
- <td class="wpsg-order">
- <select name="set[]" style="width:100%;">
- <option value="-1"><?php echo __('Bitte Bestellung auswählen / Zeile ignorieren', 'wpsg'); ?></option>
- <?php foreach ($this->view['arOrder'] as $o) { ?>
- <option <?php echo (($row['order_id'] == $o['o_id'])?'selected="selected"':''); ?> value="<?php echo $o['o_id']; ?>"><?php echo wpsg_translate(__('Bestellung #1# (#2#) auf "#3#" setzen', 'wpsg'), $o['onr'], $o['okey'], $this->arStatus[100]); ?></option>
- <?php } ?>
- </select>
- </td>
- </tr>
- <?php } ?>
- </tbody>
- </table>
-
- <br />
-
- <input type="submit" name="wpsg_mod_bankalignment_submit" value="<?php echo __('Änderungen übernehmen', 'wpsg'); ?>" class="button-primary" />
-
- </form>
-
- <script type="text/javascript">/* <![CDATA[ */
-
- /**
- * Zeigt die Details einer Datenzeile an oder blendet sie aus
- */
- function wpsg_mod_bankalignment_show(oElement)
- {
-
- if (jQuery(oElement).parent().parent().parent().find('.row-details').is(':visible'))
- {
-
- jQuery(oElement).parent().parent().parent().find('.row-details').hide();
- jQuery(oElement).attr('title', '<?php echo __("Details anzeigen", "wpsg"); ?>');
- jQuery(oElement).text('<?php echo __("Details anzeigen", "wpsg"); ?>');
-
- }
- else
- {
-
- jQuery(oElement).parent().parent().parent().find('.row-details').show();
- jQuery(oElement).attr('title', '<?php echo __("Details ausblenden", "wpsg"); ?>');
- jQuery(oElement).text('<?php echo __("Details ausblenden", "wpsg"); ?>');
-
- }
-
- return false;
-
- } // function wpsg_mod_bankalignment_show(oElement)
-
- /* ]]> */</script>
-
-</div> \ No newline at end of file
diff --git a/views/mods/mod_bankalignment/product_index_tab.phtml b/views/mods/mod_bankalignment/product_index_tab.phtml
deleted file mode 100644
index 0469fb2..0000000
--- a/views/mods/mod_bankalignment/product_index_tab.phtml
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
- /**
- * Integriert das Uploadformular in die Bestellverwaltung
- */
-
-?>
-
-
-<form method="POST" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_bankalignment" enctype="multipart/form-data">
-
- <?php echo wpsg_drawForm_Upload('wpsg_mod_bankalignment_file', __('CSV Datei', 'wpsg')); ?>
-
- <br />
-
- <div class="container-fluid">
- <input type="submit" value="<?php echo __('Abgleich starten', 'wpsg'); ?>" name="submit" class="button" />
- </div>
-
-</form>
-
diff --git a/views/mods/mod_bankalignment/settings_edit.phtml b/views/mods/mod_bankalignment/settings_edit.phtml
deleted file mode 100644
index 57b9e60..0000000
--- a/views/mods/mod_bankalignment/settings_edit.phtml
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
- /**
- * Template für die Einstellungen des Bankabgleichsmoduls
- */
-
-?>
-
-<?php echo wpsg_drawForm_Input('wpsg_mod_bankalignment_separator', __('Treenzeichen', 'wpsg'), $this->get_option('wpsg_mod_bankalignment_separator')); ?> \ No newline at end of file
diff --git a/views/mods/mod_orderupload/checkout_inner_prebutton.phtml b/views/mods/mod_orderupload/checkout_inner_prebutton.phtml
deleted file mode 100644
index c0f1a06..0000000
--- a/views/mods/mod_orderupload/checkout_inner_prebutton.phtml
+++ /dev/null
@@ -1,26 +0,0 @@
-<?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']['wpsg_mod_orderupload'])) { ?>
- <br />
- <label class="wpsg_checkout"><?php echo __('Bisher hochgeladene Dokumente', 'wpsg'); ?>:</label><br />
- <?php foreach ($_SESSION['wpsg']['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
deleted file mode 100644
index 759a153..0000000
--- a/views/mods/mod_orderupload/order_view_sidebar.phtml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?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
deleted file mode 100644
index 6750fba..0000000
--- a/views/mods/mod_orderupload/settings_edit.phtml
+++ /dev/null
@@ -1,11 +0,0 @@
-<?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
diff --git a/views/mods/mod_ordervars/settings_edit.phtml b/views/mods/mod_ordervars/settings_edit.phtml
index 6f6a82b..8889718 100644
--- a/views/mods/mod_ordervars/settings_edit.phtml
+++ b/views/mods/mod_ordervars/settings_edit.phtml
@@ -29,21 +29,9 @@
/* ]]> */
</script>
-<p><?php echo __('Wird eine Bestellvariable vom Type', 'wpsg') ?> <strong><?php echo __('"Auswahl"', 'wpsg') ?></strong> <?php echo __('angelegt, können die Optionen mit dem Pipe "|" Symbol getrennt angegeben werden.', 'wpsg') ?></p>
-<p><strong><?php echo __('Bsp.:', 'wpsg')?></strong> <?php echo __('Auswahl_1 | Auswahl_2 | Auswahl_3', 'wpsg') ?></p>
+
+<div class="content" id="wpsg_ov_list"><?php echo $this->mod->ov_list(); ?></div>
+
<br />
-<div class="wpsg_admin_box">
-
- <div class="head">
- <div class="title">
- <div class="fulltab">
- <?php echo __('Bestellvariablen', 'wpsg'); ?>
- <a title="<?php echo __('Neue Bestellvariable anlegen', 'wpsg'); ?>" href="" class="wpsg_icon wpsg_icon_right wpsg_icon_add" onclick="return wpsg_addOV();"></a>
- </div>
- </div>
- </div>
- <div class="content" id="wpsg_ov_list">
- <?php echo $this->mod->ov_list(); ?>
- </div>
-
-</div> \ No newline at end of file
+
+<a title="<?php echo __('Neue Bestellvariable anlegen', 'wpsg'); ?>" href="" class="" onclick="return wpsg_addOV();"><span class="glyphicon wpsg-glyphicon glyphicon-plus"></span><?php echo __('Neue Bestellvariable anlegen.', 'wpsg'); ?></a>