<!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>
<title>{$language.lblAdmin} : {$language.lblMenuDownloadProductInformation}</title>
{include file='CommonStyles.tpl'}
{include file='CommonJavaScript.tpl'}
{include file='CommonCustomStyles.tpl'}
<link rel="stylesheet" type="text/css" href="{$view_styles}/grid_listing.css" media="screen" />
</head><body>
<div class="outer_container">
  {include file='CommonTop.tpl'}
  <!--End:Header Container-->
  <!--***********************************************************************END HEADER CONTAINER******************************************************-->
  <div class="content_container">
  	<div class="content_wrapper">
     
    <h2>{$language.lblMenuDownloadProductInformation}</h2>
	
    <div class="clear"></div>
    <!--End: Right Block-->
    <div class="leftblock  full_width">
      <div class="shadow_outer">
        <div class="shadow_inner" >
          <div id="common_message"></div>
          {form->start name="formOrderSearch" action="" method="post" enctype="multipart/form-data"}
          <div class="search_container">
            <div class="inner wide-box">
              <ul class="clearfix">
                
                
               <li class="column">
                  <p class="label-field01">{$language.lblProductName}</p>
                  <span class="form-field01">
                     {form->textbox name="productKey" class="text-box"}
                   </span>
                </li>
                <li class="column">
					<p class="label-field01">{$language.lblMenuBrands}</p>
					<span class="form-field01">
						{form->select class="select-box" name="brandID" caption="->{$language.lblSelect}" options=$listBrand}			                 
						</span>
				</li>
                {*
                <li class="column">
                  <p class="label-field01">{$language.lblCustomerName}</p>
                  <span class="form-field01">
                      {form->textbox name="userName" class="text-box"} </span>
                </li>
                <li class="column">
                  <p class="label-field01">{$language.lblEmail}</p>
                  <span class="form-field01">
                      {form->textbox name="userEmail" class="text-box"} </span>
                </li>
                	*}
				
                <li class="column">
                  <p class="label-field01">&nbsp;</p>
                  	{form->hidden name="formName" id="formName" value="formOrderSearch"}                    
                    {form->submit name="submitSearch" form="formOrderSearch" tabindex="1" value={$language.lblSearch} class="button01"}
                    {html->anchor href="/product/downloadProductInfo/" caption="<span class=listall>{$language.lblListAll}</span>" class="action-link"}
                  </li>
                </ul>
            </div>
          </div>
          <!--END:sEARCH cONTAINER-->
           {if $resRequests}
          <div class="sort_links">
          	{form->submit class="button-link01 fixing_right" name="export" value=$language.lblExport}
             <div class="clear"></div>
          </div>
          {/if}
          {form->close}
          {if $resRequests}
          {form->start name="formOrder" action="" method="post" enctype="multipart/form-data"}
          <div class="grid_table00">
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>  
            <th align="left" valign="middle" width="20%"  class="unsortable">{$language.lblCustomerName}</th>
            <th align="left" width="20%" valign="middle" class="unsortable">{$language.lblEmail}</th>
            <th align="left" width="20%" valign="middle" class="unsortable">{$language.lblPhone}</th>
            <th align="left" width="30%" valign="middle" class="unsortable">{$language.lblProductName}</th>
			<th align="left" valign="middle"  width="10%">{$language.lblMenuBrands}</th>			
            <th align="left" valign="middle"  width="10%" class="unsortable">{$language.lblCreatedDate}</th>
            </tr>
            {foreach from=$resRequests item="req" key="key1"}
            
            <tr>
             
            <td align="left" valign="middle">{$req.userFirstName|decode_str} {$req.userLastName|decode_str}</td>
             
              <td align="left" valign="middle">{$req.userEmail|decode_str} </td>
              <td align="left" valign="middle">{$req.userPhone|decode_str} </td>
              <td align="left" valign="middle">{$req.productOptionName} </td>
              <td align="left" valign="middle">{$req.brandName} </td>
              <td align="left" valign="middle">{$req.createdDate|date_format:$date_format} {$req.createdDate|date_format:$time_format} </td>
            </tr>
            {/foreach}
          </table>
          </div>
          <div class="fixing_right pagination_outer" > {paginate->layout  key="page" label_record="{$language.lblRecorsFound}" label_pages="{$language.lblPages}"} </div>
          <div class="clear"></div>
          
          {form->close}
          
          {else}
          <div class="message_info"> {$language.msgNoRecords}</div>
          {/if} 
        <!--End:Table Listing-->
      </div>
      <!--End:Border 3-->
    </div>
    <!--End:Border 2-->
  </div>
  <!--End: left Block-->
  <div class="clear"></div>
  </div>
</div>
<!--End:Content Container-->
{include file='CommonBottom.tpl'} 
</div>
<!--End:Outer Container-->
{include file='CommonJavaScriptBottom.tpl'}
<!--End:Outer Container-->
{html->messages_script id="common_message"}
<script type="text/javascript" >
var msgSelectSearchCriteria="{$language.msgSelectSearchCriteria}";
$(document).ready(function(){
	
	
$("#submitSearch").click(function(){	
          if(jQuery.trim($('#productKey').val())=="" && jQuery.trim($('#brandID').val()) == "") {
			   jAlert(msgSelectSearchCriteria);
                           return false;
		   }
		 
		   return true;  
});
});
</script>
</body>
</html>
