Html转化为DWR层

<%@ page language="java" contentType="text/html; charset=GBK" pageEncoding="GBK"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title></title>
<link href="/kangaroo/admin/div/css/confirmdialog.css" rel="stylesheet" type="text/css">
<script language="javascript" type="text/javascript" src="/kangaroo/admin/div/js/prototype.js"></script>
<script>
    function init()
    {       
        $('staids').value = window.dialogArguments.staids;           
        $('msg').innerHTML = window.dialogArguments.message;       
        document.title = window.dialogArguments.titleText;       
    }
   
   
</script>
</head>
<base target="_self">
<body onLoad="init();">
  <form action="/kangaroo/adminstation/adminstation!delStation.dhtml" method="post" name="form1">
    <input type="hidden" name="staIds"/>
   
    <table width="100%" border="0" align="center">
      <tr>
        <td colspan="2" align=left id = "tdMsg"><span id="msg" class="msg"></span></td>
      </tr>
       <tr>
        <td align="right"><input name="ok" type="submit" value="确定"></td>
        <td  align="left"><input name="cancel" type="button" value="取消" onClick="window.close();" ></td>
      </tr>
    </table>
  </form>
</body>
</html>
----------DWR层------
<%@ page language="java" contentType="text/html; charset=GBK" pageEncoding="GBK"%>
function init()
{       
    top.city2_map.document.getElementById('staids').value = window.staids;           
    top.city2_map.document.getElementById('msg').innerHTML = window.message;       
    document.title = window.titleText;       
}   

var station_str='<form action="/kangaroo/adminstation/adminstation!delStation.dhtml" method="post" name="form1">'
+'    <input type="hidden" id="staids" name="staids" value="'+window.staids+'"/>'
+'    <table width="100%" border="0" align="center">'
+'      <tr>'
+'        <td colspan="2" align=left id = "tdMsg"><span id="msg" class="msg">'+window.message+'</span></td>'
+'      </tr>'
+'       <tr>'
+'        <td align="right"><input name="ok" type="button" value="确定" οnclick="top.city2_map.HT_frame.subdelstation();"></td>'
+"        <td  align='left'><input name='cancel' type='button' value='取消' onClick='javascript:top.city2_map.city2_map.closeOrDelHot(/"delstationdiv/");' ></td>"
+'      </tr>'
+'    </table>'
+'  </form>'
    var ex=(parseInt(top.city2_map.document.body.clientWidth)-400)/2;
    var ey=(parseInt(top.city2_map.document.body.clientHeight)-350)/2;
    top.city2_map.city2_map.showHTGNdiv2(ex,ey,station_str,'delstationdiv',400,350);
      init();

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值