📄 faqlist.jsp
字号:
var sHistoryStateName = null;
var sHistoryStateValue = null;
function onQueryResultLoad() {
var qr = document.getElementById("QueryResult");
var aLink = qr.getElementsByTagName("A");
if ( sHistoryStateName == null && sHistoryStateValue == null) {
if(aLink != null && aLink.length > 0)
aLink[0].click();
else {
var tt = document.getElementById("titleList");
while(tt.rows.length > 0 ) {
tt.deleteRow(0);
}
var rt = document.getElementById("FAQList");
while(rt.rows.length > 0 ) {
rt.deleteRow(0);
}
var pt = document.getElementById("pageSetList");
while(pt.rows.length > 0 ) {
pt.deleteRow(0);
}
}
}
else if ( aLink != null && aLink.length > 0 ) {
for ( var i = 0; i<aLink.length; i++) {
if ( aLink[i].name == sHistoryStateName && aLink[i].value == sHistoryStateValue ) {
aLink[i].click();
sHistoryStateName = null;
sHistoryStateValue = null;
break;
}
}
if ( sHistoryStateName != null ) {
aLink[0].click();
sHistoryStateName = null;
sHistoryStateValue = null;
}
}
}
function fnShowAll() {
QueryTable.tBodies[1].style.display='block';
window.setTimeout("cltScript_Toolbar();",30);
}
function fnStateClick(that) {
var result = document.getElementById("FAQList");
var qr = document.getElementById("QueryResult");
var cap = qr.caption.cloneNode(true);
if ( result.caption == null ) result.createCaption();
result.caption.replaceNode(cap);
var action = document.createElement("<input NAME='"+ that.name + "' TYPE='text'>");
action.value = that.value;
result.caption.appendChild(action);
result.reload();
// 标注一下当前状态的颜色。
var aLink = that.parentElement.getElementsByTagName("A");
for ( var i=0; i<aLink.length; i++){
if ( aLink[i] != that ) {
aLink[i].style.color = "white";
aLink[i].style.fontWeight = "normal";
}
}
that.style.color="blue";
that.style.fontWeight = "bold";
//window.location.href="faqlist.jsp?status="+;
//TODO 数据重载入
}
</script>
</head>
<body onload="fn_onload();">
<form id="Default" method="post" action="faqlist.jsp" onsubmit="return fn_OnSubmit(this);">
<div onresize="" style="width: 100%">
<div id="divTop" style="overflow: hidden">
<table id="ibtnPanel" style="font-size: 9pt; border-bottom: #efefef 1px outset" cellspacing="0"
cellpadding="0" width="100%" border="0">
<tr bgcolor="#efefef" height="33">
<td valign="middle" align="center" width="71"
onclick="return fnToolAddContent();"
id="ibtnAddContent"
style="behavior:url(../../common/button.htc); <%= faqCoteId==2?"display:none":""%>"
DefaultClass="btnDefault"
OverClass="btnOver"
DownClass="btnDown"
title="<%= btnAddTitle%>"><%= btnAddName%></td>
<td valign="middle" align="center" width="81"
onclick="return fnToolReplyContent();"
id="ibtnReplyContent"
style="behavior:url(../../common/button.htc);"
DefaultClass="btnDefault"
OverClass="btnOver"
DownClass="btnDown"
Enabled="false"
title="<%= btnModifyTitle%>"><%= btnModifyName%></td>
<td valign="middle" align="center" width="71"
onclick="return fnToolDelContent();"
id="ibtnDelContent"
style="behavior:url(../../common/button.htc)"
DefaultClass="btnDefault"
OverClass="btnOver"
DownClass="btnDown"
Enabled="false"
title="<%= btnDelTitle%>"><%= btnDelName%></td>
<td valign="middle" align="center" width="51"
onclick="return fnToolFilter();"
id="ibtnFilter"
style="behavior:url(../../common/button.htc)"
DefaultClass="btnDefault"
OverClass="btnOver"
DownClass="btnDown"
title="过滤列表中的人员信息。" style="display: none;">过滤</td>
<td valign="middle" align="center" width="51"
onclick="return fnToolFind();"
id="ibtnFind"
style="behavior:url(../../common/button.htc)"
DefaultClass="btnDefault"
OverClass="btnOver"
DownClass="btnDown"
title="查找。" style="display: none;">查询</td>
<td valign="middle" align="center" width="91"
onclick="return fnToolExport();"
id="ibtnExport"
style="behavior:url(../../common/button.htc)"
DefaultClass="btnDefault"
OverClass="btnOver"
DownClass="btnDown"
title="将列表的内容导出到Excel中">导出Excel</td>
<td valign="middle" align="center" width="91"
onclick="return fnViewCustInfo();"
id="ibtnViewCustInfo"
style="behavior:url(../../common/button.htc)"
DefaultClass="btnDefault"
OverClass="btnOver"
DownClass="btnDown"
title="显示该用户的注册帐号信息">注册帐号信息</td>
<td> </td>
<td align="right">
</td>
</tr>
</table>
<jsp:include page="../../common/inc_top.jsp" >
<jsp:param name="purvCode" value="<%=sPurvICode%>"/>
</jsp:include>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="OuterTable">
<tr>
<td width="100%" colspan="2" class="OuterHead" align="left">
<span id="ItemTitle"><font face="webdings">8</font>查询订单:</span>
<input type="radio" id="SIMPLEQUERY" name="querymode" checked="checked" value="simple" onclick="fnShowSimple();"><label for="SIMPLEQUERY" id="ItemTitle">简单查询</label>
<input type="radio" id="QUERYALL" name="querymode" value="all" onclick="fnShowAll();"><label for="QUERYALL" id="ItemTitle">复杂查询</label>
</td>
</tr>
<tr>
<td width="100%" colspan="2" class="InnerMain" align="left">
<table id="QueryTable" border="0" cellspacing="0" cellpadding="0" width="100%">
<caption style="display:none;">
<input type="hidden" id="parentID" name="faqCoteId" value="<%= faqCoteId%>"/>
<input type="hidden" id="txtSearchText" name="txtSearchText">
</caption>
<tbody>
<!--常用简单的查询条件-->
<tr>
<td width="10%" class="Caption_Td" align="right" nowrap="nowrap">开始时间:</td>
<td width="20%" class="body_td" align="left" nowrap="nowrap">
<input type="text" name="STARTTIME" id="STARTTIME" title="双击清空。" ondblclick="this.value='';" size="19" /><span style="cursor:hand"
onclick="return showCalendar('STARTTIME', '%Y-%m-%d', null, true);">
<img border="0" src="../calendar/date_botton.gif" width="20" height="14"></td>
<td width="10%" class="Caption_Td" align="right" nowrap="nowrap">结束时间:</td>
<td width="20%" class="body_td" nowrap="nowrap"><input type="text" name="ENDTIME" id="ENDTIME" title="双击清空。" ondblclick="this.value='';" size="19" /><span style="cursor:hand"
onclick="return showCalendar('ENDTIME', '%Y-%m-%d', null, true);">
<img border="0" src="../calendar/date_botton.gif" width="20" height="14"></td>
<td class="Caption_Td" width="10%" align="right" nowrap="nowrap">选择地区:</td>
<td class="body_td" width="10%" align="left" nowrap="nowrap">
<custom:HtmlSelect id="CITY" name="CITY" style="width:100%" styleId="CITY" dataSource="CITY"
textFieldName="CITYNAME" valueFieldName="CITYCODE"
onChange="loadArea(this);"
disabled='<%=(auth.getCityCode()!=null)?"true":"false"%>'
value='<%=cityCode%>'>
</custom:HtmlSelect>
</td>
<td width="10%" class="Caption_Td" align="right" nowrap="nowrap">选择区域:</td>
<td width="10%" class="body_td" nowrap="nowrap">
<custom:HtmlSelect dataSource="AREA" styleId="AREA" id="AREA" name="AREA" style="width: 100%" textFieldName="AREANAME" valueFieldName="AREACODE">
<custom:HtmlOption value="" disabled='<%= (oArea != null)?! oArea.getTableName().equalsIgnoreCase("TD_AREA"):false%>'>全部</custom:HtmlOption>
</custom:HtmlSelect>
</td>
</tr>
</tbody>
<tbody style="display:none;">
<!--其它查询条件-->
<tr>
<td width="10%" class="Caption_Td" align="right" nowrap="nowrap">客户名称:</td>
<td width="10%" class="body_td" nowrap="nowrap">
<input type="text" id="CUSTNAME" name="CUSTNAME" style="width: 100%;">
</td>
<td class="Caption_Td" align="right" nowrap="nowrap">标题:</td>
<td class="body_td" align="left" nowrap="nowrap" colspan="3">
<input type="text" id="TITLE" name="TITLE" style="width: 318; height: 23" size="20"></td>
<td class="Caption_Td" align="right" nowrap="nowrap">状态:</td>
<td class="body_td" align="left" nowrap="nowrap">
<select id="STATE" name="STATE" style="width: 100%;">
<option value="0">全部</option>
<option value="1">未回复</option>
<option value="2">已回复</option>
</select>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="OuterFoot">
<td width="15%" align="left" class="Caption_Td">
<input type="submit" class="button" value="查询">
<input type="reset" class="button" value="重填">
</td>
<td width="85%" align="left" class="Caption_td">
<table id="QueryResult" border="0" width="100%" cellspacing="0"
cellpadding="1"
style="behavior:url(../../common/table.htc)"
ontableload="return onQueryResultLoad();"
serviceURL="<%= request.getContextPath() + "/XmlHttpService"%>"
service="FAQClientService"
dataService="getFaqMethod"
rcService="getFaqMethodCount"
autoLoad="False"
locked="true">
<caption style="display:none;"></caption>
<tr>
<td></td>
</tr>
</table>
</td>
</tr>
<tr height="5"><td colspan="2"><img src="../../common/images/spacer.gif"></td></tr>
</table>
</div>
<div id="divMain" style="overflow: auto">
<table style="font-size: 9pt; border-bottom: #efefef 1px outset" cellspacing="0"
cellpadding="0" width="100%" border="0" class="OuterTable" id="titleList">
<tr class="OuterHead">
<td class="title_td" align="center" width="35%"><strong>标题</strong></td>
<td class="title_td" align="center" width="8%"><strong>城市名称</strong></td>
<td class="title_td" align="center" width="15%"><strong>发帖时间</strong></td>
<td class="title_td" align="center" width="10%"><strong>发帖人</strong></td>
<td class="title_td" align="center" width="7%"><strong>状态</strong></td>
<td class="title_td" align="center" width="25%"><strong>最后回复</strong></td>
</tr>
</table>
<table id="FAQList" border="0" width="100%" cellspacing="0"
cellpadding="1"
style="behavior:url(../../common/table.htc)"
DefaultClass="DefaltRow"
keyName="key"
SelectedClass="SelectedRow"
multiple="true"
onselected="return onChoosed();"
onunselected="return onUnChoosed();"
ontableload="return onContentLoad();"
ondblclick="return fn_dblClick();"
serviceURL="<%= request.getContextPath() + "/XmlHttpService"%>"
service="FAQClientService"
dataService="getFaqList"
rcService="getFaqCount"
class="InnerTable">
<tr><td class="InnerHead">没有任何记录信息</td></tr>
</table>
<table id="pageSetList" cellpadding="0" cellspacing="0" border="0" width="100%" class="OuterTable">
<tr class="OuterFoot">
<td align="right" class="foot_td" nowrap width="100%"><span id="pageSet"></span> </td>
</tr>
</table>
</div>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -