一个form表单中两个按钮点击事件以及系统提示用户

<script type="text/javascript">
function _drawback() {
document.form1.action = "shoppingAction!apply_drawback";
document.form1.submit();
}
function affirm_Receive() {


if (confirm("系统提示您!钱将打入卖家帐户,肯定?")) {
document.form1.action = "shoppingAction!affirmReceive";
document.form1.submit();
} else
window.event.returnValue = false;
}

</script> javascript

<form> java

<tr>
<td height="22" colspan="7" align="center" background=""
bgcolor="#FFFFFF" border="0" cellspacing="0" cellpadding="1">合计
: ¥ <%=(Integer.parseInt(Util.number))*6 %>
<div align="right">
<input type='hidden' name='amount' value=<%=(Integer.parseInt(Util.number))*6 %> id='amount' /> <input
name="submit2" type="submit" value="申请退款"
class="btn btn-small btn-info" onClick="_drawback()" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input name="submit2" type="submit" value="确认收货"
class="btn btn-small btn-info" onClick="affirm_Receive()" />
</div>
</td>
</tr> app

</form>
其中以上的Util类为 spa

public class Util {
/**
* 存放文件名
*/
public static String uploadFileName="";
/**
* 存放文件完整路径
*/
public static String uploadFileUrl="";
public static int userId=0;
public static String number="";
}
orm

相关文章
相关标签/搜索