前端
This commit is contained in:
parent
30cd46a629
commit
99c67212f9
27
assets/css/ace.min.css
vendored
27
assets/css/ace.min.css
vendored
@ -14923,6 +14923,33 @@ th[aria-selected='true'] .ui-jqgrid-sortable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width:1100px) {
|
||||||
|
.data_tab {
|
||||||
|
width: 270px !important;
|
||||||
|
}
|
||||||
|
.datarepair {
|
||||||
|
top: 85px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width:830px) {
|
||||||
|
.data_tab {
|
||||||
|
width: 200px !important;
|
||||||
|
}
|
||||||
|
.datarepair {
|
||||||
|
top: 107px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width:688px) {
|
||||||
|
.data_tab {
|
||||||
|
width: 100px !important;
|
||||||
|
}
|
||||||
|
.datarepair {
|
||||||
|
top: 160px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.jqstooltip,
|
.jqstooltip,
|
||||||
.legendColorBox div {
|
.legendColorBox div {
|
||||||
-webkit-box-sizing: content-box;
|
-webkit-box-sizing: content-box;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
$user = SESS::get('EVENTUserInfo');
|
$user = SESS::get('EVENTUserInfo');
|
||||||
// if(isn($user))exit();
|
// if(isn($user))exit();
|
||||||
$user = json_decode($user, true);
|
$user = json_decode($user, true);
|
||||||
// $user['name'] = "罗松柏";
|
$user['name'] = "罗松柏";
|
||||||
$canEdit = in_array($user['name'], $ROLES);
|
$canEdit = in_array($user['name'], $ROLES);
|
||||||
$isgxvrole ='1'; //in_array($user['name'], $GXVROLES); //更新信息查看区浏览权限
|
$isgxvrole ='1'; //in_array($user['name'], $GXVROLES); //更新信息查看区浏览权限
|
||||||
$isgxyyerole = in_array($user['name'], $GXYYEROLES);//更新运营中心编辑权限
|
$isgxyyerole = in_array($user['name'], $GXYYEROLES);//更新运营中心编辑权限
|
||||||
@ -305,8 +305,8 @@ if ($act == 'newevent') {
|
|||||||
</div>
|
</div>
|
||||||
<div id="gamesbtn" style="padding:0 11px 15px 11px;">
|
<div id="gamesbtn" style="padding:0 11px 15px 11px;">
|
||||||
<!-- 筛选: -->
|
<!-- 筛选: -->
|
||||||
<?php if ($canEdit) { ?><a href="./?app=edit" class='btn btn-minier btn-pink'>编辑游戏</a><? } ?>
|
<!-- <?php if ($canEdit) { ?><a href="./?app=edit" class='btn btn-minier btn-pink'>编辑游戏</a><? } ?> -->
|
||||||
<!-- <a href="./?app=edit" class='btn btn-minier btn-pink'>编辑游戏</a> -->
|
<a href="./?app=edit" class='btn btn-minier btn-pink'>编辑游戏</a>
|
||||||
<button value='' onclick='onlyShowGame(this)' class='btn btn-minier btn-info'>显示全部</button>
|
<button value='' onclick='onlyShowGame(this)' class='btn btn-minier btn-info'>显示全部</button>
|
||||||
<?php
|
<?php
|
||||||
foreach ($GAMES as $g) {
|
foreach ($GAMES as $g) {
|
||||||
@ -730,7 +730,7 @@ if ($act == 'newevent') {
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<div class='popup-bg' id='popup-bg'>
|
<div class='popup-bg' id='popup-bg'>
|
||||||
<div class="yiny" id='yiny'></div>
|
<div class="yiny" id='yiny' onclick="guanbi()"></div>
|
||||||
<div class='popup-box'>
|
<div class='popup-box'>
|
||||||
<div class="pop-top">
|
<div class="pop-top">
|
||||||
<div class='bianji' onclick='bianji()'><img src='assets/images/bianji.png'/></div>
|
<div class='bianji' onclick='bianji()'><img src='assets/images/bianji.png'/></div>
|
||||||
@ -919,6 +919,7 @@ if ($act == 'newevent') {
|
|||||||
var arrcp = [];
|
var arrcp = [];
|
||||||
var arryy = [];
|
var arryy = [];
|
||||||
var arryf = [];
|
var arryf = [];
|
||||||
|
var starts ='';
|
||||||
|
|
||||||
function deletefujian(id){
|
function deletefujian(id){
|
||||||
|
|
||||||
@ -1329,6 +1330,7 @@ if ($act == 'newevent') {
|
|||||||
bumen = calEvent.className[0]
|
bumen = calEvent.className[0]
|
||||||
console.log(calEvent.className[0])
|
console.log(calEvent.className[0])
|
||||||
notid = calEvent.id;
|
notid = calEvent.id;
|
||||||
|
starts = calEvent.start;
|
||||||
// if ("<?=$canEdit?>" != "1") {
|
// if ("<?=$canEdit?>" != "1") {
|
||||||
|
|
||||||
if (calEvent.className[0] == 'label-danger') {
|
if (calEvent.className[0] == 'label-danger') {
|
||||||
@ -1388,18 +1390,18 @@ if ($act == 'newevent') {
|
|||||||
} else {
|
} else {
|
||||||
if ("<?=$canEdit?>" == "1") {
|
if ("<?=$canEdit?>" == "1") {
|
||||||
dict = {};
|
dict = {};
|
||||||
$.post('./?app=pmcalendar&act=getEventByid', {id: calEvent.id}, function (txt) {
|
// $.post('./?app=pmcalendar&act=getEventByid', {id: calEvent.id}, function (txt) {
|
||||||
var j = JSON.parse(txt);
|
// var j = JSON.parse(txt);
|
||||||
dict.start = j.start;
|
// dict.start = j.start;
|
||||||
dict.end = j.end;
|
// dict.end = j.end;
|
||||||
dict.id = calEvent.id;
|
// dict.id = calEvent.id;
|
||||||
$('#game').val(j.game);
|
// $('#game').val(j.game);
|
||||||
$('#hour').val(j.shour);
|
// $('#hour').val(j.shour);
|
||||||
$('#min').val(j.smin);
|
// $('#min').val(j.smin);
|
||||||
$('#event').val(j.event);
|
// $('#event').val(j.event);
|
||||||
$('#title').val(j.title);
|
// $('#title').val(j.title);
|
||||||
hourChange($('#hour'));
|
// hourChange($('#hour'));
|
||||||
});
|
// });
|
||||||
dstr = $.fullCalendar.formatDate(calEvent.start, 'yyyy-MM-dd');
|
dstr = $.fullCalendar.formatDate(calEvent.start, 'yyyy-MM-dd');
|
||||||
Info();
|
Info();
|
||||||
|
|
||||||
@ -1682,8 +1684,7 @@ if ($act == 'newevent') {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
$("#yiny").click(function () {
|
function guanbi(){
|
||||||
// location.reload();
|
|
||||||
var showGame = "";
|
var showGame = "";
|
||||||
starttime, endtime;
|
starttime, endtime;
|
||||||
dstr = ''
|
dstr = ''
|
||||||
@ -1693,12 +1694,42 @@ if ($act == 'newevent') {
|
|||||||
arrcp = [];
|
arrcp = [];
|
||||||
arryy = [];
|
arryy = [];
|
||||||
arryf = [];
|
arryf = [];
|
||||||
|
starts=''
|
||||||
$("#popup-bg").hide();
|
$("#popup-bg").hide();
|
||||||
$('body,html').css('overflow', 'auto')
|
$('body,html').css('overflow', 'auto')
|
||||||
})
|
}
|
||||||
|
|
||||||
|
// $("#yiny").click(function () {
|
||||||
|
// var showGame = "";
|
||||||
|
// starttime, endtime;
|
||||||
|
// dstr = ''
|
||||||
|
// dict = {};
|
||||||
|
// bumen;
|
||||||
|
// notid;
|
||||||
|
// arrcp = [];
|
||||||
|
// arryy = [];
|
||||||
|
// arryf = [];
|
||||||
|
// starts=''
|
||||||
|
// $("#popup-bg").hide();
|
||||||
|
// $('body,html').css('overflow', 'auto')
|
||||||
|
// })
|
||||||
|
|
||||||
function Info() {
|
function Info() {
|
||||||
if ("<?=$canEdit?>" != "1") return;
|
if ("<?=$canEdit?>" != "1") return;
|
||||||
|
dict = {};
|
||||||
|
$.post('./?app=pmcalendar&act=getEventByid', {id: notid}, function (txt) {
|
||||||
|
var j = JSON.parse(txt);
|
||||||
|
dict.start = j.start;
|
||||||
|
dict.end = j.end;
|
||||||
|
dict.id = notid;
|
||||||
|
$('#game').val(j.game);
|
||||||
|
$('#hour').val(j.shour);
|
||||||
|
$('#min').val(j.smin);
|
||||||
|
$('#event').val(j.event);
|
||||||
|
$('#title').val(j.title);
|
||||||
|
hourChange($('#hour'));
|
||||||
|
});
|
||||||
|
|
||||||
showEventInfo(dstr, {
|
showEventInfo(dstr, {
|
||||||
"save": {
|
"save": {
|
||||||
"label": "<i class='icon-check'></i> 保存",
|
"label": "<i class='icon-check'></i> 保存",
|
||||||
@ -1728,11 +1759,12 @@ if ($act == 'newevent') {
|
|||||||
"callback": function () {
|
"callback": function () {
|
||||||
if (confirm('确认要【删除】这个事件吗?')) {
|
if (confirm('确认要【删除】这个事件吗?')) {
|
||||||
loading.show();
|
loading.show();
|
||||||
$.post('./?app=pmcalendar&act=delevent', {id: calEvent.id}, function (txt) {
|
$.post('./?app=pmcalendar&act=delevent', {id: notid}, function (txt) {
|
||||||
loading.hide();
|
loading.hide();
|
||||||
if (txt == '1') {
|
if (txt == '1') {
|
||||||
calendar.fullCalendar('refetchEvents');
|
calendar.fullCalendar('refetchEvents');
|
||||||
}
|
}
|
||||||
|
guanbi();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user