summaryrefslogtreecommitdiff
path: root/views/admin/form
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2016-06-04 20:02:45 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2016-06-04 20:02:45 +0000
commitd489ba719dca6e7869d62d46e63b5c8e841fdaaa (patch)
tree074e7eb6537c38c3a3a60101b873f8464e23973f /views/admin/form
parent89125adae223f7eb5b81c778f7ad82ab72d66b60 (diff)
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5532 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/admin/form')
-rw-r--r--views/admin/form/emailconf.phtml52
-rw-r--r--views/admin/form/text.phtml2
-rw-r--r--views/admin/form/upload.phtml33
3 files changed, 86 insertions, 1 deletions
diff --git a/views/admin/form/emailconf.phtml b/views/admin/form/emailconf.phtml
new file mode 100644
index 0000000..9ec6b63
--- /dev/null
+++ b/views/admin/form/emailconf.phtml
@@ -0,0 +1,52 @@
+
+<?php echo wpsg_drawForm_AdminboxStart($this->view['field_title'], 'wpsg_email_box'); ?>
+
+ <?php echo wpsg_drawForm_Input('wpsg_'.$this->view['field_key'].'_betreff', __('Betreff', 'wpsg'), $this->get_option('wpsg_'.$this->view['field_key'].'_betreff')); ?>
+ <?php echo wpsg_drawForm_Input('wpsg_'.$this->view['field_key'].'_absender', __('Absender', 'wpsg'), $this->get_option('wpsg_'.$this->view['field_key'].'_absender')); ?>
+
+ <?php if ($this->view['field_to'] === true) { ?>
+ <?php echo wpsg_drawForm_Input('wpsg_'.$this->view['field_key'].'_empfaenger', __('Empfänger', 'wpsg'), $GLOBALS['wpsg_sc']->get_option('wpsg_'.$key.'_empfaenger')); ?>
+ <?php } ?>
+
+ <?php echo wpsg_drawForm_Input('wpsg_'.$this->view['field_key'].'_cc', __('CC', 'wpsg'), $this->get_option('wpsg_'.$this->view['field_key'].'_cc')); ?>
+ <?php echo wpsg_drawForm_Input('wpsg_'.$this->view['field_key'].'_bcc', __('BCC', 'wpsg'), $this->get_option('wpsg_'.$this->view['field_key'].'_bcc')); ?>
+
+ <?php if ($this->view['field_attachment'] === true) { ?>
+
+ <?php echo wpsg_drawForm_Upload('wpsg_'.$this->view['field_key'].'_attachfile', __('Mailanhang', 'wpsg'), '', '43', '100000', ''); ?>
+ <br />
+ <div class="wpsg_hinweis">
+ <strong><?php echo __('Aktueller Anhang', 'wpsg') ?>: </strong><?php echo ((wpsg_isSizedString($this->get_option('wpsg_'.$this->view['field_key'].'_attachfile')))?$this->get_option('wpsg_'.$this->view['field_key'].'_attachfile'):__('keiner', 'wpsg')); ?>
+ <?php echo ((wpsg_isSizedString($this->get_option('wpsg_kundenmail_attachfile')))?'<a class="wpsg_icon wpsg_icon_right wpsg_icon_remove" titel="'.__('Datei entfernen', 'wpsg').'" href="'.WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&amp;subaction='.$_REQUEST['subaction'].'&amp;cmd=del_attach_file"></a>':''); ?>
+ </div>
+ <br />
+
+ <?php } ?>
+
+ <?php
+
+ // RTE
+ ob_start();
+ wp_editor($this->get_option('wpsg_'.$this->view['field_key'].'_text'), 'wpsg_'.$this->view['field_key'].'_text');
+ $rte_content = ob_get_contents();
+ ob_end_clean();
+
+ ?>
+
+ <div class="wpsg_form_field">
+ <div class="wpsg_form_left"><label><?php echo __('Text unter der E-Mail', 'wpsg'); ?></label></div>
+ <div class="wpsg_form_right"></div><div class="wpsg_clear"></div>
+ </div>
+
+ <?php echo $rte_content; ?>
+
+ <?php if (wpsg_isSizedString($notice)) { ?>
+
+ <br />
+ <div class="wpsg_hinweis"><?php echo $notice; ?></div>
+
+ <?php } ?>
+
+ <br />
+
+<?php echo wpsg_drawForm_AdminboxEnd(); ?> \ No newline at end of file
diff --git a/views/admin/form/text.phtml b/views/admin/form/text.phtml
index 4cedc72..cde674a 100644
--- a/views/admin/form/text.phtml
+++ b/views/admin/form/text.phtml
@@ -4,7 +4,7 @@
<div class="col-sm-6 <?php echo wpsg_getStr($this->view['field_config']['class_content_wrap']); ?>">
<div class="wpsg_field_wrap">
- <p class="form-control-static"><?php echo $this->view['field_value']; ?></p>
+ <p class="form-control-static" style="padding-left:0px;"><?php echo $this->view['field_value']; ?></p>
<?php if (wpsg_isSizedString($this->view['field_config']['help'])) { ?>
<a href="#" data-wpsg-tip="<?php echo $this->view['field_config']['help']; ?>" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=<?php echo $this->view['field_config']['help']; ?>" class="glyphicon glyphicon glyphicon-info-sign form-control-feedback" aria-hidden="true"></a>
diff --git a/views/admin/form/upload.phtml b/views/admin/form/upload.phtml
new file mode 100644
index 0000000..dd0591b
--- /dev/null
+++ b/views/admin/form/upload.phtml
@@ -0,0 +1,33 @@
+<div class="form-group form-group-sm <?php echo ((wpsg_isSizedString($this->view['field_config']['help']))?'has-feedback':''); ?>">
+
+ <label class="col-sm-6 control-label" for="<?php echo $this->view['field_id']; ?>"><?php echo $this->view['field_label']; ?></label>
+
+ <div class="col-sm-6">
+
+ <div class="wpsg_field_wrap">
+ <input
+ type="file"
+ size="<?php echo $this->view['field_size']; ?>"
+ maxLength="<?php echo $this->view['field_maxLength']; ?>"
+ <?php if (wpsg_isSizedString($this->view['field_config']['accept'])) { ?>
+ accept="<?php echo $this->view['field_config']['accept']; ?>"
+ <?php } ?>
+ class="form-control input-sm"
+ name="<?php echo $this->view['field_name']; ?>"
+ value="<?php echo wpsg_hspc($this->view['field_value']); ?>"
+ id="<?php echo $this->view['field_id']; ?>"
+ placeholder="<?php echo wpsg_getStr($this->view['field_config']['placeholder']); ?>"
+ <?php if (wpsg_isTrue($this->view['field_config']['readonly'])) { ?>
+ readonly="readonly"
+ <?php } ?>
+ />
+ <?php if (wpsg_isSizedString($this->view['field_config']['help'])) { ?>
+ <a href="#" data-wpsg-tip="<?php echo $this->view['field_config']['help']; ?>" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=<?php echo $this->view['field_config']['help']; ?>" class="glyphicon glyphicon glyphicon-info-sign form-control-feedback" aria-hidden="true"></a>
+ <?php } ?>
+ </div>
+
+ </div>
+
+ <div class="clearfix wpsg_clear"></div>
+
+</div>