<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
<html>
|
<head>
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
[@formui/]
|
<title>equipment</title>
|
|
<script type="text/javascript">
|
$(document).ready(function() {
|
|
$.formValidator.initConfig({formID:"myform",onError:function(msg){alert(msg)},onSuccess:function(){
|
|
if (!confirm('确定提交表单?')){
|
return false;
|
}
|
document.getElementById("myform").target = window.top.openDialog(101,30,30,'操作提示:');
|
return true;
|
}});
|
|
$("#deal_note").formValidator({empty:false,onShow:"请输入处理意见"}).inputValidator({min:1,max:2000,onError:"处理意见不能为空"});
|
});
|
|
function onGoBackClick(radio){
|
if(radio.checked){
|
$("#backDiv").show();
|
} else {
|
$("#backDiv").hide();
|
}
|
}
|
|
function onSuccess(){
|
$("#backDiv").hide();
|
}
|
|
function onFailure(){
|
$("#backDiv").hide();
|
}
|
|
function _closeWin(){
|
window.top.closeDialog(100);
|
}
|
|
function _onFormSubmit(){
|
document.getElementById("btnOK").click();
|
}
|
</script>
|
|
</head>
|
|
<body>
|
<form action="" method="post" id="myform" name="myform">
|
<div>
|
<table align="center" width="98%" class="table_form contentWrap" border="0">
|
<tr>
|
<th align="right">处理结果:</th>
|
<td>
|
<input type="radio" name="deal_result" value="1" checked onclick="return onSuccess(this);">通过,流程继续
|
<input type="radio" name="deal_result" value="2" onclick="return onFailure(this);">不通过,流程结束
|
[#if IS_BACK=="1"]
|
<input type="radio" name="deal_result" value="3" onclick="return onGoBackClick(this);" /> 驳回修改
|
[/#if]
|
</td>
|
</tr>
|
[#if IS_BACK=="1"]
|
<tr id="backDiv" style="display:none;">
|
<th align="right" >可驳回环节:</th>
|
<td>
|
[#list BACK_NODE_LIST as d]
|
<input type="radio" name="back_node" value="${d.ID}" ${K_IfTrue(d_index==0,'checked','')} />${d.NODENAME}
|
[/#list]
|
</td>
|
</tr>
|
[/#if]
|
<tr>
|
<th align="right">处理意见:</th>
|
<td><textarea name="deal_note" id="deal_note" style="width:60%;" cols="45" rows="4" class="input-text"></textarea></td>
|
</tr>
|
</table>
|
</div>
|
|
<div align="center">
|
<input type="submit" id="btnOK" value="提交" style="display:none;"/>
|
</div>
|
|
</form>
|
</body>
|
</html>
|