chengkun
2025-04-18 1bb985f32f2efe0f9dd69f3cf29a1c809b1cf96d
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!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">
    <link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
    <link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
    <link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
    <script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
    <script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
    <link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet">
    <script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
    <script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
 
    <title>后台管理</title>
</head>
<body class="body_ifm">
    <div class="infoboxp">
        <div class="tty-tishi_top">
        <div class="tabs_info">
            <ul>
                <li class="curr"><a href="index.php?m=admin_trainset">培训设置</a></span>
                <li><a href="index.php?m=admin_trainset&c=logo">头像设置</a></span>
            </ul>
        </div>
 
        <div class="clear"></div>
 
        <div id="subboxdiv" style="width:100%;height:100%;display:none;position:absolute;"></div>
 
            <div class="tag_box">
                <div>
                    <form class="layui-form">
                        <table width="100%" class="table_form">
                            <tr>
                                <th width="150" style="float: left;line-height: 18px;">审核信息:</th>
                                <td>
                                    <div class="layui-input-block" style="width: 400px;">
                                        <div class="layui-input-inline" style="margin:0 20px 14px 0;">
                                            <input name="px_status" title="培训会员" type="checkbox" lay-skin="primary" {yun:}if $config.px_status==0{/yun}checked{yun:}/if{/yun}/>
                                        </div>
 
                                        <div class="layui-input-inline" style="margin:0 20px 14px 0;">
                                            <input name="px_cert_status" title="培训认证" type="checkbox" lay-skin="primary" {yun:}if $config.px_cert_status==1{/yun}checked{yun:}/if{/yun}/>
                                        </div>
 
                                        <div class="layui-input-inline" style="margin:0 20px 14px 0;">
                                            <input name="px_logo_status" title="培训LOGO" type="checkbox" lay-skin="primary" {yun:}if $config.px_logo_status==1{/yun}checked{yun:}/if{/yun}/>
                                        </div>
                                        <div class="layui-input-inline" style="margin:0 20px 14px 0;">
                                            <input name="px_show_status" title="机构环境" type="checkbox" lay-skin="primary" {yun:}if $config.px_show_status==1{/yun}checked{yun:}/if{/yun}/>
                                        </div>
                                        
                                        <div class="layui-input-inline" style="margin:0 20px 14px 0;">
                                            <input name="px_banner_status" title="机构横幅" type="checkbox" lay-skin="primary" {yun:}if $config.px_banner_status==1{/yun}checked{yun:}/if{/yun}/>
                                        </div>
                                        
                                    </div>
                                </td>
                            </tr>
 
                            <tr>
                                <th width="150">强制操作:</th>
                                <td>
                                    <div class="layui-input-inline" style="width: 550px;">
                                        <input name="px_enforce_info" title="完善信息" type="checkbox" lay-skin="primary" {yun:}if $config.px_enforce_info==1{/yun}checked{yun:}/if{/yun}/>
                                    </div>
                                </td>
                            </tr>
                             
                            <tr>
                                <th style="border-bottom:none;">&nbsp;</th>
                                <td align="left" style="border-bottom:none;">
                                    <input type="hidden" name="pytoken" id='pytoken' value="{yun:}$pytoken{/yun}">
                                    <input class="tty_sub" id="config" type="button" name="config" value="提交" />&nbsp;&nbsp;
                                    <input class="tty_cz" type="reset" value="重置" />
                                </td>
                            </tr>
                        </table>
                    </form>
                </div>
            </div>
        </div>
 
        <script type="text/javascript">
            layui.use(['layer', 'form'], function() {
                var layer = layui.layer,
                    form = layui.form,
                    $ = layui.$;
            });
 
            $(function() {
                $("#config").click(function() {
                    loadlayer();
                    $.post("index.php?m=admin_trainset&c=config", {
                        config: $("#config").val(),
 
                        px_status: $("input[name=px_status]").is(":checked") ? 0 : 1,
                        px_cert_status: $("input[name=px_cert_status]").is(":checked") ? 1 : 0,
                        px_logo_status: $("input[name=px_logo_status]").is(":checked") ? 1 : 0,
                        px_show_status: $("input[name=px_show_status]").is(":checked") ? 1 : 0,
                        px_banner_status: $("input[name=px_banner_status]").is(":checked") ? 1 : 0,
                        px_enforce_info: $("input[name=px_enforce_info]").is(":checked") ? 1 : 0,
                        
                        pytoken: $("#pytoken").val()
                    }, function(data, textStatus) {
                        parent.layer.closeAll('loading');
                        config_msg(data);
                    });
                });
            })
        </script>
    </div>
</body>
</html>