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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<!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">
    <!--[if IE 6]>
    <script src="js/png.js?v={yun:}$config.cachecode{/yun}"></script>
    <script>
      DD_belatedPNG.fix('#bg');
    </script>
    <![endif]-->
    <link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
    <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" />
    <title>后台管理</title>
    <style> 
        .comy_time_text{ float: none !important; width: 90px !important; }
    </style>
</head>
 
<body> 
    <div id="houtai_div"> 
        <div class="common-form" style="width:610px;">
            <form name="myform" action="index.php?m=admin_hotjob&c=save" method="post" id="myform" enctype="multipart/form-data" onsubmit="return check_form();" target="supportiframe"> 
                   <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
                <table width="100%" class="table_form contentWrap"> 
                
                    <tr>
                        <th align="right"><div  style="width:80px;">企业名称:</div></td>
                        <td id="comname" align="left">
                            <div class="com_a_name">{yun:}$hotjob.username{/yun}<input name="username" type="hidden" value="{yun:}$hotjob.username{/yun}"></div>
                        </td>
                        <th align="right" class="comp_hotjob_line"><div style="width:80px;">会员级别:</div></td>
                        <td id="ratname" align="left">
                            {yun:}$hotjob.rating{/yun}
                            <input name="rating" type="hidden" value="{yun:}$hotjob.rating{/yun}">
                            <input name="rating_id" type="hidden" value="{yun:}$hotjob.rating_id{/yun}">
                        </td>
                    </tr>
                    
                       <tr>
                        <th align="right">服务价格:</th>
                        <td align="left">
                            <input type="text" name="service_price" id="service_price" class="comp_text_w90" size="5" value="{yun:}$hotjob.service_price{/yun}" onKeyUp="this.value=this.value.replace(/[^0-9.]/g,'')"><span class="comp_text_span">元</span>
                        </td>
                        <th align="right" class="comp_hotjob_line">显示排序:</th>
                        <td align="left">
                            <input class="comp_text_w90" id="sort" value="{yun:}$hotjob.sort{/yun}" name="sort" size="5"> <span class="comp_text_span">大前小后</span>
                        </td>
                    </tr>
                
                      <tr>
                        <th align="right">名企时间:</td>
                        <td align="left" colspan="4">
                            <input id="time" class="comy_time_text" type="text" readonly value="{yun:}$hotjob.time_start|date_format:'%Y-%m-%d'{/yun}" name="time_start"/>
                            <input type="text" name="time_end" id="time_end" class="comy_time_text" readonly value="{yun:}$hotjob.time_end|date_format:'%Y-%m-%d'{/yun}"/>
                        </td>
                    </tr>
                    
                    <tr>
                        <th align="right">企业展示LOGO:</td>
                        <td id="logo" align="left"   colspan="4">
                            
                            <div id="imgparent" class="com_in_logo {yun:}if !$hotjob.hot_pic{/yun}none{yun:}/if{/yun}">
                                <img id="imgicon" src="{yun:}$config.sy_ossurl{/yun}/{yun:}$hotjob.hot_pic{/yun}"  width="60" height="60">
                            </div> 
                            <div class="com_hot_pic_text">
                                <input type="hidden" name="defpic" id="hot_pic" value="{yun:}if $hotjob.hot_pic{/yun}{yun:}$hotjob.hot_pic{/yun}{yun:}else{/yun}{yun:}$config.sy_unit_icon{/yun}{yun:}/if{/yun}" >
                                <button type="button" class="layui-btn layui-btn-normal noupload" lay-data="{imgid: 'imgicon',parentid: 'imgparent'}">选择图片</button>
                                <input type="hidden" id="laynoupload" value="1"/>
                            </div>
                        </td>
                    </tr>
                    
                    <tr>
                        <th align="right">名企备注:</td>
                        <td id="beizhu1" name="beizhu1" align="left"  colspan="4">
                           <textarea id="beizhu" name="beizhu" rows="5" class="comp_text_textarea">{yun:}$hotjob.beizhu{/yun}</textarea>
                           <br/><span>200字以内</span>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4" align="center">
                            <input name="uid" id="com_uid" type="hidden" value="{yun:}$hotjob.uid{/yun}">
                            {yun:}if $hotjob.id{/yun}
                                 <input id="hotjob_id"  name="id" type="hidden" value="{yun:}$hotjob.id{/yun}">
                                <input class="layui-btn layui-btn-normal" name="hotup" type="submit" value="修改" id="dosubmit">  
                            {yun:}else{/yun}
                              <input class="layui-btn layui-btn-normal" name="hotad" type="submit" value="提交" id="dosubmit">
                            {yun:}/if{/yun}
                        </td>
                    </tr>
                </table>
            </form>
        </div> 
    </div>  
 
    <script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>  
    <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 src="js/show_pub.js?v={yun:}$config.cachecode{/yun}"></script> 
    <script>  
        var weburl="{yun:}$config.sy_weburl{/yun}";
        layui.use(['laydate'], function(){
            var laydate = layui.laydate
                ,$ = layui.$;
        
            laydate.render({
                elem: '#time'
            });
        
            laydate.render({
                elem: '#time_end'
            });
        });
        
        function check_form(){
            var hot_pic=$("#hot_pic").val();
            var pic=$("input[name=file]").val();
            var time = $("#time").val();
            if(time==""){ 
                parent.layer.msg('名企开始时间不能为空!', 2,8);
                return false
            }
            var time_end = $("#time_end").val();
            if(time_end == ''){
                parent.layer.msg('名企结束时间不能为空!', 2,8);
                return false
            }
            if(hot_pic=="" && pic==""){
                parent.layer.msg('企业展示LOGO不能为空!', 2, 8);
                return false
            }
             var beizhu=$("#beizhu").val();
            if(beizhu.length>200){
                parent.layer.msg('不能超过200字以内', 2, 8);
                return false
            }
        }
    
    </script>
    <script src="{yun:}$config.sy_weburl{/yun}/js/layui.upload.js?v={yun:}$config.cachecode{/yun}" type='text/javascript'></script>
</body>
</html>