添加备注编辑

This commit is contained in:
wuhao 2020-12-01 16:15:54 +08:00
parent 0f1385d9d1
commit 766a75d709

View File

@ -8,7 +8,8 @@ $isYunYing = true;
$isYanfa = true; $isYanfa = true;
$isChanping = true; $isChanping = true;
function fix2($v){ function fix2($v)
{
$x = '00' . $v; $x = '00' . $v;
return substr($x, -2); return substr($x, -2);
} }
@ -24,6 +25,33 @@ if($act=='newevent'){
$sql = DB::insert('calendar', $dict); $sql = DB::insert('calendar', $dict);
DB::exe($sql); DB::exe($sql);
we('1'); we('1');
} else if ($act == 'edityunying') {
$id = r('id');
$dict = array(
'yunying_remark' => r('content')
);
$sql = DB::update('calendar', $dict, "id='{$id}'");
DB::exe($sql);
we('1');
} else if ($act == 'edityanfa') {
$id = r('id');
$dict = array(
'yanfa_remark' => r('content')
);
$sql = DB::update('calendar', $dict, "id='{$id}'");
DB::exe($sql);
we('1');
} else if ($act == 'editchanpin') {
$id = r('id');
$dict = array(
'chanpin_remark' => r('content')
);
$sql = DB::update('calendar', $dict, "id='{$id}'");
DB::exe($sql);
we('1');
} else if ($act == 'modievent') { } else if ($act == 'modievent') {
$id = r('id'); $id = r('id');
$keys = array('start', 'end', 'game', 'allday', 'shour', 'smin', 'event', 'title'); $keys = array('start', 'end', 'game', 'allday', 'shour', 'smin', 'event', 'title');
@ -190,8 +218,9 @@ if($act=='newevent'){
<script src="assets/js/respond.min.js"></script> <script src="assets/js/respond.min.js"></script>
<![endif]--> <![endif]-->
<script src="assets/tmpl.js"></script> <script src="assets/tmpl.js"></script>
<style>html,body,h1{font-family:"微软雅黑" !important}</style> <style>html, body, h1 {
font-family: "微软雅黑" !important
}</style>
<!--[if !IE]> --> <!--[if !IE]> -->
@ -242,7 +271,10 @@ if("ontouchend" in document) document.write("<script src='assets/js/jquery.mobil
<div class="main-container" id="main-container"> <div class="main-container" id="main-container">
<script type="text/javascript"> <script type="text/javascript">
try{ace.settings.check('main-container' , 'fixed')}catch(e){} try {
ace.settings.check('main-container', 'fixed')
} catch (e) {
}
</script> </script>
<div class="main-container-inner"> <div class="main-container-inner">
@ -266,7 +298,8 @@ if("ontouchend" in document) document.write("<script src='assets/js/jquery.mobil
</div> </div>
<style> <style>
.datarepair { z-index:1000; .datarepair {
z-index: 1000;
width: 100px; width: 100px;
height: 40px; height: 40px;
position: relative; position: relative;
@ -277,8 +310,18 @@ if("ontouchend" in document) document.write("<script src='assets/js/jquery.mobil
font-size: 16px; font-size: 16px;
display: flex; display: flex;
} }
.datarepair img { width:20px; height:20px; margin-right:5px; margin-top:3px;}
#gameinfo{margin:15px 0} .datarepair img {
width: 20px;
height: 20px;
margin-right: 5px;
margin-top: 3px;
}
#gameinfo {
margin: 15px 0
}
#gameinfo li { #gameinfo li {
padding: 0px 0 0 20px; padding: 0px 0 0 20px;
line-height: 40px; line-height: 40px;
@ -290,6 +333,7 @@ if("ontouchend" in document) document.write("<script src='assets/js/jquery.mobil
margin: 5px margin: 5px
} }
#gameinfo li:after { #gameinfo li:after {
content: ''; content: '';
display: block; display: block;
@ -301,6 +345,7 @@ if("ontouchend" in document) document.write("<script src='assets/js/jquery.mobil
top: 0; top: 0;
z-index: 10; z-index: 10;
} }
#gameinfo li:before { #gameinfo li:before {
content: ''; content: '';
display: block; display: block;
@ -311,6 +356,7 @@ if("ontouchend" in document) document.write("<script src='assets/js/jquery.mobil
left: 0px; left: 0px;
top: 0; top: 0;
} }
.fc-header { .fc-header {
position: relative; position: relative;
top: -40px; top: -40px;
@ -324,10 +370,14 @@ if("ontouchend" in document) document.write("<script src='assets/js/jquery.mobil
</div> </div>
<style> <style>
.fc-event{border:none} .fc-event {
.data_box { display: none; } border: none
}
.data_box {
display: none;
}
</style> </style>
<div class='datarepair' id="datarepair" onclick="datarepair()"> <div class='datarepair' id="datarepair" onclick="datarepair()">
<img src='assets/images/xiazai.png'/> 修复数据 <img src='assets/images/xiazai.png'/> 修复数据
@ -359,26 +409,144 @@ if("ontouchend" in document) document.write("<script src='assets/js/jquery.mobil
</div> </div>
<style> <style>
/* */ /* */
.popup-bg{width: 100%; height: 100%; min-height: 100%; background-color:rgba(000,000,000,0.5); position: fixed; top:0; z-index: 1000; display: flex; display: none;} .popup-bg {
.yiny { width: calc(100% - 350px); height: 100%; min-height: 100%; position: fixed; top:0; z-index: 1000;} width: 100%;
.popup-box {width: 350px; height: 100%; min-height:100%; background-color: #fff; position: fixed; right: 0; z-index: 1001; } height: 100%;
.pop-top {width: 100%; background-color:#ececec; display: flex; padding: 15px 20px;} min-height: 100%;
.bianji { width: 20px; height: 20px; cursor:pointer; } background-color: rgba(000, 000, 000, 0.5);
.bianji img{ width:100%; } position: fixed;
.pop-title { color:#494949; font-size: 18px; margin: 0 auto; cursor:pointer; } top: 0;
.list-box { margin: 10px 20px 0 20px; border:1px solid #f2f2f2; } z-index: 1000;
.list-title { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f2f2f2; } display: flex;
.tit { display:flex; align-items: center; font-size: 16px; color:#686868; } display: none;
.xian { width:7px; height: 15px; background-color: #5fadff; margin-left: 10px; margin-right: 5px;} }
.cptime { font-size:12px; color:#c1c1c1; margin-right: 14px; }
.cptext-box { border-bottom: 1px solid #f2f2f2; } .yiny {
.cptext-box textarea{ width: 100%; height: 100px; padding: 20px 14px; font-size:12px; color:#848484; border:0; resize: none; line-height: 18px;} width: calc(100% - 350px);
.fujian { display: flex; align-items: center; font-size: 12px; color:#b8b8b8; } height: 100%;
.fujian img{ width: 14px; height: 12px; margin-right: 7px; margin-left: 14px; } min-height: 100%;
.tianjia { width: 15px; height: 15px; margin-right: 15px; } position: fixed;
.fujian-box { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; } top: 0;
.tianjiainp { display: none !important; } z-index: 1000;
.fujian a { color:#61adfe; } }
.popup-box {
width: 350px;
height: 100%;
min-height: 100%;
background-color: #fff;
position: fixed;
right: 0;
z-index: 1001;
}
.pop-top {
width: 100%;
background-color: #ececec;
display: flex;
padding: 15px 20px;
}
.bianji {
width: 20px;
height: 20px;
cursor: pointer;
}
.bianji img {
width: 100%;
}
.pop-title {
color: #494949;
font-size: 18px;
margin: 0 auto;
cursor: pointer;
}
.list-box {
margin: 10px 20px 0 20px;
border: 1px solid #f2f2f2;
}
.list-title {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 0;
border-bottom: 1px solid #f2f2f2;
}
.tit {
display: flex;
align-items: center;
font-size: 16px;
color: #686868;
}
.xian {
width: 7px;
height: 15px;
background-color: #5fadff;
margin-left: 10px;
margin-right: 5px;
}
.cptime {
font-size: 12px;
color: #c1c1c1;
margin-right: 14px;
}
.cptext-box {
border-bottom: 1px solid #f2f2f2;
}
.cptext-box textarea {
width: 100%;
height: 100px;
padding: 20px 14px;
font-size: 12px;
color: #848484;
border: 0;
resize: none;
line-height: 18px;
}
.fujian {
display: flex;
align-items: center;
font-size: 12px;
color: #b8b8b8;
}
.fujian img {
width: 14px;
height: 12px;
margin-right: 7px;
margin-left: 14px;
}
.tianjia {
width: 15px;
height: 15px;
margin-right: 15px;
}
.fujian-box {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 0;
}
.tianjiainp {
display: none !important;
}
.fujian a {
color: #61adfe;
}
</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'></div>
@ -405,7 +573,8 @@ if("ontouchend" in document) document.write("<script src='assets/js/jquery.mobil
<div style=" position: relative;display: inline-block;"> <div style=" position: relative;display: inline-block;">
<img class='tianjia' src='/assets/images/jiahao.png'/> <img class='tianjia' src='/assets/images/jiahao.png'/>
<input name="customer_file" type="file" id="excelFile" style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;z-index: 1001;opacity: 0;filter:alpha(opacity=0);"> <input name="customer_file" type="file" id="excelFile"
style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;z-index: 1001;opacity: 0;filter:alpha(opacity=0);">
</div> </div>
</div> </div>
</div> </div>
@ -428,7 +597,8 @@ if("ontouchend" in document) document.write("<script src='assets/js/jquery.mobil
<div style=" position: relative;display: inline-block;"> <div style=" position: relative;display: inline-block;">
<img class='tianjia' src='/assets/images/jiahao.png'/> <img class='tianjia' src='/assets/images/jiahao.png'/>
<input name="customer_file" type="file" id="excelFile2" style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;z-index: 1001;opacity: 0;filter:alpha(opacity=0);"> <input name="customer_file" type="file" id="excelFile2"
style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;z-index: 1001;opacity: 0;filter:alpha(opacity=0);">
</div> </div>
</div> </div>
</div> </div>
@ -451,7 +621,8 @@ if("ontouchend" in document) document.write("<script src='assets/js/jquery.mobil
<div style=" position: relative;display: inline-block;"> <div style=" position: relative;display: inline-block;">
<img class='tianjia' src='/assets/images/jiahao.png'/> <img class='tianjia' src='/assets/images/jiahao.png'/>
<input name="customer_file" type="file" id="excelFile3" style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;z-index: 1001;opacity: 0;filter:alpha(opacity=0);"> <input name="customer_file" type="file" id="excelFile3"
style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;z-index: 1001;opacity: 0;filter:alpha(opacity=0);">
</div> </div>
</div> </div>
</div> </div>
@ -510,6 +681,7 @@ if("ontouchend" in document) document.write("<script src='assets/js/jquery.mobil
var starttime, endtime; var starttime, endtime;
var dstr = '' var dstr = ''
var dict = {}; var dict = {};
function onlyShowGame(o) { function onlyShowGame(o) {
if (o.value != '') { if (o.value != '') {
$('#datarepair').hide(); $('#datarepair').hide();