<?php include('options_menu.tpl.php'); ?>

<form action="<?php echo $tpl['current_url_pageless']; ?>" method="post" class="page">
	<fieldset>
		<legend><?php echo __('Courriels automatiques'); ?></legend>
		<p class="field">
			<label for="mail_auto_sender_address"><?php echo __('Adresse de l\'expéditeur :'); ?></label>
			<input value="<?php echo $tpl['config']['mail_auto_sender_address']; ?>" id="mail_auto_sender_address" name="config[mail_auto_sender_address]" type="text" maxlength="255" size="50" class="large">
		</p>
		<p class="field">
			<label for="mail_auto_sender_name"><?php echo __('Nom de l\'expéditeur :'); ?></label>
			<input value="<?php echo $tpl['config']['mail_auto_sender_name']; ?>" id="mail_auto_sender_name" name="config[mail_auto_sender_name]" type="text" maxlength="255" size="50" class="large">
		</p>
		<p class="field">
			<label for="mail_auto_primary_recipient_address" data-help-icon="mail_auto_primary_recipient_address"><?php echo __('Adresse du destinataire principal :'); ?></label>
			<input value="<?php echo $tpl['config']['mail_auto_primary_recipient_address']; ?>" id="mail_auto_primary_recipient_address" name="config[mail_auto_primary_recipient_address]" type="text" maxlength="255" size="50" class="large">
		</p>
		<p class="field">
			<input name="config[_checkboxes][]" type="hidden" value="mail_auto_bcc">
			<input<?php if ($tpl['config']['mail_auto_bcc']) : ?> checked<?php endif; ?> id="mail_auto_bcc" name="config[mail_auto_bcc]" type="checkbox">
			<label for="mail_auto_bcc" data-help-icon="mail_auto_bcc"><?php echo __('Mettre toutes les adresses des destinataires dans le champ Bcc'); ?></label>
		</p>
		<p class="field">
			<input name="config[_checkboxes][]" type="hidden" value="mail_auto_signature">
			<input<?php if ($tpl['config']['mail_auto_signature']) : ?> checked<?php endif; ?> id="mail_auto_signature" name="config[mail_auto_signature]" type="checkbox">
			<label for="mail_auto_signature"><?php echo __('Ajouter une signature aux notifications :'); ?></label>
		</p>
		<p class="field field_sublvl">
			<textarea rows="8" cols="50" id="mail_auto_signature_text" name="config[mail_auto_signature_text]"><?php echo $tpl['config']['mail_auto_signature_text']; ?></textarea>
		</p>
	</fieldset>
	<fieldset>
		<legend><?php echo __('Nouveau commentaire'); ?></legend>
		<div class="field_var">
			<div>
				<p class="field">
					<label for="mail_notify_comment_subject"><?php echo __('Sujet :'); ?></label>
					<input value="<?php echo $tpl['config']['mail_notify_comment_subject']; ?>" id="mail_notify_comment_subject" name="config[mail_notify_comment_subject]" type="text" maxlength="255" class="large">
				</p>
				<p class="field">
					<label for="mail_notify_comment_message"><?php echo __('Message :'); ?></label>
					<textarea rows="8" cols="50" id="mail_notify_comment_message" name="config[mail_notify_comment_message]"><?php echo $tpl['config']['mail_notify_comment_message']; ?></textarea>
				</p>
			</div>
			<div>
				<ul>
					<li><span>{GALLERY_TITLE}</span> : <?php echo __('Titre de la galerie'); ?></li>
					<li><span>{GALLERY_URL}</span> : <?php echo __('URL de la galerie'); ?></li>
					<li><span>{ITEM_TITLE}</span> : <?php echo __('Titre du fichier'); ?></li>
					<li><span>{ITEM_URL}</span> : <?php echo __('URL du fichier'); ?></li>
					<li><span>{USER_NAME}</span> : <?php echo __('Auteur'); ?></li>
				</ul>
			</div>
		</div>
	</fieldset>
	<fieldset>
		<legend><?php echo __('Nouveau commentaire en attente de validation'); ?></legend>
		<div class="field_var">
			<div>
				<p class="field">
					<label for="mail_notify_comment_pending_subject"><?php echo __('Sujet :'); ?></label>
					<input value="<?php echo $tpl['config']['mail_notify_comment_pending_subject']; ?>" id="mail_notify_comment_pending_subject" name="config[mail_notify_comment_pending_subject]" type="text" maxlength="255" class="large">
				</p>
				<p class="field">
					<label for="mail_notify_comment_pending_message"><?php echo __('Message :'); ?></label>
					<textarea rows="8" cols="50" id="mail_notify_comment_pending_message" name="config[mail_notify_comment_pending_message]"><?php echo $tpl['config']['mail_notify_comment_pending_message']; ?></textarea>
				</p>
			</div>
			<div>
				<ul>
					<li><span>{GALLERY_TITLE}</span> : <?php echo __('Titre de la galerie'); ?></li>
					<li><span>{GALLERY_URL}</span> : <?php echo __('URL de la galerie'); ?></li>
					<li><span>{USER_NAME}</span> : <?php echo __('Auteur'); ?></li>
				</ul>
			</div>
		</div>
	</fieldset>
	<fieldset>
		<legend><?php echo __('Suivi de commentaires'); ?></legend>
		<div class="field_var">
			<div>
				<p class="field">
					<label for="mail_notify_comment_follow_subject"><?php echo __('Sujet :'); ?></label>
					<input value="<?php echo $tpl['config']['mail_notify_comment_follow_subject']; ?>" id="mail_notify_comment_follow_subject" name="config[mail_notify_comment_follow_subject]" type="text" maxlength="255" class="large">
				</p>
				<p class="field">
					<label for="mail_notify_comment_follow_message"><?php echo __('Message :'); ?></label>
					<textarea rows="8" cols="50" id="mail_notify_comment_follow_message" name="config[mail_notify_comment_follow_message]"><?php echo $tpl['config']['mail_notify_comment_follow_message']; ?></textarea>
				</p>
			</div>
			<div>
				<ul>
					<li><span>{GALLERY_TITLE}</span> : <?php echo __('Titre de la galerie'); ?></li>
					<li><span>{GALLERY_URL}</span> : <?php echo __('URL de la galerie'); ?></li>
					<li><span>{ITEM_TITLE}</span> : <?php echo __('Titre du fichier'); ?></li>
					<li><span>{ITEM_URL}</span> : <?php echo __('URL du fichier'); ?></li>
					<li><span>{USER_NAME}</span> : <?php echo __('Auteur'); ?></li>
				</ul>
			</div>
		</div>
	</fieldset>
	<fieldset>
		<legend><?php echo __('Nouveaux fichiers (ajoutés par FTP)'); ?></legend>
			<div class="field_var">
				<div>
					<p class="field">
						<label for="mail_notify_items_subject"><?php echo __('Sujet :'); ?></label>
						<input value="<?php echo $tpl['config']['mail_notify_items_subject']; ?>" id="mail_notify_items_subject" name="config[mail_notify_items_subject]" type="text" maxlength="255" class="large">
					</p>
					<p class="field">
						<label for="mail_notify_items_message"><?php echo __('Message :'); ?></label>
						<textarea rows="8" cols="50" id="mail_notify_items_message" name="config[mail_notify_items_message]"><?php echo $tpl['config']['mail_notify_items_message']; ?></textarea>
					</p>
				</div>
				<div>
					<ul>
						<li><span>{GALLERY_TITLE}</span> : <?php echo __('Titre de la galerie'); ?></li>
						<li><span>{GALLERY_URL}</span> : <?php echo __('URL de la galerie'); ?></li>
						<li><span>{USER_NAME}</span> : <?php echo __('Nom d\'utilisateur'); ?></li>
						<li><span>{USER_URL}</span> : <?php echo __('URL du profil de l\'utilisateur'); ?></li>
					</ul>
				</div>
			</div>
	</fieldset>
	<fieldset>
		<legend><?php echo __('Nouveaux fichiers (ajoutés par HTTP)'); ?></legend>
		<div class="field_var">
			<div>
				<p class="field">
					<label for="mail_notify_items_http_subject"><?php echo __('Sujet :'); ?></label>
					<input value="<?php echo $tpl['config']['mail_notify_items_http_subject']; ?>" id="mail_notify_items_http_subject" name="config[mail_notify_items_http_subject]" type="text" maxlength="255" class="large">
				</p>
				<p class="field">
					<label for="mail_notify_items_http_message"><?php echo __('Message :'); ?></label>
					<textarea rows="8" cols="50" id="mail_notify_items_http_message" name="config[mail_notify_items_http_message]"><?php echo $tpl['config']['mail_notify_items_http_message']; ?></textarea>
				</p>
			</div>
			<div>
				<ul>
					<li><span>{ALBUM_TITLE}</span> : <?php echo __('Titre de l\'album'); ?></li>
					<li><span>{ALBUM_URL}</span> : <?php echo __('URL de l\'album'); ?></li>
					<li><span>{GALLERY_TITLE}</span> : <?php echo __('Titre de la galerie'); ?></li>
					<li><span>{GALLERY_URL}</span> : <?php echo __('URL de la galerie'); ?></li>
					<li><span>{USER_NAME}</span> : <?php echo __('Nom d\'utilisateur'); ?></li>
					<li><span>{USER_URL}</span> : <?php echo __('URL du profil de l\'utilisateur'); ?></li>
				</ul>
			</div>
		</div>
	</fieldset>
	<fieldset>
		<legend><?php echo __('Nouveaux fichiers en attente de validation'); ?></legend>
		<div class="field_var">
			<div>
				<p class="field">
					<label for="mail_notify_items_pending_subject"><?php echo __('Sujet :'); ?></label>
					<input value="<?php echo $tpl['config']['mail_notify_items_pending_subject']; ?>" id="mail_notify_items_pending_subject" name="config[mail_notify_items_pending_subject]" type="text" maxlength="255" class="large">
				</p>
				<p class="field">
					<label for="mail_notify_items_pending_message"><?php echo __('Message :'); ?></label>
					<textarea rows="8" cols="50" id="mail_notify_items_pending_message" name="config[mail_notify_items_pending_message]"><?php echo $tpl['config']['mail_notify_items_pending_message']; ?></textarea>
				</p>
			</div>
			<div>
				<ul>
					<li><span>{ALBUM_TITLE}</span> : <?php echo __('Titre de l\'album'); ?></li>
					<li><span>{ALBUM_URL}</span> : <?php echo __('URL de l\'album'); ?></li>
					<li><span>{GALLERY_TITLE}</span> : <?php echo __('Titre de la galerie'); ?></li>
					<li><span>{GALLERY_URL}</span> : <?php echo __('URL de la galerie'); ?></li>
					<li><span>{USER_NAME}</span> : <?php echo __('Nom d\'utilisateur'); ?></li>
					<li><span>{USER_URL}</span> : <?php echo __('URL du profil de l\'utilisateur'); ?></li>
				</ul>
			</div>
		</div>
	</fieldset>
	<fieldset>
		<legend><?php echo __('Nouvelle inscription'); ?></legend>
		<div class="field_var">
			<div>
				<p class="field">
					<label for="mail_notify_registration_subject"><?php echo __('Sujet :'); ?></label>
					<input value="<?php echo $tpl['config']['mail_notify_registration_subject']; ?>" id="mail_notify_registration_subject" name="config[mail_notify_registration_subject]" type="text" maxlength="255" class="large">
				</p>
				<p class="field">
					<label for="mail_notify_registration_message"><?php echo __('Message :'); ?></label>
					<textarea rows="8" cols="50" id="mail_notify_registration_message" name="config[mail_notify_registration_message]"><?php echo $tpl['config']['mail_notify_registration_message']; ?></textarea>
				</p>
			</div>
			<div>
				<ul>
					<li><span>{GALLERY_TITLE}</span> : <?php echo __('Titre de la galerie'); ?></li>
					<li><span>{GALLERY_URL}</span> : <?php echo __('URL de la galerie'); ?></li>
					<li><span>{USER_NAME}</span> : <?php echo __('Nom d\'utilisateur'); ?></li>
					<li><span>{USER_URL}</span> : <?php echo __('URL du profil de l\'utilisateur'); ?></li>
				</ul>
			</div>
		</div>
	</fieldset>
	<fieldset>
		<legend><?php echo __('Nouvelle inscription en attente de validation'); ?></legend>
		<div class="field_var">
			<div>
				<p class="field">
					<label for="mail_notify_registration_pending_subject"><?php echo __('Sujet :'); ?></label>
					<input value="<?php echo $tpl['config']['mail_notify_registration_pending_subject']; ?>" id="mail_notify_registration_pending_subject" name="config[mail_notify_registration_pending_subject]" type="text" maxlength="255" class="large">
				</p>
				<p class="field">
					<label for="mail_notify_registration_pending_message"><?php echo __('Message :'); ?></label>
					<textarea rows="8" cols="50" id="mail_notify_registration_pending_message" name="config[mail_notify_registration_pending_message]"><?php echo $tpl['config']['mail_notify_registration_pending_message']; ?></textarea>
				</p>
			</div>
			<div>
				<ul>
					<li><span>{GALLERY_TITLE}</span> : <?php echo __('Titre de la galerie'); ?></li>
					<li><span>{GALLERY_URL}</span> : <?php echo __('URL de la galerie'); ?></li>
					<li><span>{USER_NAME}</span> : <?php echo __('Nom d\'utilisateur'); ?></li>
				</ul>
			</div>
		</div>
	</fieldset>
	<div id="submit">
		<div>
			<input name="anticsrf" type="hidden" value="<?php echo $tpl['anticsrf'](); ?>">
			<input type="submit" value="<?php echo __('Enregistrer'); ?>">
		</div>
	</div>
</form>