123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- <%@ page contentType="text/html;charset=UTF-8" %>
- <%@ include file="/webpage/include/taglib.jsp"%>
- <html>
- <head>
- <title>专题栏目管理</title>
- <meta name="decorator" content="ani"/>
- <script type="text/javascript">
- $(document).ready(function() {
- <c:if test="${eduColumn.oprType !=null && eduColumn.oprType!=''}">
- $(".table.table-bordered").find("input,textarea,select").attr("disabled", "disabled");
- </c:if>
- <c:if test="${eduColumn.isOuterChain ==1}">
- shi();
- </c:if>
- <c:if test="${eduColumn.isOuterChain ==2}">
- fou();
- </c:if>
- });
- function save() {
- var isValidate = jp.validateForm('#inputForm');//校验表单
- if(!isValidate){
- return false;
- }else{
- jp.loading();
- jp.post("${ctx}/base/eduColumn/save",$('#inputForm').serialize(),function(data){
- if(data.success){
- jp.getParent().refresh();
- var dialogIndex = parent.layer.getFrameIndex(window.name); // 获取窗口索引
- parent.layer.close(dialogIndex);
- jp.success(data.msg)
- }else{
- jp.error(data.msg);
- }
- })
- }
- }
- function shi(){
- $('#ljdz').show();
- $('#wl').show();
- }
- function fou(){
- $('#ljdz').hide();
- $('#wl').hide();
- }
- </script>
- </head>
- <body class="bg-white">
- <form:form id="inputForm" modelAttribute="eduColumn" class="form-horizontal">
- <form:hidden path="id"/>
- <table class="table table-bordered">
- <tbody>
- <tr>
- <td class="width-15 active"><label class="pull-right"><font color="red">*</font>专题标题:</label></td>
- <td class="width-35">
- <form:input path="title" htmlEscape="false" maxlength="100" class="form-control required"/>
- </td>
- </tr>
- <tr>
- <td class="width-15 active"><label class="pull-right"><font color="red">*</font>封面地址:</label></td>
- <td class="width-35" style="text-align: center;">
- <c:choose>
- <c:when test="${eduColumn.oprType ==null || eduColumn.oprType == ''}">
- <sys:fileUpload path="cover" fileNumLimit="1" allowedExtensions="jpeg,jpg,png,bmp" value="${eduColumn.cover}" uploadPath="/base/eduColumn" type="images" required="required"/>
- </c:when>
- <c:otherwise>
- <img alt="image" src="${eduColumn.cover}" width="360" height="110">
- </c:otherwise>
- </c:choose>
- </td>
- </tr>
- <tr>
- <td class="width-15 active"><label class="pull-right">排序:</label></td>
- <td class="width-35">
- <form:input path="seq" htmlEscape="false" maxlength="10" class="form-control "/>
- </td>
- </tr>
- <tr>
- <td class="width-15 active"><label class="pull-right"><font color="red">*</font>是否为外链:</label></td>
- <td class="width-35">
- <form:radiobutton path="isOuterChain" onchange="shi()" value="1" label="是" checked="checked"/>
- <form:radiobutton path="isOuterChain" onchange="fou()" value="2" label="否"/>
- </td>
- </tr>
- <tr id="ljdz">
- <td class="width-15 active"><label class="pull-right">链接地址:</label></td>
- <td class="width-35">
- <form:input path="url" htmlEscape="false" class="form-control url"/>
- </td>
- </tr>
- </tbody>
- </table>
- </form:form>
- </body>
- </html>
|