Files
2026-08-31 16:22:00 +08:00

169 lines
4.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>网上信访</LabelType>
<LabelIntro>信访查询结果标签</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<attributes>
<name>Name</name>
<datatype>supersql</datatype>
<default>
</default>
<intro>用户名</intro>
</attributes>
<attributes>
<name>IndexNumber</name>
<datatype>supersql</datatype>
<default>
</default>
<intro>查询码</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString><![CDATA[SELECT TOP 1 * FROM PE_GV_Letters WHERE Name = '@Name' AND IndexNumber = '@IndexNumber' ORDER BY LetterId]]></LabelSqlString>
<LabelTemplate>
<![CDATA[<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
<xsl:param name="Name" />
<xsl:param name="IndexNumber" />
<xsl:output method="html" />
<xsl:template match="/">
<div class="govDir_box">
<dl>
<dt> <a class="titlechg" href="#"> <span>信息查询结果</span> </a> </dt>
</dl>
</div>
<xsl:choose>
<xsl:when test="count(/NewDataSet/Table) = 0">
<div class="onlinepl_result">
<table width="100%" border="0" cellpadding="2" cellspacing="1">
<tr>
<td>查询码或者姓名错误,请重新查询!</td>
</tr>
</table>
</div>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="/NewDataSet/Table">
<div class="onlinepl_result">
<table width="100%" border="0" cellpadding="2" cellspacing="1">
<tr>
<td class="tdlab">编号:</td>
<td>
<xsl:value-of select="IndexNumber"/>
</td>
<td class="tdlab">提交人:</td>
<td>
<xsl:value-of select="Name"/>
</td>
</tr>
<tr>
<td class="tdlab">当前状态:</td>
<td colspan="3">
<strong>
<xsl:choose>
<xsl:when test="Status = -1">
待审核
</xsl:when>
<xsl:when test="Status = 0">
已审核,待处理
</xsl:when>
<xsl:when test="Status = 1">
已审核,已转交
</xsl:when>
<xsl:when test="Status = 2">
已审核,处理中
</xsl:when>
<xsl:when test="Status = 3">
已审核,处理完
</xsl:when>
<xsl:otherwise>
未知
</xsl:otherwise>
</xsl:choose>
</strong>
</td>
</tr>
<tr>
<td class="tdlab">内容:</td>
<td colspan="3">
<xsl:value-of disable-output-escaping="yes" select="pe:FiltText(Content)"/>
</td>
</tr>
<xsl:if test="FeedBack != ''">
<tr>
<td class="tdlab">评价:</td>
<td colspan="3">
<xsl:value-of disable-output-escaping="yes" select="FeedBack"/>
</td>
</tr>
</xsl:if>
</table>
{PE.Label id="信访信件处理记录" letterId="<xsl:value-of select="LetterId"/>" /}
<xsl:choose>
<xsl:when test="FeedBack != ''">
</xsl:when>
<xsl:otherwise>
<div id="div_fb" class="onlinepl_feedback">
<dl>
<dt>信件评价:</dt>
<dd>
<p>
<div>
<input id="RadlFeedBack_0" name="RadlFeedBack" type="radio" value="满意" />
<label for="RadlFeedBack_0">满意</label>
<input id="RadlFeedBack_1" name="RadlFeedBack" type="radio" value="不满意" />
<label for="RadlFeedBack_1">不满意</label>
</div>
<div class="App_bottom" style="text-align:left;">
<a href="javascript:void(0)" onclick="AddFeedBack()">提交</a>
</div>
</p>
</dd>
</dl>
</div>
</xsl:otherwise>
</xsl:choose>
</div>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
<div class="App_bottom">
<a href="javascript:history.back();">返回</a>
</div>
<script type="text/javascript">
function AddFeedBack(){
jQuery(document).ready(function() {
var name="<xsl:value-of select="$Name"/>";
var number="<xsl:value-of select="$IndexNumber"/>";
var content=jQuery("#div_fb input[type='radio']:checked").val();
if(!content){
alert("请选择评价内容!");
return false;
}
var Xml = "&lt;?xml version='1.0' encoding='utf-8'?>&lt;root>&lt;type>updatefeedback&lt;/type>&lt;name>"+name+"&lt;/name>&lt;indexNumber>"+number+"&lt;/indexNumber>&lt;feedBack>"+content+"&lt;/feedBack>&lt;/root>";
jQuery.post('{PE.SiteConfig.AjaxSitepath/}Ajax.aspx?HandlerName=GovAjaxHandler', Xml, function(s) {
switch (jQuery("result", s).text()) {
case "true":
alert("评价提交成功");
jQuery("#div_fb").hide();
break;
case "false":
alert("评价提交失败!");
default:
break;
}
});
});
}
</script>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<Version officialVersion="" modifiedVersions="4004" compatibleVersion="" />
</root>