<?php
/**
 * Maintenance page
 *
 * @package 	CSVIVirtueMart
 * @subpackage 	Maintenance
 * @todo
 * @author 		Roland Dalmulder
 * @link 		http://www.csvimproved.com
 * @copyright 	Copyright (C) 2006 - 2012 RolandD Cyber Produksi
 * @license 	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 * @version 	$Id: default_maintenance.php 1892 2012-02-11 11:01:09Z RolandD $
 */
 
defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' );
?>
	<fieldset class="adminform">
	<legend><?php echo JText::_('COM_CSVIVIRTUEMART_MAINTENANCE'); ?></legend>
	<table class="admintable">
	<tbody>
		<!-- Update available fields -->
		<tr>
			<td class="key">
				<span class="hasTip" title="<?php echo JText::_('COM_CSVIVIRTUEMART_UPDATEAVAILABLEFIELDS_LABEL'); ?> :: <?php echo JText::_('COM_CSVIVIRTUEMART_UPDATEAVAILABLEFIELDS_DESC'); ?>"><?php echo JText::_('COM_CSVIVIRTUEMART_UPDATEAVAILABLEFIELDS_LABEL'); ?></span>
			</td>
			<td>
				<input type="radio" name="operation[]" value="updateavailablefields" onclick="setTask('updateavailablefields');" />
			</td>
		</tr>
		<!-- Sample templates -->
		<tr>
			<td class="key">
				<span class="hasTip" title="<?php echo JText::_('COM_CSVIVIRTUEMART_INSTALLDEFAULTTEMPLATES_LABEL'); ?> :: <?php echo JText::_('COM_CSVIVIRTUEMART_INSTALLDEFAULTTEMPLATES_DESC'); ?>"><?php echo JText::_('COM_CSVIVIRTUEMART_INSTALLDEFAULTTEMPLATES_LABEL'); ?></span>
			</td>
			<td>
				<input type="radio" name="operation[]" value="installdefaulttemplates" onclick="setTask('installdefaulttemplates');" />
			</td>
		</tr>
		<!-- Sort categories -->
		<tr>
			<td class="key">
				<span class="hasTip" title="<?php echo JText::_('COM_CSVIVIRTUEMART_SORTCATEGORIES_LABEL'); ?> :: <?php echo JText::_('COM_CSVIVIRTUEMART_SORTCATEGORIES_DESC'); ?>"><?php echo JText::_('COM_CSVIVIRTUEMART_SORTCATEGORIES_LABEL'); ?></span>
			</td>
			<td>
				<input type="radio" name="operation[]" value="sortcategories" onclick="setTask('sortcategories');" />
			</td>
		</tr>
		<!-- Remove empty categories -->
		<tr>
			<td class="key">
				<span class="hasTip" title="<?php echo JText::_('COM_CSVIVIRTUEMART_REMOVEEMPTYCATEGORIES_LABEL'); ?> :: <?php echo JText::_('COM_CSVIVIRTUEMART_REMOVEEMPTYCATEGORIES_DESC'); ?>"><?php echo JText::_('COM_CSVIVIRTUEMART_REMOVEEMPTYCATEGORIES_LABEL'); ?></span>
			</td>
			<td>
				<input type="radio" name="operation[]" value="removeemptycategories" onclick="confirmDelete(this, '<?php echo JText::_('COM_CSVIVIRTUEMART_CONFIRM_CATEGORY_DELETE'); ?>', '<?php echo JText::_('COM_CSVIVIRTUEMART_REMOVEEMPTYCATEGORIES_LABEL'); ?>', 'removeemptycategories');" />
			</td>
		</tr>
		<!-- Exchange rates -->
		<tr id="currency_exchange_rates">
			<td class="key">
				<span class="hasTip" title="<?php echo JText::_('COM_CSVIVIRTUEMART_EXCHANGERATES_LABEL'); ?> :: <?php echo JText::_('COM_CSVIVIRTUEMART_EXCHANGERATES_DESC'); ?>"><?php echo JText::_('COM_CSVIVIRTUEMART_EXCHANGERATES_LABEL'); ?></span>
			</td>
			<td>
				<input type="radio" name="operation[]" value="exchangerates" onclick="setTask('exchangerates');" />
			</td>
		</tr>
		<!-- Clean cache -->
		<tr id="debug_logs">
			<td class="key">
				<span class="hasTip" title="<?php echo JText::_('COM_CSVIVIRTUEMART_CLEANTEMP_LABEL'); ?> :: <?php echo JText::_('COM_CSVIVIRTUEMART_CLEANTEMP_DESC'); ?>"><?php echo JText::_('COM_CSVIVIRTUEMART_CLEANTEMP_LABEL'); ?></span>
			</td>
			<td>
				<input type="radio" name="operation[]" value="cleantemp" onclick="setTask('cleantemp');" />
			</td>
		</tr>
		<!-- Backup templates -->
		<tr id="backup_csvi">
			<td class="key">
				<span class="hasTip" title="<?php echo JText::_('COM_CSVIVIRTUEMART_BACKUPTEMPLATES_LABEL'); ?> :: <?php echo JText::_('COM_CSVIVIRTUEMART_BACKUPTEMPLATES_DESC'); ?>"><?php echo JText::_('COM_CSVIVIRTUEMART_BACKUPTEMPLATES_LABEL'); ?></span>
			</td>
			<td>
				<input type="radio" name="operation[]" value="backuptemplates" onclick="setTask('backuptemplates');" />
			</td>
		</tr>
		<!-- Restore templates -->
		<tr id="restore_csvi">
			<td class="key">
				<span class="hasTip" title="<?php echo JText::_('COM_CSVIVIRTUEMART_RESTORETEMPLATES_LABEL'); ?> :: <?php echo JText::_('COM_CSVIVIRTUEMART_RESTORETEMPLATES_DESC'); ?>"><?php echo JText::_('COM_CSVIVIRTUEMART_RESTORETEMPLATES_LABEL'); ?></span>
			</td>
			<td>
				<input type="radio" name="operation[]" value="restoretemplates" onclick="setTask('restoretemplates');" />
			</td>
		</tr>
		<tr id="restorefile">
			<td class="key">
				<span class="hasTip" title="<?php echo JText::_('COM_CSVIVIRTUEMART_CHOOSE_RESTORE_FILE_LABEL'); ?> :: <?php echo JText::_('COM_CSVIVIRTUEMART_CHOOSE_RESTORE_FILE_DESC'); ?>"><?php echo JText::_('COM_CSVIVIRTUEMART_CHOOSE_RESTORE_FILE_LABEL'); ?></span>
			</td>
			<td>
				<input type="file" name="restore_file" id="file" size="120" />
			</td>
		</tr>
	</tbody>
	</table>
	</fieldset>
