<form action="<%cfg.cgi_url%>" method="post">
    <input type="hidden" id="cmd" name="cmd" value="log" />
    <h1 class="clear">
        <img src="<%GT::FileMan::image_url('icons/close.gif')%>" title="Close" class="close" />
        <span>Log Search</span>
    </h1>
    <div class="modal-content">
        <p class="error hide"></p>
        <div class="row clear">
            <div class="description">Enter keyword search or search term below</div>
            <label for="keyword" class="name">Keyword</label>
            <div class="value"><input type="text" id="keyword" name="keyword" value="" class="text longtext" /></div>
        </div>
        <div class="row clear">
            <label class="name">Action</label>
            <div class="value">
                <select name="action">
                    <option value="">All</option>
                    <option value="login">login</option>
                    <%loop commands_loop%>
                    <option value="<%name%>"><%name%></option>
                    <%endloop%>
                </select>
            </div>
        </div>
        <div class="row clear">
            <label class="name">Username</label>
            <div class="value"><input type="text" name="uid" class="text" value=""/></div>
        </div>
        <div class="row clear">
            <label class="name">From Date</label>
            <div class="value">
                <input type="text" id="fromdate" name="fromdate" class="text date-pick dp-applied" value="" />
                (<%if cfg.date_input%><%cfg.date_input%><%else%>yyyy-mm-dd<%endif%>)
            </div>
        </div>
        <div class="row clear">
            <label class="name">To Date</label>
            <div class="value">
                <input type="text" id="todate" name="todate" class="text  date-pick dp-applied" value="" />
                (<%if cfg.date_input%><%cfg.date_input%><%else%>yyyy-mm-dd<%endif%>)
            </div>
        </div>
        <div class="row clear">
            <label for="any" class="name">Match Any</label>
            <div class="value"><input type="checkbox" id="any" name="any" value="1" /></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>
