david-PC\david
2018-06-12 f240ac3ccd37c541cab2c21cfc433d3510999a3c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>流程创建</title>
        <link href="../../../css/common.css" rel="stylesheet" type="text/css">
        <link href="../../../css/control.css" rel="stylesheet" type="text/css"/>
        
        <script src="../../../js/jquery-1.7.2.min.js"></script>
        <script src="../../../js/foundation-2.0.js"></script>
        <script src="../../../js/control.js"></script>    
        
    
        <script type="text/javascript">
               function commit(isCommit){
                   alert(isCommit);
                   if(isCommit){
                       var name = $("#name").val();
                       var key = $("#key").val();
                       var description = $("#description").val();
                       var data = {
                           name : name,
                           key : key,
                           desp : description
                           
                       };
                       Win.close(data);
                       
               
                       
                   }else{
                       Win.close();
                   }
                       $("#name").val("");
                       $("#key").val("");
                       $("#description").val("");
               }
               
               $(document).ready(function(){
                   
               });
        </script>        
    </head>
  
<body>
 
       
        <table>
            <tbody><tr>
                <td>名称:</td>
                <td>
                    <input id="name" name="name" type="text">
                </td>
            </tr>
            <tr>
                <td>KEY:</td>
                <td>
                    <input id="key" name="key" type="text">
                </td>
            </tr>
            <tr>
                <td>描述:</td>
                <td>
                    <textarea id="description" name="description" style="width:300px;height: 50px;"></textarea>
                </td>
            </tr>
           </tbody>
        </table>
      <button onclick="commit(true)">确定</button>
      <button onclick="commit(false)" >取消</button>
</body>
</html>