Subversion Repositories wpShopGermany4

Rev

Rev 6476 | Rev 6488 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6476 Rev 6484
Line 3... Line 3...
3
	/**
3
	/**
4
	 * Templatedatei für die Modulseite des Backend
4
	 * Templatedatei für die Modulseite des Backend
5
	 * Sollte nicht angepasst werden
5
	 * Sollte nicht angepasst werden
6
	 */
6
	 */
7
 
7
 
-
 
8
	$wpsg_update_data = wpsg_get_update_data();
-
 
9
	if (wpsg_isSizedArray($wpsg_update_data['modulinfo'])) $modul_info = $wpsg_update_data['modulinfo'];
-
 
10
	else $modul_info = array();
-
 
11
 
-
 
12
	//wpsg_debug($modul_info);
-
 
13
 
8
?>
14
?>
9
<div class="wpsg_admin_submenu">
15
<div class="wpsg_admin_submenu">
10
	
16
	
11
	<div class="wpsg_modul_search_wrap">
17
	<div class="wpsg_modul_search_wrap">
12
		<input id="wpsg_modul_search" type="text" class="wpsg_modul_search" value="<?php echo wpsg_getStr($_COOKIE['wpsg-modulfilter-search']); ?>" />	
18
		<input id="wpsg_modul_search" type="text" class="wpsg_modul_search" value="<?php echo wpsg_getStr($_COOKIE['wpsg-modulfilter-search']); ?>" />	
Line 48... Line 54...
48
		
54
		
49
		<?php $modul_install = $this->get_option($_REQUEST['modul'], $this->view['global']); ?>
55
		<?php $modul_install = $this->get_option($_REQUEST['modul'], $this->view['global']); ?>
50
		<?php echo wpsg_drawForm_Select('aktiv', __('Modul aktiviert', 'wpsg'), array('0' => __('Nein', 'wpsg'), '1' => __('Ja', 'wpsg')), ((wpsg_isSizedInt($modul_install))?'1':'0')); ?>
56
		<?php echo wpsg_drawForm_Select('aktiv', __('Modul aktiviert', 'wpsg'), array('0' => __('Nein', 'wpsg'), '1' => __('Ja', 'wpsg')), ((wpsg_isSizedInt($modul_install))?'1':'0')); ?>
51
		 		 
57
		 		 
