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
<!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>
    <link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
    <script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
    <script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
    <script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script> 
    
    <script> 
        function checktpl(id){
            var pytoken    =    $("#pytoken").val();
            var comid    =    $("#comid").val();
            
            var msg        =    "确定使用该模板?";
            
            layer.confirm(msg,function(){ 
                
                 
                $.get("index.php?m=admin_company&c=msettpl",{id:id,comid:comid,pytoken:pytoken},function(data){
                
                     
                    var data=eval('('+data+')');
                    
                    if(data.url=='1'){
                        
                        layer.msg(data.msg, Number(data.tm), Number(data.st),function(){location.reload();});return false;
                    }else{
                        
                        layer.msg(data.msg, Number(data.tm), Number(data.st),function(){location.href=data.url;});return false;
                    }
                });
            }); 
        }
    </script>
    
    <title>后台管理</title>
    
</head>
 
<style>
    .table-list tr:hover,.table-list table tbody tr:hover{ background:none}
</style>
 
<body class="body_ifm">
    <div class="infoboxp">
    
        <div class="admin_Filter mt10"> 
            <span class="complay_top_span fl">企业模板</span>
        </div>
        
        <div class="admin_table_border">
            <div class="table-list">
                <table width="100%">
                     <tr>
                         <td style="border-bottom:none;">
                            {yun:}foreach from=$list item=style{/yun}
                             <div class="admin_company_plbox">
                                <div class="admin_companypl_left"> 
                                    <img width="300" height="160" alt="{yun:}$style.name{/yun}" src="../{yun:}$style.pic{/yun}"> 
                                </div>
                                
                                <div class="admin_companypl_right">
                                    <div class="admin_companypl_name">模板名称:{yun:}$style.name{/yun} <a href="{yun:}url m=company c=show id=$comid style=$style.url{/yun}" target="_blank">[预览]</a></div>
                                    {yun:}if $statis.comtpl==$style.url{/yun}
                                        <div class="admin_companypl_syz">使用中</div>
                                    {yun:}else{/yun}
                                        <a href="javascript:void(0);" onclick="checktpl('{yun:}$style.id{/yun}');" class="admin_companypl_sy">使用</a>
                                    {yun:}/if{/yun}
                                </div>
                            </div>
                            {yun:}/foreach{/yun}
                         </td>   
                     </tr>
                </table>
            </div>
            
            <input type="hidden" id="comid" value="{yun:}$smarty.get.comid{/yun}">
            <input type="hidden" id="pytoken" value="{yun:}$pytoken{/yun}">
        </div>
    </div>
</body>
</html>