{{if $smarty.post.save eq 'save'}}

{{else}}

	
	
	{{getCollectionByCategory OrderColumn=1 CollectionID=97 ColumnID=1 Value=$CollectionID Collection_97_2=4 var=TmpVars}}{{assign var=Tmp value=$TmpVars[0]}}
	{{if $Tmp.Collection_97_3 eq 'on'}}{{assign var=wFlowEmailAddFrontEndActive value='checked'}}{{else}}{{assign var=wFlowEmailAddFrontEndActive value=''}}{{/if}}
	{{assign var=emailToName value=$Tmp.Collection_97_4}}
	{{assign var=emailToAddress value=$Tmp.Collection_97_5}}
	{{assign var=emailFromName value=$Tmp.Collection_97_6}}
	{{assign var=emailFromAddress value=$Tmp.Collection_97_7}}
	{{assign var=emailHost value=$Tmp.Collection_97_8}}
	{{assign var=emailSubject value=$Tmp.Collection_97_9}}
	{{assign var=emailHTML value=$Tmp.Collection_97_11}}
	{{assign var=emailPage value=$Tmp.Collection_97_10}}
	

{{/if}}

<p><input type="checkbox" name="wFlowEmailAddFrontEndActive" {{$wFlowEmailAddFrontEndActive}} /> Activate email sending capability</p>

<h3>Recipient Info</h3>

<table cellpadding="4" cellspacing="0" border="0">
<tr>
	<td width="150"><p>Recipient Name</p></td>
	<td>
		<p><input type="text" class="input" size="40" name="emailToName" value="{{$emailToName}}" /></p>
	</td>
</tr>
<tr>
	<td><p>Recipient Email Address</p></td>
	<td>
		<p><input type="text" class="input" size="40" name="emailToAddress" value="{{$emailToAddress}}" /></p>
	</td>
</tr>
</table>

<h3>Sender Info</h3>

<table cellpadding="4" cellspacing="0" border="0">
<tr>
	<td width="150"><p>Sender Name</p></td>
	<td>
		<p><input type="text" class="input" size="40" name="emailFromName" value="{{$emailFromName}}" /></p>
	</td>
</tr>
<tr>
	<td><p>Sender Email Address</p></td>
	<td>
		<p><input type="text" class="input" size="40" name="emailFromAddress" value="{{$emailFromAddress}}" /></p>
	</td>
</tr>
</table>

<h3>Email Content Info</h3>

<table cellpadding="4" cellspacing="0" border="0">
<tr>
	<td width="150"><p>Host</p></td>
	<td>
		<p><input type="text" class="input" size="40" name="emailHost" value="{{$emailHost}}" /></p>
	</td>
</tr>
<tr>
	<td><p>Email Subject</p></td>
	<td>
		<p><input type="text" class="input" size="40" name="emailSubject" value="{{$emailSubject}}" /></p>
	</td>
</tr>
<tr>
	<td><p>HTML Email</p></td>
	<td>
		<p><select name="emailHTML" class="input">
										<option value="on" {{if $emailHTML eq 'on'}}selected {{/if}}>YES</option>
										<option value="" {{if $emailHTML neq 'on'}}selected {{/if}}>NO</option>
								</select></p>
	</td>
</tr>
<tr>
	<td><p>Email Template</p></td>
	<td>
		{{getCollectionByCategory CollectionID=17 ColumnID=4 Value=2 OrderColumn=1 var=PagesEmail}}
		<p><select name="emailPage" class="input">
										<option value="">Select an email template...</option>
										{{foreach from=$PagesEmail item=vPage key=kPage}}
										<option value="{{$vPage.Collection_17_ID}}" {{if $emailPage eq $vPage.Collection_17_ID}}selected {{/if}}>{{$vPage.Collection_17_1}}</option>
										{{/foreach}}
			</select></p>
	</td>
</tr>
</table>