{*
 * Copyright (c) 2004-2025 OIC Group, Inc.
 *
 * This file is part of Exponent
 *
 * Exponent is free software; you can redistribute
 * it and/or modify it under the terms of the GNU
 * General Public License as published by the Free
 * Software Foundation; either version 2 of the
 * License, or (at your option) any later version.
 *
 * GPL: http://www.gnu.org/licenses/gpl.txt
 *
 *}

{css unique="exportfiles" corecss="tables"}

{/css}

<div class="exporter files-modlist">
	<div class="form_header">
		<h2>{'Export All Uploaded Files'|gettext}</h2>
        <blockquote>{'This will save all files listed within the File Manager.'|gettext}</blockquote>
	</div>
	{form action=export_files_process}
		<table cellspacing="0" cellpadding="2" border="0">
			{if $user->isAdmin()}
			<tr>
				<td>
					<input type="checkbox" name="save_sample" id="save_sample" value="1" class="checkbox">
					<strong><label class="label" for="save_sample">{'Save as Sample Content for the'|gettext} '{$smarty.const.DISPLAY_THEME}' {'Theme'|gettext}?</label></strong>
				</td>
			</tr>
			{/if}
			<tr>
				<td valign="top"><strong>{'File Name Template'|gettext}:</strong>
					{*<input type="text" name="filename" size="20" value="files" />*}
                    {control type="text" name="filename" size="20" value="files" }
				</td>
			</tr>
				<td>
                    <div style="border-top: 1px solid #CCC;">{'Use __DOMAIN__ for this website\'s domain name, __DB__ for the site\'s database name, and __DATETIME__, __DATE__, or __TIME__. The EQL extension will be added for you. Any other text will be preserved.'|gettext}<br /></div>
				</td>
			</tr>
			<tr>
				<td>
					{*<input class="downloadfile {button_style}" type="submit" value="{'Export Files'|gettext}" />*}
                    {control type=buttongroup class="downloadfile" submit='Export Files'|gettext}
				</td>
			</tr>
		</table>
	{/form}
</div>