no commit message

This commit is contained in:
雨中磐石
2024-10-18 15:27:40 +08:00
parent 9a2a3a2c8a
commit 559c388ea0
103 changed files with 2021 additions and 783 deletions

View File

@@ -74,6 +74,9 @@ $(document).ready(function(){
},
loginji:function(){
addtabs({name:'登录记录',num:'loginjl',url:'system,cog,login',icons:'legal'});
},
phperr:function(){
js.open('?m=cogini&a=phperr&d=system');
}
};
js.initbtn(c);
@@ -101,6 +104,7 @@ $(document).ready(function(){
<button class="btn btn-default" click="loginji" type="button">查看登录记录</button>&nbsp;
<button class="btn btn-default" click="qingkong,1" type="button">仅清空异步队列</button>&nbsp;
<button class="btn btn-default" click="qingkong,0" type="button">清空全部</button>&nbsp;
<button class="btn btn-danger" click="phperr" type="button">PHP错误信息</button>&nbsp;
<button class="btn btn-danger" id="del_{rand}" click="delss" type="button"><i class="icon-trash"></i> 删除</button>
</td>
</tr>

View File

@@ -266,7 +266,7 @@ $(document).ready(function(){
<tr>
<td align="right">PC后端默认主题</td>
<td class="tdinput"><select id="defstype_{rand}" style="width:80px"></select>&nbsp;必须去<a href="<?=URLY?>view_themes.html" target="_blank">下载主题包</a>,否则不能使用</td>
<td class="tdinput">(已弃用)<select id="defstype_{rand}" style="width:80px"></select>&nbsp;必须去<a href="<?=URLY?>view_themes.html" target="_blank">下载主题包</a>,否则不能使用</td>
<td align="right">记录用户操作:</td>
<td class="tdinput"><select id="useropt_{rand}" class="form-control"><option value="">不记录</option><option value="1">记录到日志里</option></select></td>

View File

@@ -65,4 +65,30 @@ class coginiClassAction extends Action
}
public function phperrAction()
{
echo '<title>PHP错误信息查看</title>';
$path = @ini_get('error_log');
if(!$path)return '未设置记录php错误路径去<a href="'.URLY.'view_phperr.html">看看</a>如何设置。';
$cont = '无内容';
if(file_exists($path) && getconfig('systype')!='demo'){
$cont = @file_get_contents($path);
$str = '';
if($cont){
$arr = explode("\n", $cont);
$len = count($arr);
for($i=0;$i<$len;$i++){
$str1 = $arr[$i];
$str2 = str_replace('\\','/', $str1);
if(contain($str2, ROOT_PATH)){
if($str)$str.='<hr>';
$str.=$str1;
}
}
}
$cont = $str;
}
return $cont;
}
}

View File

@@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>选择人员</title>
<link rel="stylesheet" type="text/css" href="<?=$da['p']?>/css/css.css"/>
<link rel="stylesheet" type="text/css" href="<?=$da['p']?>/css/rock.css"/>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/js.js"></script>
<script type="text/javascript">
@@ -49,14 +49,14 @@ var c = {
});
},
resets:function(lx){
var he = winHb()-80;
var he = winHb()-90;
$('#zxuandiv').css('height',''+he+'px');
$('#xuandiv').css('height',''+he+'px');
$('#showtype').css('height',''+he+'px');
},
loaddata:function(iscs){
var url = js.getajaxurl('deptuserjson','dept','system',{'changerange':this.changerange,'gtype':'change'});
$('#showdiv_0').html('<div align="center" style="margin-top:30px"><img src="images/mloading.gif"></div>')
$('#showdiv_0').html('<div align="center" style="margin-top:30px">'+js.ling(30)+'</div>')
$.get(url,function(ret){
var d = js.decode(ret);
ret = d.data;
@@ -278,32 +278,35 @@ var c = {
}
};
</script>
<?php
echo c('color')->getApptheme(false);
?>
<style>
*{font-size:14px}
.headers{line-height:30px; background-color:#dddddd;color:#1389D3;font-size:14px;height:30px;overflow:hidden}
.lists{line-height:34px; background-color:white;font-size:14px;padding-left:5px;border-bottom:1px #eeeeee solid;color:#888888;height:34px;overflow:hidden}
.active{ background-color:#eeeeee;color:#000000;font-weight:bold}
.headers{line-height:30px; background-color:var(--main-hgcolor);color:var(--main-color);height:30px;overflow:hidden}
.lists{line-height:34px; background-color:white;font-size:14px;padding-left:5px;border-bottom:var(--border);color:#888888;height:34px;overflow:hidden}
.active{background-color:#eeeeee;font-weight:bold;color:#000000}
.listsss{padding:8px; background:white;border-bottom:1px #eeeeee solid;cursor:default;font-size:14px}
.listsss:hover{background-color:#f1f1f1}
.listsss{padding:8px; background:white;border-bottom:var(--border);cursor:default;font-size:14px}
.listsss:hover{background-color:rgba(0,0,0,0.05)}
.listss{background:white;border-bottom:1px #eeeeee solid;cursor:default;font-size:14px;padding:0px 5px}
.listss:hover{background-color:#f1f1f1}
.listss{background:white;border-bottom:var(--border);cursor:default;font-size:14px;padding:0px 5px}
.listss:hover{background-color:rgba(0,0,0,0.05)}
.listhui{color:#888888}
.listhui img{opacity:0.5}
.changeuserbotton{height:30px;width:50px; background:#d9534f;color:white;font-size:14px;border:none;padding:0px;margin:0px;line-height:20px;cursor:pointer;opacity:1;outline:none;border-radius:5px}
.changeuserbotton:hover{color:white;border:none;opacity:0.8}
.label{font-size:12px;background:#1389D3;color:white;padding:1px 3px;border-radius:5px}
.tract{ background-color:#d6edf9;}
.tract:hover{background-color:#d6edf9;}
.label{font-size:12px;background:var(--main-color);color:white;padding:1px 3px;border-radius:5px}
.tract{ background-color:var(--main-hgcolor);}
.tract:hover{background-color:var(--main-hgcolor);}
</style>
</head>
<body style="padding:0px;margin:0px; overflow:hidden;" scroll="no">
<body style="padding:0px;margin:0px; overflow:hidden; background:white" scroll="no">
<table height="100%" width="100%">
<tr>
<td valign="top" width="35%" style="border:1px #eeeeee solid">
<td valign="top" width="35%" style="border:var(--border)">
<div class="headers">&nbsp;选择部门/组</div>
<div style="height:300px;overflow:auto" id="zxuandiv">
<div class="lists active">根据部门选择 v</div>
@@ -312,7 +315,7 @@ var c = {
<div id="groupshow"></div>
</div>
</td>
<td valign="top" width="30%" style="border:1px #eeeeee solid">
<td valign="top" width="30%" style="border:var(--border)">
<div class="headers">&nbsp;选择人员</div>
<div style="height:300px;overflow:auto" id="showtype"></div>
</td>
@@ -323,25 +326,27 @@ var c = {
<div><input type="button" onclick="$('#xuandiv').html('')" value="清空"></div>
</td>
<td valign="top" width="35%" style="border:1px #eeeeee solid">
<td valign="top" width="35%" style="border:var(--border)">
<div class="headers">&nbsp;√已选择</div>
<div style="height:300px;overflow:auto" id="xuandiv"></div>
</td>
</tr>
<tr>
<td style="background-color:#dddddd" colspan="5">
<td style="background-color:var(--main-vgcolor)" colspan="5">
<table width="100%">
<tr>
<td height="50" width="10" nowrap>&nbsp;</td>
<td height="60" width="10" nowrap>&nbsp;</td>
<td width="100%">
<input type="text" id="keywords" style="border:1px #cccccc solid;height:26px;padding:2px;width:180px" placeholder="关键词搜索人员"><input onclick="c._searchkey(true)" type="button" value="搜索" style="background:#888888" class="changeuserbotton">
<div class="btn-group">
<input type="text" id="keywords" style="width:180px" placeholder="关键词搜索人员" class="input"><input onclick="c._searchkey(true)" type="button" value="搜索" class="webbtn webbtn-default">
</div>
</td>
<td><input style="width:70px;border:none" type="button" onclick="c.loaddata()" class="changeuserbotton" value="刷新数据" ></td>
<td width="20" nowrap>&nbsp;</td>
<td><input class="changeuserbotton" type="button" onclick="c.cancel()" value="取消" ></td>
<td width="20" nowrap>&nbsp;</td>
<td height="50"><input style="background:#1389D3;" onclick="c.queding()" type="button" value="确定" class="changeuserbotton"></td>
<td><input type="button" onclick="c.loaddata()" class="webbtn btn-danger" value="刷新数据" /></td>
<td width="20" nowrap>&nbsp;&nbsp;</td>
<td><input class="webbtn btn-danger" type="button" onclick="c.cancel()" value="取消" /></td>
<td width="20" nowrap>&nbsp;&nbsp;</td>
<td height="60"><input onclick="c.queding()" type="button" value="确定" class="webbtn" /></td>
<td width="10" nowrap>&nbsp;</td>
</tr>
</table>

View File

@@ -207,6 +207,10 @@ $(document).ready(function(){
}
$("input[name='_stylechange']").click(function(){
if(!get('mainstylecss')){
js.msg('success','最新已弃用');
return;
}
var val = parseFloat(this.value);
valchange=val;
var sear = ysarr.split(',')
@@ -245,7 +249,7 @@ $(document).ready(function(){
</script>
<div style="padding:10px">
<ul id="tagsl{rand}" class="nav nav-tabs">
<ul id="tagsl{rand}" style="display:flex" class="nav nav-tabs">
<li click="tesgs,0" class="active">
<a style="TEXT-DECORATION:none"><i class="icon-cog"></i> 基本设置</a>
@@ -255,7 +259,7 @@ $(document).ready(function(){
</li>
<li click="tesgs,2">
<a style="TEXT-DECORATION:none"><i class="icon-magic"></i> 切换主题皮肤</a>
<a style="TEXT-DECORATION:none"><i class="icon-magic"></i> 切换主题皮肤(弃用了)</a>
</li>
<li click="tesgs,3">
<a style="TEXT-DECORATION:none"><i class="icon-edit"></i> 签名图片</a>

View File

@@ -19,9 +19,9 @@ $(document).ready(function(){
for(var d1 in da){
var s='',s1,d=da[d1],i;
for(i=0;i<d.length;i++){
s+='<div onclick="openreng_{rand}('+d[i].id+')" style="height:20px;line-height20px;overflow:hidden;cursor:pointer">'+(i+1)+'.['+d[i].time.substr(11,5)+']'+d[i].title+'</div>';
s+='<div onclick="openreng_{rand}('+d[i].id+')" style="height:20px;line-height:20px;overflow:hidden;cursor:pointer;">'+(i+1)+'.['+d[i].time.substr(11,5)+']'+d[i].title+'</div>';
}
$('#s'+d1+'_{rand}').html('<div style="border-top:1px #eeeeee solid;margin-top:3px;">'+s+'</div>');
$('#s'+d1+'_{rand}').html('<div style="border-top:var(--border);margin-top:3px;">'+s+'</div>');
}
},'json');
},

View File

@@ -27,7 +27,7 @@ $(document).ready(function(){
if(v==2)s='<button onclick="upsho{rand}(2,'+d.id+',\''+d.key+'\')" class="btn btn-danger btn-sm" type="button">升级</button>';
if(v==0)s='<button onclick="upsho{rand}(0,'+d.id+',\''+d.key+'\')" class="btn btn-info btn-sm" type="button">安装</button>';
if(v==0||v==2){
if(d.price=='0')s+='&nbsp;<a href="javascript:;" onclick="downup{rand}('+d.id+',\''+d.name+'\')">文件对比</a>';
if(d.price=='0')s+='&nbsp;<a href="javascript:;" onclick="downup{rand}('+d.id+',\''+d.name+'\')">文件对比</a>&nbsp;<a href="javascript:;" onclick="opt{rand}.hulue('+d.id+')">忽略</a>';
$('#shiw_{rand}').html('有系统模块需要升级/安装!');
}
if(d.id=='1'){
@@ -142,6 +142,11 @@ $(document).ready(function(){
},
lianwcs:function(){
js.open('?m=index&a=testnet');
},
hulue:function(_id){
js.ajax(js.getajaxurl('hulueup','{mode}','{dir}'),{id:_id},function(s){
a.reload();
});
}
};
upsho{rand}=function(lx,id,kes){
@@ -152,7 +157,7 @@ $(document).ready(function(){
addtabs({num:'upgradefile'+id+'','url':'system,upgrade,file,id='+id+'','name':'['+na+']文件对比'});
}
js.initbtn(c);
opt{rand} = c;
upfetwontbu=function(lx, o){
if(ISDEMO){js.msg('msg','演示系统不要操作');return;}
if(!istongbu && lx!=3){

View File

@@ -21,6 +21,7 @@ $(document).ready(function(){
},{
text:'',dataIndex:'ishui',renderer:function(v, d){
var s='<font color="green">可更新</font>';
s+='&nbsp;<button type="button" onclick="upgradefile.upfile(this,'+d.id+')" class="btn btn-default btn-xs">更新</button>';
if(v==1)s='已忽略';
if(d.ting=='1')s='不同步更新模块';
return s;
@@ -41,10 +42,30 @@ $(document).ready(function(){
js.ajax(js.getajaxurl('hullue','{mode}','{dir}'),{sid:sid,id:id,lx:lx},function(s){
a.reload();
},'post','','处理中...,处理完成');
},
upfile:function(o1, fid){
o1.disabled = true;
$(o1).html(js.getmsg('更新中...'));
var ad = {};
ad.id = id;
ad.fileid = fid;
ad.oii = 1;
ad.lens = 0;
ad.ban = '';
js.ajax(js.getajaxurl('shengjianss','{mode}','{dir}'),ad,function(s){
if(s=='ok'){
$(o1).html('更新成功');
}else{
$(o1).html(s);
}
},'post',function(s){
$(o1).html('失败');
});
}
};
js.initbtn(c);
upgradefile = c;
});

File diff suppressed because one or more lines are too long