<form action="<%cfg.cgi_url%>" method="post">
    <input type="hidden" name="cmd" value="search" /><%hidden_objects%>
    <h1 class="clear">
        <img src="<%GT::FileMan::image_url('icons/close.gif')%>" title="Close" class="close" />
        <span>Advanced Search</span>
    </h1>
    <div class="modal-content">
        <p class="error hide"></p>
        <div class="row clear">
            <div class="description">Search by any or all of the criteria below.</div>
            <label class="name">File Type</label>
            <div class="value">
                <select name="search_type">
                    <option value="">All Files &amp; Folders</option>
                    <option value="doc,xls,pdf,txt">Documents</option>
                    <option value="gif,jpg,jpeg,bmp">Images</option>
                    <option value="wav,au,mid,mod,mp3,mpeg,rm,wmv">Audio &amp; Media</option>
                    <option value="htm,html,shtm,shtml,xml">HTML</option>
                    <option value="cgi,pl,pm">Perl script</option>
                    <option value="exe,com">Binary</option>
                    <option value="unknown">Other</option>
                </select>
            </div>
        </div>
        <div class="row clear">
            <label class="name">Search For</label>
            <div class="value"><input type="text" id="search_input" name="search_input" class="text longtext" value=""/></div>
        </div>
        <div class="row clear">
            <label class="name">Search Options</label>
            <div class="value">
                <input type="checkbox" id="modal_search_case" name="search_case" value="1"/><label for="modal_search_case">Case Sensitive</label>
                <input type="checkbox" id="modal_search_exp"  name="search_exp" value="1" /> <label for="modal_search_exp">Regular Expression</label>
                <input type="checkbox" id="modal_search_content" name="search_content" value="1" /><label for="modal_search_content">Search Contents</label>
            </div>
        </div>
        <div class="row clear">
            <label class="name">Date Modified</label>
            <div class="value modify-date">
                <input type="radio" id="fmodified_1" name="search_mod" value="" checked="checked" /> <label for="fmodified_1">Any</label><br />
                <input type="radio" id="fmodified_2" name="search_mod" value="past_week" /> <label for="fmodified_2">Within a week ago</label><br />
                <input type="radio" id="fmodified_3" name="search_mod" value="past_month" /> <label for="fmodified_3">Within a month ago</label><br />
                <input type="radio" id="fmodified_4" name="search_mod" value="past_year" /> <label for="fmodified_4">Within a year ago</label><br />
                <input type="radio" id="fmodified_5" name="search_mod" value="date" /> <label for="fmodified_5">Specify dates (<%if cfg.date_input%><%cfg.date_input%><%else%>yyyy-mm-dd<%endif%>)</label>
                <div class="date-range clear">
                  <label for="fromdate" class="fromdate">From:</label>
                  <input type="text" id="fromdate" name="fromdate" class="text date-pick dp-applied" value="" />
                </div>
                <div class="date-range clear">
                    <label for="todate" class="todate">To:</label> <input type="text" id="todate" name="todate" class="text date-pick dp-applied" value="" />
                </div>
            </div>
        </div>
        <div class="buttons">
            <input type="submit" name="bsearch" value="Search" class="submit" />
            <input type="Reset" name="breset" value="Reset" class="submit" />
        </div>
    </div>
</form>
