<?php
// xzshow forms to upload text or file
//error_reporting(E_ALL);
//ini_set('display_errors', 1);
header("Content-Type: text/html; charset=utf-8;");
?>

<!doctype html>
<html>
<head>
	<style>
body {
	background-color: #CCCCBB;
	font-family: sans-serif;
}

h1 {
	padding: 2px;
	margin: 0px;
}

textarea {
	border-radius: 5px;
}
#id_comment {
	width: 600px;
	height: 25px;
}

#id_data {
	width: 600px;
	height: 200px;
}
	</style>
</head>
<body>
	<h2>Sdílet text</h2>

	<form action="/upload.php" method="post" enctype="multipart/form-data">
		<input type="hidden" name="auth_token" value="b22e8e9a-26b6-4922-8711-9908e3d8c487">
		<input type="hidden" name="item_type" value="text">
	<!--	<div>
			<label for="id_comment">Komentář:</label>
		</div>
		<div>
			<textarea name="comment" id="id_comment" spellcheck="false"></textarea>
		</div>
	-->

		<br>

		<div>
		<textarea name="text_content" id="id_data" spellcheck="false" required></textarea>
		</div>
		<br>
		<input type="submit" value="Vytvořit">&nbsp;<input type="reset">

	</form>
<br>
<hr>
	<h2>Sdílet soubor</h2>

	<form action="/upload.php" method="post" enctype="multipart/form-data">
		<input type="hidden" name="auth_token" value="b22e8e9a-26b6-4922-8711-9908e3d8c487">
		<input type="hidden" name="item_type" value="file">
	<!--
		<div>
			<label for="id_comment">Komentář:</label>
		</div>

		<div>
			<textarea name="comment" id="id_comment" spellcheck="false"></textarea>
		</div>
	-->
		<br>

		<div>
		<input type="file" name="file_content" id="id_file" required>
		</div>
		<br>
		<input type="submit" value="Vytvořit">&nbsp;<input type="reset">
		<p>
		<label><i>Soubory větší než 109MiB se nemusí podařit nahrát.</i></label>
		</p>
	</form>
</body>
</html>
