<?php
/**
 * Created by CS medien- & kommunikationssysteme.
 * @author Christian Steinle
 * @date 27.09.2016
 *
 * @copyright CS medien- & kommunikationssysteme (http://www.steinle-computer.de)
 */
header('Access-Control-Allow-Origin: *');

$includeFile = dirname(__DIR__) . '/lang/lang-' . $_POST['lang'] . '.php';
if (file_exists(dirname(__DIR__) . '/lang/lang-' . $_POST['lang'] . '.php'))
{
	$includeFile = dirname(__DIR__) . '/lang/lang-' . $_POST['lang'] . '.php';
}

include_once($includeFile);

?>
<form id="editor_form" action="" method="post">
	<input type="hidden" name="userId" id="userId" value=""/>
	<input type="hidden" name="prefix" id="prefix" value=""/>
	<input type="hidden" name="navId" id="navId" value=""/>
	<input type="hidden" name="dataSet" id="dataSet" value=""/>
	<input type="hidden" name="request" id="request" value="updateData"/>

	<input type="hidden" name="imgExtension" id="imgExtension" value=""/>
	<input type="hidden" name="imgOrigname" id="imgOrigname" value=""/>
	<input type="hidden" name="previewHeight" id="previewHeight" value=""/>
	<input type="hidden" name="previewLeft" id="previewLeft" value=""/>
	<input type="hidden" name="previewTop" id="previewTop" value=""/>
	<input type="hidden" name="previewWidth" id="previewWidth" value=""/>

	<input type="hidden" name="uploadFile" id="uploadFile" value="" disabled="disabled"/>

	<input type="hidden" name="hasSlider" value="N"/>
	<input type="hidden" name="sliderContent" value=""/>

	<div>
		<div id="imagePlaceholder">
			<div id="imageCover">
				<div id="coverTop"></div>
				<div id="coverRight"></div>
				<div id="coverBottom"></div>
				<div id="coverLeft"></div>
			</div>
			<div id="imagePreview"></div>
		</div>
		<label for="imgName"><?php echo $lang['image']['imageName']; ?></label><input type="text" name="imgName" id="imgName" value=""/><br/>
		<label for="imgTitle"><?php echo $lang['image']['imageTitle']; ?></label><input type="text" name="imgTitle" id="imgTitle" value=""/><br/>
		<label for="changeUploadFile"><?php echo $lang['image']['newUpload']; ?></label><input type="file" name="changeUploadFile" id="changeUploadFile" class="uploadFile"/><br/>
		<div class="bottom">
			<input type="button" class="submitButton formSubmit" value="<?php echo $lang['button']['save']; ?>">
			<input type="button" class="submitButton formCancel" value="<?php echo $lang['button']['cancel']; ?>">
		</div>
	</div>
