{runquery 1}{runquery 2}
{translatestatictext 'Table Reservation History'.{const language}}
- {translatestatictext 'Restaurant'.{const language}}
  {translatestatictext 'Visits'.{const language}}
{forall 1}
- {field 1.RESTAURANT}
  {field 1.Countx}
{/forall}
{translatestatictext 'Last Visits'.{const language}}
- {translatestatictext 'Restaurant'.{const language}}
  {translatestatictext 'Table'.{const language}}
  {translatestatictext 'Date'.{const language}}
  {translatestatictext 'From'.{const language}}
  {translatestatictext 'Until'.{const language}}
{forall 2}
- {field 2.RESTAURANT}
  {dif {field 2.Tablenumber}>0}{field 2.Tablenumber}{/dif}{else} {/else}
  {field 2.RRES_DATE}
  {field 2.Starttime}
  {field 2.Endtime}
{/forall}