| Server IP : 104.21.80.248 / Your IP : 172.71.28.155 Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : SYSTEM ( 0) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Inetpub/www/news/cooprat/slide_home/ |
Upload File : |
<html>
<head>
<meta charset="utf-8">
<title>Basic jQuery Slider - Demo</title>
<link rel="stylesheet" href="bjqs.css">
<link rel="stylesheet" href="demo.css">
<script src="js/jquery-1.7.1.min.js"></script>
<script src="js/bjqs-1.3.min.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.style1 {color: #999}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
-->
</style></head>
<body>
<?php
include "../db.php";
?>
<div id="container">
<div id="banner-fade">
<ul class="bjqs">
<?php
$storypop = $mysqli->query("SELECT * FROM posts WHERE hot='1' ORDER BY id DESC LIMIT 5");
while($storypoprow = mysqli_fetch_array($storypop)){
$popdescription = stripslashes($storypoprow['description']);
$popdesc = strlen ($popdescription);
if ($popdesc > 140) {
$popsdec = substr($popdescription,0,350).'..';
}else{
$popsdec = $popdescription;}
$idhot=$storypoprow['id'];
$userid = $storypoprow['uid'];
$user = $mysqli->query("SELECT * FROM users WHERE id='$userid' LIMIT 1");
$userrow = mysqli_fetch_array($user);
$school=$userrow['school'];
$img=$storypoprow['image'];
$news=strip_tags($popsdec);
$title=substr($news,0,235).'..';
$story="story-";
$dot=".html";
$dt=strip_tags($title);
$text1=preg_replace("/&#?[a-z0-9]{2,8};/i","",$dt);
echo "<li><img src='$img' title='<a href=\"$code_url$story$idhot$dot\" target=\"_blank\"> <font color=#FFFFFF><b>$school</b></font><br>
<font color=#FFFF00> $text1</font></a>'></li>";
}
?>
</ul>
</div>
</div>
<script class="secret-source">
jQuery(document).ready(function($) {
$('#banner-fade').bjqs({
height : 345,
width : 635,
responsive : true
});
});
</script>
</body>
</html>