95 lines
2.7 KiB
Plaintext
95 lines
2.7 KiB
Plaintext
|
|
@{
|
|
ViewBag.Title = "sqccbxMessage2";
|
|
}
|
|
<style>
|
|
a {
|
|
text-decoration: none;
|
|
margin: 0 15px;
|
|
color: #999;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
}
|
|
a:hover {
|
|
text-decoration: none;
|
|
color: #666;
|
|
}
|
|
</style>
|
|
<script type="text/javascript" src="@Url.Content("~/Scripts/public.js")"></script>
|
|
<script type="text/javascript">
|
|
function save(type2,name,bz,bz2) {
|
|
var type = @Request.QueryString["type"];
|
|
if(type2==1){
|
|
|
|
}
|
|
else{
|
|
type=0;
|
|
}
|
|
parent.selectedArea(type,name,bz,bz2);
|
|
}
|
|
|
|
var childD=@Html.Raw(ViewBag.area2D);
|
|
var html="";
|
|
$(function () {
|
|
for(var i in childD){
|
|
//动态常见标签 绑定click是晚期绑定 换成这种方式
|
|
if (childD[i].cy >0)
|
|
{
|
|
html+="<a href=\"#\" onclick=\"save(1,'"+childD[i].name+"',"+childD[i].bz+","+childD[i].bz2+")\">"+childD[i].name+"</a>";
|
|
}
|
|
}
|
|
var cydq = document.getElementById("cydq");
|
|
cydq.innerHTML = html;
|
|
|
|
$("#search").click(function () {
|
|
select();
|
|
})
|
|
$("#key").keydown(function (e) {
|
|
var curKey = e.which;
|
|
if (curKey == 13) {
|
|
select();
|
|
}
|
|
});
|
|
|
|
})
|
|
|
|
function select() {
|
|
html = "";
|
|
var key = $("#key").val();
|
|
for (var i in childD) {
|
|
//动态常见标签 绑定click是晚期绑定 换成这种方式
|
|
if (childD[i].name.indexOf(key) != -1 && childD[i].level != 1) {
|
|
html += "<a href=\"#\" onclick=\"save(1,'" + childD[i].name + "'," + childD[i].bz + "," + childD[i].bz2 + ")\">" + childD[i].name + "</a>";
|
|
}
|
|
}
|
|
var ssjg = document.getElementById("ssjg");
|
|
ssjg.innerHTML = html;
|
|
}
|
|
</script>
|
|
|
|
<div class="l-clear"></div>
|
|
<table class="t1" style="width:100%" id="show2">
|
|
<tr>
|
|
<td class="ltd" width="70px">查询条件</td>
|
|
<td class="rtd"><input id="key" class="l-text" /> <input id="search" readonly class="l-button" value="查询" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="ltd">常用地区</td>
|
|
<td class="rtd" id="cydq"></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="ltd">搜索结果</td>
|
|
<td class="rtd" id="ssjg"></td>
|
|
</tr>
|
|
</table>
|
|
<table class="t1" style="width:100%">
|
|
<tr>
|
|
<td class="ltd" width="70px"></td>
|
|
<td class="rtd">
|
|
@*<input type="@Request.QueryString["type"]" value="保存" class="l-button" onclick="save(1)" />*@
|
|
<input type="@Request.QueryString["type"]" readonly value="取消" class="l-button" onclick="save(0)" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|