<div class="toolbar clear">
    <h3 class="header">Preferences</h3>
    <input type="submit" name="bsave" value="Save Changes" class="submit"  />
    <a href="<%cfg.cgi_url%>?<%hidden_query%>;page=help_preferences.html" rel="<%cfg.cgi_url%>?<%hidden_query%>;page=help_preferences.html" title="Preferences" class="help"><img src="<%GT::FileMan::image_url('question-mark.gif')%>" alt="Question" /></a>
</div>
<div class="contentframe">
    <div class="row spacer clear">
        <div class="description">This field allows you to specify the directory that will be displayed by default when you login.</div>
        <label for="preferences_input" class="name">Working Path</label>
        <div class="value">
            <input type="text" id="preferences_input" name="path" value="<%if in.path%><%in.path%><%elsif default.path%><%default.path%><%endif%>" class="text longtext" />
        </div>
    </div>
    <div class="row spacer clear">
        <div class="description">This field should contain the path to the directory where your .htaccess file (which stores passwords created with the Protect option) is stored.</div>
        <label for="passwd_path" class="name">Password Directory</label>
        <div class="value">
            <input type="text" id="passwd_path" name="pwd_path" value="<%if in.pwd_path%><%in.pwd_path%><%elsif default.pwd_path%><%default.pwd_path%><%endif%>" class="text longtext" />
        </div>
    </div>
    <div class="row spacer clear">
        <div class="description">Specify the order in which your files and directories will be sorted and displayed by choosing a criteria (Name, Size, Type, Modified, Owner, Permissions) and either descending or ascending order. Note that directories will always be displayed above files.</div>
        <label for="sb" class="name">Sort By</label>
        <div class="value">
            <select id="sb" name="sb" class="object">
                <option value="name"<%if default.sb eq 'name' or $default.sb eq ''%> selected="selected"<%endif%>>Name</option>
                <option value="size"<%if default.sb eq 'size'%> selected="selected"<%endif%>>Size</option>
                <option value="type"<%if default.sb eq 'type'%> selected="selected"<%endif%>>Type</option>
                <option value="date"<%if default.sb eq 'date'%> selected="selected"<%endif%>>Modified</option>
                <%~ifnot mswin%>
                <option value="user"<%if default.sb eq 'user'%> selected="selected"<%endif%>>Owner</option>
                <option value="perm"<%if default.sb eq 'perm'%> selected="selected"<%endif%>>Permissions</option>
                <%endif~%>
            </select>
            <select name="so" class="input">
                <option value="asc"<%if default.so eq 'asc'%> selected="selected"<%endif%>>Ascending</option>
                <option value="desc"<%if default.so eq 'desc' or default.so eq ''%> selected="selected"<%endif%>>Descending</option>
            </select>
        </div>
    </div>
    <div class="row spacer clear">
        <div class="description">The number of files and directories that will be displayed per page.</div>
        <label for="maxhits" class="name">Max Hits</label>
        <div class="value">
            <select id="maxhits" name="maxhits">
                <option value="10"<%if in.maxhits == 10 or default.maxhits == 10%> selected="selected"<%endif%>>10</option>
                <option value="15"<%if in.maxhits == 15 or default.maxhits == 15%> selected="selected"<%endif%>>15</option>
                <option value="20"<%if in.maxhits == 20 or default.maxhits == 20%> selected="selected"<%endif%>>20</option>
                <option value="25"<%if in.maxhits == 25 or default.maxhits == 25%> selected="selected"<%elsif default.maxhits eq ''%> selected<%endif%>>25</option>
                <option value="30"<%if in.maxhits == 30 or default.maxhits == 30%> selected="selected"<%endif%>>30</option>
                <option value="40"<%if in.maxhits == 40 or default.maxhits == 40%> selected="selected"<%endif%>>40</option>
                <option value="50"<%if in.maxhits == 50 or default.maxhits == 50%> selected="selected"<%endif%>>50</option>
                <option value="60"<%if in.maxhits == 60 or default.maxhits == 60%> selected="selected"<%endif%>>60</option>
                <option value="70"<%if in.maxhits == 70 or default.maxhits == 70%> selected="selected"<%endif%>>70</option>
                <option value="80"<%if in.maxhits == 80 or default.maxhits == 80%> selected="selected"<%endif%>>80</option>
                <option value="90"<%if in.maxhits == 90 or default.maxhits == 90%> selected="selected"<%endif%>>90</option>
                <option value="100"<%if in.maxhits == 100 or default.maxhits == 100%> selected="selected"<%endif%>>100</option>
            </select>
        </div>
    </div>
    <div class="row spacer clear">
        <div class="description">Choose whether or not to display hidden files while viewing directories.</div>
        <label for="show_hidden" class="name">Hidden Files</label>
        <div class="value">
            <select id="show_hidden" name="show_hidden">
                <option value="0"<%ifnot default.show_hidden%> selected="selected"<%endif%>>Hidden</option>
                <option value="1"<%if default.show_hidden%> selected="selected"<%endif%>>Show</option>
            </select>
        </div>
    </div>
    <div class="row spacer clear">
        <div class="description">Choose whether the plain Text editor or the HTML editor will be displayed by default when you are creating new files.</div>
        <label for="editor" class="name">Editor Mode</label>
        <div class="value">
            <select id="editor_mode" name="editor_mode">
                <option value="0"<%ifnot default.editor_mode%> selected="selected"<%endif%>>Text</option>
                <option value="1"<%if default.editor_mode%> selected="selected"<%endif%>>HTML</option>
            </select>
        </div>
    </div>
    <div class="row spacer clear">
        <div class="description">Choose whether to use visual effects for various Fileman menus and alerts</div>
        <label for="editor" class="name">Effects</label>
        <div class="value">
            <select id="effect" name="effect">
                <option value="1"<%if default.effect == 1%> selected="selected"<%endif%>>Yes</option>
                <option value="2"<%if default.effect == 2%> selected="selected"<%endif%>>No</option>
            </select>
        </div>
    </div>
    <div class="row spacer clear">
        <div class="description">Choose whether README files (which are automatically displayed when a directory is being viewed) above, below or not shown the directory structure.</div>
        <label for="readme" class="name">README's Content</label>
        <div class="value">
            <select id="readme" name="readme">
                <option value="1"<%if default.readme == 1%> selected="selected"<%endif%>>At The Top</option>
                <option value="2"<%if default.readme == 2%> selected="selected"<%endif%>>At The Bottom</option>
                <option value="3"<%if default.readme == 3%> selected="selected"<%endif%>>Not Shown</option>
            </select>
        </div>
    </div>
</div>
