改变弹框方式

pull/209/head
midoks 3 years ago
parent 2669d6f021
commit 1eb76baae7
  1. 10
      route/static/app/config.js
  2. 2
      route/static/app/control.js
  3. 6
      route/static/app/crontab.js
  4. 20
      route/static/app/files.js
  5. 12
      route/static/app/index.js
  6. 18
      route/static/app/public.js
  7. 28
      route/static/app/site.js
  8. 6
      route/static/app/soft.js

@ -54,7 +54,7 @@ function modifyAuthPath() {
type: 1, type: 1,
area: "500px", area: "500px",
title: "修改安全入口", title: "修改安全入口",
closeBtn: 2, closeBtn: 1,
shift: 5, shift: 5,
shadeClose: false, shadeClose: false,
content: '<div class="bt-form bt-form pd20 pb70">\ content: '<div class="bt-form bt-form pd20 pb70">\
@ -131,7 +131,7 @@ function setPassword(a) {
type: 1, type: 1,
area: "290px", area: "290px",
title: '修改密码', title: '修改密码',
closeBtn: 2, closeBtn: 1,
shift: 5, shift: 5,
shadeClose: false, shadeClose: false,
content: "<div class='bt-form pd20 pb70'>\ content: "<div class='bt-form pd20 pb70'>\
@ -187,7 +187,7 @@ function setUserName(a) {
type: 1, type: 1,
area: "290px", area: "290px",
title: '修改面板用户名', title: '修改面板用户名',
closeBtn: 2, closeBtn: 1,
shift: 5, shift: 5,
shadeClose: false, shadeClose: false,
content: "<div class='bt-form pd20 pb70'>\ content: "<div class='bt-form pd20 pb70'>\
@ -238,7 +238,7 @@ function setPanelSSL(){
<input type="checkbox" id="checkSSL" /><label style="font-weight: 400;margin: 3px 5px 0px;" for="checkSSL">我已了经解详情,并愿意承担风险</label>\ <input type="checkbox" id="checkSSL" /><label style="font-weight: 400;margin: 3px 5px 0px;" for="checkSSL">我已了经解详情,并愿意承担风险</label>\
<a target="_blank" class="btlink" href="https://www.bt.cn/bbs/thread-4689-1-1.html" style="float: right;">了解详情</a>\ <a target="_blank" class="btlink" href="https://www.bt.cn/bbs/thread-4689-1-1.html" style="float: right;">了解详情</a>\
</p>'; </p>';
layer.confirm(msg,{title:'设置面板SSL',closeBtn:2,icon:3,area:'550px',cancel:function(){ layer.confirm(msg,{title:'设置面板SSL',closeBtn:1,icon:3,area:'550px',cancel:function(){
if(status == 0){ if(status == 0){
$("#panelSSL").prop("checked",false); $("#panelSSL").prop("checked",false);
} }
@ -302,7 +302,7 @@ function getPanelSSL(){
type: 1, type: 1,
area: "600px", area: "600px",
title: '自定义面板证书', title: '自定义面板证书',
closeBtn: 2, closeBtn: 1,
shift: 5, shift: 5,
shadeClose: false, shadeClose: false,
content:certBody content:certBody

@ -180,7 +180,7 @@ function setControl(act, value=false){
//清理记录 //清理记录
function closeControl(){ function closeControl(){
layer.confirm('您真的清空所有监控记录吗?',{title:'清空记录',icon:3,closeBtn:2}, function() { layer.confirm('您真的清空所有监控记录吗?',{title:'清空记录',icon:3,closeBtn:1}, function() {
loadT = layer.msg('正在处理,请稍候...',{icon:16,time:0}) loadT = layer.msg('正在处理,请稍候...',{icon:16,time:0})
$.post('/system/set_control','type=del',function(rdata){ $.post('/system/set_control','type=del',function(rdata){
layer.close(loadT); layer.close(loadT);

@ -24,7 +24,7 @@ function getLogs(id){
title:lan.crontab.task_log_title, title:lan.crontab.task_log_title,
area: ['60%','500px'], area: ['60%','500px'],
shadeClose:false, shadeClose:false,
closeBtn:2, closeBtn:1,
content:'<div class="setchmod bt-form pd20 pb70">' content:'<div class="setchmod bt-form pd20 pb70">'
+'<pre id="crontab-log" style="overflow: auto; border: 0px none; line-height:23px;padding: 15px; margin: 0px; white-space: pre-wrap; height: 405px; background-color: rgb(51,51,51);color:#f1f1f1;border-radius:0px;font-family:"></pre>' +'<pre id="crontab-log" style="overflow: auto; border: 0px none; line-height:23px;padding: 15px; margin: 0px; white-space: pre-wrap; height: 405px; background-color: rgb(51,51,51);color:#f1f1f1;border-radius:0px;font-family:"></pre>'
+'<div class="bt-form-submit-btn" style="margin-top: 0px;">' +'<div class="bt-form-submit-btn" style="margin-top: 0px;">'
@ -93,7 +93,7 @@ function getCronData(page){
// 设置计划任务状态 // 设置计划任务状态
function setTaskStatus(id,status){ function setTaskStatus(id,status){
var confirm = layer.confirm(status == '0'?'计划任务暂停后将无法继续运行,您真的要停用这个计划任务吗?':'该计划任务已停用,是否要启用这个计划任务', {title:'提示',icon:3,closeBtn:2},function(index) { var confirm = layer.confirm(status == '0'?'计划任务暂停后将无法继续运行,您真的要停用这个计划任务吗?':'该计划任务已停用,是否要启用这个计划任务', {title:'提示',icon:3,closeBtn:1},function(index) {
if (index > 0) { if (index > 0) {
var loadT = layer.msg('正在设置状态,请稍后...',{icon:16,time:0,shade: [0.3, '#000']}); var loadT = layer.msg('正在设置状态,请稍后...',{icon:16,time:0,shade: [0.3, '#000']});
$.post('/crontab/set_cron_status',{id:id},function(rdata){ $.post('/crontab/set_cron_status',{id:id},function(rdata){
@ -610,7 +610,7 @@ function editTaskInfo(id){
area: ['850px','450px'], area: ['850px','450px'],
skin:'layer-create-content', skin:'layer-create-content',
shadeClose:false, shadeClose:false,
closeBtn:2, closeBtn:1,
content:'<div class="setting-con ptb20">\ content:'<div class="setting-con ptb20">\
<div class="clearfix plan ptb10">\ <div class="clearfix plan ptb10">\
<span class="typename c4 pull-left f14 text-right mr20">任务类型</span>\ <span class="typename c4 pull-left f14 text-right mr20">任务类型</span>\

@ -196,7 +196,7 @@ function recycleBin(type){
layer.open({ layer.open({
type: 1, type: 1,
shift: 5, shift: 5,
closeBtn: 2, closeBtn: 1,
area: ['80%','606px'], area: ['80%','606px'],
title: lan.files.recycle_bin_title, title: lan.files.recycle_bin_title,
content: tablehtml content: tablehtml
@ -841,7 +841,7 @@ function createFile(type, path) {
layer.open({ layer.open({
type: 1, type: 1,
shift: 5, shift: 5,
closeBtn: 2, closeBtn: 1,
area: '320px', area: '320px',
title: '新建空白文件', title: '新建空白文件',
content: '<div class="bt-form pd20 pb70">\ content: '<div class="bt-form pd20 pb70">\
@ -881,7 +881,7 @@ function createDir(type, path) {
layer.open({ layer.open({
type: 1, type: 1,
shift: 5, shift: 5,
closeBtn: 2, closeBtn: 1,
area: '320px', area: '320px',
title: '新建目录', title: '新建目录',
content: '<div class="bt-form pd20 pb70">\ content: '<div class="bt-form pd20 pb70">\
@ -981,7 +981,7 @@ function downloadFile(action){
layer.open({ layer.open({
type: 1, type: 1,
shift: 5, shift: 5,
closeBtn: 2, closeBtn: 1,
area: '500px', area: '500px',
btn:["确定","关闭"], btn:["确定","关闭"],
title: lan.files.down_title, title: lan.files.down_title,
@ -1034,7 +1034,7 @@ function reName(type, fileName) {
layer.open({ layer.open({
type: 1, type: 1,
shift: 5, shift: 5,
closeBtn: 2, closeBtn: 1,
area: '320px', area: '320px',
title: '重命名', title: '重命名',
btn:["确定","保存"], btn:["确定","保存"],
@ -1185,7 +1185,7 @@ function zip(dirName,submits) {
layer.open({ layer.open({
type: 1, type: 1,
shift: 5, shift: 5,
closeBtn: 2, closeBtn: 1,
area: '650px', area: '650px',
title: lan.files.zip_title, title: lan.files.zip_title,
content: '<div class="bt-form pd20 pb70">' content: '<div class="bt-form pd20 pb70">'
@ -1241,7 +1241,7 @@ function unZip(fileName,type) {
layer.open({ layer.open({
type: 1, type: 1,
shift: 5, shift: 5,
closeBtn: 2, closeBtn: 1,
area: '490px', area: '490px',
title: '解压文件', title: '解压文件',
content: '<div class="bt-form pd20 pb70">' content: '<div class="bt-form pd20 pb70">'
@ -1299,7 +1299,7 @@ function getImage(fileName){
var imgUrl = '/files/download?filename='+fileName; var imgUrl = '/files/download?filename='+fileName;
layer.open({ layer.open({
type:1, type:1,
closeBtn: 2, closeBtn: 1,
title:false, title:false,
area: '500px', area: '500px',
shadeClose: true, shadeClose: true,
@ -1319,7 +1319,7 @@ function uploadFiles(){
var path = $("#DirPathPlace input").val()+"/"; var path = $("#DirPathPlace input").val()+"/";
layer.open({ layer.open({
type:1, type:1,
closeBtn: 2, closeBtn: 1,
title:lan.files.up_title, title:lan.files.up_title,
area: ['500px','300px'], area: ['500px','300px'],
shadeClose:false, shadeClose:false,
@ -1364,7 +1364,7 @@ function setChmod(action,fileName){
// console.log(rdata); // console.log(rdata);
layer.open({ layer.open({
type:1, type:1,
closeBtn: 2, closeBtn: 1,
title: '设置权限['+fileName+']', title: '设置权限['+fileName+']',
area: '400px', area: '400px',
shadeClose:false, shadeClose:false,

@ -527,7 +527,7 @@ function checkUpdate() {
} }
if (rdata.status === false) { if (rdata.status === false) {
layer.confirm(rdata.msg, { title: lan.index.update_check, icon: 1, closeBtn: 2, btn: [lan.public.know, lan.public.close] }); layer.confirm(rdata.msg, { title: lan.index.update_check, icon: 1, closeBtn: 1, btn: [lan.public.know, lan.public.close] });
return; return;
} }
layer.msg(rdata.msg, { icon: 1 }); layer.msg(rdata.msg, { icon: 1 });
@ -610,7 +610,7 @@ function reBoot() {
type: 1, type: 1,
title: '重启服务器或者面板', title: '重启服务器或者面板',
area: '330px', area: '330px',
closeBtn: 2, closeBtn: 1,
shadeClose: false, shadeClose: false,
content: '<div class="rebt-con"><div class="rebt-li"><a data-id="server" href="javascript:;">重启服务器</a></div><div class="rebt-li"><a data-id="panel" href="javascript:;">重启面板</a></div></div>' content: '<div class="rebt-con"><div class="rebt-li"><a data-id="server" href="javascript:;">重启服务器</a></div><div class="rebt-li"><a data-id="panel" href="javascript:;">重启面板</a></div></div>'
}); });
@ -620,7 +620,7 @@ function reBoot() {
var type = $(this).attr('data-id'); var type = $(this).attr('data-id');
switch (type) { switch (type) {
case 'panel': case 'panel':
layer.confirm('即将重启面板服务,继续吗?', { title: '重启面板服务', closeBtn: 2, icon: 3 }, function () { layer.confirm('即将重启面板服务,继续吗?', { title: '重启面板服务', closeBtn: 1, icon: 3 }, function () {
var loadT = layer.load(); var loadT = layer.load();
$.post('/system/restart','',function (rdata) { $.post('/system/restart','',function (rdata) {
layer.close(loadT); layer.close(loadT);
@ -634,7 +634,7 @@ function reBoot() {
type: 1, type: 1,
title: '安全重启服务器', title: '安全重启服务器',
area: ['500px', '280px'], area: ['500px', '280px'],
closeBtn: 2, closeBtn: 1,
shadeClose: false, shadeClose: false,
content: "<div class='bt-form bt-window-restart'>\ content: "<div class='bt-form bt-window-restart'>\
<div class='pd15'>\ <div class='pd15'>\
@ -692,7 +692,7 @@ function reBoot() {
//修复面板 //修复面板
function repPanel() { function repPanel() {
layer.confirm(lan.index.rep_panel_msg, { title: lan.index.rep_panel_title, closeBtn: 2, icon: 3 }, function() { layer.confirm(lan.index.rep_panel_msg, { title: lan.index.rep_panel_title, closeBtn: 1, icon: 3 }, function() {
var loadT = layer.msg(lan.index.rep_panel_the, { icon: 16, time: 0, shade: [0.3, '#000'] }); var loadT = layer.msg(lan.index.rep_panel_the, { icon: 16, time: 0, shade: [0.3, '#000'] });
$.get('/system?action=RepPanel', function(rdata) { $.get('/system?action=RepPanel', function(rdata) {
layer.close(loadT); layer.close(loadT);
@ -750,7 +750,7 @@ function showDanger(num, port) {
type: 1, type: 1,
area: ['720px', '410px'], area: ['720px', '410px'],
title: '安全提醒(如你想放弃任何安全提醒通知,请删除宝塔安全登录插件)', title: '安全提醒(如你想放弃任何安全提醒通知,请删除宝塔安全登录插件)',
closeBtn: 2, closeBtn: 1,
shift: 5, shift: 5,
content: '<div class="pd20">\ content: '<div class="pd20">\
<table class="f14 showDanger"><tbody>\ <table class="f14 showDanger"><tbody>\

@ -204,7 +204,7 @@ function changePath(d) {
type: 1, type: 1,
area: "650px", area: "650px",
title: '选择目录', title: '选择目录',
closeBtn: 2, closeBtn: 1,
shift: 5, shift: 5,
shadeClose: false, shadeClose: false,
content: "<div class='changepath'><div class='path-top'><button type='button' class='btn btn-default btn-sm' onclick='backFile()'><span class='glyphicon glyphicon-share-alt'></span></button>\ content: "<div class='changepath'><div class='path-top'><button type='button' class='btn btn-default btn-sm' onclick='backFile()'><span class='glyphicon glyphicon-share-alt'></span></button>\
@ -554,7 +554,7 @@ function onlineEditFile(k, f) {
var r = layer.open({ var r = layer.open({
type: 1, type: 1,
shift: 5, shift: 5,
closeBtn: 2, closeBtn: 1,
area: ["90%", "90%"], area: ["90%", "90%"],
title: lan.bt.edit_title+"[" + f + "]", title: lan.bt.edit_title+"[" + f + "]",
content: '<form class="bt-form pd20 pb70"><div class="line"><p style="color:red;margin-bottom:10px">'+lan.bt.edit_ps+' <select class="bt-input-text" name="encoding" style="width: 74px;position: absolute;top: 31px;right: 19px;height: 22px;z-index: 9999;border-radius: 0;">' + n + '</select></p><textarea class="mCustomScrollbar bt-input-text" id="textBody" style="width:100%;margin:0 auto;line-height: 1.8;position: relative;top: 10px;" value="" /> </div> <div class="bt-form-submit-btn" style="position:absolute; bottom:0; width:100%"> <button type="button" class="btn btn-danger btn-sm btn-editor-close">'+lan.public.close+'</button> <button id="OnlineEditFileBtn" type="button" class="btn btn-success btn-sm">'+lan.public.save+'</button> </div> </form>' content: '<form class="bt-form pd20 pb70"><div class="line"><p style="color:red;margin-bottom:10px">'+lan.bt.edit_ps+' <select class="bt-input-text" name="encoding" style="width: 74px;position: absolute;top: 31px;right: 19px;height: 22px;z-index: 9999;border-radius: 0;">' + n + '</select></p><textarea class="mCustomScrollbar bt-input-text" id="textBody" style="width:100%;margin:0 auto;line-height: 1.8;position: relative;top: 10px;" value="" /> </div> <div class="bt-form-submit-btn" style="position:absolute; bottom:0; width:100%"> <button type="button" class="btn btn-danger btn-sm btn-editor-close">'+lan.public.close+'</button> <button id="OnlineEditFileBtn" type="button" class="btn btn-success btn-sm">'+lan.public.save+'</button> </div> </form>'
@ -638,7 +638,7 @@ function safeMessage(j, h, g, f) {
type: 1, type: 1,
title: j, title: j,
area: "350px", area: "350px",
closeBtn: 2, closeBtn: 1,
shadeClose: true, shadeClose: true,
content: "<div class='bt-form webDelete pd20 pb70'><p>" + h + "</p>" + f + "<div class='vcode'>"+lan.bt.cal_msg+"<span class='text'>" + sumtext + "</span>=<input type='number' id='vcodeResult' value=''></div><div class='bt-form-submit-btn'><button type='button' class='btn btn-danger btn-sm bt-cancel'>"+lan.public.cancel+"</button> <button type='button' id='toSubmit' class='btn btn-success btn-sm' >"+lan.public.ok+"</button></div></div>" content: "<div class='bt-form webDelete pd20 pb70'><p>" + h + "</p>" + f + "<div class='vcode'>"+lan.bt.cal_msg+"<span class='text'>" + sumtext + "</span>=<input type='number' id='vcodeResult' value=''></div><div class='bt-form-submit-btn'><button type='button' class='btn btn-danger btn-sm bt-cancel'>"+lan.public.cancel+"</button> <button type='button' id='toSubmit' class='btn btn-success btn-sm' >"+lan.public.ok+"</button></div></div>"
}); });
@ -718,7 +718,7 @@ $(function() {
}); });
$("#dologin").click(function() { $("#dologin").click(function() {
layer.confirm('您真的要退出面板吗?', {icon:3,closeBtn: 2}, function() { layer.confirm('您真的要退出面板吗?', {icon:3,closeBtn: 1}, function() {
window.location.href = "/login?dologin=True" window.location.href = "/login?dologin=True"
}); });
return false return false
@ -1030,7 +1030,7 @@ function bindPanel(a,type,ip,btid,url,user,pw){
type: 1, type: 1,
area: "400px", area: "400px",
title: titleName, title: titleName,
closeBtn: 2, closeBtn: 1,
shift: 5, shift: 5,
shadeClose: false, shadeClose: false,
content: "<div class='bt-form pd20 pb70'>\ content: "<div class='bt-form pd20 pb70'>\
@ -1106,7 +1106,7 @@ function messageBox() {
type: 1, type: 1,
title: '消息盒子', title: '消息盒子',
area: "670px", area: "670px",
closeBtn: 2, closeBtn: 1,
shadeClose: false, shadeClose: false,
content: '<div class="bt-form">\ content: '<div class="bt-form">\
<div class="bt-w-main">\ <div class="bt-w-main">\
@ -1459,7 +1459,7 @@ function webShell() {
type: 1, type: 1,
title: "本地终端", title: "本地终端",
area: ['685px','435px'], area: ['685px','435px'],
closeBtn: 2, closeBtn: 1,
shadeClose: false, shadeClose: false,
content: '<div class="term-box"><div id="term"></div></div>\ content: '<div class="term-box"><div id="term"></div></div>\
<div class="shell-text-input">\ <div class="shell-text-input">\
@ -1661,7 +1661,7 @@ function pluginOpService(a, b, v) {
case "restart":d = '重启';break; case "restart":d = '重启';break;
case "reload":d = '重载';break; case "reload":d = '重载';break;
} }
layer.confirm( msgTpl('您真的要{1}{2}{3}服务吗?', [d,a,v]), {icon:3,closeBtn: 2}, function() { layer.confirm( msgTpl('您真的要{1}{2}{3}服务吗?', [d,a,v]), {icon:3,closeBtn: 1}, function() {
var e = layer.msg(msgTpl('正在{1}{2}{3}服务,请稍候...',[d,a,v]), {icon: 16,time: 0}); var e = layer.msg(msgTpl('正在{1}{2}{3}服务,请稍候...',[d,a,v]), {icon: 16,time: 0});
$.post("/plugins/run", c, function(g) { $.post("/plugins/run", c, function(g) {
layer.close(e); layer.close(e);
@ -1937,7 +1937,7 @@ function pluginOpInitD(a, _version, b) {
case "initd_install":d = '加载';break; case "initd_install":d = '加载';break;
case "initd_uninstall":d = '卸载';break; case "initd_uninstall":d = '卸载';break;
} }
layer.confirm( msgTpl('您真的要{1}{2}{3}服务吗?', [d,a,_version]), {icon:3,closeBtn: 2}, function() { layer.confirm( msgTpl('您真的要{1}{2}{3}服务吗?', [d,a,_version]), {icon:3,closeBtn: 1}, function() {
var e = layer.msg(msgTpl('正在{1}{2}{3}服务,请稍候...',[d,a,_version]), {icon: 16,time: 0}); var e = layer.msg(msgTpl('正在{1}{2}{3}服务,请稍候...',[d,a,_version]), {icon: 16,time: 0});
$.post("/plugins/run", c, function(g) { $.post("/plugins/run", c, function(g) {
layer.close(e); layer.close(e);

@ -233,7 +233,7 @@ function webAddPage(type) {
skin: 'demo-class', skin: 'demo-class',
area: '640px', area: '640px',
title: '添加网站', title: '添加网站',
closeBtn: 2, closeBtn: 1,
shift: 0, shift: 0,
shadeClose: false, shadeClose: false,
content: "<form class='bt-form pd20 pb70' id='addweb'>\ content: "<form class='bt-form pd20 pb70' id='addweb'>\
@ -673,7 +673,7 @@ function DomainRoot(id, name,msg) {
skin: 'demo-class', skin: 'demo-class',
area: '450px', area: '450px',
title: lan.site.domain_man, title: lan.site.domain_man,
closeBtn: 2, closeBtn: 1,
shift: 0, shift: 0,
shadeClose: true, shadeClose: true,
content: "<div class='divtable padding-10'>\ content: "<div class='divtable padding-10'>\
@ -869,7 +869,7 @@ function getBackup(id,name,page) {
skin: 'demo-class', skin: 'demo-class',
area: '700px', area: '700px',
title: '打包备份', title: '打包备份',
closeBtn: 2, closeBtn: 1,
shift: 0, shift: 0,
shadeClose: false, shadeClose: false,
content: "<div class='bt-form ptb15 mlr15' id='webBackup'>\ content: "<div class='bt-form ptb15 mlr15' id='webBackup'>\
@ -918,7 +918,7 @@ function setIndex(id){
type: 1, type: 1,
area: '500px', area: '500px',
title: lan.site.setindex, title: lan.site.setindex,
closeBtn: 2, closeBtn: 1,
shift: 5, shift: 5,
shadeClose: true, shadeClose: true,
content:"<form class='bt-form' id='SetIndex'><div class='SetIndex'>" content:"<form class='bt-form' id='SetIndex'><div class='SetIndex'>"
@ -964,7 +964,7 @@ function getDefaultSite(){
type: 1, type: 1,
area: '530px', area: '530px',
title: '设置默认站点', title: '设置默认站点',
closeBtn: 2, closeBtn: 1,
shift: 5, shift: 5,
shadeClose: true, shadeClose: true,
content:'<div class="bt-form ptb15 pb70">\ content:'<div class="bt-form ptb15 pb70">\
@ -1021,7 +1021,7 @@ function webEdit(id,website,endTime,addtime){
type: 1, type: 1,
area: '640px', area: '640px',
title: '站点修改['+website+'] -- 添加时间['+addtime+']', title: '站点修改['+website+'] -- 添加时间['+addtime+']',
closeBtn: 2, closeBtn: 1,
shift: 0, shift: 0,
content: "<div class='bt-form'>" content: "<div class='bt-form'>"
+"<div class='bt-w-menu pull-left' style='height: 565px;'>" +"<div class='bt-w-menu pull-left' style='height: 565px;'>"
@ -1363,7 +1363,7 @@ function showRewrite(rdata){
type: 1, type: 1,
area: '500px', area: '500px',
title: '配置伪静态规则', title: '配置伪静态规则',
closeBtn: 2, closeBtn: 1,
shift: 5, shift: 5,
shadeClose: true, shadeClose: true,
content:webBakHtml content:webBakHtml
@ -1430,7 +1430,7 @@ function to301(siteName, type, obj){
skin: 'demo-class', skin: 'demo-class',
area: '650px', area: '650px',
title: type == 1 ? '创建重定向' : '修改重定向[' + obj.redirectname + ']', title: type == 1 ? '创建重定向' : '修改重定向[' + obj.redirectname + ']',
closeBtn: 2, closeBtn: 1,
shift: 5, shift: 5,
shadeClose: false, shadeClose: false,
content: "<form id='form_redirect' class='divtable pd20' style='padding-bottom: 60px'>" + content: "<form id='form_redirect' class='divtable pd20' style='padding-bottom: 60px'>" +
@ -1632,7 +1632,7 @@ function toProxy(siteName, type, obj) {
type: 1, type: 1,
area: '650px', area: '650px',
title: "创建反向代理", title: "创建反向代理",
closeBtn: 2, closeBtn: 1,
shift: 5, shift: 5,
shadeClose: false, shadeClose: false,
btn: ['提交','关闭'], btn: ['提交','关闭'],
@ -2381,7 +2381,7 @@ function setRewriteTel(act){
aindex = layer.open({ aindex = layer.open({
type: 1, type: 1,
shift: 5, shift: 5,
closeBtn: 2, closeBtn: 1,
area: '320px', //宽高 area: '320px', //宽高
title: '保存为Rewrite模板', title: '保存为Rewrite模板',
content: '<div class="bt-form pd20 pb70">\ content: '<div class="bt-form pd20 pb70">\
@ -2408,7 +2408,7 @@ function siteDefaultPage(){
type: 1, type: 1,
area: '460px', area: '460px',
title: '修改默认页', title: '修改默认页',
closeBtn: 2, closeBtn: 1,
shift: 0, shift: 0,
content: '<div class="changeDefault pd20">\ content: '<div class="changeDefault pd20">\
<button class="btn btn-default btn-sm mg10" style="width:188px" onclick="changeDefault(1)">默认文档</button>\ <button class="btn btn-default btn-sm mg10" style="width:188px" onclick="changeDefault(1)">默认文档</button>\
@ -2465,7 +2465,7 @@ function setClassType(){
type: 1, type: 1,
area: '350px', area: '350px',
title: '网站分类管理', title: '网站分类管理',
closeBtn: 2, closeBtn: 1,
shift: 0, shift: 0,
content: '<div class="bt-form edit_site_type">\ content: '<div class="bt-form edit_site_type">\
<div class="divtable mtb15" style="overflow:auto">\ <div class="divtable mtb15" style="overflow:auto">\
@ -2523,7 +2523,7 @@ function editClassType(id,name){
type: 1, type: 1,
area: '350px', area: '350px',
title: '修改分类管理【' + name + '】', title: '修改分类管理【' + name + '】',
closeBtn: 2, closeBtn: 1,
shift: 0, shift: 0,
content: "<form class='bt-form bt-form pd20 pb70' id='mod_pwd'>\ content: "<form class='bt-form bt-form pd20 pb70' id='mod_pwd'>\
<div class='line'>\ <div class='line'>\
@ -2563,7 +2563,7 @@ function moveClassTYpe(){
type: 1, type: 1,
area: '350px', area: '350px',
title: '设置站点分类', title: '设置站点分类',
closeBtn: 2, closeBtn: 1,
shift: 0, shift: 0,
content: '<div class="bt-form edit_site_type">\ content: '<div class="bt-form edit_site_type">\
<div class="divtable mtb15" style="overflow:auto;height:80px;">\ <div class="divtable mtb15" style="overflow:auto;height:80px;">\

@ -205,7 +205,7 @@ function addVersion(name, ver, type, obj, title, install_pre_inspection) {
type: 1, type: 1,
title: titlename + "软件安装", title: titlename + "软件安装",
area: '350px', area: '350px',
closeBtn: 2, closeBtn: 1,
shadeClose: true, shadeClose: true,
btn: ['提交','关闭'], btn: ['提交','关闭'],
content: "<div class='bt-form pd20 c6'>\ content: "<div class='bt-form pd20 c6'>\
@ -262,7 +262,7 @@ function uninstallPreInspection(name, ver, callback){
function runUninstallVersion(name, version){ function runUninstallVersion(name, version){
layer.confirm(msgTpl('您真的要卸载[{1}-{2}]吗?', [name, version]), { icon: 3, closeBtn: 2 }, function() { layer.confirm(msgTpl('您真的要卸载[{1}-{2}]吗?', [name, version]), { icon: 3, closeBtn: 1 }, function() {
var data = 'name=' + name + '&version=' + version; var data = 'name=' + name + '&version=' + version;
var loadT = layer.msg('正在处理,请稍候...', { icon: 16, time: 0, shade: [0.3, '#000'] }); var loadT = layer.msg('正在处理,请稍候...', { icon: 16, time: 0, shade: [0.3, '#000'] });
$.post('/plugins/uninstall', data, function(rdata) { $.post('/plugins/uninstall', data, function(rdata) {
@ -431,7 +431,7 @@ function importPlugin(file){
type: 1, type: 1,
area: "500px", area: "500px",
title: "安装第三方插件包", title: "安装第三方插件包",
closeBtn: 2, closeBtn: 1,
shift: 5, shift: 5,
shadeClose: false, shadeClose: false,
content: '<style>\ content: '<style>\

Loading…
Cancel
Save