<mef:set title="IOTD: {image.Caption}" js="mockup-box" />

<div style="text-align: center; width 100%; overflow: auto;">
<img src="/iotd/images/{day}.{image.format}" width="{size[0]}" height="{size[1]}" alt="{image.Caption}" title="{image.Caption}" border="1" />
<div style="margin: 1em;">
<b>{image.Caption}</b>, by <a href="/members/id/{image.MemberID}">{image.Member}</a><br /><br />
<fieldset mef:if="image.MemberID = USER_ID" style="margin: 0em 1em 1em 1em;">
	<form method="post">
		<input type="hidden" value="1" name="process" />
		<label style="display: block; float: left;" for="enable_feedback">Enable Feedback:</label>
		<input style="display: block; margin-left: 130px" id="enable_feedback" name="enable_feedback" type='checkbox' mef:attributes="checked if image.allow_feedback" />
		<br clear="all" />
		<label style="display: block; float: left;" for="email_option">E-mail Notifiction: </label>		
		<select style="display: block; margin-left: 130px;" id="email_option" name="email_option">
		<option value="NONE" mef:attributes="selected if image.email_option = 'NONE'">Never.</option>
		<option value="ONCE" mef:attributes="selected if image.email_option = 'ONCE'">Only e-mail for the first new comment.</option>
		<option value="ALL" mef:attributes="selected if image.email_option = 'ALL'">After every message.</option>
		<br clear="all" />		
		<input style="display: block; margin-left: 130px;" type="submit" value="Apply" />
		<br />
		* NOTE: E-Mail option is not implemented yet, so you will not receive any messages, no matter what you choose.
<div id="c" mef:loop="comments" style="border-top: dashed #999 1px; margin: 0.5em; padding: 0.5em;">
	{c.comments|ppm} - <i><a href="/members/id/{c.member_id}">{c.poster}</a></i>
<mef:if expr="allow_feedback">
		<hr size="1" />
		<div style="margin-left: 1em; margin-top: 1em;">
		<form method="post" onsubmit="return confirm('You will not be able to edit or delete your comment.\n\nPress OK if you wish to post it.');">
		<input type="hidden" name="action" value="post" />
		<mef:include file="mockup-box" name="comments" />
		<input type="submit" value="Post Comment" />
<br /><br /><hr size="1" />
<a href="/iotd/">The Gallery</a> | <a href="/iotd/submit">Add your own image!</a>