This commit is contained in:
kf_wuhao 2021-03-04 15:11:45 +08:00
parent 83888137c1
commit dbc166a46f
2 changed files with 12 additions and 11 deletions

View File

@ -300,16 +300,16 @@ if(!isn(r('myqeroles'))){
</p>
</form>
<!--延期评论权限-->
<h3>延期评论权限?</h3>
<form name="form1" method="post" action="">
<p>每行一个</p>
<p>
<textarea name="yqeroles" id="yqeroles" cols="45" rows="5" style="width:90%;height:300px;"><?=implode("\n",$YQEROLES)?></textarea>
</p>
<p>
<input type="submit" name="myqeroles" id="button" value="提交">
</p>
</form>
<!--<h3>延期评论权限?</h3>-->
<!--<form name="form1" method="post" action="">-->
<!-- <p>每行一个</p>-->
<!-- <p>-->
<!-- <textarea name="yqeroles" id="yqeroles" cols="45" rows="5" style="width:90%;height:300px;">--><?//=implode("\n",$YQEROLES)?><!--</textarea>-->
<!-- </p>-->
<!-- <p>-->
<!-- <input type="submit" name="myqeroles" id="button" value="提交">-->
<!-- </p>-->
<!--</form>-->
<p>&nbsp;</p>
</body>
</html>

View File

@ -213,9 +213,10 @@ if ($act == 'newevent') {
}
else{
unset($yanqi_history[$idx]);
$yanqi_history = array_values($yanqi_history);
}
$dict['yanqi_history']=json_encode($yanqi_history);
$dict['yanqi_history']=json_encode($yanqi_history,true);
$sql = DB::update('calendar', $dict, "id='{$id}'");
DB::exe($sql);
we('1');