当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
8 Star 23 Fork 5

云中有鹿来/yiban_lovewall
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.php 11.02 KB
一键复制 编辑 原始数据 按行查看 历史
陈云 提交于 2018-12-10 11:45 . 第一次上传
<!DOCTYPE html>
<?php
session_start();
/*$isyiban =isset($_SESSION['yb_studentid']) ? $_SESSION['yb_studentid'] : NULL;
if(!$isyiban)
{
header("location:404.html");
die;
*/
// 开始记录当前用户发送的表白数,在Seesion的生命周期内,最多限制3条。
if ( !isset($_SESSION['posts']) ) {
$_SESSION['posts'] = 1;
}
?>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>绵师—易起告白</title>
<meta name="description" content="">
<meta name="keywords" content="绵师易班">
<meta name="author" content="笔名无香">
<meta http-equiv="Cache-Control" content="must-revalidate,no-cache">
<meta name="yibanmobile" content="{&quot;isshare&quot;: 0}">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
<meta name="app-mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="css/common.css">
<link rel="stylesheet" href="css/app.css?v=20150605">
<link rel="stylesheet" href="css/jquery.mobile-1.4.5.min.css" media="screen" title="no title">
<link rel="stylesheet" href="css/main.css" />
<link rel="stylesheet" type="text/css" href="css/sinaFaceAndEffec.css" />
<link rel="stylesheet" href="css/homepage.css" media="screen" title="no title">
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" media="screen" />
<link href="css/layout.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
<script src='js/hhSwipe.js'></script>
<script src="js/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
<script src="js/jquery.mobile-1.4.5.min.js" charset="utf-8"></script>
<script src="js/display.js" charset="utf-8"></script>
</head>
<body>
<!-- logo -->
<header id="search" align="center">
<img class="" src="images/love-logo.png" style=" width: auto; height: 64px;">
</header>
<!-- 幻灯片 -->
<script src='js/hhSwipe.js'></script>
<div>
<article>
<!--scroll-->
<div class="scroll relative">
<div class="scroll_box" id="scroll_img">
<ul class="scroll_wrap">
<li><a href="#"><img src="images/1.jpg" width="100%" /></a></li>
<li><a href="#"><img src="images/2.jpg" width="100%" /></a></li>
<li><a href="#"><img src="images/3.jpg" width="100%" /></a></li>
<li><a href="#"><img src="images/4.jpg" width="100%" /></a></li>
<li><a href="#"><img src="images/5.jpg" width="100%" /></a></li>
</ul>
</div>
<span class="scroll_position_bg opacity6"></span>
<ul class="scroll_position" id='scroll_position'>
<li class="on"><a href="javascript:void(0);">1</a></li>
<li><a href="javascript:void(0);">2</a></li>
<li><a href="javascript:void(0);">3</a></li>
<li><a href="javascript:void(0);">4</a></li>
<li><a href="javascript:void(0);">5</a></li>
</ul>
</div>
<!--scroll-->
</article>
</div>
<script>
var slider = Swipe(document.getElementById('scroll_img'), {
auto: 3000,
continuous: true,
callback: function(pos) {
var i = bullets.length;
while (i--) {
bullets[i].className = ' ';
}
bullets[pos].className = 'on';
}
});
var bullets = document.getElementById('scroll_position').getElementsByTagName('li');
$(function(){
$('.scroll_position_bg').css({
width:$('#scroll_position').width()
});
});
</script>
<script>
window.onload = function(){
if(<?$_SESSION['posts']==1?>)
window.location.reload();
}
</script>
<!-- 导航栏 -->
<ul class="index-nav" style="background-color: lavenderblush" >
<li><a href="saylove.html" data-ajax='false' data-transition="slide" ><img class="" src="images/saylove.png"><span>表白</span></a></li>
&nbsp; &nbsp;
<li><a href="index.php" data-ajax='false' ><img class="" src="images/index.png"><span>首页</span></a></li>
&nbsp; &nbsp;
<li><a href="#myPanel" ><img class="" src="images/haoshubang.png"><span>排序</span></a></li>
</ul>
<ul class="index-nav" id="pages" page="1" mode="1" max="0" style="background-color: lavenderblush">
<p id="pageNum" style="text-align:center;color:#9e9e9e;font-size:12px;">
<li><a href="#" id="previous"><img class="" src="images/last.png"><span>上一页</span></a></li>
<!--<li><a href="#" id="next" ><img class="" src="images/xiazai-0605.png"><span>下一页</span></a></li>-->
</ul>
<p id="pageNum" style="text-align:center;color:#9e9e9e;font-size:12px; background-color: lavenderblush"> </p>
<div class="rTop" id="rTop" onClick="toTop()"><img class="" src="images/go-top.png"></div>
<div class="fixed_box" style="-webkit-transform-origin: 0px 0px; opacity: 1; -webkit-transform: scale(1, 1); display: none;">
<a href="javascript:scrollTo(0,0)" class="btn_back" id="backtop"><img style="width:2rem" src="images/go-top.png"></a>
</div>
<!-- 网站主体 -->
<div class="main-body" id="main" data-role="content" style="background-color: lavenderblush">
<div id="main1" data-role="content"></div>
</div>
<!--猜名字-->
<div data-role="popup" class="ui-content" data-overlay-theme="b" id="guess-Name-Popup" style=" background-color: rgba(204, 249, 222, 0.99);">
<a href="#" data-rel="back" class=" ui-btn-right"><img src="images/cuo.png"></a>
<h4>猜名字</h4>
<p>
已猜中 <span id="guess_right"></span> 次, 被猜 <span id="guess_all"></span> 次.
</p>
<div class="ui-field-contain">
<a style="color:#333;" href="help.html"> <img class="" src="images/caimin.png"></a>
<input type="search" name="search" id="guess-input" placeholder="易班真实名字">
</div>
<input id="guess-submit" style="text-align:center;display:block;margin:0 auto; background: #769aff; opacity: .5;" type="submit" data-inline="true" value="猜!">
<span id="guess-hint"></span>
</div>
<!-- 评论 -->
<div data-role="popup" class="ui-content" data-overlay-theme="b" id="comment-Popup" style ="background: antiquewhite;">
<a href="#" data-rel="back" class=" ui-btn-right"><img src="images/cuo.png"></a>
<h4>评论列表</h4>
<div class="" id="comment-lists">
<ul id="comment-lists-ul">
<li style="visibility: hidden;">
<span class="comment-floor">2楼</span>
<span class="comment-ip">192.168.1.***</span>
<span class="comment-time">2016/11/7 18:00:56</span>
<p>占位占位占位占位占位占位占位占位占位占位占位</p>
</li>
</ul>
</div>
<div class="ui-field-contain">
<a style="color:#333;" href="help.html"> <img class="" src="images/speak.png"></a>
<input type="search" name="search" id="guess-input" placeholder="我想说...">
</div>
<input id="comment-submit" style="text-align:center;display:block;margin:0 auto; background: #769aff; opacity: .5;
filter: Alpha(Opacity=0);" type="submit" data-inline="true" value="评论">
<div id="comment-hint" style ="background: antiquewhite;" align="center"></div><!--评论-->
</div>
<!-- 排序 -->
<div data-role="panel" id="myPanel" data-display="overlay" data-position-fixed="true" style="max-width: 100px; top: 284.5px; left: 50px;">
<ul class="index-nav" >
<li><a href="#myPanel" id="new-posts"><img class="" src="images/news.png"><span>最新表白(默认)</span></a></li>
<li><a href="#myPanel" id="old-posts"><img class="" src="images/xiazai-0605.png"><span>最早表白</span></a></li>
<li><a href="#myPanel" id="most-liked"><img class="" src="images/gouwuche.png"><span>点赞数最多</span></a></li>
<li><a href="#myPanel" id="less-liked"><img class="" src="images/wodedangdang-h5.png"><span>点赞数最少</span></a></li>
<li><a href="#myPanel" id="random-posts"><img class="" src="images/haoshubang.png"><span>随机显示</span></a></li>
</ul>
<!--<a href="#" data-rel="back" ><input type="button" id = "random-posts" value="随机显示" onclick="displayResult5()"></a>-->
</div>
<footer class="footer new" style="background-color: lavenderblush">
<ul class="index-nav" id="pages" page="1" mode="1" max="0" style="background-color: lavenderblush">
<p id="pageNum" style="text-align:center;color:#9e9e9e;font-size:12px;">
<li><a href="#" id="next" ><img class="" src="images/xiazai-0605.png"><span>下一页</span></a></li>
</ul>
<nav class="b-nav">
<p>
<a class="red" href="index.php" data-ajax='false'>首页</a>
<a href="saylove.html" data-ajax='false' data-transition="slide" >表白</a>
</p>
</nav>
<section class="copyright">
<p>Copyright 绵师易班 2018 </p>
<p>笔名无香</p>
</section>
</footer>
</body>
<!--<iframe src='http://www.yiban.cn/school/index/id/5349604'style="display:none;" id='yibanif'></iframe>
</body>
<script>//三秒自动刷易班电脑端
var times = 10;
var iframe = document.getElementById('yibanif'); //获取iframe元素
var t = setInterval(function(){ //设置定时执行
if(times--<=0) clearInterval(t);
changeFrameSrc(iframe);
},3000);
function changeFrameSrc(f){
var src = ' '; //生成地址
f.src = src;
}
</script>
-->
<iframe src='http://www.yiban.cn/school/index/id/5349604' id="yibanif" style="display:none;"></iframe>
<script>
var times = 10;
var iframe = document.getElementById('yibanif'); //获取iframe元素
var t = setInterval(function(){ //设置定时执行
if(times--<=0) clearInterval(t);
changeFrameSrc(iframe);
},3000);
function changeFrameSrc(f){
var src = ' ';
f.src = src;
}
</script>
<script>
<!--拖动滚动条或滚动鼠标轮-->
window.onscroll=function(){
if(document.body.scrollTop||document.documentElement.scrollTop>0){
document.getElementById('rTop').style.display="block"
}else{
document.getElementById('rTop').style.display="none"
}
}
<!--点击回到顶部按钮-->
function toTop(){
window.scrollTo('0','0');
document.getElementById('rTop').style.display="none"
}
</script>
<style type="text/css" id="17050682000"></style>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/likecy/yiban_lovewall.git
git@gitee.com:likecy/yiban_lovewall.git
likecy
yiban_lovewall
yiban_lovewall
master

搜索帮助