| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- <!DOCTYPE HTML>
- <html xmlns:th="http://www.thymeleaf.org"
- xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
- layout:decorate="~{admin/common/common}">
- <head>
- <title>模板管理</title>
- </head>
- <body layout:fragment="content">
- <article class="page-container">
- <form class="form form-horizontal" id="form-template-add">
- <input type="hidden" id="typeId" th:value="${typeId}" th:name="tid"/>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">模板类别:</label>
- <div class="formControls col-xs-8 col-sm-9">
- <span class="select-box">
- <select th:id="typeList" class="select" required th:name="type_id" onchange="reloadTemplateList(0);">
- <option th:each="item : ${typeList}" th:value="${item.id}"
- th:text="${item.name}" th:selected="${item.id}==${type_id}">
- </select>
- </span>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">模板类型:</label>
- <div class="formControls col-xs-8 col-sm-9">
- <span class="select-box">
- <select th:id="itemList" class="select" required th:name="item_id" onchange="reloadTemplateList(1);">
- <option th:each="item : ${itemList}" th:value="${item.id}"
- th:text="${item.name}" th:selected="${item.id}==${item_id}">
- </select>
- </span>
- </div>
- </div>
-
- <div class="row cl">
- <div class="pd-15 col-xs-8 col-sm-12">
- <span class="l">
- <a href="javascript:;" th:onclick="'javascript:template_addFile(\'添加模板文件\',\'/super/template/addFile\',\'800\',\'500\');'" class="btn btn-primary radius">添加模板文件</a>
- </span>
- </div>
- <div class="col-xs-8 col-sm-12">
- <table class="table table-border table-bordered table-bg table-hover">
- <thead>
- <tr class="text-c">
- <th>序号</th>
- <th>模板名称</th>
- <th>模板文件</th>
- <th>有效标记</th>
- <th>创建时间</th>
- <th width="100">操作</th>
- </tr>
- </thead>
- <tbody>
- <tr class="text-c" th:each="model,iterStat:${pageInfo.list}" th:object="${model}">
- <td><input type="hidden" th:id="*{id}" value="" name=""/><span th:text="${iterStat.index+1}" ></span></td>
- <td th:text="*{name}"></td>
- <td>
- <th:block th:unless="${model.fileDown} == null">
- <th:block th:unless="${model.fileDown.file_url} == null">
- <a th:href="${fileUrl} + ${model.fileDown.file_url}" target="_blank">[[${model.fileDown.file_name}]]</a>
- </th:block>
- </th:block>
- </td>
- <td class="td-status">
- <span class="label radius" th:if="*{is_active==false}">否</span>
- <span class="label radius label-success" th:unless="*{is_active==false}">是</span>
- </td>
- <td th:text="*{create_time}"></td>
- <td class="td-manage">
- <a title="编辑" href="javascript:;" th:onclick="'javascript:template_editFile(\'编辑模板文件\',\'/super/template/editFile/'+*{id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">编辑</a>
- <a title="删除" href="javascript:;" th:onclick="'javascript:template_del(\'/super/template/delete/'+*{id}+'\');'" class="ml-5" style="text-decoration:none">删除</a>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
-
- <!-- <div class="row cl">
- <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
- <button class="btn btn-primary radius" type="submit"><i class="Hui-iconfont"></i>新增</button>
- <button onClick="removeIframe();" class="btn btn-default radius" type="button"> 返回 </button>
- </div>
- </div> -->
- </form>
- </article>
- <script type="text/javascript" th:src="@{/js/super/template/template_add.js}"></script>
- <script th:inline="javascript">
- /**
- * 取消
- */
- function removeIframe() {
- var index = parent.layer.getFrameIndex(window.name);
- parent.layer.close(index);
- }
-
- </script>
- </body>
- </html>
|