This commit is contained in:
ts_lvzimo 2020-12-04 14:46:35 +08:00
parent 13f6295879
commit 1f0d486f30

View File

@ -1013,22 +1013,21 @@ if ($act == 'newevent') {
}
;
if ("<?=$canEdit?>" == "1") {
if (i == 0) {
$('#cptext').attr('disabled', false)
$('#yytext').attr('disabled', false)
$('#yftext').attr('disabled', false)
$(".upfujian").show();
i = 1;
} else {
$('#cptext').attr('disabled', true)
$('#yytext').attr('disabled', true)
$('#yftext').attr('disabled', true)
$(".upfujian").hide();
i = 0;
}
}
;
// if ("<?=$canEdit?>" == "1") {
// if (i == 0) {
// $('#cptext').attr('disabled', false)
// $('#yytext').attr('disabled', false)
// $('#yftext').attr('disabled', false)
// $(".upfujian").show();
// i = 1;
// } else {
// $('#cptext').attr('disabled', true)
// $('#yytext').attr('disabled', true)
// $('#yftext').attr('disabled', true)
// $(".upfujian").hide();
// i = 0;
// }
// };
// $canEdit = in_array($user['name'], $ROLES);
// $isgxvrole = in_array($user['name'], $GXVROLES); //更新信息查看区浏览权限