<html>
<head>
  <title>{$export_group_name}</title>

  {* escape the CSS so it doesn't confuse Smarty *}
  {literal}
  <style type="text/css">
  body { margin: 0px; }
  table, td, tr, div, span { 
    font-family: verdana; font-size: 8pt;
  }
  table { empty-cells: show }
  #nav_row { background-color: #efefef; padding: 10px; }
  #export_group_name { color: #336699; font-weight:bold }
  .print_table { border: 1px solid #dddddd; }
  .print_table th { 
    border: 1px solid #cccccc; 
    background-color: #efefef;
    text-align: left;
  }
  .print_table td { border: 1px solid #cccccc; }
  .one_item { margin-bottom: 15px; }
  .page_break { page-break-after: always; }
  </style>

  <style type="text/css" media="print">
  .no_print { display: none }
  </style>
  {/literal}

</head>
<body>

<div id="nav_row" class="no_print">

  <span style="float:right">{if $page_type != "file"}
    {* if there's more than one export type in this group, display the types in a dropdown *}
    {if $export_types|@count > 1}
      <select name="export_type_id" onchange="window.location='{$same_page}?export_group_id={$export_group_id}&export_group_{$export_group_id}_results={$export_group_results}&export_type_id=' + this.value">
      {foreach from=$export_types item=export_type}
        <option value="{$export_type.export_type_id}" {if $export_type.export_type_id == $export_type_id}selected{/if}>{eval var=$export_type.export_type_name}</option>
      {/foreach}
      </select>
    {/if}
    {/if}
    <input type="button" onclick="window.close()" value="{$LANG.word_close}" />
    <input type="button" onclick="window.print()" value="{$LANG.word_print}" />
  </span>

  <span id="export_group_name">{eval var=$export_group_name}</span>
</div>

<div style="padding: 15px">
  {$export_type_smarty_template}
</div>

</body>
</html>