<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="UTF-8">
<title>动漫小屋</title>
<link rel="stylesheet" href="./css/bootstrap.css">
<link rel="stylesheet" href="./css/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
</head>
<body>
<?php
session_start();
if(isset($_GET['action']) && $_GET['action']=='logout'){
//清除 COOKIE 数据
setcookie('userName','',time()-1);
setcookie('password','',time()-1);
// //清除 SESSION 数据
unset($_SESSION['userInfo']);
//如果 SESSION 中没有其他数据,则销毁 SESSION
if(empty($_SESSION)){
session_destroy();
}
header('Location: index.php');
}
//判断 SESSION 中是否存在用户信息
if(isset($_SESSION['userInfo'])){
//用户信息存在,说明用户已经登录
$login = true; //保存用户登录状态
$userInfo = $_SESSION['userInfo']; //获取用户信息
}else{
//用户信息不存在,说明用户没有登录
$login = false;
}
?>
<!--顶部导航栏-->
<?php
require_once 'nav.php';
?>
<!--轮播图-->
<div id="carousel" class="carousel slide w-100 bg-dark" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#carousel" data-slide-to="0" class="active"></li>
<li data-target="#carousel" data-slide-to="1"></li>
<li data-target="#carousel" data-slide-to="2"></li>
<li data-target="#carousel" data-slide-to="3"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item active">
<img src="./img/banner/banner01.jpg" class="mx-auto d-block img-fluid" alt="">
</div>
<div class="carousel-item">
<img src="./img/banner/banner02.jpg" class="mx-auto d-block img-fluid" alt="">
</div>
<div class="carousel-item">
<img src="img/banner/banner03.jpg" class="mx-auto d-block img-fluid" alt="">
</div>
<div class="carousel-item">
<img src="./img/banner/banner04.jpg" class="mx-auto d-block img-fluid" alt="">
</div>
<a class="carousel-control-prev" href="#carousel" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carousel" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
<!--分区导航栏-->
<div id="catNavBar" class="container-fluid px-auto bg-light rounded my-2">
<div class="row">
<div class="col-6 col-md-3 d-flex align-items-center justify-content-center">
<a href="adventureArea.php" class="w-25 btn btn-info rounded-pill text-decoration-none m-2 align-self-start">冒险类</a>
<div class="text-muted">冒险类</div>
</div>
<div class="col-6 col-md-3 d-flex align-items-center justify-content-center">
<a href="battleArea.php" class="w-25 btn btn-info rounded-pill text-decoration-none m-2 align-self-start">战斗类</a>
<div class="text-muted">战斗类</div>
</div>
<div class="col-6 col-md-3 d-flex align-items-center justify-content-center">
<a href="funnyArea.php" class="w-25 btn btn-info rounded-pill text-decoration-none m-2 align-self-start">搞笑类</a>
<div class="text-muted">搞笑类</div>
</div>
<div class="col-6 col-md-3 d-flex align-items-center justify-content-center">
<a href="otherArea.php" class="w-25 btn btn-info rounded-pill text-decoration-none m-2 align-self-start">其他类</a>
<div class="text-muted">其他类</div>
</div>
</div>
</div>
<!--时下流行-->
<!--标题导航栏-->
<div class="container-fluid mt-4 mb-4">
<div class="title d-flex ml-5 mb-0">
<h2 class="mb-0">热门番剧</h2>
<a href="hotVideo.php" class="align-self-end ml-auto text-muted text-decoration-none">查看全部>></a>
</div>
<hr>
</div>
<!--内容栏-->
<div class="container-fluid mb-5">
<div class="row">
<?php
require 'init/videodao.php';
$hotVideos = findHotVideos();
for($i=0;$i<count($hotVideos);$i++){
echo '<div class="item col-sm-12 col-md-4 col-xl-2 mb-4">
<div class="itemBody d-flex flex-column mx-2 align-items-center">
<a href="video.php?vid='.$hotVideos[$i]['vid'].'">
<img src="'.$hotVideos[$i]['coverUrl'].'" alt=""></a>
<div class="text mx-auto pt-2">
'.$hotVideos[$i]['videoName'].'
</div>
</div>
</div>';
}
?>
</div>
</div>
<!--最新上线-->
<!--标题导航栏-->
<div class="container-fluid mb-4">
<div class="title d-flex ml-5 mb-0">
<h2 class="mb-0">最新上线</h2>
<a href="latestVideo.php" class="align-self-end ml-auto text-muted text-decoration-none">查看全部>></a>
</div>
<hr>
</div>
<!--内容栏-->
<div class="container-fluid mb-5">
<div class="row">
<?php
$latestVideos = findLatestVideos();
for($i=0;$i<count($latestVideos);$i++){
echo '<div class="item col-sm-12 col-md-4 col-xl-2 mb-4">
<div class="itemBody d-flex flex-column mx-2 align-items-center">
<a href="video.php?vid='.$latestVideos[$i]['vid'].'">
<img src="'.$latestVideos[$i]['coverUrl'].'" alt=""></a>
<div class="text mx-auto pt-2">
'.$latestVideos[$i]['videoName'].'
</div>
</div>
</div>';
}
?>
</div>
</div>
<!--底部-->
<?php
require 'footer.php'
?>
<script src="js/jquery-3.5.1.js"></script>
<script src="./js/bootstrap.bundle.js"></script>
<script>
let change = document.getElementById("change");
let img = document.getElementById("code_img");
change.onclick = function(){
img.src = "init/vericode.php?t="+Math.random(); //增加一个随机参数,防止图片缓存
return false; //阻止超链接的跳转动作
}
</script>
</body>
</html>
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
【资源说明】 基于PHP+Mysql实现的动漫网站源码+sql数据库.zip基于PHP+Mysql实现的动漫网站源码+sql数据库.zip基于PHP+Mysql实现的动漫网站源码+sql数据库.zip基于PHP+Mysql实现的动漫网站源码+sql数据库.zip基于PHP+Mysql实现的动漫网站源码+sql数据库.zip基于PHP+Mysql实现的动漫网站源码+sql数据库.zip基于PHP+Mysql实现的动漫网站源码+sql数据库.zip 基于PHP+Mysql实现的动漫网站源码+sql数据库.zip 基于PHP+Mysql实现的动漫网站源码+sql数据库.zip 基于PHP+Mysql实现的动漫网站源码+sql数据库.zip 【备注】 1.项目代码均经过功能验证ok,确保稳定可靠运行。欢迎下载使用体验! 2.主要针对各个计算机相关专业,包括计算机科学、信息安全、数据科学与大数据技术、人工智能、通信、物联网等领域的在校学生、专业教师、企业员工。 3.项目具有丰富的拓展空间,不仅可作为入门进阶,也可直接作为毕设、课程设计、大作业、初期项目立项演示等用途。 4.当然也鼓励大家基于此进行二次开发。在使用过程中,如有问题或建议,请及时沟通。 5.期待你能在项目中找到乐趣和灵感,也欢迎你的分享和反馈!
资源推荐
资源详情
资源评论
收起资源包目录
基于PHP+Mysql实现的动漫网站源码+sql数据库.zip (203个子文件)
bootstrap.css 194KB
bootstrap.css 194KB
bootstrap.min.css 157KB
bootstrap.min.css 157KB
bootstrap-grid.css 66KB
bootstrap-grid.css 66KB
bootstrap-grid.min.css 50KB
bootstrap-grid.min.css 50KB
bootstrap-reboot.css 5KB
bootstrap-reboot.css 5KB
bootstrap-reboot.min.css 4KB
bootstrap-reboot.min.css 4KB
style.css 2KB
style.css 2KB
style.css 262B
style.css 262B
movie.iml 281B
movie.iml 281B
20201229224338182.jpg 1.24MB
3.jpg 1.24MB
20201229224338182.jpg 1.24MB
3.jpg 1.24MB
7.jpg 1.21MB
7.jpg 1.21MB
banner03.jpg 796KB
banner03.jpg 796KB
banner04.jpg 686KB
banner04.jpg 686KB
BG.jpg 450KB
BG.jpg 450KB
5.jpg 442KB
5.jpg 442KB
6.jpg 406KB
6.jpg 406KB
banner02.jpg 298KB
banner02.jpg 298KB
banner01.jpg 222KB
banner01.jpg 222KB
2.jpg 221KB
2.jpg 221KB
20201230143638648.jpg 202KB
20201230143039342.jpg 202KB
20201230143638648.jpg 202KB
20201230143039342.jpg 202KB
8.jpg 124KB
8.jpg 124KB
9.jpg 114KB
9.jpg 114KB
4.jpg 100KB
4.jpg 100KB
20201227185606903.jpg 35KB
20201227185606903.jpg 35KB
jquery-3.5.1.js 293KB
jquery-3.5.1.js 293KB
jquery-3.4.1.js 274KB
jquery-3.4.1.js 274KB
bootstrap.bundle.js 224KB
bootstrap.bundle.js 224KB
bootstrap.js 133KB
bootstrap.js 133KB
bootstrap.bundle.min.js 79KB
bootstrap.bundle.min.js 79KB
bootstrap.min.js 59KB
bootstrap.min.js 59KB
bootstrap.min.css.map 631KB
bootstrap.min.css.map 631KB
bootstrap.css.map 496KB
bootstrap.css.map 496KB
bootstrap.bundle.js.map 400KB
bootstrap.bundle.js.map 400KB
bootstrap.bundle.min.js.map 308KB
bootstrap.bundle.min.js.map 308KB
bootstrap.js.map 248KB
bootstrap.js.map 248KB
bootstrap.min.js.map 187KB
bootstrap.min.js.map 187KB
bootstrap-grid.css.map 155KB
bootstrap-grid.css.map 155KB
bootstrap-grid.min.css.map 113KB
bootstrap-grid.min.css.map 113KB
bootstrap-reboot.css.map 76KB
bootstrap-reboot.css.map 76KB
bootstrap-reboot.min.css.map 32KB
bootstrap-reboot.min.css.map 32KB
说明.md 784B
说明.md 784B
index.php 7KB
index.php 7KB
nav.php 7KB
nav.php 7KB
videodao.php 7KB
videodao.php 7KB
video.php 4KB
video.php 4KB
doLogin.php 4KB
doLogin.php 4KB
doVideoUpload.php 3KB
doVideoUpload.php 3KB
doUpdateUser.php 3KB
doUpdateUser.php 3KB
共 203 条
- 1
- 2
- 3
资源评论
北航程序员小C
- 粉丝: 2222
- 资源: 1823
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功