|
|
1
|
+<include file="public@header"/>
|
|
|
2
|
+<style type="text/css">
|
|
|
3
|
+ .pic-list li {
|
|
|
4
|
+ margin-bottom: 5px;
|
|
|
5
|
+ }
|
|
|
6
|
+</style>
|
|
|
7
|
+<script type="text/html" id="photos-item-tpl">
|
|
|
8
|
+ <li id="saved-image{id}">
|
|
|
9
|
+ <input id="photo-{id}" type="hidden" name="photo_urls[]" value="{filepath}">
|
|
|
10
|
+ <input class="form-control" id="photo-{id}-name" type="text" name="photo_names[]" value="{name}"
|
|
|
11
|
+ style="width: 200px;" title="图片名称">
|
|
|
12
|
+ <img id="photo-{id}-preview" src="{url}" style="height:36px;width: 36px;"
|
|
|
13
|
+ onclick="imagePreviewDialog(this.src);">
|
|
|
14
|
+ <a href="javascript:uploadOneImage('图片上传','#photo-{id}');">替换</a>
|
|
|
15
|
+ <a href="javascript:(function(){$('#saved-image{id}').remove();})();">移除</a>
|
|
|
16
|
+ </li>
|
|
|
17
|
+</script>
|
|
|
18
|
+<script type="text/html" id="files-item-tpl">
|
|
|
19
|
+ <li id="saved-file{id}">
|
|
|
20
|
+ <input id="file-{id}" type="hidden" name="file_urls[]" value="{filepath}">
|
|
|
21
|
+ <input class="form-control" id="file-{id}-name" type="text" name="file_names[]" value="{name}"
|
|
|
22
|
+ style="width: 200px;" title="文件名称">
|
|
|
23
|
+ <a id="file-{id}-preview" href="{preview_url}" target="_blank">下载</a>
|
|
|
24
|
+ <a href="javascript:uploadOne('图片上传','#file-{id}','file');">替换</a>
|
|
|
25
|
+ <a href="javascript:(function(){$('#saved-file{id}').remove();})();">移除</a>
|
|
|
26
|
+ </li>
|
|
|
27
|
+</script>
|
|
|
28
|
+</head>
|
|
|
29
|
+<body>
|
|
|
30
|
+<div class="wrap js-check-wrap">
|
|
|
31
|
+ <ul class="nav nav-tabs">
|
|
|
32
|
+ <li><a href="{:url('AdminTeam/index')}">全部</a></li>
|
|
|
33
|
+ <li class="active"><a href="{:url('AdminTeam/add')}">添加</a></li>
|
|
|
34
|
+ </ul>
|
|
|
35
|
+ <form action="{:url('AdminTeam/addPost')}" method="post" class="form-horizontal js-ajax-form margin-top-20">
|
|
|
36
|
+ <div class="row">
|
|
|
37
|
+ <div class="col-md-9">
|
|
|
38
|
+ <table class="table table-bordered">
|
|
|
39
|
+ <tr>
|
|
|
40
|
+ <th width="100">姓名<span class="form-required">*</span></th>
|
|
|
41
|
+ <td>
|
|
|
42
|
+ <input class="form-control" type="text" name="name" required value=""/>
|
|
|
43
|
+ </td>
|
|
|
44
|
+ </tr>
|
|
|
45
|
+ <tr>
|
|
|
46
|
+ <th width="100">职务<span class="form-required">*</span></th>
|
|
|
47
|
+ <td>
|
|
|
48
|
+ <input class="form-control" type="text" name="post" required value=""/>
|
|
|
49
|
+ </td>
|
|
|
50
|
+ </tr>
|
|
|
51
|
+ <tr>
|
|
|
52
|
+ <th width="100">座机<span class="form-required">*</span></th>
|
|
|
53
|
+ <td>
|
|
|
54
|
+ <input class="form-control" type="text" name="phone" required value=""/>
|
|
|
55
|
+ </td>
|
|
|
56
|
+ </tr>
|
|
|
57
|
+ <tr>
|
|
|
58
|
+ <th width="100">手机号<span class="form-required">*</span></th>
|
|
|
59
|
+ <td>
|
|
|
60
|
+ <input class="form-control" type="text" name="mobile" required value=""/>
|
|
|
61
|
+ </td>
|
|
|
62
|
+ </tr>
|
|
|
63
|
+ <tr>
|
|
|
64
|
+ <th width="100">邮箱<span class="form-required">*</span></th>
|
|
|
65
|
+ <td>
|
|
|
66
|
+ <input class="form-control" type="text" name="email" required value=""/>
|
|
|
67
|
+ </td>
|
|
|
68
|
+ </tr>
|
|
|
69
|
+ <tr>
|
|
|
70
|
+ <th width="100">排序<span class="form-required">*</span></th>
|
|
|
71
|
+ <td>
|
|
|
72
|
+ <input class="form-control" type="number" name="sort" required value="1"/>
|
|
|
73
|
+ </td>
|
|
|
74
|
+ </tr>
|
|
|
75
|
+ </table>
|
|
|
76
|
+ <div class="form-group">
|
|
|
77
|
+ <div class="col-sm-offset-2 col-sm-10">
|
|
|
78
|
+ <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
|
|
|
79
|
+ <a class="btn btn-default" href="{:url('AdminTeam/index')}">{:lang('BACK')}</a>
|
|
|
80
|
+ </div>
|
|
|
81
|
+ </div>
|
|
|
82
|
+ </div>
|
|
|
83
|
+ <div class="col-md-3">
|
|
|
84
|
+ <table class="table table-bordered">
|
|
|
85
|
+ <tr>
|
|
|
86
|
+ <th><b>头像</b></th>
|
|
|
87
|
+ </tr>
|
|
|
88
|
+ <tr>
|
|
|
89
|
+ <td>
|
|
|
90
|
+ <div style="text-align: center;">
|
|
|
91
|
+ <input type="hidden" name="thumb" id="thumbnail" value="">
|
|
|
92
|
+ <a href="javascript:uploadOneImage('图片上传','#thumbnail');">
|
|
|
93
|
+ <img src="__TMPL__/public/assets/images/default-thumbnail.png"
|
|
|
94
|
+ id="thumbnail-preview"
|
|
|
95
|
+ width="135" style="cursor: pointer"/>
|
|
|
96
|
+ </a>
|
|
|
97
|
+ <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片">
|
|
|
98
|
+ </div>
|
|
|
99
|
+ </td>
|
|
|
100
|
+ </tr>
|
|
|
101
|
+ </table>
|
|
|
102
|
+ </div>
|
|
|
103
|
+ </div>
|
|
|
104
|
+ </form>
|
|
|
105
|
+</div>
|
|
|
106
|
+<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
|
|
|
107
|
+<script type="text/javascript">
|
|
|
108
|
+ //编辑器路径定义
|
|
|
109
|
+ var editorURL = GV.WEB_ROOT;
|
|
|
110
|
+</script>
|
|
|
111
|
+<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script>
|
|
|
112
|
+<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script>
|
|
|
113
|
+<script type="text/javascript">
|
|
|
114
|
+ $(function () {
|
|
|
115
|
+
|
|
|
116
|
+ editorcontent = new baidu.editor.ui.Editor();
|
|
|
117
|
+ editorcontent.render('content');
|
|
|
118
|
+ try {
|
|
|
119
|
+ editorcontent.sync();
|
|
|
120
|
+ } catch (err) {
|
|
|
121
|
+ }
|
|
|
122
|
+
|
|
|
123
|
+ $('.btn-cancel-thumbnail').click(function () {
|
|
|
124
|
+ $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
|
|
|
125
|
+ $('#thumbnail').val('');
|
|
|
126
|
+ });
|
|
|
127
|
+
|
|
|
128
|
+ });
|
|
|
129
|
+</script>
|
|
|
130
|
+</body>
|
|
|
131
|
+</html> |