<%@ include file="/common/taglibs.jsp"%>
<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>我的主题</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<script language="javascript">
function init()
{
var ecside1 = new ECSide("list1");
ecside1.init();
}
</script>
</HEAD>
<BODY οnlοad="init()">
<logic:present name="queryFail">
<%
out.println("<SCRIPT type='text/javascript'>");
out.println("alert('无符合条件的记录!');");
out.println("</SCRIPT>");
request.removeAttribute("queryFail");
%>
</logic:present>
<html:form action="/searchTopic.do" method="post">
<TABLE cellSpacing="0" cellPadding="0" width="98%"
align="center">
<tr>
<td>
<table width="100%">
<tbody>
<tr>
<td noWrap width="56%">
<DIV class="div_title">
当前位置: 与我有关
<SPAN class="11air">></SPAN>我的主题
<SPAN class="11air">></SPAN>
<SPAN id="lblTitle">我的主题</SPAN>
</DIV>
</td>
</tr>
</tbody>
</table>
<TABLE class="tb_searchbar" cellSpacing="0" cellPadding="0"
width="100%" align="center">
<TR>
<TD>
<IMG class="icon" height="16"
src="<%=request.getContextPath()%>/images/icon_search1.gif"
width="16">
主题查询
</TD>
</TR>
</TABLE>
<TABLE class="tb_datalist" cellSpacing="1" width="100%">
<TBODY>
<tr>
<td width="15%" noWrap class="tr_title">
主题
</td>
<td width="35%">
<input type="text" name="posttopic" style="width:260px">
</td>
<td width="15%" " noWrap class="tr_title">
所属工作室
</td>
<td width="35%">
<select name="workroomid" style="width:80pt;">
<option value="-1" selected>
请选择
</option>
<option value="1">
PMS工作室
</option>
<option value="2">
CPC工作室
</option>
</select>
</td>
</tr>
<tr>
<td noWrap class="tr_title">
创建日期
</td>
<td>
<input type="text" name="beginDate" readonly="true" style="width:95px"
οnclick="fPopCalendar(this,this);return false;" />
<a href="javascript:fPopCalendar(query.elements('beginDate'),query.elements('beginDate'));">
<img border=0
src="<%=request.getContextPath()%>/images/calendar.gif"
οnclick="fPopCalendar(beginDate,beginDate);return false" />
</a> 至
<input type="text" name="endDate" readonly="true" style="width:95px"
οnclick="fPopCalendar(this,this);return false;" />
<a href="javascript:fPopCalendar(query.elements('endDate'),query.elements('endDate'));">
<img border=0
src="<%=request.getContextPath()%>/images/calendar.gif"
οnclick="fPopCalendar(endDate,endDate);return false" /> </a>
</td>
<td noWrap class="tr_title">
过滤条件
</td>
<td>
<select name='OneType' style="width:80pt;"
onChange="changeSecondType(this.value);">
<option value="-1" selected>
请选择
</option>
<option value="0">
我创建的
</option>
<option value="1">
抄送给我的
</option>
</select>
</td>
</tr>
<tr>
<td noWrap class="tr_title">
作者
</td>
<td>
<input type="text" name="createdByName" readonly="true" style="width:175pt;">
<IMG
src="<%=request.getContextPath()%>/images/icon_search1.gif"
width="18" height="18" class=icon>
</td>
<td noWrap class="tr_title">
排序方式
</td>
<td>
<select name='TwoType' style="width:80pt;"
onChange=toUrl(this.options[selectedIndex].value);>
<option value="-1">
请选择
</option>
<option value="0">
按作者
</option>
<option selected value="1">
按日期
</option>
<option value="2">
按分类
</option>
</select>
<select name='ThreeType' style="width:80pt;"
onChange=toUrl(this.options[selectedIndex].value);>
<option value="-1">
请选择
</option>
<option value="asc">
升序
</option>
<option selected value="desc">
降序
</option>
</select>
</td>
</tr>
<tr align="right">
<td colspan="4" noWrap class="td_tail">
<input type="submit" name="searchButton" value="查 询"
class="button">
<input type="reset" name="clearButton" value="清 空"
class=button>
</td>
</tr>
</TBODY>
</TABLE>
<logic:present name="tbsTopicPostList">
<ec:table tableId="list1" items="tbsTopicPostList" var="tbsTopicPost"
action="${pageContext.request.contextPath}/searchTopic.do" cellspacing="1" pageSizeList="10,20,50">
<ec:row>
<ec:column property="_0" title="主题" sortable="false">
<a href="<c:out value='${contextPath}'/>/openTopicDetail.do?postid=${tbsTopicPost.postid}">${tbsTopicPost.posttopic}</a></ec:column>
<ec:column property="categoryId" title="类别" sortable="true"></ec:column>
<ec:column property="workroomid" title="工作室" sortable="false"></ec:column>
<ec:column property="createdByName" title="作者" sortable="true"></ec:column>
<ec:column property="createDate" title="创建日期" cell="date"
parse="yyyy-MM-dd" format="yyyy-MM-dd" sortable="true" />
<ec:column property="postattachcount" title="回复" sortable="true"></ec:column>
<ec:column property="posteditcount" title="点击率" sortable="true"></ec:column>
<ec:column property="_1" title="评价等级" sortable="true">
<font color=red> <c:forEach begin="1"
end="${tbsTopicPost.lvl}">★</c:forEach> </font>
</ec:column>
<ec:column property="_2" title="操作">
<a href="<c:out value='${contextPath}'/>/editTopic.do?postid=${tbsTopicPost.postid}">修改</a>
<a href="<c:out value='${contextPath}'/>/deleteTopic.do?postid=${tbsTopicPost.postid}"
onClick="{if(confirm('确定删除所选系统吗?')){return true;}return false;}">删除</a>
</ec:column>
</ec:row>
</ec:table>
</logic:present>
<logic:notPresent name="tbsTopicPostList">
<font color="FF0000">没有相匹配的记录!</font>
</logic:notPresent>
</td>
</tr>
</TABLE>
</html:form>
</BODY>
</html>