initial commit
This commit is contained in:
157
gloam/WebRoot/process/processReset.html
Normal file
157
gloam/WebRoot/process/processReset.html
Normal file
@@ -0,0 +1,157 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
#include("/common/header.html")
|
||||
<style type="text/css">
|
||||
td{
|
||||
text-align: center;
|
||||
}
|
||||
img{
|
||||
width:9%;
|
||||
height: 9%;
|
||||
}
|
||||
</style>
|
||||
<link id="bootstrap-style" href="/css/chart.css" rel="stylesheet">
|
||||
<script type="text/javascript">
|
||||
function resetConfirm(procId){
|
||||
/* var f=window.confirm("i18n_processReset.text.confirm_n81i");
|
||||
if(f){
|
||||
var nodeId=$("#nodeId_"+procId).val();
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/process/resetProcess",
|
||||
datatype:"json",
|
||||
data: {'procId':procId,'nodeId':nodeId},
|
||||
success: function(msg){
|
||||
alert(msg.result);
|
||||
}
|
||||
});
|
||||
} */
|
||||
top.$("#dialog").text("i18n_processReset.text.confirm_n81i");
|
||||
top.$("#dialog").dialog({
|
||||
dialogClass: "no-close",
|
||||
modal:true,
|
||||
buttons: {
|
||||
Yes: function() {
|
||||
top.$("#dialog").dialog("close");
|
||||
var loading = top.layer.msg("<font color='black'> loading...</font>", {shade:0.1,icon:16,time:999000});
|
||||
var nodeId = $("#nodeId_"+procId).val();
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/process/resetProcess",
|
||||
datatype:"json",
|
||||
data: {'procId':procId, 'nodeId':nodeId},
|
||||
success: function(msg){
|
||||
top.layer.close(loading);
|
||||
top.myAlert(msg.result);
|
||||
},
|
||||
error: function(msg) {
|
||||
top.layer.close(loading);
|
||||
top.myAlert("i18n_reset.failed_n81i");
|
||||
}
|
||||
});
|
||||
|
||||
},
|
||||
No: function() {
|
||||
top.$("#dialog").dialog("close");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function myup(obj) {
|
||||
$(obj).attr("class", "my-button-up");
|
||||
}
|
||||
|
||||
function mydown(obj) {
|
||||
$(obj).attr("class", "my-button-down");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body class="bcColor noScroll-y aC">
|
||||
<!--中间部分右边开始-->
|
||||
<div class="container-fluid-full">
|
||||
<div class="row-fluid">
|
||||
<noscript>
|
||||
<div class="alert alert-block span10">
|
||||
<h4 class="alert-heading">
|
||||
Warning!
|
||||
</h4>
|
||||
<p>
|
||||
You need to have
|
||||
<a href="http://en.wikipedia.org/wiki/JavaScript"
|
||||
target="_blank">JavaScript</a> enabled to use this site.
|
||||
</p>
|
||||
</div>
|
||||
</noscript>
|
||||
|
||||
<!-- start: Content -->
|
||||
<div id="content" class="span10">
|
||||
<div class="row-fluid " style="margin-top:10px">
|
||||
<div class="box span12">
|
||||
<div class="box-header" data-original-title>
|
||||
<h2>
|
||||
<i class=" halflings-icon align-justify"></i><span
|
||||
class="break"></span>
|
||||
</h2>
|
||||
</div>
|
||||
<div class="box-content lianxiang">
|
||||
<table class="table table-striped table-bordered" id="info" >
|
||||
<thead>
|
||||
<tr>
|
||||
<th style='text-align:center;vertical-align: middle;'>
|
||||
<span>i18n_procInfoList.text.bordName_n81i</span>
|
||||
</th>
|
||||
<th style='text-align:center;vertical-align: middle;'>
|
||||
<span>i18n_procInfoList.text.procName_n81i</span>
|
||||
</th>
|
||||
<th style='text-align:center;vertical-align: middle;'>
|
||||
<span>i18n_middle1.text.operation_n81i</span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
#if(result!=null && result.size()>0)
|
||||
#set(boardCard="")
|
||||
#for(key:result.keySet())
|
||||
#if(result.get(key).size()!=0)
|
||||
<tr class="odd gradeX" >
|
||||
<td class="logmessage" rowspan=#(result.get(key).size()+1) >
|
||||
<span>#(key)</span>
|
||||
</td>
|
||||
</tr>
|
||||
#end
|
||||
#set(boardCard=key)
|
||||
|
||||
#for(proc:result.get(boardCard))
|
||||
<tr class="odd gradeX">
|
||||
<td class="logmessage">
|
||||
<span>#(proc.name)</span>
|
||||
</td>
|
||||
<td class="logmessage">
|
||||
<input type="hidden" value="#(proc.nodeId)" id="nodeId_#(proc.procId)"/>
|
||||
#--<span><button onclick="resetConfirm(this.value)" value="#(proc.procId)">i18n_actsi.button.reset_n81i</button></span>--#
|
||||
<div class="my-button-up sub" onmousedown="mydown(this)" onmouseup="myup(this)" onclick="resetConfirm('#(proc.procId)')">i18n_actsi.button.reset_n81i</div>
|
||||
</td>
|
||||
</tr>
|
||||
#end
|
||||
#end
|
||||
#else
|
||||
<tr>
|
||||
<td colspan="7" height="35"
|
||||
align="center">
|
||||
i18n_ctsil.message.noRecord_n81i
|
||||
</td>
|
||||
</tr>
|
||||
#end
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user