diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2016-01-14 14:55:36 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2016-01-14 14:55:36 +0000 |
| commit | ad405c7045c6e242080ec9d3ce4c9e586b517c4f (patch) | |
| tree | b41905f4d27f3eaaabd5bad3a39f8d3873540b46 /views/mods/mod_bankalignment | |
- Testweise 4
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5261 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_bankalignment')
4 files changed, 146 insertions, 0 deletions
diff --git a/views/mods/mod_bankalignment/order_ajax.phtml b/views/mods/mod_bankalignment/order_ajax.phtml new file mode 100644 index 0000000..bf8bc4b --- /dev/null +++ b/views/mods/mod_bankalignment/order_ajax.phtml @@ -0,0 +1,97 @@ +<?php
+
+ /**
+ * Template für die Zuweisung der Bestellungen zu Datensätzen aus der CSV Datei
+ */
+
+ //wpsg_debug($this->view);
+
+?>
+<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/produkt_index_aftersearch.phtml b/views/mods/mod_bankalignment/produkt_index_aftersearch.phtml new file mode 100644 index 0000000..8f0d09a --- /dev/null +++ b/views/mods/mod_bankalignment/produkt_index_aftersearch.phtml @@ -0,0 +1,29 @@ +<?php
+
+ /**
+ * Integriert das Uploadformular in die Bestellverwaltung
+ */
+
+?>
+<div class="wpsg_clear"></div>
+<div class="metabox-holder" id="wpsg_mod_bankalignment_layer" style="<?php echo (($_COOKIE['wpsg_mod_bankalignment_layer'] == '1')?'display:block;':'display:none;'); ?>">
+ <div id="mod_bankalignment" class="postbox">
+ <h3 class="wpsg_handlediv">
+ <span class="handlediv" title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>"><br></span>
+ <span><?php echo __('Bankabgleich', 'wpsg'); ?></span>
+ </h3>
+ <div class="inside">
+
+ <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 />
+
+ <input type="submit" value="<?php echo __('Abgleich starten', 'wpsg'); ?>" name="submit" class="button" />
+
+ </form>
+
+ </div>
+ </div>
+</div>
\ No newline at end of file diff --git a/views/mods/mod_bankalignment/produkt_index_head.phtml b/views/mods/mod_bankalignment/produkt_index_head.phtml new file mode 100644 index 0000000..92cbcf5 --- /dev/null +++ b/views/mods/mod_bankalignment/produkt_index_head.phtml @@ -0,0 +1,11 @@ +<?php
+
+ /**
+ * Template für die Integration in den Kopf der Bestellverwaltung
+ * Integriert lediglich den Link zum Upload der CSV Datei
+ */
+
+?>
+<label>
+ <input type="checkbox" <?php echo (($_COOKIE['wpsg_mod_bankalignment_layer'] == '1')?'checked="checked"':''); ?> onclick="if (jQuery(this).attr('checked') == 'checked') { jQuery('#wpsg_mod_bankalignment_layer').show(); jQuery.cookie('wpsg_mod_bankalignment_layer', '1'); } else { jQuery('#wpsg_mod_bankalignment_layer').hide(); jQuery.cookie('wpsg_mod_bankalignment_layer', null); }" /> <?php echo __('Bankabgleich', 'wpsg'); ?>
+</label>
\ No newline at end of file diff --git a/views/mods/mod_bankalignment/settings_edit.phtml b/views/mods/mod_bankalignment/settings_edit.phtml new file mode 100644 index 0000000..57b9e60 --- /dev/null +++ b/views/mods/mod_bankalignment/settings_edit.phtml @@ -0,0 +1,9 @@ +<?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 |
