$leaveword_id = $_POST['leaveword_id']; $leaveword_id = 1; echo $lwd->delLwd($leaveword_id); } elseif ($leaveword_type == "modify_post") { $leaveword_id = $_POST['leaveword_id']; $leaveword_id = 2; $leaveword = $lwd->updateLwd($leaveword_id); // var_dump($leave); // echo 1; echo json_encode($leaveword); } elseif ($leaveword_type == "modify") { $leaveword_id = $_POST['leaveword_id']; $leaveword_id = 2; $content = $_POST['content']; $content = 1; echo $lwd->updateLwdOK($leaveword_id, $content); } } /* * 往期回顾的具体显示 */ } elseif ($type == "details") { $details_id = $_POST['infoid']; //获取要显示信息的ID $details_id = 1; $details_dataBase = $_POST['details_dataBase']; //获取要显示信息的数据库表 $details_dataBase = "wx_activity_interact_project"; /* * 投票活动的往期回顾 */
if ($regex->isNumber($id)) { $leave = $lwd->updateLwd($id); echo json_encode($leave); } else { echo 0; //参数错误 } } elseif ($type == 'updateLeavewordOK') { /** * *****************后台管理员编辑、修改文章信息的评论内容,点击“提交”按钮********************** */ $id = $_REQUEST['id']; //评论ID $content = $_REQUEST['content']; //修改后的评论内容 echo $lwd->updateLwdOK($id, $content); } elseif ($type == 'top') { /** * *****************后台管理员将某篇文章置顶********************** */ $infoId = $_REQUEST['infoId']; //置顶的文章信息ID //首先查找之前有没有置顶的文章 // $sql_check_top="select id from wx_info where importance=1"; // $res_check_top=$db->getrow($sql_check_top); $sql_top = "update wx_info set importance=1 where id=" . $infoId; $res_top = $db->execsql($sql_top); if (mysql_affected_rows() > 0) { echo 1; //置顶成功 } else {