<!-- modules tpl -->

<script type="text/javascript">flynax.qtip();</script>
<table class="lTable form">
	<tr>
		<td colspan="2" class="divider" style="text-align: center;"><div class="inner">{$lang.dbMigration_table_header_module}</div></td>
		<td></td>
		<td class="divider" style="text-align: center;"><div class="inner">{$lang.dbMigration_table_header_action}</div></td>
		<td></td>
		<td class="divider" style="text-align: center;"><div class="inner">{$lang.dbMigration_table_header_successful}</div></td>
		<td></td>
		<td class="divider" style="text-align: center;"><div class="inner">{$lang.dbMigration_table_header_failed}</div></td>
		<td></td>
		<td class="divider" style="text-align: center;"><div class="inner">{$lang.dbMigration_table_last_import}</div></td>
	</tr>
{foreach from=$actions item='action' name='actionsName'}
	<tr class="body">
		{assign var='actionTitle' value='dbMigration_module+title+'|cat:$action.Module}
		<td class="{if $smarty.foreach.actionsName.iteration % 2 == 0}list_td{else}list_td_light{/if}">{$lang.$actionTitle}</td>
		<td class="{if $smarty.foreach.actionsName.iteration % 2 == 0}list_td{else}list_td_light{/if}" align="right" {if $smarty.foreach.actionsName.first}style="width: 250px;"{/if}>
			{if $action.Module == 'languages' || $action.Module == 'data_formats' || $action.Module == 'email_templates' || $action.Module == 'pages'}
				<table class="form">
					<tr>
						<td class="name" style="width:115px">
							{$lang.dbMigration_update_text}:{assign var='module_qtip' value='dbMigration_qtip_'|cat:$action.Module}
							<img src="{$rlTplBase}img/blank.gif" id="{$action.Module}_qtip" title="{$lang.$module_qtip}" alt="{$lang.$module_qtip}" class="qtip" />
						</td>
						<td id="im_{$action.Module}" class="field">
							<label><input type="radio" name="im_{$action.Module}" value="1"> {$lang.yes}</label>
							<label><input type="radio" checked="checked" name="im_{$action.Module}" value="0"> {$lang.no}</label>
						</td>
					</tr>
				</table>
			{/if}
		</td>
		{if $smarty.foreach.actionsName.first}<td style="width: 5px;" rowspan="100"></td>{/if}
		<td class="{if $smarty.foreach.actionsName.iteration % 2 == 0}list_td{else}list_td_light{/if}" align="center" {if $smarty.foreach.actionsName.first}style="width: 135px;"{/if}>
			{if $action.Modify==0}{assign var='buttonValue' value='dbMigration_start_module'}{else}{assign var='buttonValue' value='dbMigration_redo_module'}{/if}
			<input id="import_{$action.Module}" type="button" onclick="dbImport('{$action.Module}');" value="{$lang.$buttonValue}" style="margin: 0;width: 100px;" />
		</td>
		{if $smarty.foreach.actionsName.first}<td style="width: 5px;" rowspan="100"></td>{/if}
		<td class="{if $smarty.foreach.actionsName.iteration % 2 == 0}list_td{else}list_td_light{/if}" align="center"{if $smarty.foreach.actionsName.first} style="width: 135px;"{/if}>
			<div id="{$action.Module}_successful">{if $smarty.foreach.actionsName.first}N/A{else}{$action.Successful}{/if}</div>
		</td>
		{if $smarty.foreach.actionsName.first}<td style="width: 5px;" rowspan="100"></td>{/if}
		<td class="{if $smarty.foreach.actionsName.iteration % 2 == 0}list_td{else}list_td_light{/if}" align="center"{if $smarty.foreach.actionsName.first} style="width: 135px;"{/if}>
			<div id="{$action.Module}_failed">{if $smarty.foreach.actionsName.first}N/A{else}<span{if $action.Failed} class="red" style="font-weight: bold;"{/if}>{$action.Failed}{/if}</span></div>
		</td>
		{if $smarty.foreach.actionsName.first}<td style="width: 5px;" rowspan="100"></td>{/if}
		<td class="{if $smarty.foreach.actionsName.iteration % 2 == 0}list_td{else}list_td_light{/if}" align="center"{if $smarty.foreach.actionsName.first} style="width: 160px;"{/if}>
			<div id="{$action.Module}_modify"><i>{if $action.Modify==0}N/A{else}{$action.Modify|date_format:'%b %d,%Y %I:%M %p'}{/if}</i></div>
		</td>
	</tr>
	<tr>
		<td style="height: 5px;" colspan="5"></td>
	</tr>
{/foreach}
</table>

<!-- modules tpl end -->