<tiles:insert template="/WEB-INF/view/common/admin/layout.jsp" flush="true">
	<tiles:put name="title"><bean:message key="labels.search_log_configuration" /></tiles:put>
	<tiles:put name="header" value="/WEB-INF/view/common/admin/header.jsp" />
	<tiles:put name="footer" value="/WEB-INF/view/common/admin/footer.jsp" />
	<tiles:put name="menu" value="/WEB-INF/view/common/admin/menu.jsp" />
	<tiles:put name="menuType" value="searchLog" />
	<tiles:put name="headerScript" type="string"></tiles:put>
	<tiles:put name="body" type="string">

      <div id="main">

<!-- Message: BEGIN -->
<div><html:messages id="msg" message="true"><bean:write name="msg" ignore="true"/></html:messages><html:errors/></div>
<!-- Message: END -->

<!-- Confirm Form: BEGIN -->
	<s:form>
		<html:hidden property="crudMode"/>
		<div class="form-table">
		<table>
			<caption><bean:message key="labels.search_log_title_confirm"/></caption>
			<tbody>



			<c:if test="${crudMode==2 || crudMode==3 || crudMode==4}">
                <tr>
                    <th style="width:150px;"><bean:message key="labels.search_log_id"/></th>
                    <td style="width:350px;">${f:h(id)}<html:hidden property="id"/></td>
                </tr>
</c:if>
					                <tr>
                    <th><bean:message key="labels.search_log_search_word"/></th>
                    <td><div style="width:350px;overflow-x:auto;">${f:h(searchWord)}<html:hidden property="searchWord"/></div></td>
                </tr>
					                <tr>
                    <th><bean:message key="labels.search_log_search_query"/></th>
                    <td><div style="width:350px;overflow-x:auto;">${f:h(searchQuery)}<html:hidden property="searchQuery"/></div></td>
                </tr>
					                <tr>
                    <th><bean:message key="labels.search_log_solr_query"/></th>
                    <td><div style="width:350px;overflow-x:auto;">${f:h(solrQuery)}<html:hidden property="solrQuery"/></div></td>
                </tr>
					                <tr>
                    <th><bean:message key="labels.search_log_requested_time"/></th>
                    <td>${f:h(requestedTime)}<html:hidden property="requestedTime"/></td>
                </tr>
					                <tr>
                    <th><bean:message key="labels.search_log_response_time"/></th>
                    <td>${f:h(responseTime)}<html:hidden property="responseTime"/></td>
                </tr>
					                <tr>
                    <th><bean:message key="labels.search_log_hit_count"/></th>
                    <td>${f:h(hitCount)}<html:hidden property="hitCount"/></td>
                </tr>
					                <tr>
                    <th><bean:message key="labels.search_log_query_offset"/></th>
                    <td>${f:h(queryOffset)}<html:hidden property="queryOffset"/></td>
                </tr>
					                <tr>
                    <th><bean:message key="labels.search_log_query_page_size"/></th>
                    <td>${f:h(queryPageSize)}<html:hidden property="queryPageSize"/></td>
                </tr>
					                <tr>
                    <th><bean:message key="labels.search_log_user_agent"/></th>
                    <td><div style="width:350px;overflow-x:auto;">${f:h(userAgent)}<html:hidden property="userAgent"/></div></td>
                </tr>
					                <tr>
                    <th><bean:message key="labels.search_log_referer"/></th>
                    <td><div style="width:350px;overflow-x:auto;">${f:h(referer)}<html:hidden property="referer"/></div></td>
                </tr>
					                <tr>
                    <th><bean:message key="labels.search_log_client_ip"/></th>
                    <td><div style="width:350px;overflow-x:auto;">${f:h(clientIp)}<html:hidden property="clientIp"/></div></td>
                </tr>
					                <tr>
                    <th><bean:message key="labels.search_log_session_id"/></th>
                    <td><div style="width:350px;overflow-x:auto;">${f:h(userSessionId)}<html:hidden property="userSessionId"/></div></td>
                </tr>
					                <tr>
                    <th><bean:message key="labels.search_log_access_type"/></th>
                    <td><div style="width:350px;overflow-x:auto;">${f:h(accessType)}<html:hidden property="accessType"/></div></td>
                </tr>
			</tbody>
			<tfoot>
				<tr>
					<td colspan="2">
        <c:if test="${crudMode == 3}">
            <input type="submit" name="delete" value="<bean:message key="labels.crud_button_delete"/>"/>
            <input type="submit" name="back" value="<bean:message key="labels.crud_button_back"/>"/>
        </c:if>
        <c:if test="${crudMode == 4}">
            <input type="submit" name="back" value="<bean:message key="labels.crud_button_back"/>"/>
            <input type="submit" name="deletefromconfirm" value="<bean:message key="labels.crud_button_delete"/>"/>
        </c:if>
					</td>
				</tr>
			</tfoot>
		</table>
		</div>
	</s:form>
<!-- Confirm Form: END -->

<c:if test="${hasClickLog}">
<!-- List: BEGIN -->
<div class="list-table" style="margin-top:5px;">
<table border="1">
	<caption><bean:message key="labels.search_log_click_log_title"/></caption>
	<thead>
		<tr>
				<th style="text-align: center;width:350px;">
				<bean:message key="labels.search_log_click_log_url"/>
				</th>
				<th style="text-align: center;width:150px;">
				<bean:message key="labels.search_log_click_log_requestedTime"/>
				</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach var="data" varStatus="s" items="${clickLogList}">
		<tr class="${s.index % 2 == 0 ? 'row1' : 'row2'}">
								<td><div style="width:345px;overflow-x:auto;">${f:h(data.url)}</div></td>
								<td>${f:h(data.requestedTimeForList)}</td>
		</tr>
		</c:forEach>
	</tbody>
</table>
</div>
</c:if>

      </div>

	</tiles:put>
</tiles:insert>
