文章图片
文章图片
Document - 锐客网 开发区内部留言板 帐号: 口令:Document - 锐客网 *{ margin: 0px auto; padding: 0px; } .title{ width: 1260px; border: 1px solid gray; } .title_box{ height: 100px; font-size: 28px; text-align: left; line-height: 100px; margin-left: 20px; border: 1px solid gray; } .nav{ width: 1260px; border: 1px solid gray; } .nav_box{ width: 500px; height: 50px; margin-left: 20px; border: 1px solid gray; } .nav_but{ width: 100px; height: 30px; margin-top: 10px; float: left; line-height: 30px; text-align: center; margin-right: 20px; border: 1px solid gray; } .nav_but:hover{ cursor: pointer; } .nav_text{ height: 30px; margin-top: 10px; float: left; line-height: 30px; } .room{ width: 1260px; height: 450px; border: 1px solid gray; } .room_boxa{ width: 200px; height: 450px; margin-left: 20px; float: left; border: 1px solid gray; } .room_but{ width: 100px; height: 30px; margin-top: 10px; line-height: 30px; text-align: center; border: 1px solid gray; } .room_but:hover{ cursor: pointer; } .room_boxb{ width: 1000px; height: 450px; margin-left: 20px; float: left; border: 1px solid gray; }.table{ border: 1px solid gray; } #fybut{ font-size: 18px; text-align: center; } #fybut:hover{ cursor: pointer; } .room_room{ height: 360px; } class="title"> class="title_box"> 开发部内部留言板class="nav"> class="nav_box"> class="nav_but">返回首页 class="nav_but" οnclick="zhuxiao()">退出系统 class="nav_text"> 欢迎您登陆本系统class="room"> class="room_boxa"> class="room_but" class="btn btn-primary" data-toggle="modal" data-target="#myModal">发布信息 class="room_but" οnclick="chakan()">查看信息 class="room_but" οnclick="zhuxiao()">注销class="room_boxb"> class="room_room">class="modal fade" id="myModal"> class="modal-dialog"> class="modal-content"> class="modal-header"> 模态框头部 class="modal-body">信息发送
class="modal-footer">
接收人: 所有人 connect_error?die("链接失败"):""; $uid = $_SESSION["uid"]; $sql = "select a.Name,b.friend from yuangong as a,friend as b where a.UserName = b.friend and b.me='{$uid}'"; $r = $conn->query($sql); $attr1=$r->fetch_all(); for($i=0; $i {$attr1[$i][0]}"; } ?> 信息内容:
connect_error?die("链接失败"):""; switch($type){ case "denglu": $uid = $_POST["uid"]; $pwd = $_POST["pwd"]; $sql = "select * from yuangong where UserName = '{$uid}' and PassWord = '{$pwd}'"; $result=$conn->query($sql); $attr=$result->fetch_all(); if($attr != null){ $_SESSION["uid"] = $uid; echo "ok"; } else if($attr == null){ echo "no"; }; break; case "chakan": $uid = $_SESSION["uid"]; $sql = "select * from liuyan where Recever = '{$uid}' or Recever='all'" ; $result = $conn->query($sql); $attr = $result->fetch_all(); echo json_encode($attr); break; case "zhuxiao": session_destroy(); break; case "zhuce": $uid = $_POST["uid"]; $sql ="select username from yuangong where username='{$uid}'"; $result = $conn->query($sql); $attr = $result->fetch_row(); if($attr != null){ echo "cf"; }; break; case "fabu": $sender = $_SESSION["uid"]; $rec = $_POST["rec"]; $com = $_POST["com"]; $time = date("Y-m-d H:i:s",time()); $sql = "insert into LiuYan values('','{$sender}','{$rec}','{$time}','{$com}','')"; if($result = $conn->query($sql)){ echo "ok"; } break; }?>
【6.21留言板】转载于:https://www.cnblogs.com/sunhao1987/p/9210861.html