1067 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Templatedatei für die Modulseite des Backend
|
|
|
5 |
* Sollte nicht angepasst werden
|
|
|
6 |
*/
|
|
|
7 |
|
|
|
8 |
?>
|
|
|
9 |
<div class="wpsg_admin_submenu">
|
|
|
10 |
|
|
|
11 |
<?php foreach ($this->view['groups'] as $group_name => $g) { ?>
|
|
|
12 |
<div class="head">
|
|
|
13 |
<div class="title"><?php echo $group_name; ?></div>
|
|
|
14 |
<div style="clear:both;"></div>
|
|
|
15 |
</div>
|
|
|
16 |
|
|
|
17 |
<ul>
|
|
|
18 |
<?php foreach ($g as $mod_key => $m) { ?>
|
|
|
19 |
<li class="<?php echo (($this->get_option($mod_key) > 0)?'modul_akt':''); ?> <?php echo (($mod_key == $_REQUEST['modul'])?'current':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=<?php echo $mod_key; ?>"><?php echo $m->name; ?></a></li>
|
|
|
20 |
<?php } ?>
|
|
|
21 |
</ul>
|
|
|
22 |
<div style="clear:both; margin-bottom:10px; margin-left:0px; margin-right:8px;"></div>
|
|
|
23 |
<?php } ?>
|
|
|
24 |
|
|
|
25 |
</div>
|
|
|
26 |
|
|
|
27 |
<?php if (isset($_REQUEST['modul'])) { ?>
|
|
|
28 |
<div class="wpsg_admin_content">
|
|
|
29 |
<form name="form1" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=<?php echo $_REQUEST['modul']; ?>&noheader=1" method="post" enctype="multipart/form-data">
|
|
|
30 |
|
|
|
31 |
<h3>
|
1401 |
daniel |
32 |
<?php echo $this->arAllModule[$_REQUEST['modul']]->name; ?>
|
1559 |
daniel |
33 |
<?php if (isset($this->arAllModule[$_REQUEST['modul']]->hilfeURL) && $this->arAllModule[$_REQUEST['modul']]->hilfeURL != '') { ?>
|
1469 |
daniel |
34 |
<a href="<?php echo $this->arAllModule[$_REQUEST['modul']]->hilfeURL; ?>" class="wpsg_form_help"></a>
|
1067 |
daniel |
35 |
<?php } ?>
|
|
|
36 |
</h3>
|
|
|
37 |
|
1401 |
daniel |
38 |
<p><?php echo $this->arAllModule[$_REQUEST['modul']]->desc; ?></p>
|
1067 |
daniel |
39 |
|
|
|
40 |
<div class="wpsg_form_field">
|
|
|
41 |
<div class="wpsg_form_left">
|
|
|
42 |
<?php echo __("Modul aktiviert", "wpsg"); ?>:
|
|
|
43 |
</div>
|
|
|
44 |
<div class="wpsg_form_right">
|
|
|
45 |
<select name="aktiv">
|
|
|
46 |
<option value="0"><?php echo __('Nein', 'wpsg'); ?></option>
|
|
|
47 |
<option value="1" <?php echo (($this->get_option($_REQUEST['modul']) > 0)?'selected="selected"':''); ?>><?php echo __('Ja', 'wpsg'); ?></option>
|
|
|
48 |
</select>
|
|
|
49 |
</div>
|
|
|
50 |
<div class="wpsg_clear"></div>
|
1469 |
daniel |
51 |
</div>
|
1477 |
david |
52 |
|
1469 |
daniel |
53 |
<?php if (isset($this->arAllModule[$_REQUEST['modul']]->version)) { ?>
|
1598 |
daniel |
54 |
<?php echo wpsg_drawForm_Input('', __('Version', 'wpsg'), $this->arAllModule[$_REQUEST['modul']]->version, array('text' => true)); ?>
|
1469 |
daniel |
55 |
<div class="wpsg_form_field">
|
1470 |
daniel |
56 |
<div class="wpsg_form_left">
|
|
|
57 |
<?php echo __("Lizenz", "wpsg"); ?>:
|
|
|
58 |
</div>
|
|
|
59 |
<div class="wpsg_form_right">
|
|
|
60 |
<p>
|
|
|
61 |
<?php if (isset($this->arAllModule[$_REQUEST['modul']]->free) && $this->arAllModule[$_REQUEST['modul']]->free === true) { ?>
|
|
|
62 |
<?php echo __('Kostenfrei', 'wpsg'); ?>
|
|
|
63 |
<?php } else { ?>
|
|
|
64 |
<?php if (is_array($this->arLizenz) && in_array($_REQUEST['modul'], $this->arLizenz['mods'])) { ?>
|
|
|
65 |
<?php echo __('Aktiviert', 'wpsg'); ?>
|
|
|
66 |
<?php } else { ?>
|
|
|
67 |
<?php if ($this->arAllModule[$_REQUEST['modul']]->getDemoDays() > 0) { ?>
|
|
|
68 |
<?php echo wpsg_translate(__('Demo Modus noch #1# Tage verbleibend.', 'wpsg'), $this->arAllModule[$_REQUEST['modul']]->getDemoDays()); ?>
|
|
|
69 |
<?php } else { ?>
|
|
|
70 |
<?php echo __('Demo Modus abgelaufen.', 'wpsg'); ?>
|
|
|
71 |
<?php } ?>
|
|
|
72 |
<?php } ?>
|
|
|
73 |
<?php } ?>
|
|
|
74 |
</p>
|
|
|
75 |
</div>
|
|
|
76 |
<div class="wpsg_clear"></div>
|
|
|
77 |
</div>
|
1469 |
daniel |
78 |
<?php } ?>
|
|
|
79 |
|
1472 |
daniel |
80 |
<?php if (!isset($this->arAllModule[$_REQUEST['modul']]->version) || (($this->arAllModule[$_REQUEST['modul']]->free === true || (is_array($this->arLizenz) && in_array($_REQUEST['modul'], $this->arLizenz['mods'])) || $this->arAllModule[$_REQUEST['modul']]->getDemoDays() > 0))) { ?>
|
1559 |
daniel |
81 |
<?php if ($this->arAllModule[$_REQUEST['modul']]->inline === true) { ?>
|
1469 |
daniel |
82 |
<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit"></p>
|
|
|
83 |
<?php } ?>
|
|
|
84 |
|
|
|
85 |
<input type="hidden" name="subaction" value="module" />
|
|
|
86 |
|
1559 |
daniel |
87 |
<?php if ($this->arAllModule[$_REQUEST['modul']]->inline == true) { ?>
|
1469 |
daniel |
88 |
</form>
|
1465 |
daniel |
89 |
<?php } ?>
|
1469 |
daniel |
90 |
|
|
|
91 |
<?php if ($this->get_option($_REQUEST['modul']) > 0) { ?>
|
|
|
92 |
<?php echo $this->arModule[$_REQUEST['modul']]->settings_edit(); ?>
|
1468 |
daniel |
93 |
<?php } ?>
|
1465 |
daniel |
94 |
|
1559 |
daniel |
95 |
<?php if ($this->arAllModule[$_REQUEST['modul']]->inline !== true) { ?>
|
1068 |
daniel |
96 |
<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit"></p>
|
|
|
97 |
<?php } ?>
|
1197 |
daniel |
98 |
<?php } ?>
|
|
|
99 |
|
1559 |
daniel |
100 |
<?php if ($this->arAllModule[$_REQUEST['modul']]->inline !== true) { ?>
|
1067 |
daniel |
101 |
</form>
|
1197 |
daniel |
102 |
<?php } ?>
|
1067 |
daniel |
103 |
</div>
|
1700 |
daniel |
104 |
<?php } ?>
|
|
|
105 |
|
|
|
106 |
<script type="text/javascript">
|
|
|
107 |
|
|
|
108 |
jQuery(document).ready(function() {
|
|
|
109 |
|
|
|
110 |
jQuery('.wpsg_form_help').tipTip();
|
|
|
111 |
|
|
|
112 |
} );
|
|
|
113 |
|
|
|
114 |
</script>
|