<!doctype html>
<html  {$html_attrs}>
  <head>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>
      {$pagetitle}
    </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <base href="{$projectPath}">
    <link REL="stylesheet" href="styles/default.css?{$wizardBuildKey}" type="text/css">
    {BEGIN rtlCSS}
      <link REL="stylesheet" href="styles/defaultRTL.css?{$wizardBuildKey}" type="text/css">
    {END rtlCSS}
    {BEGIN styleCSSFiles}
      <link REL="stylesheet" href="{$stylepath}" type="text/css">
    {END styleCSSFiles}
  </head>
  <BODY class="{$stylename} function-view" {$bodyattrs}>
    {BEGIN body}
      {$header}
      <style>
        {$containerCss}
      </style>
      {$locking}
      <DIV class="r-small-page" data-body-align="center" data-body-width="standard">
        {BEGIN top_block}
          <DIV class="r-form" data-location="top" id="form_top_{$pageid}" data-makeup="small" {$form_top} data-pageid="{$pageid}" data-v-width="6" data-v-margin="0">
            <DIV class="row">
              <DIV data-cellId="top_c1" data-pageid="{$pageid}" {$cell_top_c1} class="r-align-center r-ori-vert col-md-12">
                <h2 data-itemtype="view_header" data-itemid="view_header" {$item_view_header} data-pageid="{$pageid}" data-page="buyers_view" >
                  {$pagetitlelabel buyers view}
                </h2>
              </div>
            </div>
          </div>
        {END top_block}
        {BEGIN above-grid_block}
          <DIV class="r-form" data-location="above-grid" id="form_above-grid_{$pageid}" data-makeup="small" {$form_above-grid} data-pageid="{$pageid}" data-v-width="6" data-v-margin="0">
          </div>
        {END above-grid_block}
        {BEGIN grid_block}
          <TABLE data-body-align="center" data-location="grid" id="form_grid_{$pageid}" data-makeup="small" {$form_grid} data-pageid="{$pageid}" class="r-edit-form" cellpadding="0" cellspacing="0" {$grid_hiddenattr} data-form-width="4" data-v-width="6">
            <tbody>
              <tr>
                {BEGIN cellblock_grid_c3}
                  <TD {$cell_grid_c3} class="r-ori-vert" data-single data-cellId="grid_c3" data-pageid="{$pageid}" data-v-cell="1">
                    <DIV edit-form-cell class="clearfix">
                      {BEGIN id_fieldblock}
                        <LABEL class="control-label r-view-label" data-itemtype="edit_field_label" data-itemid="edit_field_label" {$item_edit_field_label} data-pageid="{$pageid}" data-page="buyers_view" data-field="id">
                          {BEGIN id_label}
                            {$label buyers id}
                          {END id_label}
                        </label>
                      {END id_fieldblock}
                  </td>
                {END cellblock_grid_c3}
                {BEGIN cellblock_grid_c8}
                  <TD {$cell_grid_c8} class="r-align-left r-ori-vert" data-single data-cellId="grid_c8" data-pageid="{$pageid}" data-v-cell="2">
                    <DIV edit-form-cell class="clearfix">
                      {BEGIN id_fieldblock}
                        <DIV class="r-view-field" data-itemtype="edit_field" data-itemid="integrated_edit_field" {$item_integrated_edit_field} data-pageid="{$pageid}" data-page="buyers_view" data-field="id">
                          {$id_value}
                        </div>
                      {END id_fieldblock}
                  </td>
                {END cellblock_grid_c8}
                {BEGIN cellblock_grid_c}
                  <TD {$cell_grid_c} class="r-ori-vert" data-single data-cellId="grid_c" data-pageid="{$pageid}" data-v-cell="1">
                    <DIV edit-form-cell class="clearfix">
                      {BEGIN address_fieldblock}
                        <LABEL class="control-label r-view-label" data-itemtype="edit_field_label" data-itemid="edit_field_label3" {$item_edit_field_label3} data-pageid="{$pageid}" data-page="buyers_view" data-field="address">
                          {BEGIN address_label}
                            {$label buyers address}
                          {END address_label}
                        </label>
                      {END address_fieldblock}
                  </td>
                {END cellblock_grid_c}
                {BEGIN cellblock_grid_c11}
                  <TD {$cell_grid_c11} class="r-ori-vert" data-single data-cellId="grid_c11" data-pageid="{$pageid}" data-v-cell="2">
                    <DIV edit-form-cell class="clearfix">
                      {BEGIN address_fieldblock}
                        <DIV class="r-view-field" data-itemtype="edit_field" data-itemid="integrated_edit_field2" {$item_integrated_edit_field2} data-pageid="{$pageid}" data-page="buyers_view" data-field="address">
                          {$address_value}
                        </div>
                      {END address_fieldblock}
                  </td>
                {END cellblock_grid_c11}
              </tr>
              <tr>
                {BEGIN cellblock_grid_c6}
                  <TD {$cell_grid_c6} class="r-ori-vert" data-single data-cellId="grid_c6" data-pageid="{$pageid}" data-v-cell="1">
                    <DIV edit-form-cell class="clearfix">
                      {BEGIN buyer_name_fieldblock}
                        <LABEL class="control-label r-view-label" data-itemtype="edit_field_label" data-itemid="edit_field_label1" {$item_edit_field_label1} data-pageid="{$pageid}" data-page="buyers_view" data-field="buyer_name">
                          {BEGIN buyer_name_label}
                            {$label buyers buyer_name}
                          {END buyer_name_label}
                        </label>
                      {END buyer_name_fieldblock}
                  </td>
                {END cellblock_grid_c6}
                {BEGIN cellblock_grid_c10}
                  <TD {$cell_grid_c10} class="r-ori-vert" data-single data-cellId="grid_c10" data-pageid="{$pageid}" data-v-cell="2">
                    <DIV edit-form-cell class="clearfix">
                      {BEGIN buyer_name_fieldblock}
                        <DIV class="r-view-field" data-itemtype="edit_field" data-itemid="integrated_edit_field1" {$item_integrated_edit_field1} data-pageid="{$pageid}" data-page="buyers_view" data-field="buyer_name">
                          {$buyer_name_value}
                        </div>
                      {END buyer_name_fieldblock}
                  </td>
                {END cellblock_grid_c10}
                {BEGIN cellblock_grid_c1}
                  <TD {$cell_grid_c1} class="r-ori-vert" data-single orowspan="2" data-cellId="grid_c1" data-pageid="{$pageid}" data-v-cell="1">
                    <DIV edit-form-cell class="clearfix">
                      {BEGIN e_mail_fieldblock}
                        <LABEL class="control-label r-view-label" data-itemtype="edit_field_label" data-itemid="edit_field_label4" {$item_edit_field_label4} data-pageid="{$pageid}" data-page="buyers_view" data-field="e_mail">
                          {BEGIN e_mail_label}
                            {$label buyers e_mail}
                          {END e_mail_label}
                        </label>
                      {END e_mail_fieldblock}
                  </td>
                {END cellblock_grid_c1}
                {BEGIN cellblock_grid_c2}
                  <TD {$cell_grid_c2} class="r-ori-vert" data-single orowspan="2" data-cellId="grid_c2" data-pageid="{$pageid}" data-v-cell="2">
                    <DIV edit-form-cell class="clearfix">
                      {BEGIN e_mail_fieldblock}
                        <DIV class="r-view-field" data-itemtype="edit_field" data-itemid="integrated_edit_field4" {$item_integrated_edit_field4} data-pageid="{$pageid}" data-page="buyers_view" data-field="e_mail">
                          {$e_mail_value}
                        </div>
                      {END e_mail_fieldblock}
                  </td>
                {END cellblock_grid_c2}
              </tr>
              <tr>
                {BEGIN cellblock_grid_c7}
                  <TD {$cell_grid_c7} class="r-ori-vert" data-single data-cellId="grid_c7" data-pageid="{$pageid}" data-v-cell="1">
                    <DIV edit-form-cell class="clearfix">
                      {BEGIN phone_number_fieldblock}
                        <LABEL class="control-label r-view-label" data-itemtype="edit_field_label" data-itemid="edit_field_label2" {$item_edit_field_label2} data-pageid="{$pageid}" data-page="buyers_view" data-field="phone_number">
                          {BEGIN phone_number_label}
                            {$label buyers phone_number}
                          {END phone_number_label}
                        </label>
                      {END phone_number_fieldblock}
                  </td>
                {END cellblock_grid_c7}
                {BEGIN cellblock_grid_c9}
                  <TD {$cell_grid_c9} class="r-ori-vert" data-single data-cellId="grid_c9" data-pageid="{$pageid}" data-v-cell="2">
                    <DIV edit-form-cell class="clearfix">
                      {BEGIN phone_number_fieldblock}
                        <DIV class="r-view-field" data-itemtype="edit_field" data-itemid="integrated_edit_field3" {$item_integrated_edit_field3} data-pageid="{$pageid}" data-page="buyers_view" data-field="phone_number">
                          {$phone_number_value}
                        </div>
                      {END phone_number_fieldblock}
                  </td>
                {END cellblock_grid_c9}
              </tr>
              <tr>
                {BEGIN cellblock_grid_c12}
                  <TD {$cell_grid_c12} class="r-align-center r-ori-vert" data-single data-fullwidth ocolspan="4" data-cellId="grid_c12" data-pageid="{$pageid}" data-v-cell="6">
                    <DIV edit-form-cell class="clearfix">
                      <span data-itemtype="text" data-itemid="text" {$item_text} data-pageid="{$pageid}" data-page="buyers_view" data-small >
                        Sales History
                      </span>
                  </td>
                {END cellblock_grid_c12}
              </tr>
            </tbody>
          </table>
          {BEGIN details_sales_history}
       
                <DIV class="panel-body">
                  {$displayDetailTable_sales_history}
                </div>
        
          {END details_sales_history}
          <TABLE data-body-align="center" data-location="grid" id="form_grid_{$pageid}" data-makeup="small" {$form_grid} data-pageid="{$pageid}" class="r-edit-form" cellpadding="0" cellspacing="0" {$grid_hiddenattr} data-form-width="4" data-v-width="6">
            <tbody>
              <tr>
                {BEGIN cellblock_grid_c13}
                  <TD {$cell_grid_c13} class="r-align-center r-ori-vert" data-single data-fullwidth ocolspan="4" data-cellId="grid_c13" data-pageid="{$pageid}" data-v-cell="6">
                    <DIV edit-form-cell class="clearfix">
                      <span data-itemtype="text" data-itemid="text1" {$item_text1} data-pageid="{$pageid}" data-page="buyers_view" data-small >
                        Advance & Usage
                      </span>
                  </td>
                {END cellblock_grid_c13}
              </tr>
            </tbody>
          </table>
          {BEGIN details_buyers_advance1}
          
                <DIV class="panel-body">
                  {$displayDetailTable_buyers_advance1}
                </div>
         
          {END details_buyers_advance1}
        {END grid_block}
        {BEGIN below-grid_block}
          <DIV class="r-form" data-location="below-grid" id="form_below-grid_{$pageid}" data-makeup="small" {$form_below-grid} data-pageid="{$pageid}" data-v-width="6" data-v-margin="0">
            <DIV class="row">
              <DIV data-cellId="below-grid_c1" data-pageid="{$pageid}" {$cell_below-grid_c1} class="r-align-center col-md-12">
                {BEGIN back_button}
                  <span data-itemtype="view_back_list" data-itemid="view_back_list" {$item_view_back_list} data-pageid="{$pageid}" data-small data-button-item>
                    <A type="button" title class="btn btn-default" {$backbutton_attrs}>
                      Back to list
                    </a>
                  </span>
                {END back_button}
                {BEGIN close_button}
                  <span data-itemtype="view_close" data-itemid="view_close" {$item_view_close} data-pageid="{$pageid}" data-small data-button-item>
                    <A type="button" title class="btn btn-default" href="#" {$closebutton_attrs}>
                      Close window
                    </a>
                  </span>
                {END close_button}
              </div>
            </div>
          </div>
        {END below-grid_block}
      </div>
      {$footer}
    {END body}
  </body>
</html>
