| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145 |
- <%@page contentType="text/html;charset=UTF-8"%>
- <%@include file="/taglibs.jsp"%>
- <%pageContext.setAttribute("currentHeader", "sendmail");%>
- <%pageContext.setAttribute("currentMenu", "sendmail");%>
- <%pageContext.setAttribute("currentTitle", "party-10");%>
- <!doctype html>
- <html>
- <head>
- <%@include file="/common/meta.jsp"%>
- <title>编辑</title>
- <%@include file="/common/s3.jsp"%>
- <script type="text/javascript">
- $(function() {
- $("#sendmail-templateForm").validate({
- submitHandler: function(form) {
- bootbox.animate(false);
- var box = bootbox.dialog('<div class="progress progress-striped active" style="margin:0px;"><div class="bar" style="width: 100%;"></div></div>');
- form.submit();
- },
- errorClass: 'validate-error'
- });
- })
- </script>
- </head>
- <body>
- <%@include file="/header/_pim3.jsp"%>
- <div class="row-fluid">
- <%@include file="/menu/sendmail.jsp"%>
- <!-- start of main -->
- <section id="m-main" class="col-md-10" style=" ">
- <div class="panel panel-default">
- <div class="panel-heading">
- <i class="glyphicon glyphicon-list"></i>
- 编辑
- </div>
- <div class="panel-body">
- <form id="mailTemplateForm" method="post" action="sendmail-template-save.do" class="form-horizontal">
- <c:if test="${not empty model}">
- <input id="mailTemplate_id" type="hidden" name="id" value="${model.id}">
- </c:if>
- <div class="form-group">
- <label class="control-label col-md-1" for="mailTemplate_name">名称</label>
- <div class="col-sm-5">
- <input id="mailTemplate_name" type="text" name="name" value="${model.name}" class="required" minlength="2" maxlength="50">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-md-1" for="mailTemplate_sender">发件人</label>
- <div class="col-sm-5">
- <input id="mailTemplate_sender" type="text" name="sender" value="${model.sender}" maxlength="50">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-md-1" for="mailTemplate_receiver">收件人</label>
- <div class="col-sm-5">
- <textarea id="mailTemplate_receiver" name="receiver" maxlength="200">${model.receiver}</textarea>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-md-1" for="mailTemplate_cc">抄送</label>
- <div class="col-sm-5">
- <textarea id="mailTemplate_cc" name="cc" maxlength="200">${model.cc}</textarea>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-md-1" for="mailTemplate_bcc">暗送</label>
- <div class="col-sm-5">
- <textarea id="mailTemplate_bcc" name="bcc" maxlength="200">${model.bcc}</textarea>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-md-1" for="mailTemplate_subject">标题</label>
- <div class="col-sm-5">
- <input id="mailTemplate_subject" type="text" name="subject" value="${model.subject}" class="required" minlength="1" maxlength="50">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-md-1" for="mailTemplate_content">内容</label>
- <div class="col-sm-5">
- <textarea id="mailTemplate_content" name="content" class="required" minlength="1" maxlength="65535">${model.content}</textarea>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-md-1" for="mailTemplate_attachment">附件</label>
- <div class="col-sm-5">
- <!-- The fileinput-button span is used to style the file input field as button -->
- <span class="btn btn-success fileinput-button">
- <i class="glyphicon glyphicon-plus"></i>
- <span>选择文件</span>
- <!-- The file input field used as target for the file upload widget -->
- <input id="fileupload" type="file" name="file" multiple data-no-uniform="true">
- </span>
- <br>
- <br>
- <!-- The global progress bar -->
- <div id="progress" class="progress">
- <div class="bar bar-success"></div>
- </div>
- <!-- The container for the uploaded files -->
- <div id="files" class="files">
- <c:forEach items="${model.sendmailAttachments}" var="item">
- <span class="badge">
- <input type="hidden" name="attachmentIds" value="${item.id}">
- <a href="sendmail-attachment-download.do?id=${item.id}">${item.name}</a>
- <i title="${item.id}" class="icon-remove" style="cursor:pointer;"></i>
- </span>
- </c:forEach>
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-md-1" for="mailTemplate_manual0">不使用ckeditor</label>
- <div class="col-sm-5">
- <label><input id="mailTemplate_manual0" type="radio" name="manual" value="1" ${model.manual == 1 ? 'checked' : ''}>手工</label>
- <label><input id="mailTemplate_manual1" type="radio" name="manual" value="0" ${empty model.manual || model.manual == 0 ? 'checked' : ''}>ckeditor</label>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-5">
- <button type="submit" class="btn btn-primary a-submit"><spring:message code='core.input.save' text='保存'/></button>
-
- <button type="button" class="btn btn-link a-cancel" onclick="history.back();"><spring:message code='core.input.back' text='返回'/></button>
- </div>
- </div>
- </form>
- </div>
- </article>
- </section>
- <!-- end of main -->
- </div>
- </body>
- </html>
|