12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>Insert title here</title>
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui/css/H-ui.min.css" />
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/css/H-ui.admin.css" />
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/Hui-iconfont/1.0.7/iconfont.css" />
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/icheck/icheck.css" />
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/skin/default/skin.css" id="skin" />
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/css/style.css" />
- <script type="text/ecmascript" src="${ctx}/assets/lib/jquery/1.9.1/jquery.js"></script>
- <script type="text/javascript" src="${ctx}/assets/static/h-ui/js/H-ui.js"></script>
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/on-off/css/style.css" />
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/on-off/css/font-awesome.css" />
- <script type="text/javascript" src="${ctx}/assets/lib/layer/3.0.3/layer.js"></script>
- <script type="text/javascript">
- $(function(){
- $('#tamperOpen').on('click', function () {
- var val =$(this).is(':checked');
- //console.log(val);
- $.post("${ctx}/myconsole/tamper/saveOrUpdate",{"tamper.open":val},function(rtn){
- //console.log(rtn);
- })
- });
- if(${tamper.open!"false"}){
- $("#tamperOpen").attr("checked", "checked");
- }
- $("#tamperPrefix").change(function(){
- $.post("${ctx}/myconsole/tamper/saveOrUpdate",{"tamper.prefix":$(this).val()},function(rtn){
- //console.log(rtn);
- var msg="保存失败";
- if(rtn){
- msg="保存成功";
- }
- layer.msg(msg)
- })
- })
- $("#tamperGenerate").click(function(){
- $.post("${ctx}/myconsole/tamper/generate",{},function(rtn){
- layer.msg(rtn)
- })
- })
- })
- </script>
- </head>
- <body>
- <div class="page-container">
- <div class="row cl">
- <label style="float: left;" class="form-label col-xs-4 col-sm-2">是否启用</label>
- <div class="formControls col-xs-8 col-sm-9">
- <div class="switch demo3_s">
- <input type="checkbox" id="tamperOpen" name="tamper.open"> <label><i></i></label>
- </div>
- </div>
- </div>
- <div class="row cl">
- <label style="float: left;" class="form-label col-xs-4 col-sm-2">防篡改水印前缀:</label>
- <div class="formControls col-xs-8 col-sm-9">
- <input type="text" id="tamperPrefix" name="tamper.prefix" value="${tamper.prefix!}">
- </div>
- </div>
- <div class="row cl">
- <label style="float: left;" class="form-label col-xs-4 col-sm-2">批量生成水印:</label>
- <div class="formControls col-xs-8 col-sm-9">
- <button id="tamperGenerate" class="btn btn-primary radius" type="button">
- <i class="Hui-iconfont"></i>执行
- </button>
- </div>
- </div>
- </div>
- <footer class="footer mt-20">
- <div class="container">
- <p></p>
- </div>
- </footer>
- </body>
- </html>
|