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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<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;margin-top: 10px;">
                <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" style="border-spacing: 5px 16px;">
 
                        <tr>
                            <th align="right">企业名称:</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>
 
                        </tr>
                        <tr>
                            <th align="right">会员级别:</th>
                            <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">服务时间:</td>
                            <td align="left" colspan="4">
                                <div class="layui-input-inline">
                                    <input id="time" class="tty_input_tc t_w160" type="text" readonly value="{yun:}$hotjob.time_start|date_format:'%Y-%m-%d'{/yun}" name="time_start" />
                                    <i class="t_tc_icon_time"></i>
                                </div>
                                <div class="layui-input-inline">
                                    <input type="text" name="time_end" id="time_end" class="tty_input_tc t_w160" readonly value="{yun:}$hotjob.time_end|date_format:'%Y-%m-%d'{/yun}" />
                                    <i class="t_tc_icon_time"></i>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <th align="right">服务价格:</th>
                            <td align="left">
                                <input type="text" name="service_price" id="service_price" class="tty_input_tc t_w250" size="5" value="{yun:}$hotjob.service_price{/yun}"
                                 onKeyUp="this.value=this.value.replace(/[^0-9.]/g,'')">
                                元
                            </td>
 
                        </tr>
                        <tr>
                            <th align="right">显示排序:</th>
                            <td align="left">
                                <input class="tty_input_tc t_w250" id="sort" value="{yun:}$hotjob.sort{/yun}" name="sort" size="5"> 
                                大前小后
                            </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_n{/yun}none{yun:}/if{/yun}">
                                    <img id="imgicon" src="{yun:}$config.sy_ossurl{/yun}/{yun:}$hotjob.hot_pic_n{/yun}" width="60" height="60" onerror="this.src='images/pic_img.jpg?v={yun:}$config.cachecode{/yun}'">
                                </div>
                                <div class="com_hot_pic_text">
                                    <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" class="t_fl">名企备注:</td>
                            <td id="beizhu1" name="beizhu1" align="left" colspan="4">
                                <textarea style="width: 400px;" id="beizhu" name="beizhu" class="comp_text_textarea" placeholder="200字以内">{yun:}$hotjob.beizhu{/yun}</textarea>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4" align="center" class="t_tanc_footer_td">
                                <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="t_tanc_btn" name="hotup" type="submit" value="修改" id="dosubmit">
                                {yun:}else{/yun}
                                <input class="t_tanc_btn" 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
                }
                loadlayer();
            }
        </script>
        <script src="{yun:}$config.sy_weburl{/yun}/js/layui.upload.js?v={yun:}$config.cachecode{/yun}" type='text/javascript'></script>
    </body>
</html>