<?php

	/**
	 * Template für den Menüpunkt "Backup/Restore"
	 */

?>
<div class="wpsg_admin_submenu">
	
	<div class="head">
		<div class="title"><?php echo __("Einstellungen", "wpsg"); ?></div>			
		<div style="clear:both;"></div>
	</div>

	<ul>		
		<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>		
		<li class="<?php echo (($k == $this->view['subAction'])?'current':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a></li>
		<?php } ?>
	</ul>
			
</div>
		
<div style="padding:0px; margin:0px; float:left;">
	<form name="form1" method="post" enctype="multipart/form-data" action="<?php echo wpsg_hspc(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=loadsavesettings&noheader=1'); ?>">
  		<div class="wpsg_form_field">
			<div class="wpsg_form_left">
				<label for="wpsg_debugModus"><?php echo __('Einstellungen speichern', 'wpsg'); ?>:</label>
			</div>
			<div class="wpsg_form_right">
				<a href="<?php echo WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=loadsavesettings&noheader=1&wpsg_do=downloadsettings&submit=1'; ?>" title="<?php echo __('Einstellungen als XML Datei downloaden', 'wpsg'); ?>"><?php echo __('Download', 'wpsg'); ?></a>
			</div>
			<div class="wpsg_clear"></div>
		</div>
		<div class="wpsg_form_field">
			<div class="wpsg_form_left">
				<label for="wpsg_debugModus"><?php echo __('Einstellungen laden', 'wpsg'); ?>:</label>
			</div>
			<div class="wpsg_form_right">
				<input type="file" name="wpsg_settings" />				
			</div>
			<div class="wpsg_clear"></div>
		</div>
		<p class="submit"><input type="submit" value="<?php echo __('Einstellungen übernehmen', 'wpsg'); ?>" class="button-primary" id="submit" name="submit" /></p> 
		<p class="wpsg_hinweis">
			<?php echo __('Derzeit werden nur die Einstellungen gespeichert. Produkte/Kunden/Bestellungen etc. sind nicht enthalten!', 'wpsg'); ?>
		</p>
	</form>
</div>