日期:2014-05-17 浏览次数:20703 次
<body onbeforeunload="Exit()">
function Exit()
{
if (event.clientX > document.body.clientWidth && event.clientY < 0||event.altkey){
window.opener.location.reload();
}
}
<script>
function back() {
window.close();
window.opener.location.reload();
//window.opener.location.href=window.opener.location.href;
}
function Exit()
{
if (event.clientX > document.body.clientWidth && event.clientY < 0||event.altkey){
window.opener.location.reload();
}
}
</script>
<%
String appid = CString.getAttribute(request, "appid");
String appname = request.getParameter("appname");
String memo = request.getParameter("memo");
if ("true".equals(request.getParameter("operate"))) {
Connection con1 = null;
Statement sm = null;
DBPoolConnection DBpc = null;
try {
String sql = "update appinfo set appname='" + appname
+ "',memo='" + memo + "' where appid='" + appid
+ "'";
DBpc = DBPoolConnection.getInstance();
con1 = DBpc.getConnection();
sm = con1.createStatement();
sm.executeUpdate(sql);
} catch (Exception e) {
e.printStackTrace();
} finally {
if (sm != null) {
try {
sm.close();
} catch (SQLException e) {
}
}
if (con1 != null) {
try {
con1.close();
} catch (SQLException e) {
}
}
}
}
%>
<body onbeforeunload="Exit()">
<form name="form1" action="editapp.jsp" method=post>
<fieldset>
<legend>
<b>编辑APP</b>
</legend>
<table border="0"
style="border-collapse: collapse; margin-left: 10px;"
bordercolor="#808080" cellpadding="0" width="100%">
<tr>
<td>
</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td>
AppID:
</td>
<td>
<input class="txtcss" name="appid"
value="<%=CString.isNull(appid)%>" readonly type="text">
<font color="#FF0000">*</font>
</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td>
App名称:
</td>
<td>
<input class="txtcss" name="appname" value=