<!-- MODULE: image-text -->

<?php quick_help(txt('image-text', 'quick-help: image-text')); ?>

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

/**
 * Backend template
 *
 * @category   Module (image-text)
 * @author     Nico Wenig <nico.wenig@yellowgreen.de>
 * @version	   2010-07-24
 */

	if(!isset($module_settings["image-text"]["content"])) $module_settings["image-text"]["content"] = '';
	
?>

<!-- TinyMCE -->
<script type="text/javascript">
	// Init TinyMCE
	tinyMCE.init({
		// General options
		mode : 'exact',
		elements : 'textfield',
		theme : 'advanced',
		skin : 'pagemap',

		language : '<?php echo substr($user_data['backend language'],0 , 2); ?>',
		button_tile_map : true,
		width : '625',
		height : '450',
		
		element_format : '<?php echo $template_data['syntax']; ?>',
		cleanup : true,
		cleanup_on_startup : true,
		paste_auto_cleanup_on_paste : true,

		plugins : 'advhr, advimage, advlink, autosave, contextmenu, emotions, fullscreen, insertdatetime, layer, media, nonbreaking, paste, safari, searchreplace, style, table, visualchars, xhtmlxtras',
		
		// Plugin options
		plugin_insertdate_dateFormat : '%d.%m.%Y',
		plugin_insertdate_timeFormat : '%H:%M:%S',
		
		// Theme options
		theme_advanced_buttons1 : 'fullscreen,|,undo,redo,|,pastetext,cleanup,removeformat,newdocument,|,replace,|,styleprops,attribs,code,|,image,media,advhr,|,link,unlink,anchor,|,charmap,nonbreaking,|,cite,abbr,acronym',
		theme_advanced_buttons2 : 'bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect,fontselect,fontsizeselect,,styleselect,|,forecolor,backcolor',
		theme_advanced_buttons3 : 'sub,sup,|,bullist,numlist,|,outdent,indent,|,visualaid,tablecontrols',
		
		theme_advanced_font_sizes : '9px,10px,11px,12px,14px,16px,18px,20px,22px,24px,26px,28px,30px,36px,48px,60px,72px',
		theme_advanced_blockformats : 'div,p,blockquote,address,pre,h1,h2,h3,h4,h5,h6',
		theme_advanced_toolbar_location : 'top',
		theme_advanced_toolbar_align : 'left',
		theme_advanced_statusbar_location : 'bottom',
		theme_advanced_resizing : true,
		extended_valid_elements : 'iframe[style|src|width|height|name|align|frameborder|allowtransparency]',
		
		// Drop lists
		external_link_list_url : 'index.php?backend&actions=tinymce-filelist.php&action=filelist&type=all&path=<?php echo $system_data['folder']['pages'] . $_GET['page']; ?>/',
		external_image_list_url : 'index.php?backend&actions=tinymce-filelist.php&action=filelist&type=images&path=<?php echo $system_data['folder']['pages'] . $_GET['page']; ?>/',
		media_external_list_url : 'index.php?backend&actions=tinymce-filelist.php&action=filelist&type=multimedia&path=<?php echo $system_data['folder']['pages'] . $_GET['page']; ?>/',
		
		// CSS
		content_css : 'index.php?backend&actions=tinymce-content-css.php'
	});
</script>

<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'); ?>
	
	<h4><?php echo txt('image-text', 'title: image-text'); ?></h4>
	
	<p><textarea name="textfield" id="textfield" cols="10" rows="5"><?php echo strip_custom_tags(stripslashes($module_settings["image-text"]["content"]), true, false, true, false, false); ?></textarea></p>
	
	<?php connector('image-text backend tpl after'); ?>
	
	<!-- Save -->
	<input name="save_image_text" type="hidden">
	<input id="save" name="save_content" type="submit" value="<?php echo txt('image-text', 'Speichern'); ?>">
	<input id="delete" name="delete_content" type="submit" value="<?php echo txt('image-text', 'Löschen'); ?>" onclick="this.form.confirm = window.confirm('<?php echo txt('image-text', 'Soll das Inhaltselement wirklich gelöscht werden?'); ?>')">
</form>