<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$language.lblAdmin} :{$language.lblDataFeedErrors}</title>
<link rel="stylesheet" type="text/css" href="{$view_styles}/popup.css" />
<link rel="stylesheet" type="text/css" href="{$view_styles}/locationadd.css" />
<script type="text/javascript" src="{$common_js}/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="{$common_js}/jquery-migrate-1.4.1.js"></script>
<script type="text/javascript" src="{$view_javascript}/table.plugin.js"></script>
<script type="text/javascript" src="{$view_javascript}/businessLocations.page.js"></script>
{literal}
<script language="javascript" type="text/javascript">
$(document).ready(function(){   
	{/literal}{if $businessLocID|default:''>0 || $submitted|default:'' || $key|default:''}{literal}
			$('#adNewBusinessLocation').show();
			$('#showAddNewBusinessLocation').hide();
			$("#frmLat").focus();
	{/literal}{/if}{literal}        
 });
</script>
{/literal}
</head>
	<body>
		<div class="popup-block">  <div id="common_message"></div>          <div class="clear"></div>  
		<div class="clearfix">  </div>
		{if $feedErrors}                      
			<div class="clear"></div>
			<h3><span>{$language.lblDataFeedErrs}</span></h3>	
			<div class="grid_table00" >
				<table  border="0" cellspacing="0" cellpadding="0" width="100%" >
					<tr>
						<th align="left" valign="middle"  width="4%">SI.NO</th>
						<th align="left" valign="middle"  width="35%">{$language.lblErrorCode}</th>
						<th align="left" valign="middle"  width="12%">{$language.lblErrorCount}</th>
						<th align="left" valign="middle" width="44%" >{$language.lblErrorMessage}</th>

					</tr>
					{foreach $feedErrors as $key=>$errors}
						
					<tr>
						<td align="left" valign="top">{$key+1}</td>
						<td align="left" valign="top">{$errors['code']}</td>
						<td align="left" valign="top">{$errors['count']}</td>
						<td align="left" valign="top">{$errors['message']}</td>
						
					</tr>
					
					<tr>
						<td colspan="4" align="left" valign="middle">
						<br/>
							<table  border="0" cellspacing="0" cellpadding="0" width="100%" >
							<tr>
								<th align="left" valign="middle"  width="40%">{$language.lblErrItemID}</th>
								<th align="left" valign="middle"  width="30%">{$language.lblErrLinenum}</th>
								<th align="left" valign="middle" width="30%" >{$language.lblErrValue}</th>
							</tr>
							{foreach $errors['examples'] as $key1=>$example}
								
							<tr>
								<td align="left" valign="top">{$example['itemId']}</td>
								<td align="left" valign="top">{$example['lineNumber']}</td>
								<td align="left" valign="top">{$example['value']}</td>
							</tr>
							
							{/foreach}
							</table>
							<br/>
						</td>
					</tr>
					{/foreach}
				</table>
			</div>
						         
			<div class="clear"></div>
		{else}
			<div class="message_info"> {$language.msgNoRecords}</div>            
		{/if}
		<br/>
		{if $feedWarnings}                      
			<div class="clear"></div>
			<h3><span>{$language.lblDataFeedWarnings}</span></h3>
			<div class="grid_table00" >
				<table  border="0" cellspacing="0" cellpadding="0" width="100%" >
					<tr>
						<th align="left" valign="middle"  width="4%">SI.NO</th>
						<th align="left" valign="middle"  width="35%">{$language.lblErrorCode}</th>
						<th align="left" valign="middle"  width="12%">{$language.lblErrorCount}</th>
						<th align="left" valign="middle" width="44%" >{$language.lblErrorMessage}</th>

					</tr>
					{foreach $feedWarnings as $s=>$warnings}
						
					<tr>
						<td align="left" valign="top">{$s+1}</td>
						<td align="left" valign="top">{$warnings['code']}</td>
						<td align="left" valign="top">{$warnings['count']}</td>
						<td align="left" valign="top">{$warnings['message']}</td>
						
					</tr>
					
					<tr>
						<td colspan="4" align="left" valign="middle">
						<br/>
							<table  border="0" cellspacing="0" cellpadding="0" width="100%" >
							<tr>
								<th align="left" valign="middle">{$language.lblErrItemID}</th>
							</tr>
							{foreach $warnings['examples'] as $s=>$warn}
								
							<tr>
								<td align="left" valign="top">{$warn['itemId']}</td>
							</tr>
							
							{/foreach}
							</table>
							<br/>
						</td>
					</tr>
					{/foreach}
				</table>
			</div>
			<div class="clear"></div>
		{else}
			<div class="message_info"> {$language.msgNoRecords}</div>            
		{/if}
		
	</div>        
</div>{form->validate_script form="frmBusinessLocation"}
{html->messages_script id="common_message"}
{form->rootpath_script}
<script type="text/javascript">
	var req="{$language.errRequired}";
	var msgConfirmDelete='{$language.msgConfirmDeleteLocation}';
	var okText	=	'{$language.lblOK}';
	var AlertText= '{$language.lblAlert}';
	var cancelText = '{$language.lblCancel}';	
	var statusChange="{$language.msgStatus}";
	var msgSelectItem="{$language.msgSelectItem}";
	var lblSelectAction="{$language.lblSelectAction}";
	var lblAlertOk='{$language.lblAlertOk}';
	var lblAlertCancel='{$language.lblAlertCancel}';
	var lblAlertYes='{$language.lblAlertYes}';
	var lblAlertNo='{$language.lblAlertNo}';
	var lblAlert='{$language.lblAlert}';
	var lblSelectCity='{$language.lblSelectCities}';
	var lblCheckAll='{$language.lblCheckall}';
	var lblUnCheckAll='{$language.lblUncheckall}';
	var lblHashselected='{$language.lblHashselected}';
</script>
<script type="text/javascript" src="{$view_javascript}/message.plugin.js"></script>
<script type="text/javascript" src="{$common_js}/validate.plugin.js"></script>
<script type="text/javascript" src="{$view_javascript}/custom-radiobutton.js"></script>
<script type="text/javascript">
$(function(){
	 $('#perioddiv input').customInput('');
	});	
</script>
    </body>
    </html>
