Alatus Lee 3419cc6e7f 提交
2025-10-05 17:41:23 +08:00

160 lines
6.4 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!--
/*
* @Copyright (c) 2018 缪聪(mcg-helper@qq.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<div class="container-fluid" >
<div class="row">
<div class="col-md-12">
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#${modalId }_sftpProperty" data-toggle="tab">属性</a></li>
<li role="presentation"><a href="#${modalId }_sftpUpload" data-toggle="tab">文件上传</a></li>
<li role="presentation"><a href="#${modalId }_explain" data-toggle="tab">说明</a></li>
</ul>
</div>
</div>
<div class="row margin_top">
<div class="col-md-12">
<form id="${modalId }_sftpForm" class="form-horizontal" role="form">
<div class="form-body">
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade in active" id="${modalId }_sftpProperty">
<div class="form-group">
<label class="col-sm-2 control-label">控件名称</label>
<div class="col-sm-4">
<div class="fg-line">
<input type="hidden" id="${modalId }_modalId" name="id" value="${modalId }" />
<input type="text" id="${modalId }_name" name="sftpProperty[name]" class="form-control" />
</div>
</div>
<label class="col-sm-1 control-label">控件KEY</label>
<div class="col-sm-4">
<div class="fg-line">
<input type="text" id="${modalId }_key" name="sftpProperty[key]" class="form-control" />
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">连接方式</label>
<div class="col-sm-4">
<div class="fg-line">
<select id="${modalId }_connMode" name="sftpProperty[connMode]" class="selectpicker">
<c:forEach items="${connMode}" var="item" varStatus="status">
<c:choose>
<c:when test="${status.count == 1}">
<option value="${item.value }" selected="selected">${item.name }</option>
</c:when>
<c:otherwise>
<option value="${item.value }">${item.name }</option>
</c:otherwise>
</c:choose>
</c:forEach>
</select>
</div>
</div>
<label class="col-sm-1 control-label">数据源</label>
<div class="col-sm-4">
<div class="fg-line">
<select id="${modalId }_serverSourceId" name="sftpProperty[serverSourceId]" class="selectpicker">
<c:forEach items="${serverSources}" var="item">
<option value="${item.id }">${item.name } : ${item.ip }</option>
</c:forEach>
</select>
</div>
</div>
</div>
<div class="form-group" id="${modalId }_ip_port" style="display: none;">
<label class="col-sm-2 control-label">IP</label>
<div class="col-sm-4">
<div class="fg-line">
<input type="text" id="${modalId }_sshIp" name="sftpProperty[ip]" class="form-control" />
</div>
</div>
<label class="col-sm-1 control-label">端口</label>
<div class="col-sm-4">
<div class="fg-line">
<input type="text" id="${modalId }_sshPort" name="sftpProperty[port]" class="form-control" />
</div>
</div>
</div>
<div class="form-group" id="${modalId }_user_pwd" style="display: none;">
<label class="col-sm-2 control-label">用户名</label>
<div class="col-sm-4">
<div class="fg-line">
<input type="text" id="${modalId }_sshUser" name="sftpProperty[user]" class="form-control" />
</div>
</div>
<label class="col-sm-1 control-label">密码</label>
<div class="col-sm-4">
<div class="fg-line">
<input type="text" id="${modalId }_sshPwd" name="sftpProperty[pwd]" class="form-control" />
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">描述</label>
<div class="col-sm-9">
<div class="fg-line">
<textarea id="${modalId }_desc" name="sftpProperty[desc]" rows="5" cols="" class="form-control"></textarea>
</div>
</div>
</div>
</div>
<div class="tab-pane fade" id="${modalId }_sftpUpload">
<table id="${modalId }_flowSftpUploadTable"
data-toggle="table"
data-show-columns="true"
data-search="true"
data-pagination="true"
data-page-size="5"
data-page-list="[5,10,20,30]"
data-pagination-first-text="上一页"
data-pagination-pre-text="上一页"
data-pagination-next-text="下一页"
data-pagination-last-text="尾页">
<thead>
<tr>
<th data-field="state" data-checkbox="true"></th>
<th data-field="filePath" data-formatter="inputFormatter" >上传文件全路径</th>
<th data-field="uploadPath" data-formatter="inputFormatter" >上传ftp路径</th>
<th data-field="note" data-formatter="inputFormatter">说明</th>
</tr>
</thead>
</table>
</div>
<div class="tab-pane fade" id="${modalId }_explain">
<div class="form-group">
<div class="col-sm-12">
<div class="fg-line">
Linux SFTP实现文件上传下载功能。
</div>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>