<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html >
<html>
<link rel="stylesheet" href="${ctx}/css/plugin/bootstrap/bootstrap.css">
<link rel="stylesheet" href="${ctx}/js/plugin/layui/css/layui.css">
<link rel="stylesheet" href="${ctx}/css/basic.css">
<head>
    <title>上传资源</title>
    <style>
        html {
            overflow: hidden;
        }

        div {
            float: left;
        }
    </style>
</head>
<body class="bg-white">
<form class="form-inline ml12" enctype="multipart/form-data" id="uploadForm">
    <div class="layui-form-item" style="margin-top: -6px; width: 320px">
        <label class="layui-form-label" style="margin-top: 10px">资源名称：</label>
        <div>
            <input type="text" id="name" placeholder="请输入名称" maxlength="200"
                   autocomplete="off" style="width: 174px; margin-top: 16px;height: 30px">
            <font color="red">*</font>
        </div>
    </div>
    <div class="layui-form-item" style="margin-top: -31px; width: 320px">
        <label class="layui-form-label" style="margin-top: 7px">上传资源：</label> <input type="file" name="file"
                                                                                     id="inputfile" style="width:
																						  174px; margin-top: 18px;height: 30px">
        <img src="" class="img"/>
    </div>
    <div class="layui-form-item" style="margin-top: -48px; width: 320px">
        <label class="layui-form-label" style="margin-top: 10px">资源类目：</label>
        <div>
            <select autocomplete="off" style="width: 174px; margin-top: 16px;height: 30px" id="type">
                <option value="0">-------请选择------</option>
            </select>
            <font color="red">*</font>
        </div>
    </div>
    <div class="layui-form-item layui-form-text" style="margin-top: -26px; width: 320px">
        <label class="layui-form-label" style="margin-top: -1px ">资源描述：</label>
        <div>
				<textarea placeholder="请输入内容" maxlength="4000"
                          style="resize: none;width: 174px; margin-top: 10px;height: 60px" id="description"></textarea>
            <font color="red">*</font>
        </div>
    </div>
    <div style="width: 100%;margin-top: -7%;margin-left: 6%;text-align: center;">
        <button type="button" class="layui-btn themeBGColor"
                id="upload"
                style="margin-top: 10px">提交
        </button>
        <button type="reset" class="layui-btn cancleBGColor"
                style="margin-left: 10%; margin-top: 10px"
                id="close">取消
        </button>
    </div>
</form>
<%--当前会话的用户名--%>
<input type="hidden" id="username" value="${username}">
<input type="hidden" id="token" value="${token}">
<script src="${ctx}/js/plugin/jquery/jquery.min.js"></script>
<script src="${ctx}/js/plugin/bootstrap/bootstrap.min.js"></script>
<script src="${ctx}/js/plugin/jquery/jquery.dataTables.js"></script>
<script src="${ctx}/js/plugin/bootstrap/dataTables.bootstrap.min.js"></script>
<script src="${ctx}/js/plugin/bootstrap/bootstrap-datetimepicker.min.js"></script>
<script src="${ctx}/js/plugin/bootstrap/bootstrap-datetimepicker.zh-CN.js"></script>
<script src="${ctx}/js/plugin/bootstrap-table/bootstrap-table.js"></script>
<script src="${ctx}/js/plugin/layui/layer.js"></script>
<script src="${ctx}/js/basic.js"></script>
<script src="${ctx}/jspJS/utils/judgeAjaxStatus.js"></script>
<script src="${ctx}/jspJS/utils/loading.js"></script>
<script src="${ctx}/js/plugin/xss/aes.js"></script>
<script src="${ctx}/jspJS/sm2.js"></script>
<script src="${ctx}/jspJS/sm3.js"></script>
<script src="${ctx}/js/plugin/xss/security.js"></script>
<script src="${ctx}/jspJS/confirmIndentity.js"></script>
<script src="${ctx}/jspJS/settings/uploadManageList.js"></script>
</body>

</html>