<!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.lblFProducts}
	</title>
    {include file='CommonStyles.tpl'}
	{include file='CommonJavaScript.tpl'}
    <link href="{$view_styles}/jquery-ui-1.8.19.custom.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="{$view_styles}/ui.daterangepicker.css" />
    <link rel="stylesheet" type="text/css" href="{$view_styles}/colorbox.css" />
    <link rel="stylesheet" type="text/css" href="{$view_styles}/chosen.css" media="screen"/>
	<link rel="stylesheet" type="text/css" href="{$view_styles}/grid_listing.css" media="screen" />
    {include file='CommonCustomStyles.tpl'}

{form->basepath_script}
{form->rootpath_script}
</head>
<body>
{assign var="editprivilege" value=$editprivilege|default:''} 
<div class="outer_container"> {include file='CommonTop.tpl'} 
  <!--End:Header Container--> 
  <!--***********************************************************************END HEADER CONTAINER******************************************************-->
  <div class="content_container">
      <div class="content_wrapper"> 
     
		<div class=" fixing_right">

		</div>       

        <h2>{$language.lblFProducts}
          </h2>
          <div id="common_message"></div>

        <!-- Inner Content Container starts-->
        <div class="inner_content_wrapper">
          <!-- Search container starts --> 
          {form->start name="frmSearchProducts" action="" method="post"}          
          <div class="search_container clearfix">
            <div class="inner">
              <ul class="clearfix">
                <li class="column"><p class="label-field01">{$language.lblProductTitle}</p> 
                <span class="form-field01"> {form->textbox name="title" class="text-box" style="width:95%;"} </span>
                </li>	
				
				
			    
          </ul>                    
            </div>
          </div> {form->close}
          <!-- Search container ends --> 
          {if $products|@count>0} 
          
      <!--Start: Feed List-->    
            {form->start name="formProduct" action="" method="post" enctype="multipart/form-data"} 			
			<div class="grid_table00 pd-list"> 
				<table width="100%" border="0" cellspacing="0" cellpadding="0"   >
					<thead>
						<tr>
  
						<th align="left" valign="middle" width="14%">{$language.lblProductTitle}</th>
						<th align="left" valign="middle" width="12%">{$language.lblProductPrice}</th>
						<th align="left" valign="middle" width="8%">{$language.lblProductAvail}</th>
						<th align="left" valign="middle" width="8%">{$language.lblProductCondition}</th>
						<th align="left" valign="middle" width="6%">{$language.lblProductCountry}</th>
						<th align="left" valign="middle" width="6%">{$language.lblProductLanguage}</th>
						<th align="left" valign="middle" width="12%">{$language.lblCreated}</th>
						<th align="left" valign="middle" width="11%">{$language.lblUpdated}</th>
						<th align="left" valign="middle" width="12%">{$language.lblGoExpDate}</th>
						<th align="left" valign="middle" width="6%">{$language.lblApprStatus}</th>
						<th align="left" valign="middle" width="5%"></th>
						</tr>
					</thead>
					<tbody>
						{foreach $products as $key=> $product}								
							{assign var="productID" value=$product['offerId']}
							
							<tr class="rowClass{$key}">
							    
							<td align="left" valign="top" class="titleClass">
							{$product['title']}
							</td>
                            
							<td align="left" valign="top">
							{$product['salePrice']['value']} {$product['salePrice']['currency']}
							</td>
							
							<td align="left" valign="top">
							{$product['availability']}
							</td>
							
							<td align="left" valign="top">
							{$product['condition']}
							</td>
							
							<td align="left" valign="top">
							{$product['targetCountry']}
							</td>
							
							<td align="left" valign="top">
							{$product['contentLanguage']}
							</td>
							
							<td align="left" valign="top">
							{$productStatus[$key]['creationDate']}
							</td>
							
							<td align="left" valign="top">
							{$productStatus[$key]['lastUpdateDate']}
							</td>
							
							<td align="left" valign="top">
							{$productStatus[$key]['googleExpirationDate']}
							</td>
							
							<td align="left" valign="top">
							{$productStatus[$key]['destinationStatuses'][2]['approvalStatus']}
							</td>
							
							<td align="left" valign="top">
							  
							{if $deletePrivilege}
								{html->anchor title="{$language.lblDelete}" productID="{$productID}" class="deleteProduct icon-set delete05"}
							{/if}
							
							</td>
                            
							</tr>

						{/foreach}
					</tbody>             
				</table>
            </div>
		  
          <!--end: Product List--> 
          
              <div class="clear"></div>
			
			</div> 
            {form->close} 		  
          {else}
          <div  class="message_info"> {$language.msgNoRecords}</div>
          {/if} 
          </div>
    </div>
    
    <!--End: left Block-->
    <div class="clear"></div>
  </div>
  <!--End:Content Container--> 
  {include file='CommonBottom.tpl'} </div>
<!--End:Outer Container--> 
{include file='CommonJavaScriptBottom.tpl'} 
<script  type="text/javascript">
var lblCheckall = "{$language.lblCheckall}";
var lblUncheckall = "{$language.lblUncheckall}";
var lblselected 	= "{$language.lblselected}";
var msgConfirmDeletefd 	= "{$language.lblProdDeleteConfirm}";
var lblBasicSearch="{$language.lblBasicSearch}";
</script>
<script type="text/javascript" src="{$view_javascript}/feedProduct.page.js"></script> 

<script type="text/javascript">
 var msgSelectSearchCriteria = "{$language.msgSelectSearchCriteria}";

</script> 


<script type="text/javascript" src="{$view_javascript}/table.plugin.js"></script> 
<script language="javascript" type="text/javascript">
var msgSelectItem ="{$language.msgSelectItem}";
var lblSelectAction ="{$language.lblSelectAction}";
var msgConfirmDelete ="{$language.msgConfirmDelete}";
</script>

{html->messages_script id="common_message"}
</body>
</html>
