<!-- MODULE: tag-cloud -->

<?php if(!defined('master_script')) die();

/**
 * Backend template
 *
 * @category   Module (tag-cloud)
 * @author     Nico Wenig <nico.wenig@yellowgreen.de>
 * @version	   2010-07-26
 */

	if(!isset($module_settings["tag-cloud"]["target page"])) $module_settings["tag-cloud"]["target page"] = '';
	if(!isset($module_settings["tag-cloud"]["hide tags"])) $module_settings["tag-cloud"]["hide tags"] = 0;
	if(!isset($module_settings["tag-cloud"]["sort method"])) $module_settings["tag-cloud"]["sort method"] = 'alphabetical';
	if(!isset($module_settings["tag-cloud"]["sort ascending"])) $module_settings["tag-cloud"]["sort ascending"] = 1;
	if(!isset($module_settings["tag-cloud"]["number of tags"])) $module_settings["tag-cloud"]["number of tags"] = 0;
	
?>

<form accept-charset="utf-8" method="post" action="index.php?backend=edit-content&amp;page=<?php echo $_GET['page']; ?>&amp;module-to-edit=<?php echo $_GET['module-to-edit']; ?>&amp;module-position=<?php echo $_GET['module-position']; ?>" onsubmit="return this.confirm">
	<?php include($system_data['folder']['modules'] . 'module-properties/backend-template.tpl'); ?>
	
	<p><br></p>
	
	<!-- Settings -->
	<div class="column">
		<h4><?php echo txt('tag-cloud', 'Schlüsselwörter'); ?></h4>
		
	    <p>
	    	<input type="checkbox" id="hide_tags" name="hide_tags" <?php echo ($module_settings["tag-cloud"]["hide tags"] == 1 ? 'checked="checked"' : ''); ?>>
			<label class="checkbox" for="hide_tags"><?php echo txt('tag-cloud', 'Schlüsselwörter verbergen'); ?></label>
		</p>
		
		<hr>
		
	    <p>
	    	<input type="text" id="number_of_tags" name="number_of_tags" class="number" value="<?php echo clean_output($module_settings["tag-cloud"]["number of tags"]); ?>">
			<label class="checkbox" for="number_of_tags"><?php echo txt('tag-cloud', 'Anzahl der Schlüsselwörter'); ?></label>
		</p>
		
		<?php connector('tag-cloud left'); ?>
	</div>
	
	<div class="column last-column">
		<h4><?php echo txt('tag-cloud', 'Seitenliste'); ?></h4>
		
		<p>
			<label for="target_page"><?php echo txt('tag-cloud', 'Zielseite für Seitenübersicht'); ?>:</label>
	    	<input type="text" id="target_page" name="target_page" value="<?php echo clean_output($module_settings["tag-cloud"]["target page"]); ?>">
		</p>
		
		<p>
			<label><?php echo txt('tag-cloud', 'Sortierung'); ?>:</label>
			<select name="sort_method" size="1">
		    	<option value="alphabetical" <?php if($module_settings["tag-cloud"]["sort method"] == 'alphabetical') { ?>selected="selected"<?php } ?>><?php echo txt('tag-cloud', 'Alphabetisch'); ?></option>
		    	<option value="emphasis" <?php if($module_settings["tag-cloud"]["sort method"] == 'emphasis') { ?>selected="selected"<?php } ?>><?php echo txt('tag-cloud', 'Gewichtung'); ?></option>
			</select>
		</p>
		
	    <p>
	    	<input type="checkbox" id="sort_ascending" name="sort_ascending" <?php echo ($module_settings["tag-cloud"]["sort ascending"] == 1 ? 'checked="checked"' : ''); ?>>
			<label class="checkbox" for="sort_ascending"><?php echo txt('tag-cloud', 'Aufsteigend sortieren'); ?></label>
		</p>
		
		<?php connector('tag-cloud right'); ?>
	</div>
	
	<!-- Save -->
	<input name="save_tag_cloud" type="hidden">
	<input id="save" name="save_content" type="submit" value="<?php echo txt('tag-cloud', 'Speichern'); ?>">
	<input id="delete" name="delete_content" type="submit" value="<?php echo txt('tag-cloud', 'Löschen'); ?>" onclick="this.form.confirm = window.confirm('<?php echo txt('tag-cloud', 'Soll das Inhaltselement wirklich gelöscht werden?'); ?>')">
</form>