层的使用
来源:互联网 发布:热门推荐算法 编辑:程序博客网 时间:2024/06/09 20:17
<%--处理中提示"请稍后"--%>
<div id="divMessage" style="display: none">
<span id="SpanMsg">请稍后...</span>
</div>
<%-- 编辑--%>
<div id="divEdit" style="display: none">
<table border="0" cellpadding="0" cellspacing="0" class="formtable" style="margin-top: 5px;
margin-bottom: 80px;">
<tbody>
<tr>
<input type ="hidden" id="hidId"/>
<td class="label1" style="width: 150px;">
地区:
</td>
<td class="field">
<input type="text" id="txtCity" readonly="true" />
</td>
</tr>
<tr>
<td class="label1" style="width: 15%">
最小值:
</td>
<td class="field" style="width: 35%">
<input type="text" id="txtMinValue" />
</td>
</tr>
<tr>
<td class="label1">
最大值:
</td>
<td class="field">
<input type="text" id="txtMaxValue" />
</td>
</tr>
<tr>
<td class="label1">
比例:
</td>
<td class="field">
<input type="text" id="txtPromotion" />
</td>
</tr>
<tr>
<td colspan="2" style="text-align: center">
<input type="button" class="btn" id="btnSubmit" value="确定" onclick="submit(this)" />
<input type="button" class="btn" id="btnClose" value="取消" onclick="closeDialog()" />
</td>
</tr>
</tbody>
</table>
</div>
<%--Confirm提示--%>
<div id="divConfirm" style="display: none">
<input type="hidden" id="hdnParam1" />
<input type="hidden" id="hdnParam2" />
<span id="spConfirm"></span>
<div align="center">
<input type="button" class="btn" onclick="Confirm(true);" value="确定" />
<input type="button" class="btn" onclick="Confirm(false);" value="关闭" />
</div>
</div>
<%--层的处理--%>
<script type="text/javascript">
//打开处理中消息框
function OpenMessage() {
$("#divMessage").dialog({ title: '信息', width: 200, height: 100, modal: true, draggable: true, resizable: false });
$("#SpanMsg").html('');
$("#SpanMsg").append("请稍后...");
}
//消息框显示信息,并自动消失
function AlertMessage(Msg, isTimeOut, time) {
$("#divMessage").dialog({ title: '信息', width: 200, height: 100, modal: true, draggable: true, resizable: false });
$("#SpanMsg").html('');
$("#SpanMsg").append(Msg);
if (isTimeOut)
window.setTimeout(" $(\"#divMessage\").dialog(\"close\");", time);
}
//关闭弹出层
function CloseMessage() {
$("#divMessage").dialog("close");
}
//打开Confirm提示框
function OpenConfirm(Msg, param1, param2) {
$("#divConfirm").dialog({ title: '信息', width: 260, height: 120, modal: true, draggable: true, resizable: false });
$("#spConfirm").html('');
$("#spConfirm").html(Msg);
var hdnParam1 = document.getElementById("hdnParam1");
var hdnParam2 = document.getElementById("hdnParam2");
hdnParam1.value = param1;
hdnParam2.value = param2;
}
//关闭弹出提示框
function CloseConfirm() {
$("#divConfirm").dialog("close");
}
//打开编辑框
function openEdit(id,city,minValue,maxValue,promotion)
{
$("#hidId").attr("value",id);
$("#txtCity").attr("value",city );
$("#txtMinValue").attr("value",minValue );
$("#txtMaxValue").attr("value",maxValue );
$("#txtPromotion").attr("value",promotion );
$("#divEdit").dialog({ title: '编辑比例管理', width: 500, height: 300, modal: true, draggable: true, resizable: false });
}
function closeDialog()
{
$("#divEdit").dialog("close");
}
function submit(obj)
{
var id= $("#hidId").attr("value");
var minValue= $("#txtMinValue").attr("value");
var maxValue= $("#txtMaxValue").attr("value");
var promotion= $("#txtPromotion").attr("value");
if(minValue=="")
{
alert ("最小值不能为空!");
return ;
}
if(maxValue=="")
{
alert ("最大值不能为空!");
return ;
}
if(promotion=="")
{
alert ("比例不能为空!");
return ;
}
$.ajax({
type: "post",
dataType: "html",
url: "/b2c/handlers/Financial/BatterySettlementSettinglistEdit.ashx",
data: { "id": id,"minValue":minValue,"maxValue":maxValue ,"promotion":promotion},
success: function(msg) {
if (msg == "ok") {
alert("保存成功");
window.location=location.href;
}
else
alert ("修改失败");
},
error: function(msg) {
alert ("请求异常");
}
});
}
- 层使用的示例
- DIV 层的使用
- CCLayerColor层的使用
- 层的使用
- 层的使用
- Photoshop使用层的技巧
- Photoshop使用层的技巧
- Windows 层窗口的使用
- 关于MTK层的使用
- MFC路径层的使用
- JavaScript弹出层的使用
- 弹出层layer的使用
- 层的使用:页面载入时提示消息层
- 层的使用:页面载入时提示消息层
- 在驱动层直接使用应用层的空间
- 图层的基本使用 自定义图层 图层属性
- Android开发,透明指示层、引导层、功能说明层的分享及使用
- Expresso持久层的深入使用研究
- 的分个豆腐干的人特二套二
- VS2010与Qt5.1.0集成(非源码方式)
- Android实战: 如何实现 图片分享菜单加入指定程序
- 添加账务账号的部分校验
- xcode的images.xcassets
- 层的使用
- SSH+EASYUI 快速开发应用的平台
- server 2008 页面拼写的额HTML不能执行事件
- js判断身份证是否合法
- java中的Date、Calendar的区别和联系
- 大数据时代互联网创业者的蓝海战略思维
- textComponent
- Android加速球、360加速球
- 为什么KeyEvent会先被PhoneWindowManager.java(Ics 4.03) 文件的 interceptKeyBeforeDispatching()处理;