first commit
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>项目信息公开</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>txt</OutType>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="3601" compatibleVersion="" />
|
||||
<LabelTemplate><![CDATA[ <div class="search-con">
|
||||
<select id="searchtype" onchange="setsearchItem()">
|
||||
<option value="1" selected="selected">按项目查询</option><option value="2">按企业查询</option><option value="3">按从业人员查询</option>
|
||||
</select>
|
||||
<label id="searchitem1">项目编码</label><input id="searchkey1" type="text" class="inputtext" />
|
||||
<label id="searchitem2">项目名称</label><input id="searchkey2" type="text" class="inputname" />
|
||||
<input type="image" id="searchbutton" src="{PE.SiteConfig.SkinPath/}images/gc/gc_se_btn.png" width="60" height="20" />
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
function setsearchItem() {
|
||||
if ($("#searchtype").val() == 1) {
|
||||
$("#searchitem1").html("项目编码");
|
||||
$("#searchitem2").html("项目名称");
|
||||
}
|
||||
else if ($("#searchtype").val() == 2) {
|
||||
$("#searchitem1").html("工商注册号");
|
||||
$("#searchitem2").html("企业名称");
|
||||
}
|
||||
else if ($("#searchtype").val() == 3) {
|
||||
$("#searchitem1").html("证件号");
|
||||
$("#searchitem2").html("姓名");
|
||||
}
|
||||
}
|
||||
|
||||
$("#searchbutton").click(function (event) {
|
||||
var searchkey1 = $("#searchkey1").val();
|
||||
var searchkey2 = $("#searchkey2").val();
|
||||
var pram;
|
||||
var url;
|
||||
if ($("#searchtype").val() == 1) {
|
||||
url = "SearchProject.aspx?projectnum=" + encodeURI(searchkey1) + "&projectname=" + encodeURI(searchkey2);
|
||||
}
|
||||
else if ($("#searchtype").val() == 2) {
|
||||
url = "SearchEnterprise.aspx?licenseregnum=" + encodeURI(searchkey1) + "&unitname=" + encodeURI(searchkey2);
|
||||
}
|
||||
else if ($("#searchtype").val() == 3) {
|
||||
url = "SearchPerson.aspx?CertificateNum=" + encodeURI(searchkey1) + "&Name=" + encodeURI(searchkey2);
|
||||
}
|
||||
window.location.href = url;
|
||||
});
|
||||
</script>
|
||||
]]></LabelTemplate>
|
||||
</root>
|
||||
Reference in New Issue
Block a user