|
|
@@ -0,0 +1,169 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html lang="en">
|
|
|
+
|
|
|
+<head>
|
|
|
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
|
|
+
|
|
|
+ <#include "../common/header.ftl">
|
|
|
+ <!-- some CSS styling changes and overrides -->
|
|
|
+ <link rel="stylesheet" href="../main-plugins/bootstrap-multiselect/bootstrap-multiselect.css">
|
|
|
+ <link rel="stylesheet" href="../main-plugins/bootstrap-datepicker/css/bootstrap-datepicker3.min.css"/>
|
|
|
+
|
|
|
+ <link href="../main-plugins/bootstrap-fileinput/css/fileinput.min.css" media="all" rel="stylesheet" type="text/css">
|
|
|
+
|
|
|
+
|
|
|
+</head>
|
|
|
+
|
|
|
+<body class="font-opensans sidebar_dark offcanvas-active">
|
|
|
+<!-- Page Loader -->
|
|
|
+<div class="page-loader-wrapper">
|
|
|
+ <div class="loader">
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+<!-- Start main html -->
|
|
|
+<div id="main_content">
|
|
|
+
|
|
|
+ <#--边栏sidebar-->
|
|
|
+ <#include "../common/iconMenu.ftl">
|
|
|
+ <#--主菜单-->
|
|
|
+ <#include "../common/startMainMenu.ftl">
|
|
|
+ <div class="page">
|
|
|
+
|
|
|
+ <#if levelJump.id??>
|
|
|
+ <#assign title = "修改关卡信息">
|
|
|
+ <#else >
|
|
|
+ <#assign title = "创建新的关卡">
|
|
|
+ </#if>
|
|
|
+
|
|
|
+ <#include "../common/pageTop.ftl">
|
|
|
+
|
|
|
+ <#--主要内容content-->
|
|
|
+ <div class="section-body">
|
|
|
+ <div class="container-fluid">
|
|
|
+ <div class="row clearfix">
|
|
|
+ <div class="col-md-12">
|
|
|
+ <div class="card">
|
|
|
+ <div class="card-body">
|
|
|
+ <form name="formBasic" id="formBasic" role="form" method="post"
|
|
|
+ enctype="multipart/form-data"
|
|
|
+ action="">
|
|
|
+ <div class="form-group">
|
|
|
+ <label>关卡名称</label>
|
|
|
+ <input name="levelName" type="text" placeholder="输入关卡名称" class="form-control"
|
|
|
+ value="${(levelJump.name)!''}"/>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="form-group">
|
|
|
+ <label>通过关卡的条件</label>
|
|
|
+ <select name="conditionPassed" class="form-control">
|
|
|
+ <#list levelCondition as conditionPassed>
|
|
|
+ <#if conditionPassed.type == 1>
|
|
|
+ <option value="${conditionPassed.id}"
|
|
|
+ <#if (levelJump.conditionPassed)?? && levelJump.conditionPassed == conditionPassed.limitType>
|
|
|
+ selected
|
|
|
+ </#if>
|
|
|
+ >${conditionPassed.explain}
|
|
|
+ </option>
|
|
|
+ </#if>
|
|
|
+ </#list>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label>解锁关卡的条件</label>
|
|
|
+ <select name="conditionPassed" class="form-control">
|
|
|
+ <#list levelCondition as conditionPassed>
|
|
|
+ <#if conditionPassed.type == 0>
|
|
|
+ <option value="${conditionPassed.id}"
|
|
|
+ <#if (levelJump.conditionPassed)?? && levelJump.conditionPassed == conditionPassed.limitType>
|
|
|
+ selected
|
|
|
+ </#if>
|
|
|
+ >${conditionPassed.explain}
|
|
|
+ </option>
|
|
|
+ </#if>
|
|
|
+ </#list>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label>解锁条件(可多选)</label>
|
|
|
+ <br/>
|
|
|
+ <div class="form-group multiselect_div">
|
|
|
+ <select id="multiselect-color2" name="multiselectUnlock" class="multiselect multiselect-custom" multiple="multiple">
|
|
|
+ <#list levelHonor as honor>
|
|
|
+ <option value="${honor.name}">${honor.name}
|
|
|
+ </option>
|
|
|
+ </#list>
|
|
|
+
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="form-group">
|
|
|
+ <label>荣誉奖励</label>
|
|
|
+ <select name="conditionPassed" class="form-control">
|
|
|
+ <#list levelHonor as honor>
|
|
|
+ <option value="${honor.id}"
|
|
|
+ <#if (levelJump.rewardHonor)?? && levelJump.rewardHonor == honor.type>
|
|
|
+ selected
|
|
|
+ </#if>
|
|
|
+ >${honor.name}
|
|
|
+ </option>
|
|
|
+ </#list>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="form-group">
|
|
|
+ <label>关卡简介</label>
|
|
|
+ <input name="levelJumpDescribe" type="text" placeholder="输入关卡描述信息" class="form-control"
|
|
|
+ value="${(levelJump.describe)!''}"/>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <button type="submit" class="btn btn-block btn-primary">
|
|
|
+ <#if levelJump.id??>
|
|
|
+ 提交修改
|
|
|
+ <#else >
|
|
|
+ 创建游戏
|
|
|
+ </#if>
|
|
|
+ </button>
|
|
|
+
|
|
|
+ </form>
|
|
|
+
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+
|
|
|
+
|
|
|
+<!-- jQuery and bootstrtap js -->
|
|
|
+<script src="../main-bundles/lib.vendor.bundle.js"></script>
|
|
|
+<!-- start plugin js file -->
|
|
|
+<script src="../main-plugins/bootstrap-multiselect/bootstrap-multiselect.js"></script>
|
|
|
+<script src="../main-plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js"></script>
|
|
|
+<script src="../main-plugins/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
|
|
|
+<script src="../main-plugins/multi-select/js/jquery.multi-select.js"></script>
|
|
|
+
|
|
|
+<#--<!-- 主要的 fileinput 插件库 5.1.2-->
|
|
|
+<script src="../main-plugins/bootstrap-fileinput/js/fileinput.min.js"></script>
|
|
|
+<script src="../main-plugins/bootstrap-fileinput/js/locales/zh.js"></script>
|
|
|
+
|
|
|
+<!-- Start core js and page js -->
|
|
|
+<script src="../js/core.js"></script>
|
|
|
+<script src="../js/main/form/form-game-detail.js"></script>
|
|
|
+
|
|
|
+
|
|
|
+<!-- the fileinput plugin initialization -->
|
|
|
+<script>
|
|
|
+ <#if levelJump.id??>
|
|
|
+ $("#formBasic").attr("action", "${req.contextPath}/backstage_level/modify");
|
|
|
+ <#else >
|
|
|
+ $("#formBasic").attr("action", "${req.contextPath}/backstage_level/upload");
|
|
|
+ </#if>
|
|
|
+</script>
|
|
|
+</body>
|
|
|
+</html>
|