<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@ page isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%
    String basePath = request.getContextPath();
%>
<jsp:include page="../../../common/admin/modal_content_pre.jsp"><jsp:param name="modal_title" value="下架"/></jsp:include>
<form id="unshelveresultFmt" action="<%=basePath%>/admin/microapp/unshelve.action/" method="post" role="form">
    <input type="hidden" name="id" value="${id}"/>
    <div class="form-group">
        <label for="unshelvereason">下架原因：</label>
        <textarea id="unshelvereason"  name="unshelvereasons" style="width: 100%"></textarea>
        <span class="field-validation-valid help-block"></span>
    </div>
</form>
<jsp:include page="../../../common/admin/modal_content_post.jsp"></jsp:include>
<jsp:include page="../../../common/admin/modal_footer_pre.jsp"></jsp:include>
<td class="btn-table hidden-print">
    <button name="btnPass" id="btnUnshelve" class="btn btn-sm btn-primary m-r-sm"><i class="fa fa-edit"></i>下架</button>
    <button name="btnPass" id="btnBack" class="btn btn-sm btn-primary m-r-sm">返回</button>
</td>
<jsp:include page="../../../common/admin/modal_footer_post.jsp"></jsp:include>

<script type="text/javascript">
    $("#btnUnshelve").click(function() {
        $('#unshelveresultFmt').ajaxSubmit(function (data) {
            window.location.href="<%=basePath%>/admin/microapp/index.htm"
            <%--if(data!=undefined&&data!=null){--%>
            <%--    /*window.parent.search();*/--%>
            <%--   /* //$.popBsPartial({url:"<%=basePath%>/admin/microapp/unshelveresult/"+data.stateCode})*/--%>
            <%--    /*// window.parent.showunshelveresult(data.stateCode);*/--%>
            <%--}else{--%>
            <%--   /* //$.popBsPartial({url:"<%=basePath%>/admin/microapp/unshelveresult/"+400})*/--%>
            <%--   /* // window.parent.showunshelveresult(400);*/--%>
            <%--}--%>
        });
    });
    $("#btnBack").click(function() {
        $(".close").click();
    });
</script>
</script>