parent
b3a5b52765
commit
3869f4d209
9 changed files with 227 additions and 279 deletions
@ -0,0 +1,41 @@ |
||||
|
||||
</div> |
||||
</div> |
||||
<!-- /#page-content-wrapper --> |
||||
|
||||
</div> |
||||
<!-- /#wrapper --> |
||||
|
||||
<script>$(document).pjax('a', '.container');</script> |
||||
<script src="https://cn.yimian.xyz/video/js/bootstrap.min.js"></script> |
||||
<script type="text/javascript"> |
||||
$(document).ready(function () { |
||||
var trigger = $('.hamburger'), |
||||
overlay = $('.overlay'), |
||||
isClosed = false; |
||||
|
||||
trigger.click(function () { |
||||
hamburger_cross(); |
||||
}); |
||||
|
||||
function hamburger_cross() { |
||||
|
||||
if (isClosed == true) { |
||||
overlay.hide(); |
||||
trigger.removeClass('is-open'); |
||||
trigger.addClass('is-closed'); |
||||
isClosed = false; |
||||
} else { |
||||
overlay.show(); |
||||
trigger.removeClass('is-closed'); |
||||
trigger.addClass('is-open'); |
||||
isClosed = true; |
||||
} |
||||
} |
||||
|
||||
$('[data-toggle=\"offcanvas\"]').click(function () { |
||||
$('#wrapper').toggleClass('toggled'); |
||||
}); |
||||
}); |
||||
</script> |
||||
|
@ -0,0 +1,7 @@ |
||||
<?php |
||||
include '../functions.php'; |
||||
|
||||
echo file_get_contents("./body_down.html"); |
||||
yimian__simpleFooter(); |
||||
|
||||
|
@ -0,0 +1,42 @@ |
||||
|
||||
|
||||
<div id="wrapper"> |
||||
<div class="overlay"></div> |
||||
|
||||
<!-- Sidebar --> |
||||
<nav class="navbar navbar-inverse navbar-fixed-top" id="sidebar-wrapper" role="navigation"> |
||||
<ul class="nav sidebar-nav"> |
||||
<li class="sidebar-brand"> |
||||
<a href="./"> |
||||
Yimian Video |
||||
</a> |
||||
</li> |
||||
<li> <a href="./"><i class="fa fa-fw fa-home"></i>Video Home</a> |
||||
</li> |
||||
<li> |
||||
<a href="./acg.php?class=1"><i class="fa fa-fw fa-folder"></i> ACG</a> |
||||
</li> |
||||
<li> |
||||
<a href="./acg.php?class=2"><i class="fa fa-fw fa-file-o"></i> Movies</a> |
||||
</li> |
||||
<li> |
||||
<a href="./acg.php?class=3"><i class="fa fa-fw fa-cog"></i> Documentary</a> |
||||
</li> |
||||
<li> |
||||
<a href="./acg.php?class=4"><i class="fa fa-fw fa-cog"></i> TV Play</a> |
||||
</li> |
||||
<li> |
||||
<a href="../"><i class="fa fa-fw fa-twitter"></i>Back to Yimian Page</a> |
||||
</li> |
||||
</ul> |
||||
</nav> |
||||
<!-- /#sidebar-wrapper --> |
||||
|
||||
<!-- Page Content --> |
||||
<div id="page-content-wrapper"> |
||||
<button type="button" class="hamburger is-closed animated fadeInLeft" data-toggle="offcanvas"> |
||||
<span class="hamb-top"></span> |
||||
<span class="hamb-middle"></span> |
||||
<span class="hamb-bottom"></span> |
||||
</button> |
||||
<div class="container"> |
@ -0,0 +1,12 @@ |
||||
<?php |
||||
include '../functions.php'; |
||||
|
||||
yimian__header("Yimian Video","video,Yimian","This is the page for showing video class."); |
||||
|
||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"https://cn.yimian.xyz/video/css/bootstrap.css\"> |
||||
<link rel=\"stylesheet\" href=\"https://cn.yimian.xyz/video/css/style.css\">"; |
||||
|
||||
|
||||
yimian__headerEnd(); |
||||
|
||||
echo file_get_contents("./body_up.html"); |
@ -1,62 +1,11 @@ |
||||
<?php |
||||
include '../functions.php'; |
||||
|
||||
yimian__header("Yimian Video","video,Yimian","This is the page for showing video class."); |
||||
|
||||
|
||||
echo " |
||||
<link rel=\"stylesheet\" type=\"text/css\" href=\"css/bootstrap.css\"> |
||||
<link rel=\"stylesheet\" href=\"css/style.css\">"; |
||||
|
||||
|
||||
|
||||
yimian__headerEnd(); |
||||
video__bodyUp(); |
||||
|
||||
echo file_get_contents("./mainlist.html"); |
||||
|
||||
echo" |
||||
<script src=\"js/bootstrap.min.js\"></script> |
||||
<script type=\"text/javascript\"> |
||||
$(document).ready(function () { |
||||
var trigger = $('.hamburger'), |
||||
overlay = $('.overlay'), |
||||
isClosed = false; |
||||
|
||||
trigger.click(function () { |
||||
hamburger_cross(); |
||||
}); |
||||
|
||||
function hamburger_cross() { |
||||
video__bodyDown(); |
||||
|
||||
if (isClosed == true) { |
||||
overlay.hide(); |
||||
trigger.removeClass('is-open'); |
||||
trigger.addClass('is-closed'); |
||||
isClosed = false; |
||||
} else { |
||||
overlay.show(); |
||||
trigger.removeClass('is-closed'); |
||||
trigger.addClass('is-open'); |
||||
isClosed = true; |
||||
} |
||||
} |
||||
|
||||
$('[data-toggle=\"offcanvas\"]').click(function () { |
||||
$('#wrapper').toggleClass('toggled'); |
||||
}); |
||||
}); |
||||
</script>"; |
||||
echo " |
||||
<script> |
||||
var watching=0; |
||||
$.post(\"./fpcheck.php\",{ |
||||
fp: fp |
||||
}, |
||||
function(msg){ |
||||
if(msg.code==1){document.getElementById(\"p1\").innerHTML='<a href=\"./video.php\">点这里继续上次播放!</a>';} |
||||
},\"json\"); |
||||
</script>"; |
||||
|
||||
yimian__simpleFooter(); |
||||
|
||||
|
@ -0,0 +1,102 @@ |
||||
<!DOCTYPE html> |
||||
<?php |
||||
//if(!isset($_GET['_pjax'])) header("Location: https://cn.yimian.xyz/video/acg.php?class=".$_GET['class']); |
||||
?> |
||||
|
||||
<?php |
||||
include '../functions.php'; |
||||
header('content-type:text/html;charset=utf-8'); |
||||
$conn=db__connect(); |
||||
|
||||
$class=$_GET['class']; |
||||
|
||||
|
||||
//get row info form table blog with id |
||||
|
||||
|
||||
|
||||
$sql = "SELECT * FROM videoIndx where class=$class"; |
||||
|
||||
|
||||
$result = $conn->query($sql); |
||||
?> |
||||
|
||||
|
||||
|
||||
|
||||
<?php //declear function
|
||||
|
||||
|
||||
|
||||
|
||||
//fnct of get table row number::(data_cnnct var,table name) ::(row number) |
||||
function sql_rowNum($conn,$tableSql) |
||||
{ |
||||
$row_count = $conn->query("SELECT COUNT(*) FROM $tableSql"); |
||||
list($row_num) = $row_count->fetch_row(); |
||||
return ($row_num); |
||||
} |
||||
|
||||
//fnct of getting row data from database::(data_cnnct var, table name,column name, column value)::(row info) |
||||
function sql_data($conn,$table,$clmnName,$value) |
||||
{ |
||||
$sql = "SELECT * FROM $table where $clmnName=$value"; |
||||
|
||||
$result = $conn->query($sql); |
||||
///禁止非法访问 |
||||
if ($result->num_rows > 0) {}else{echo "<script>alert('Illegal Visit!');setTimeout(function(){top.location='/404.php';},0)</script>";} |
||||
|
||||
$row = $result->fetch_assoc(); |
||||
|
||||
return ($row); |
||||
|
||||
} |
||||
|
||||
function array_orderby() |
||||
{ |
||||
$args = func_get_args(); |
||||
$data = array_shift($args); |
||||
foreach ($args as $n => $field) { |
||||
if (is_string($field)) { |
||||
$tmp = array(); |
||||
foreach ($data as $key => $row) |
||||
$tmp[$key] = $row[$field]; |
||||
$args[$n] = $tmp; |
||||
} |
||||
} |
||||
$args[] = &$data; |
||||
call_user_func_array('array_multisort', $args); |
||||
return array_pop($args); |
||||
} |
||||
|
||||
?> |
||||
|
||||
|
||||
<div class="row"> |
||||
<div class="col-lg-8 col-lg-offset-2"> |
||||
<h1 class="page-header"><?php |
||||
if($class==1)echo 'ACG (动漫)'; |
||||
if($class==2)echo 'Movies (电影)'; |
||||
if($class==3)echo 'Documentary (纪录片)'; |
||||
if($class==4)echo 'TV Play (电视剧)'; |
||||
?></h1> |
||||
<p class="lead">Share video with the one you love!</p> |
||||
|
||||
<?php
|
||||
if ($result->num_rows > 0) { |
||||
// 输出数据 |
||||
while($row = $result->fetch_assoc()) { |
||||
echo '<h4><a href="./list.php?idd='.$row['idd'] |
||||
.'">' . $row['series'].'</a></h4><p>'.$row['comment'].'</p><br/>'; |
||||
|
||||
|
||||
} |
||||
} else { |
||||
echo "404 No Found!"; |
||||
}?> |
||||
|
||||
|
||||
</br></br><p><a href="index.php">Click here to go back~</a></p> |
||||
</br> |
||||
</div> |
||||
</div> |
Loading…
Reference in new issue