<!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.lblCallBackRequests}</title>
{include file='CommonStyles.tpl'}
{include file='CommonJavaScript.tpl'}
{include file='CommonCustomStyles.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}/grid_listing.css" media="screen" />
<link rel="stylesheet" type="text/css" href="{$view_styles}/ui.daterangepicker.css" />
</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.lblCallBackRequests}</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.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 class="message_validation hide" id="validate_userEmail">{$language.errValidEmail}</span>	
					  </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">&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="/order/callbackrequest/" 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>  
                 
                   {if $sortkey == "" &&  $sortkey1 == "" && $sortkey2 == "" && $sortkey3 == "" && $sortkey4 == "" && $sortkey5 == ""}
                       {assign var ="sortkey" value="asc"}
                    {/if}
                    {if $sortkey=="asc"}
                   		{assign var="sortimg" value="sortdesc"} 
            		{else}  
            			{assign var="sortimg" value="sortasc"}
            		{/if}
            		{if $sortkey1=="asc" }
            			{assign var="sortimg1" value="sortdesc"} 
            		{else}  
            			{assign var="sortimg1" value="sortasc"}
            		{/if}
            		{if $sortkey2=="asc"}
            			{assign var="sortimg2" value="sortdesc"} 
            		{else}  
            			{assign var="sortimg2" value="sortasc"}
            		{/if}
                    {if $sortkey3=="asc"}
            			{assign var="sortimg3" value="sortdesc"} 
            		{else}  
            			{assign var="sortimg3" value="sortasc"}
            		{/if}
                    {if $sortkey4=="asc"}
            			{assign var="sortimg4" value="sortdesc"} 
            		{else}  
            			{assign var="sortimg4" value="sortasc"}
            		{/if}
                    {if $sortkey5=="asc"}
            			{assign var="sortimg5" value="sortdesc"} 
            		{else}  
            			{assign var="sortimg5" value="sortasc"}
            		{/if}
                    
            
            <th align="left" valign="middle" width="15%"   {if $sortkey2!=""}class={$sortimg2}{else}class="sort" {/if}>{html->anchor href="{$normallink}sortby/scustomer/orderby/{if $sortkey2==''}desc{else}{$sortkey2}{/if}/" title={$language.lblCustomerName} content={$language.lblCustomerName}}</a></th>
            <th  align="left" valign="middle"  width="7%">{$language.lblMenuBrands}</th>
            <th align="left" width="7%" valign="middle" class="unsortable">{$language.lblEmail}</th>
            <th align="left" width="7%" valign="middle" class="unsortable">{$language.lblPhone}</th>
            <th align="left" width="8%" valign="middle" class="unsortable">{$language.lblProductName}</th>                      
            <th align="left" width="20%" valign="middle" class="unsortable">{$language.lblComments}</th>            
            <th align="left" valign="middle"  width="10%" class="unsortable">{$language.lblCreatedDate}</th>
             <th  align="left" valign="middle" style="width:5%;" >&nbsp;</th>
            
            </tr>
            {foreach from=$resRequests item="req" key="key1"}
            
            <tr>
             
            <td align="left" valign="middle">{$req.subtitle}{$req.userFirstName|decode_str} {$req.userLastName|decode_str}</td>
			  <td align="left" valign="middle">{$req.brandName} </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.userComment} </td>
              <td align="left" valign="middle">{$req.createdDate|date_format:$date_format} {$req.createdDate|date_format:$time_format} </td>
              <td align="left" valign="top">
              {html->anchor href="order/requestdetail/id/{$req.requestID}/" class="preview icon-set"  title="{$language.lblView}" caption="" history="yes"}</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}";
var lblSelectBusiness	=	"{$language.lblSelectBusiness}";
var lblSelectCity  = "{$language.lblSelectCity}";
var lblSelectProductType = "{$language.lblSelectProductType1}";
var lblSelectItem			= '{$language.lblSelectItem}';
</script>
<script type="text/javascript" src="{$view_javascript}/table.plugin.js"></script>
<script type="text/javascript" src="{$view_javascript}/jquery.multiselect.widget.js"></script>
<script type="text/javascript" src="{$view_javascript}/callbackreq.page.js"></script>
<script type="text/javascript" src="{$common_js}/date.js"></script>
<script type="text/javascript" src="{$view_javascript}/daterangepicker.jQuery.js"></script>
</body>
</html>
