    <div class="space"></div>
{include file=$webdoc.template_dir|cat:"message.tpl"}
    <form method="get" action="">
    <input type="submit" name="button_save" value="Save" style="display: none;">
{if isset($webdoc.sequence_id)}
    {insert_form type="hidden" name="sequence_id" value=$webdoc.sequence_id}
{/if}
{if isset($smarty.get.test_id)}
    {insert_form type="hidden" name="test_id" value=$smarty.get.test_id}
{/if}
{if isset($smarty.get.test_run_id)}
    {insert_form type="hidden" name="test_run_id" value=$smarty.get.test_run_id}
{/if}
    {insert_form type="hidden" name="subpage1" value=$smarty.get.subpage1}
    {insert_form type="hidden" name="subpage2" value="export"}
    {include file=$webdoc.template_dir|cat:"pages_hidden.tpl"}
    {include file=$webdoc.template_dir|cat:"sort_hidden.tpl"} 
    {include file=$webdoc.template_dir|cat:"filter_hidden.tpl"}
    {include file=$webdoc.template_dir|cat:"columns_hidden.tpl"}
      <table class="record">
        <tr><th>List:</th></tr>
        <tr><td><label><input type="radio" name="export" value="list_to_xls"{if $export=="list_to_xls"} checked="checked"{/if} /> Worksheet Microsoft Excel (XLS)</label></td></tr>
        <tr class="space"><td></td></tr>
        
{if (isset($webdoc.sequence_id) && ($webdoc.main_table=="requirement" || $webdoc.main_table=="product")) || isset($smarty.get.test_id) || isset($smarty.get.test_run_id)}
        <tr><th>Record:</th></tr>
        <tr><td><label><input type="radio" name="export" value="record_to_pdf"{if $export=="record_to_pdf"} checked="checked"{/if} /> Portable Document Format (PDF)</label><br /><label><input type="radio" name="export" value="record_to_doc"{if $export=="record_to_doc"} checked="checked"{/if} /> Document Microsoft Word (DOC)</label></td></tr>
        <tr class="space"><td></td></tr>
{if $webdoc.main_table!="test_run"}
        <tr><th>History:</th></tr>
        <tr><td><label><input type="radio" name="export" value="history_to_xls"{if $export=="history_to_xls"} checked="checked"{/if} /> Worksheet Microsoft Excel (XLS)</label></td></tr>
        <tr class="space"><td></td></tr>
{/if}
{/if}
        <tr><th>Settings (list and history):</th></tr>
        <tr><td><label><input type="checkbox" name="use_pages"{if $smarty.cookies.export_no_pages!=1} checked="checked"{/if} /> Use pages settings</label><br /><label><input type="checkbox" name="use_columns"{if $smarty.cookies.export_no_columns!=1} checked="checked"{/if} /> Use columns settings</label><br /><label><input type="checkbox" name="use_filter"{if $smarty.cookies.export_no_filter!=1} checked="checked"{/if} /> Use filter settings (list only)</label></td></tr>
        <tr class="space"><td></td></tr>


        <tr><td>{insert_form type="submit" name="button_export" value="Export"}</td><tr>
      </table>
    </form>
