cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
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
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>审核申请</title>
 
[#include "/business/pages/include/static.html" /]
</head>
<script type="text/javascript">
$(function() {
    $.formValidator.initConfig({formID:"myform",onError:function(msg){popupTips(msg)},onSuccess:function(){
        document.getElementById("myform").target = window.top.openDialog("3","操作",
         {},
         {"width":40,"height":40},[{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
         return true;
    }});
})
</script>
<body class="end_task_body widthauto" >
    <form action="${base}/business/pages/knowledge/knowledgeDeal/knowSp.html" method="post" id="myform">
        <input type="hidden" name="id" value="${id}" />
        <input type="hidden" name="pId" value="${RequestParameters.pId}" />
        <table id="selExecutors" class="pab_con">
            [#if groupList??&&groupList?size>0]
            [#list groupList as group]
                <tr><th>${group.name}</th><td>
                [#assign userList=group.dataList]
                    [#if userList??&&userList?size>0]
                        [#list userList as user]
                        <div class="pabitem">
                            <input name="checkbox" value="${group.id}-${user.USER_ID}" type="radio" class="pos" [#if spMap??][#if spMap.AUDITOR_ID == user.USER_ID&& spMap.ROLE_ID == group.id]checked="checked"[/#if][/#if]/><span>${user.USER_NAME}</span>&nbsp;
                        </div>
                        [/#list]
                    [/#if]
                </td></tr>
            [/#list]
            [/#if]
        </table>
        <input type="hidden" name="checkboxName" id="checkboxName" [#if spMap??]value="${spMap.AUDITOR_NAME}"[/#if] />
    </form>
</body>
<script type="text/javascript">
    function onDialogBtnClick(btnID, dialogID, config){
        if(btnID == "btnSure"){
            if($.util.isEmpty($(":radio:checked").val())){
                popupTips("请选择审核人!");
                return;
            }
            $("#myform").submit();
            /*
            var shId = $(":radio:checked").val();
            var shName = $(":radio:checked").next().text();
            window.top.document.getElementById('myiframe').contentWindow.setValues(shId,shName);
            window.top.hideDialog('choose');*/
        }
    }
    
    $("input[name='checkbox']").live('click',function(){
        $("#checkboxName").val($(this).next().text());
    });
</script>
</html>