summaryrefslogtreecommitdiff
path: root/views/mods/mod_test
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_test
- Testweise 4
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5261 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_test')
-rw-r--r--views/mods/mod_test/settings_edit.phtml77
-rw-r--r--views/mods/mod_test/showConfiguration.phtml11
2 files changed, 88 insertions, 0 deletions
diff --git a/views/mods/mod_test/settings_edit.phtml b/views/mods/mod_test/settings_edit.phtml
new file mode 100644
index 0000000..ae0e8b1
--- /dev/null
+++ b/views/mods/mod_test/settings_edit.phtml
@@ -0,0 +1,77 @@
+<?php
+
+ /**
+ * Template für die Modulkonfiguration des Testmoduls
+ */
+
+?>
+
+<br />
+
+<?php foreach ((array)$this->view['test'] as $test_index => $test) { ?>
+<div class="wpsg_admin_box" id="wpsg_mod_test_<?php echo $test_index; ?>" style="width:1000px;">
+ <div id="test_1" class="head" style="border-bottom: 0px none;">
+ <div class="title">
+ <div class="fulltab">
+ <?php echo ($test_index + 1); ?>. Test - <?php echo $test['label']; ?>
+ <?php if ($this->callMod('wpsg_mod_test', 'checkTest', array($test)) === true) { ?>
+ <img src="<?php echo WPSG_URL_CONTENT; ?>plugins/wpshopgermany/views/css/../gfx/tick.png" alt="" style="float:right;" />
+ <?php } ?>
+ </div>
+ </div>
+ <div class="content wpsg_mod_test_table wpsg_admin_box_content" style="display: block;">
+
+ <?php echo $test['config']; ?>
+
+ <table>
+ <thead>
+ <tr>
+ <th>Name</th>
+ <th>Erwarteter Wert</th>
+ <th>Getesteter Wert</th>
+ <th></th>
+ </tr>
+ </thead>
+ <tbody>
+ <?php foreach ($test['tests'] as $key => $t) { ?>
+ <tr>
+ <td>
+ <?php if ($t[0] === false) { ?>
+ <?php echo $this->view['arKeyLabel'][$key]; ?>
+ <?php } else { ?>
+ <?php echo $t[0]; ?>
+ <?php } ?>
+ </td>
+ <td><?php echo $t[1]; ?></td>
+ <td><?php echo $this->callMod('wpsg_mod_test', 'getValue', array($key, $test['array'])); ?></td>
+ <td>
+ <?php if ($this->callMod('wpsg_mod_test', 'checkValue', array($key, $t[1], $test['array'])) === true) { ?>
+ <img src="<?php echo WPSG_URL_CONTENT; ?>plugins/wpshopgermany/views/css/../gfx/tick.png" alt="" />
+ <?php } ?>
+ </td>
+ </tr>
+ <?php } ?>
+ </tbody>
+ </table>
+
+ <?php if (wpsg_isSizedArray($test['array'])) { ?>
+ <br /><a href="" onclick="jQuery(this).next().toggle(); return false;">Array anzeigen/verbergen</a>
+ <div style="display:none; border:1px solid #CCCCCC; background-color:#FFFFFF; margin-top:15px;">
+ <pre><?php print_r($test['array']); ?></pre>
+ </div>
+ <?php } ?>
+
+ </div>
+ </div>
+</div><br />
+<?php } ?>
+
+<script type="text/javascript">/* <![CDATA[ */
+
+ jQuery(document).ready(function() {
+
+ jQuery('.wpsg_admin_box').wpsg_adminbox();
+
+ } );
+
+/* ]]> */</script> \ No newline at end of file
diff --git a/views/mods/mod_test/showConfiguration.phtml b/views/mods/mod_test/showConfiguration.phtml
new file mode 100644
index 0000000..1d86bea
--- /dev/null
+++ b/views/mods/mod_test/showConfiguration.phtml
@@ -0,0 +1,11 @@
+<?php
+
+ /**
+ * Zeigt wichtige Einstellungen an, die für den Test wichtig sind
+ */
+
+?>
+<?php echo wpsg_drawForm_Input('', 'Preise im Backend', (($this->get_option('wpsg_preisangaben') == WPSG_NETTO)?'Netto':'Brutto'), array('text' => true)); ?>
+<?php echo wpsg_drawForm_Input('', 'Preise im Frontend', (($this->getFrontendTaxview() == WPSG_NETTO)?'Netto':'Brutto'), array('text' => true)); ?>
+<?php echo wpsg_drawForm_Input('', 'Kleinunternehmerregelung', (($this->get_option('wpsg_kleinunternehmer') == '1')?'An':'Aus'), array('text' => true)); ?>
+<br /> \ No newline at end of file