<table class="reportOptions">

	{* === REPORT EMAIL RECIPIENTS ============================================================= *}
	{if $emailRecipientsList}
		<tr>
			<td class="optionName">
				{$_LANG.reportsGeneration.startReport.tpl.emailRecipients}
			</td>
			<td>

				<a href="#;" class="icon-infoBlue" tooltip="{$_LANG.reportsGeneration.startReport.tpl.emailRecipientsInfo}"></a>

				{foreach from=$emailRecipientsList item=addr key=key}
					<span class="nowrap" {if $addr.name}{if $addr.email}tooltip="{$_LANG.reportsGeneration.startReport.tpl.emailAddrTooltip}: {$addr.email}"{else}tooltip="<i>{$_LANG.reportsGeneration.startReport.tpl.noEmailAddrTooltip}</i>"{/if}{/if}>
						<input type="checkbox" class="noBorder" id="emailRecipient_{$addr.id}"
							name="emailRecipients[{$addr.id}]" value="1" {if $addr.sel}checked="1"{/if}
						/>
						<label for="emailRecipient_{$addr.id}">
							{if $addr.name} {$addr.name}
							{else} <i>{$addr.email}</i> {/if}
						</label>
					</span>
				{/foreach}
			</td>
		</tr>
	{/if}

	{* === REPORT STARTS ON ==================================================================== *}
	<tr>
		<td class="optionName">
			{$_LANG.reportsGeneration.startReport.tpl.custFilters.triggerReport}
		</td>
		<td>

			<a href="#;" class="icon-infoBlue" tooltip="{$_LANG.reportsGeneration.startReport.tpl.custFilters.triggerReportTooltip}"></a>
			{* "now" option *}
			<input type="radio" class="noBorder" id="triggerReport_now"
				 name="triggerReport" value="now" {if $triggerReport=="now"}checked="1"{/if}
				 onclick="$('triggerProgrammedSpan').hide();"
			/> <label for="triggerReport_now">{$_LANG.reportsGeneration.startReport.tpl.custFilters.triggerReport_now}</label>

			&nbsp; &nbsp;

			{* "programmed" option *}
			<input type="radio" class="noBorder" id="triggerReport_programmed"
				 name="triggerReport" value="programmed" {if $triggerReport=="programmed"}checked="1"{/if}
				 onclick="$('triggerProgrammedSpan').show();$('triggerTimeFieldId').select();"
			/> <label for="triggerReport_programmed">{$_LANG.reportsGeneration.startReport.tpl.custFilters.triggerReport_programmed}</label>

			{* "programmed" date/time details *}
			<span id="triggerProgrammedSpan" {if $triggerReport!="programmed"}style="display:none"{/if}>
				{$_LANG.reportsGeneration.startReport.tpl.custFilters.triggerReport_dateTime}:
				<input type="text" id="triggerDateFieldId" class="input-old-date3"
					name="triggerDate" value="{$triggerDate}"
					onBlur="dateValidation(this, '{$dateStandard}');"
				/>
				<img class="calendar" src="{$smarty.const.SMARTY_BLANKGIF}" id="triggerDateBtn" align="absmiddle" />
				<script>
					Calendar.setup({ldelim} inputField:"triggerDateFieldId", button:"triggerDateBtn", ifFormat:Date.displayFormat{rdelim});
				</script>
				&nbsp;
				<input type="text" id="triggerTimeFieldId" style="width:50px;"
					name="triggerTime" value="{$triggerTime}"
					onBlur="validateTime(this);"
				/>
			</span>
		</td>
	</tr>


	{* === REPORT VALABILITY =================================================================== *}
	<tr>
		<td class="optionName">
			{$_LANG.reportsGeneration.startReport.tpl.valabilityMeasureUnit.valability}
		</td>
		<td>

			<a href="#;" class="icon-infoBlue" tooltip="{$_LANG.reportsGeneration.startReport.tpl.valabilityMeasureUnit.valabilityInfo}"></a>

			<input type="text" name="valabilityPeriod" value="{$valabilityPeriod}" style="width:80px;" />
			<select name="valabilityMeasureUnit" size="1"  style="width:120px;">
				<option value="minutes" {if $valabilityMeasureUnit=='minutes'}selected="1"{/if}>{$_LANG.reportsGeneration.startReport.tpl.valabilityMeasureUnit.minutes}</option>
				<option value="hours" {if $valabilityMeasureUnit=='hours'}selected="1"{/if}>{$_LANG.reportsGeneration.startReport.tpl.valabilityMeasureUnit.hours}</option>
				<option value="days" {if $valabilityMeasureUnit=='days'}selected="1"{/if}>{$_LANG.reportsGeneration.startReport.tpl.valabilityMeasureUnit.days}</option>
				<option value="weeks" {if $valabilityMeasureUnit=='weeks'}selected="1"{/if}>{$_LANG.reportsGeneration.startReport.tpl.valabilityMeasureUnit.weeks}</option>
			</select>

		</td>
	</tr>

	{* === REPORT GENERATION THREAD PRIORITY =================================================== *}
	{if $reportDetails.platform=='cli'}
		<tr>
			<td class="optionName">
				{$_LANG.reportsGeneration.startReport.tpl.priorityField}
			</td>
			<td>

				<a href="#;" class="icon-infoBlue" tooltip="{$_LANG.reportsGeneration.startReport.tpl.priorityInfo}"></a>

				<select name="priority" size="1"  style="width:210px;">
					<option value="19" class="priority_19" {if $priority==19}selected="1"{/if}>{$_LANG.reportsGeneration.startReport.tpl.priority.19}</option>
					<option value="15" class="priority_15" {if $priority==15}selected="1"{/if}>{$_LANG.reportsGeneration.startReport.tpl.priority.15}</option>
					<option value="10" class="priority_10" {if $priority==10}selected="1"{/if}>{$_LANG.reportsGeneration.startReport.tpl.priority.10}</option>
					<option value="5" class="priority_5" {if $priority==5}selected="1"{/if}>{$_LANG.reportsGeneration.startReport.tpl.priority.5}</option>
					<option value="0" class="priority_0" {if $priority==0}selected="1"{/if}>{$_LANG.reportsGeneration.startReport.tpl.priority.0}</option>
				</select>

			</td>
		</tr>
	{/if}

</table>
