<%@ language="javascript"%>
<% /*
     $Revision$
     $Id$

     File:               CAD/printWhat.asp
     Description:        Laat de gebruiker selecteren wat hij wil afdrukken
                         Op het moment kan hij alleen nog uit een stylesheet kiezen
     Parameters:         alle customParams (hoewel we er nog niets mee doen)

     Context:            Modal na drukken Print knop
     Result:             "SLNKDWF" of "FG0"/"FG1" etc.
     Note:               Array fg_PrintStyles bevat de template mogelijkheden

*/ %>
<!--#include file="../Shared/common.inc"-->
<!--#include file="../shared/iface.inc"-->
<!--#include file="fgii.inc"-->
<%
   var fg_PrintStyles = new Array();
   fg_PrintStyles["FG0"]=L("lcl_fg_FG0");
   fg_PrintStyles["FG1"]=L("lcl_fg_FG1");
   fg_PrintStyles["FG2"]=L("lcl_fg_FG2");
   fg_PrintStyles["FG3"]=L("lcl_fg_FG3");
   fg_PrintStyles["SLNKDWF"]=L("lcl_fg_SLNKDWF");
%>
<html>
<head>
<%
   FCLTHeader.Generate();
%>
<script>
   function doReturn(stl)
    {
        var res = { style : stl,
                    DWGscale : parseFloat(document.forms.u2.sScale.value),
                    allFloor: document.forms.u2.cAllFloor.checked
                  }
        FcltMgr.closeDetail(window, res);
    }
</script>
</head>
<body class="modal" id="mod_cadprint" >
<% BLOCK_START("", L("lcl_print")); %>
<form name=u2 method=post>
    <tr>
        <td valign='top'><INPUT TYPE=checkbox ID=cAllFloor onChange='sScale.disabled=cAllFloor.checked;'"><%=L("lcl_fg_alle_verd")%></td>
        <td valign='top'>
                <%=L("lcl_fg_schaal")%>
                <select id=sScale style="width:100px">
                    <option value=-1><%=L("lcl_fg_schaal_max")%></option>
                    <option value=0 selected><%=L("lcl_fg_schaal_huidig")%></option>
                    <option value=.01>100:1</option>
                    <option value=.05>20:1</option>
                    <option value=.10>10:1</option>
                    <option value=.20>5:1</option>
                    <option value=.5>2:1</option>
                    <option value=1>1:1</option>
                    <option value=2>1:2</option>
                    <option value=5>1:5</option>
                    <option value=10>1:10</option>
                    <option value=20>1:20</option>
                    <option value=50>1:50</option>
                    <option value=100>1:100</option>
                    <option value=200>1:200</option>
                    <option value=500>1:500</option>
                    <option value=1000>1:1000</option>
                    <option value=2000>1:2000</option>
                    <option value=5000>1:5000</option>
                    <option value=10000>1:10000</option>
                </select>
        </td></tr>
    <tr>
    <td valign='top' colspan=2>
        <%

        buttons = [];
        for (stl in fg_PrintStyles)
        {
            buttons.push({title: fg_PrintStyles[stl], action:"doReturn('" + stl + "')"})
        }
        CreateButtons(buttons, {isDialog: true, vertical: true})
        %>
    </td></tr>
<%    BLOCK_END() %>
</form>
</body>
</html>
