<form id="upload_form" action="<?php echo $tpl['current_url_pageless']; ?>" method="post">
	<h3 class="icon"><?php echo __('Ajouter des fichiers'); ?></h3>

<?php include(__DIR__ . '/report.tpl.php'); ?>

	<p id="list_categories_msg">
		<label for="list_categories_1"><?php echo __('Choisissez l\'album dans lequel vous souhaitez envoyer des fichiers :'); ?></label>
	</p>
	<div id="list_categories"></div>
	<p class="message_info" id="select_path"><?php echo __('Aucun album sélectionné.'); ?></p>

	<div id="upload">
		<div id="upload_list">
			<p id="upload_startmsg"><?php echo __('Déposez vos fichiers ici.'); ?></p>
		</div>
		<div id="upload_infos">
			<p id="upload_infos_total">
				<span><?php echo __('Liste :'); ?></span>
				<span id="upload_infos_files"></span>
				-
				<span id="upload_infos_filesize"></span>
			</p>
			<p>
				<span><?php echo __('Envoyé :'); ?></span>
				<span id="upload_infos_progress_pc">0%</span>
			</p>
		</div>
		<p class="upload_limits"><?php printf(__('Types de fichiers acceptés : %s.'), $tpl['upload']['text_types']); ?></p>
		<p class="upload_limits"><?php echo $tpl['upload']['text_limits']; ?></p>
<?php if ($tpl['upload']['validation']) : ?>
		<p class="message_info"><?php echo __('Vos fichiers n\'apparaîtront dans la galerie qu\'après validation par un administrateur.'); ?></p>
<?php endif; ?>
		<div id="upload_buttons">
			<input type="file" id="upload_input_file" multiple accept="<?php echo implode(',', $tpl['upload']['filetypes']); ?>">
			<input disabled type="button" class="button" id="upload_add" value="<?php echo __('Sélectionner des fichiers'); ?>">
			<input disabled type="button" class="button" id="upload_clear" value="<?php echo __('Vider la liste'); ?>">
			<input disabled type="button" class="button" id="upload_start" value="<?php echo __('Envoyer'); ?>">
		</div>
		<input name="anticsrf" type="hidden" value="<?php echo $tpl['anticsrf'](); ?>">
		<input name="cat_id" type="hidden" value="<?php echo $_GET['album_id'] ?? 1; ?>">
		<input name="temp_dir" type="hidden" value="<?php echo $tpl['upload']['temp_dir']; ?>">
		<input name="upload" type="hidden" value="1">
	</div>
</form>