<!DOCTYPE>
<%      set Obj = folders.ExtObject %>
<html>
<head>

        <script src="functions.js" type="text/javascript"> </script>

        <title><%=Obj.AppName%> <%=Obj.AppEdition%></title>
        <link rel="stylesheet" type="text/css" href="<%=Obj.UIColor%>.css" />

        <script type="text/javascript">
                tips = <%=Obj.TipsCount %>;
        </script>
</head>
<body>
    <%
      header = "header"
        if Obj.AppCompany <> "MetaProducts" then header="header-no-logo"
    %>

    <div class="<%=header%>">
        <div class="wrapper">
			<div class="product-logo">
	            <%=Obj.AppName%><span><%=Obj.AppEdition%></span></div>
			<a href="https://www.metaproducts.com" class="mp-logo"></a>
        </div>
    </div>
    <nav class="menu">
        <div class="wrapper">
            <a href="./">Home</a>
            <span></span>
            <a href="tutorials.htm">Tutorials</a>
            <a href="/report.csv">Report</a>
            <a href="projects.htm">Projects</a>
            <a href="wizard.htm" class="active">Wizard</a>
        </div>
    </nav>
    <div class="content">
        <div class="wrapper">
            <div class="tips">
                <div class="nav">
                    <a class="prev" onclick="nextTip(0)">&lt;</a>
                    <span>Did you know...</span>
                    <a class="next" onclick="nextTip(1)">&gt;</a>
                </div>
                <div id="tip"></div>
            </div>
            <div id="text">
                <!--Projects heading-->
                <h2>
                    New project created
                </h2>
                <%
                                set folder = folders.FolderByIID(CLng(request("folder")))
                                set prj = folder.AddProject
                                prj.URL = request("url")
                                prj.Caption = request("caption")
                                if request("levels") <> "on" then
                                        prj.Level = 1000001
                                else
                                        prj.level = CLng(request("level"))
                                end if
                                if request("filetype") = "skip" then
                                        prj.SetFFParameter 1, 0, (request("filter-graphics") = "on")
                                        prj.SetFFParameter 2, 0, (request("filter-audio") = "on")
                                        prj.SetFFParameter 3, 0, (request("filter-video") = "on")
                                        prj.SetFFParameter 4, 0, (request("filter-archive") = "on")
                                end if
                                if request("location") = "url" then
                                        prj.URLFilterServer = 1
                                        prj.URLFilterDir = 1
                                end if
                                if request("location") = "server" then
                                        prj.URLFilterServer = 1
                                        prj.URLFilterDir = 0
                                end if
                                if request("location") = "any" then
                                        prj.URLFilterServer = 0
                                        prj.URLFilterDir = 0
                                else
                                        if request("load-images") = "on" then
                                                prj.SetFFParameter 1, 7, 3
                                        else
                                                prj.SetFFParameter 1, 7, 0
                                                prj.SetFFParameter 2, 7, 0
                                                prj.SetFFParameter 3, 7, 0
                                        end if
                                end if
'                               if request("explore-dirs") = "on" then
'                                       prj.ExploreDirs = true
'                               else
'                                       prj.ExploreDirs = false
'                               end if
                                response.redirect("project.htm?id=" & prj.iid)
                        %>
                        <div id="footer">
                        </div>
                </div>
                <div style="clear: both">
                </div>
        </div>
        <script type="text/javascript">nextTip(0);</script>
</body>
</html>
            </div>
        </div>
    </div>
</body>