2
13693261870
2022-09-16 653761a31dfeb50dd3d007e892d69c90bf0cdafc
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<script>
    $(function () {
        initEditor("");
        cheackForm('kjfwform');
    });
 
    //实例化编辑器
    function initEditor(content) {
        UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
        UE.Editor.prototype.getActionUrl = function (action) {
            if (action == 'uploadimage' || action == 'uploadfile') {
                return "/res/common/uploadueditorfile";
            } else {
                return this._bkGetActionUrl.call(this, action);
            }
        }
        //建议使用工厂方法getEditor创建和引用编辑器实例,如果在某个闭包下引用该编辑器,直接调用UE.getEditor('editor')就能拿到相关的实例
        var ue = UE.getEditor('contents', {
            toolbars: [
                [
                    'source',
                    'undo', //撤销
                    'redo', //重做
                    '|',
                    'bold', //加粗
                    'italic', //斜体
                    'strikethrough', //删除线
                    'underline', //下划线
                    '|',
                    'forecolor', //字体颜色
                    'backcolor', //背景色
                    '|',
                    'insertorderedlist', //有序列表
                    'insertunorderedlist', //无序列表
                    '|',
                    'fontfamily', //字体
                    'fontsize', //字号
                    '|',
                    'justifyleft', //居左对齐
                    'justifyright', //居右对齐
                    'justifycenter', //居中对齐
                    'justifyjustify', //两端对齐
                    '|',
                    'link', //超链接
                    'unlink', //取消链接
                    '|',
                    'simpleupload' //单图上传
                ]
            ],
            initialContent: content, //初始化显示内容
            initialFrameHeight: 300, //初始化高度
            enableAutoSave: false //是否启用自动保存
        });
    }
 
    //解码
    function htmlDecodeByRegExp(str) {
        var s = "";
        if (str.length == 0) return "";
        s = str.replace(/&amp;/g, "&");
        s = s.replace(/&lt;/g, "<");
        s = s.replace(/&gt;/g, ">");
        s = s.replace(/&nbsp;/g, " ");
        s = s.replace(/&#39;/g, "\'");
        s = s.replace(/&quot;/g, "\"");
        return s;
    }
 
    //转码
    function htmlEncodeByRegExp(str) {
        var s = "";
        if (str.length == 0) return "";
        s = str.replace(/&/g, "&amp;");
        s = s.replace(/</g, "&lt;");
        s = s.replace(/>/g, "&gt;");
        s = s.replace(/ /g, "&nbsp;");
        s = s.replace(/\'/g, "&#39;");
        s = s.replace(/\"/g, "&quot;");
        return s;
    }
</script>
<form class="form-horizontal" id="kjfwform" xmlns:th="http://www.w3.org/1999/xhtml">
    <div class="portlet box ltblue">
        <div class="portlet-title">
            空间服务信息
            <div class="caption">
                <i class="fa fa-reorder"></i>
            </div>
            <div class="tools">
                <a class="collapse" onclick="portlet_body_ShowOrHide(this);"></a>
            </div>
        </div>
        <div class="portlet-body">
            <div class="row">
                <div class="col-sm-12">
                    <div class="control-group">
                        <label class="control-label">服务地址<span style="color: red;">*</span></label>
                        <div class="controls input-icon">
                            <input id="serverurl" name="serverurl" class="form-control col-sm-11" required="" />
                            <span class="input-warning tooltips" data-original-title="">
                                <i class="fa-warning-sign" style="display: none;margin-left:30px;"></i>
                            </span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-6">
                    <div class="control-group">
                        <label class="control-label">提交方式<span style="color: red;">*</span></label>
                        <div class="controls input-icon">
                            <select id="posttype" name="posttype" class="form-control col-sm-9" required="">
                                <option value="">--请选择--</option>
                                <option value="0">
                                    HttpGet
                                </option>
                                <option value="1">
                                    HttpPost
                                </option>
                            </select>
                            <span class="input-warning tooltips" data-original-title="">
                                <i class="fa-warning-sign" style="display: none;margin-left:30px;"></i>
                            </span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-12">
                    <div class="control-group">
                        <label class="control-label">自定义参数界面</label>
                        <div class="controls input-icon">
                            <input id="diyparamurl" name="diyparamurl" class="form-control col-sm-11" />
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-12">
                    <div class="control-group">
                        <label class="control-label">帮助说明文档</label>
                        <div class="controls input-icon">
                            <script id="contents" name="contents" type="text/plain" class="col-sm-11" style="z-index: 0;"></script>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- <div class="portlet box ltblue">
        <div class="portlet-body" style="padding: 30px">
            <table class="table">
                <tr>
                    <th>参数序号</th>
                    <th>参数名称</th>
                    <th>参数别名</th>
                    <th>参数类型</th>
                    <th> 参数数据类型</th>
                    <th> 参数默认值</th>
                    <th> 参数是否必填</th>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <a style="cursor: pointer;" target="_blank"></a>
                    </td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>
            </table>
        </div>
    </div>
    -->
</form>