52
		<?php if (isset($this->arAllModule[$_REQUEST['modul']]->version)) { ?>
58
		<?php if (isset($this->arAllModule[$_REQUEST['modul']]->version)) { ?>
-
 
59
			
53
		<?php echo wpsg_drawForm_Input('', __('Version', 'wpsg'), $this->arAllModule[$_REQUEST['modul']]->version, array('text' => true)); ?>		
60
		<?php echo wpsg_drawForm_TextStart(); ?>
54
		
61
		
-
 
62
			<?php 
-
 
63
			
-
 
64
				echo $this->arAllModule[$_REQUEST['modul']]->version;
-
 
65
			
-
 
66
				if (wpsg_isSizedArray($modul_info[$_REQUEST['modul']]))
-
 
67
				{
-
 
68
			
-
 
69
					$modul_info_modul = $modul_info[$_REQUEST['modul']];
-
 
70
				
-
 
71
					if ($modul_info_modul['version'] === $this->shop->arAllModule[$_REQUEST['modul']]->version)
-
 
72
					{
-
 
73
						
-
 
74
						echo ' - <strong class="wpsg_message_ok">'.__('aktuell', 'wpsg').'</strong>';
-
 
75
						
-
 
76
					}
-
 
77
					else if (version_compare($modul_info_modul['version'], WPSG_VERSION) > 0) 
-
 
78
					{
-
 
79
						
-
 
80
						echo ' - <strong class="wpsg_error">'.__('neue Version verfügbar', 'wpsg').'</strong><br />'.wpsg_translate(__('<a href="#1#">wpShopGermany Update</a> notwendig', 'wpsg'), WPSG_URL_WP.'wp-admin/plugins.php');
-
 
81
						
-
 
82
					}
55
		<?php if (isset($this->arAllModule[$_REQUEST['modul']]->free) && $this->arAllModule[$_REQUEST['modul']]->free === true) { ?>
83
					else if (version_compare($modul_info_modul['version'], $this->shop->arAllModule[$_REQUEST['modul']]->versio) > 0) 
-
 
84
					{
-
 
85
						
-
 
86
						echo ' - <strong class="wpsg_error">'.__('neue Version verfügbar', 'wpsg').'</strong>';
-
 
87
						
-
 
88
						if ($modul_info_modul['active'] === true) 
-
 
89
						{
-
 
90
						
-
 
91
							echo '<br />';
-
 
92
							echo wpsg_translate(__('<a href="#1#">Version installieren</a>.', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=registrierung&noheader=1&do=installModul&modul='.$_REQUEST['modul']);
-
 
93
							
-
 
94
						}
-
 
95
						
-
 
96
					}
-
 
97
					
-
 
98
				}
-
 
99
			
-
 
100
			?>
-
 
101
			
56
		<?php $strLizenz = __('Kostenfrei', 'wpsg'); ?>
102
		<?php echo wpsg_drawForm_TextEnd(__('Version', 'wpsg')); ?>
-
 
103
		
57
		<?php } else { ?>
104
		<?php echo wpsg_drawForm_TextStart(); ?>
-
 
105
			
58
		<?php if (is_array($this->arLizenz) && in_array($_REQUEST['modul'], (array)$this->arLizenz['mods'])) { ?>
106
			<?php if (array_key_exists($_REQUEST['modul'], $modul_info)) { ?>
-
 
107
				
-
 
108
				<?php if (wpsg_isTrue($modul_info[$_REQUEST['modul']]['free'])) { ?>
-
 
109
					<span class="wpsg_message_ok"><?php echo __('Kostenfrei', 'wpsg'); ?></span>
-
 
110
				<?php } else if (wpsg_isTrue($modul_info[$_REQUEST['modul']]['active'])) { ?>
59
		<?php $strLizenz = __('Aktiviert', 'wpsg'); ?>
111
					<span class="wpsg_message_ok"><?php echo __('Aktiv', 'wpsg'); ?></span>
60
		<?php } else { ?>
112
				<?php } else { ?>
-
 
113
					<span class="wpsg_error"><?php echo __('Nicht aktiv', 'wpsg'); ?></span>
-
 
114
					
61
		<?php if ($this->arAllModule[$_REQUEST['modul']]->getDemoDays() > 0) { ?>
115
					<?php if (wpsg_isSizedString($modul_info[$_REQUEST['modul']]['shop_url'])) {  ?>
62
		<?php $strLizenz = wpsg_translate(__('Demo Modus noch #1# Tage verbleibend.', 'wpsg'), $this->arAllModule[$_REQUEST['modul']]->getDemoDays()); ?>
116
					[ <a href="<?php echo $modul_info[$_REQUEST['modul']]['shop_url']; ?>"><?php echo __('Modulcode erwerben', 'wpsg'); ?></a> ]					
63
		<?php } else { ?>
117
					<?php } else { ?>
64
		<?php $strLizenz = __('Demo Modus abgelaufen.', 'wpsg'); ?>
118
					[ <a href="https://shop.maennchen1.de/"><?php echo __('Modulcode erwerben', 'wpsg'); ?></a> ]
65
		<?php } ?>
119
					<?php } ?>
-
 
120
					[ <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=registrierung&subaction=modulactivation"><?php echo __('Modulcode eingeben', 'wpsg'); ?></a> ]
-
 
121
					
66
		<?php } ?>
122
				<?php } ?>
-
 
123
					
-
 
124
			<?php } else { ?>
-
 
125
				<span class="wpsg_error"><?php echo __('Unbekannt', 'wpsg'); ?></span>	
67
		<?php } ?>
126
			<?php } ?>
-
 
127
						
68
		<?php echo wpsg_drawForm_Text(__('Lizenz'), $strLizenz); ?>
128
		<?php echo wpsg_drawForm_TextEnd(__('Lizenz')); ?>
69
		 	
129
		 	
-
 
130
		<hr />
-
 
131
			
70
		<?php } ?>
132
		<?php } ?>
71
		
133
		
72
		<?php if (!isset($this->arAllModule[$_REQUEST['modul']]->version) || ((wpsg_isTrue($this->arAllModule[$_REQUEST['modul']]->free) || (is_array($this->arLizenz) && in_array($_REQUEST['modul'], (array)$this->arLizenz['mods'])) || $this->arAllModule[$_REQUEST['modul']]->getDemoDays() > 0))) { ?>
134
		<?php if (!isset($this->arAllModule[$_REQUEST['modul']]->version) || ((wpsg_isTrue($this->arAllModule[$_REQUEST['modul']]->free) || (is_array($this->arLizenz) && in_array($_REQUEST['modul'], (array)$this->arLizenz['mods'])) || $this->arAllModule[$_REQUEST['modul']]->getDemoDays() > 0))) { ?>
73
			<?php if ($this->arAllModule[$_REQUEST['modul']]->inline === true) { ?>
135
			<?php if ($this->arAllModule[$_REQUEST['modul']]->inline === true) { ?>
74
			<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit"></p>
136
			<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit"></p>
Line 138... Line 200...
138
				
200
				
139
					<table class="table modultable">
201
					<table class="table modultable">
140
  						<thead>
202
  						<thead>
141
							<tr>
203
							<tr>
142
								<th><?php echo __('Modulname', 'wpsg'); ?></th>
204
								<th><?php echo __('Modulname', 'wpsg'); ?></th>
143
								<th><?php echo __('installierte Version', 'wpsg'); ?></th>
205
								<th><?php echo __('Version', 'wpsg'); ?></th>
144
								<th><?php echo __('Lizenz', 'wpsg');  ?></th>
206
								<th><?php echo __('Lizenz', 'wpsg');  ?></th>
145
								<th><?php echo __('verfügbare Version', 'wpsg'); ?></th>
207
								<th><?php echo __('verfügbare Version', 'wpsg'); ?></th>
146
							</tr>
208
							</tr>
147
						</thead>
209
						</thead>
148
						<tbody>
210
						<tbody>
Line 173... Line 235...
173
									<?php } else if ($modul_info['active'] === true) { ?>
235
									<?php } else if ($modul_info['active'] === true) { ?>
174
										<?php echo __('enthalten', 'wpsg'); ?>
236
										<?php echo __('enthalten', 'wpsg'); ?>
175
									<?php } else { ?>
237
									<?php } else { ?>
176
										
238
										
177
										<?php if (wpsg_isSizedString($modul_info['url_shop'])) { ?>
239
										<?php if (wpsg_isSizedString($modul_info['url_shop'])) { ?>
178
										<a href="<?php echo $modul_info['url_shop']; ?>" target="_blank"><?php echo __('Modulcode hier erwerben', 'wpsg'); ?></a>
240
										<a href="<?php echo $modul_info['url_shop']; ?>" target="_blank"><?php echo __('Modulcode erwerben', 'wpsg'); ?></a>
179
										<?php } else { ?>
241
										<?php } else { ?>
180
										<a href="https://shop.maennchen1.de" target="_blank"><?php echo __('Modulcode hier erwerben', 'wpsg'); ?></a>
242
										<a href="https://shop.maennchen1.de" target="_blank"><?php echo __('Modulcode erwerben', 'wpsg'); ?></a>
181
										<?php } ?>
243
										<?php } ?>
182
										
244
										
183
									<?php } ?>
245
									<?php } ?>
184
									
246
									
185
								</td>
247
								</td>
Line 200... Line 262...
200
										
262
										
201
									}
263
									}
202
									else if (version_compare($modul_info['version'], $this->arAllModule[$modul_key]->versio) > 0) 
264
									else if (version_compare($modul_info['version'], $this->arAllModule[$modul_key]->versio) > 0) 
203
									{
265
									{
204
										
266
										
205
										echo ' - <strong class="wpsg_error">'.__('neue Version verfügbar', 'wpsg').'</strong><br />';
267
										echo ' - <strong class="wpsg_error">'.__('neue Version verfügbar', 'wpsg').'</strong>';
-
 
268
										
-
 
269
										if ($modul_info['active'] === true) 
-
 
270
										{
-
 
271
										
-
 
272
											echo '<br />';
206
										echo wpsg_translate(__('Version <a href="#1#">installieren</a>.', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=registrierung&noheader=1&do=installModul&modul='.$modul_key); 
273
											echo wpsg_translate(__('<a href="#1#">Version installieren</a>.', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=registrierung&noheader=1&do=installModul&modul='.$modul_key);
-
 
274
											
-
 
275
										}
207
									
276
									
208
									}
277
									}
209
									
278
									
210
								?></td>
279
								?></td>
211
							</tr>
280
							</tr>