summaryrefslogtreecommitdiff
path: root/views/mods/mod_anschreiben/order_view.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'views/mods/mod_anschreiben/order_view.phtml')
-rw-r--r--views/mods/mod_anschreiben/order_view.phtml113
1 files changed, 0 insertions, 113 deletions
diff --git a/views/mods/mod_anschreiben/order_view.phtml b/views/mods/mod_anschreiben/order_view.phtml
deleted file mode 100644
index ddf4afc..0000000
--- a/views/mods/mod_anschreiben/order_view.phtml
+++ /dev/null
@@ -1,113 +0,0 @@
-<script type="text/javascript">
-
- /**
- *
- */
- function anschreiben_sendMail()
- {
-
- if (jQuery('#anschreiben_text').val() == '')
- {
-
- alert("<?php echo __('Bitte einen Text angeben!', 'wpsg'); ?>");
- return;
-
- }
-
- var text = "";
-
- text = tinyMCE.get('anschreiben_html').getContent();
-
- jQuery.ajax( {
- url: "<?php echo WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_anschreiben&edit_id='.$this->view['data']['id'].'&noheader=1&do=anschreiben_sendMail' ?>",
- method: 'post',
- success: function(data) {
-
- if (data != '1')
- {
-
- alert("<?php echo __("Anschreiben konnte nicht gespeichert/gedruckt werden es, weil ein Fehler aufgetreten ist!", "wpsg"); ?>");
-
- }
- else
- {
-
- tinyMCE.get('_html').setContent('');
- alert("<?php echo __('Mail wurde erfolgreich an den Kunden gesendet.', 'wpsg'); ?>");
-
- location.reload();
-
- }
-
- }
-
- } );
-
- }
-
-
-</script>
-<?php //wpsg_debug($this->view) ?>
-<?php echo wpsg_drawForm_AdminboxStart(__('Anschreiben', 'wpsg'));?>
-
- <?php if (sizeof($this->view['mod_anschreiben']['aranschreiben']) == 0 ) { ?>
-
- <p><?php echo __('Bisher kein Anschreiben geschrieben.', 'wpsg'); ?></p>
-
- <?php } else { ?>
- <table>
- <?php foreach ($this->view['mod_anschreiben']['aranschreiben_gesamt'] as $a) { ?>
- <tr>
- <td>#<?php echo ($a['anr'] != ''); ?>
-
- <?php if ($a['anr'] != "") { ?>
- <?php echo wpsg_translate(__('Anschreiben gespeichert am #1#', 'wpsg'), date("d.m.Y", $a['ts_datum'])); ?>
- <?php } ?>
-
- </td>
- <td style="text-align:right;">
-
- <?php if ($a['anr'] != "") {
-
- $rfile = $this->callMod('wpsg_mod_anschreiben', 'getFilePath', array($this->view['data']['id'], true)).'A'.$r['anr'].'.pdf';
-
- } ?>
-
- </td>
- </tr>
- <?php } ?>
- </table>
- <?php } ?>
-
- <br>
-
- <div class="wpsg_clear"></div>
-
- <hr>
-
- <div class="inside">
- <div style="padding:5px;">
-
- <form method="post" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_anschreiben&edit_id=<?php echo $this->view['data']['id']; ?>&noheader=1">
-
- <?php /* Auswahl Adresse (Zweitstelle/Hauptstelle */ ?>
-
- <?php /* Anredeauswahl */ ?>
-
- <?php echo __('Text für das Anschreiben', 'wpsg'); ?>:<br /><br />
- <?php wp_editor('', 'anschreiben_html'); ?>
-
- <div class="wpsg_clear"></div>
-
- <br />
-
- <input type="button" class="button" onclick="anschreiben_sendMail(); return false;" value="<?php echo __("Speichern & Drucken", "wpsg"); ?>" style="float:right;" />
-
- <div class="wpsg_clear"></div>
-
- </form>
-
- </div>
- </div>
-
-<?php echo wpsg_drawForm_AdminboxEnd(); ?> \ No newline at end of file