You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
210 lines
7.5 KiB
210 lines
7.5 KiB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<%@ page language="java" pageEncoding="UTF-8" %>
|
|
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
|
<%@ include file="/common/ctx.jsp" %>
|
|
<html>
|
|
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
|
|
<title>景区运营信息</title> <!-- jQuery -->
|
|
<!-- jQuery -->
|
|
<script src="${ctx}/js/jquery-3.7.0.min.js"></script>
|
|
<script src="${ctx}/js/jquery.form.js"></script>
|
|
<!-- checkbox 单选多选美化 -->
|
|
<script src="${ctx}/hbcyjc/resourceNew/js/checkbox.js"></script>
|
|
<script type="text/javascript"> <!-- checkbox 单选多选美化 -->
|
|
$(function () {
|
|
$('input').customInput();
|
|
$('.toggle').each(function () {
|
|
$('div:first', this).addClass('first');
|
|
$('div:last', this).addClass('last');
|
|
});
|
|
});
|
|
</script>
|
|
<%--弹框--%>
|
|
<script src="${ctx}/js/layer/layer.js"></script>
|
|
<%--表单工具--%>
|
|
<script src="${ctx}/js/common/cjy_form.js"></script>
|
|
<script src="${ctx}/js/common/cjy_common.js"></script>
|
|
<%--json工具--%>
|
|
<script type="text/javascript" src="${ctx}/js/common/json_form.js"></script>
|
|
<!-- 字体图标 -->
|
|
<link href="${ctx}/assets/font-awesome/css/font-awesome.min.css" rel="stylesheet"/>
|
|
<link href="${ctx}/assets/ionicon/css/ionicons.min.css" rel="stylesheet"/>
|
|
<link href="${ctx}/css/material-design-iconic-font.min.css" rel="stylesheet">
|
|
<!--样式 -->
|
|
<link href="${ctx}/hbcyjc/resourceNew/css/newcjy_style.css" rel="stylesheet"/>
|
|
|
|
|
|
</head>
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
//取消
|
|
function my_cancel() {
|
|
var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
|
|
parent.layer.close(index) //关闭弹出框
|
|
}
|
|
//表单验证
|
|
function my_Verification(){
|
|
var sysname = $("#sysname").val();
|
|
if (isEmpty(sysname)) {
|
|
layer.msg("请填写系统名称");
|
|
return;
|
|
}
|
|
|
|
var sysnameexplain = $("#sysnameexplain").val();
|
|
if (isEmpty(sysnameexplain)) {
|
|
layer.msg("请填写系统名称说明");
|
|
return;
|
|
}
|
|
|
|
var jumpurl = $("#jumpurl").val();
|
|
if (isEmpty(jumpurl)) {
|
|
layer.msg("请填写跳转链接");
|
|
return;
|
|
}
|
|
|
|
var uncheckedimg = $("#uncheckedimg").val();
|
|
if (isEmpty(uncheckedimg)) {
|
|
layer.msg("请填写未选中时图片");
|
|
return;
|
|
}
|
|
|
|
var checkdeimg = $("#checkdeimg").val();
|
|
if (isEmpty(checkdeimg)) {
|
|
layer.msg("请填写选中时图片");
|
|
return;
|
|
}
|
|
|
|
var sysnameclass = $("#sysnameclass").val();
|
|
if (isEmpty(sysnameclass)) {
|
|
layer.msg("请填写使用的class");
|
|
return;
|
|
}
|
|
saveSysUser();
|
|
}
|
|
|
|
//保存用户
|
|
function saveSysUser(){
|
|
var options = {
|
|
type : "post",
|
|
url : "${ctx}/syssystemfunctioncontroller/savesyssystem.do",
|
|
dataType : "json",
|
|
data : {},
|
|
success : function(json) {
|
|
if(json.state){
|
|
mytip("保存成功!");
|
|
}else{
|
|
mytip("保存失败!");
|
|
}
|
|
|
|
},
|
|
error : function() {
|
|
mytip("保存失败!");
|
|
}
|
|
}
|
|
$("#userForm").ajaxSubmit(options);
|
|
}
|
|
|
|
//提示
|
|
function mytip(text) {
|
|
layer.open({
|
|
type : 1,
|
|
content : '<div style="padding: 20px 100px;">' + text + '</div>',
|
|
btn : '确定',
|
|
shade: [0.7, '#333'],
|
|
btnAlign : 'c', //按钮居中
|
|
yes : function() {
|
|
parent.layer.closeAll(); //疯狂模式,关闭所有层
|
|
},
|
|
success: function (index, layero) {
|
|
$(':focus').blur();//让按钮失去焦点
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function isEmpty(text) {
|
|
if (text != null && text != "null" && text != "" && text != "undefined" && text!=undefined) {
|
|
return false;
|
|
} else {
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div class="xingk_nr"></div>
|
|
<div class="header_top">
|
|
<p class="header_xtbt">用户新增</p>
|
|
</div>
|
|
|
|
<div class="content">
|
|
<form class="form_meren" method="post" action="${ctx}/syssystemfunctioncontroller/savesyssystem.do" name="userForm" id="userForm">
|
|
<input type="hidden" name="id" id="id" value="${syssystemfunction.id}"/>
|
|
<div class="form_hang form_hang_tongh">
|
|
<label for="sysname" class="form_label">系统名称:<span class="text-danger">*</span></label>
|
|
<div class="form_input">
|
|
<input class="form-control" id="sysname" name="sysname" type="text" value = "${syssystemfunction.sysname}"/>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form_hang form_hang_tongh">
|
|
<label for="sysname" class="form_label">系统名称-说明:<span class="text-danger">*</span></label>
|
|
<div class="form_input">
|
|
<input class="form-control" id="sysnameexplain" name="sysnameexplain" type="text" value = "${syssystemfunction.sysnameexplain}"/>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form_hang form_hang_tongh">
|
|
<label for="jumpurl" class="form_label">跳转链接:<span class="text-danger">*</span></label>
|
|
<div class="form_input">
|
|
<input class="form-control" id="jumpurl" name="jumpurl" type="text" value = "${syssystemfunction.jumpurl}"/>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="form_hang form_hang_tongh">
|
|
<label for="uncheckedimg" class="form_label">未选中时图片:<span class="text-danger">*</span></label>
|
|
<div class="form_input">
|
|
<input class="form-control" id="uncheckedimg" name="uncheckedimg" type="text" value = "${syssystemfunction.uncheckedimg}"/>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="form_hang form_hang_tongh">
|
|
<label for="checkdeimg" class="form_label">选中时图片:<span class="text-danger">*</span></label>
|
|
<div class="form_input">
|
|
<input class="form-control" id="checkdeimg" name="checkdeimg" type="text" value = "${syssystemfunction.checkdeimg}" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form_hang form_hang_tongh">
|
|
<label for="sysnameclass" class="form_label">使用的class:<span class="text-danger">*</span></label>
|
|
<div class="form_input">
|
|
<input class="form-control" id="sysnameclass" name="sysnameclass" type="text" value = "${syssystemfunction.sysnameclass}" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form_hang form_hang_tongh">
|
|
<label for="Introduction" class="form_label">简介:</label>
|
|
<div class="form_input">
|
|
<textarea class="form-control" id="Introduction" name="Introduction" style="height: 74px;">${syssystemfunction.introduction}</textarea>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
<p class="form-btncz">
|
|
<button class="bttn bttn_bc" type="button" onclick="my_Verification()"><i class="fa fa-save"></i>保存</button>
|
|
<button class="bttn" type="button" onclick="my_cancel()"><i class="fa fa-reply"></i>取消</button>
|
|
</p>
|
|
</form>
|
|
</div>
|
|
</body>
|
|
</html> |