{if $reportSource}
	{$_LANG['reportsManagement']['admin']['general']['fileNameTpl']['addVar']}:
	<select onchange="insertFilterCodeIntoFileNameTemplate('%'+this.value+'%');this.value='';" style="width:200px;">
		<option value="">{$_LANG['reportsManagement']['admin']['general']['fileNameTpl']['chooseVar']}</option>
		<optgroup label="{$_LANG['reportsManagement']['admin']['general']['fileNameTpl']['generalOptGrp']}">
			<option value="DATE">{$_LANG['reportsManagement']['admin']['general']['fileNameTpl']['generalDate']}</option>
			<option value="DATETIME">{$_LANG['reportsManagement']['admin']['general']['fileNameTpl']['generalDateAndTime']}</option>
		</optgroup>
		<optgroup label="{$_LANG['reportsManagement']['admin']['general']['fileNameTpl']['filtersOptGrp']}">
			{foreach from=$reportFilters key=filter item=filterDetails}
				{if $filterDetails.type=='text' or $filterDetails.type=='dateInterval' or $filterDetails.type=='autocomplete'}
					<option value="{$filter}">{$_LANG['reports']['filterNames'][$reportSource][$filter]}</option>
				{/if}
			{/foreach}
		</optgroup>
	</select>
{else}
	{$_LANG['reportsManagement']['admin']['general']['fileNameTpl']['chooseSource']}
{/if}