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; ?>
|
1469 |
daniel |
33 |
<?php if ($this->arAllModule[$_REQUEST['modul']]->hilfeURL != '') { ?>
|
|
|
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>
|
1068 |
daniel |
52 |
|
1469 |
daniel |
53 |
<?php if (isset($this->arAllModule[$_REQUEST['modul']]->version)) { ?>
|
|
|
54 |
<?php echo wpsg_drawForm_Input('', __('Version'), $this->arAllModule[$_REQUEST['modul']]->version, array('text' => true)); ?>
|
|
|
55 |
<div class="wpsg_form_field">
|
|
|
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 |
<?php } ?>
|
|
|
78 |
|
|
|
79 |
<?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)) { ?>
|
|
|
80 |
<?php if ($this->arModule[$_REQUEST['modul']]->inline === true) { ?>
|
|
|
81 |
<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit"></p>
|
|
|
82 |
<?php } ?>
|
|
|
83 |
|
|
|
84 |
<input type="hidden" name="subaction" value="module" />
|
|
|
85 |
|
|
|
86 |
<?php if ($this->arModule[$_REQUEST['modul']]->inline == true) { ?>
|
|
|
87 |
</form>
|
1465 |
daniel |
88 |
<?php } ?>
|
1469 |
daniel |
89 |
|
|
|
90 |
<?php if ($this->get_option($_REQUEST['modul']) > 0) { ?>
|
|
|
91 |
<?php echo $this->arModule[$_REQUEST['modul']]->settings_edit(); ?>
|
1468 |
daniel |
92 |
<?php } ?>
|
1465 |
daniel |
93 |
|
1469 |
daniel |
94 |
<?php if ($this->arModule[$_REQUEST['modul']]->inline !== true) { ?>
|
1068 |
daniel |
95 |
<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit"></p>
|
|
|
96 |
<?php } ?>
|
1197 |
daniel |
97 |
<?php } ?>
|
|
|
98 |
|
1401 |
daniel |
99 |
<?php if ($this->arModule[$_REQUEST['modul']]->inline !== true) { ?>
|
1067 |
daniel |
100 |
</form>
|
1197 |
daniel |
101 |
<?php } ?>
|
1067 |
daniel |
102 |
</div>
|
|
|
103 |
<?php } ?>
|