( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<div class="swiper-container thumbs-cotnainer" style="height:180px; overflow:hidden">
<div class="thumbs-title">New Themes</div>
<div class="swiper-wrapper">
<?php
$me = $_GET['who'] ;
$profile = $_GET['profile'] ;
$multi = $_GET['page'] ;
$extract = explode("-",$multi);
$channel= $extract[0];
$page= $extract[1];
$cur_page = $page;
$per_page =15;
$previous_btn = true;
$next_btn = true;
$first_btn = true;
$last_btn = true;
$startRow_Latest = $page * $per_page;
$query_pag_data = "select * from profilepicture where type='2' and (isdisplay=7 or isdisplay=13 ) order by adddate DESC LIMIT $startRow_Latest, $per_page";
/*$query_pag_data = "SELECT * from profilepicture where isdisplay=5 and type = '0' ORDER BY msg_id DESC LIMIT $startRow_Latest, $per_page";
*/
$result_pag_data = mysqli_query($query_pag_data) or die('MySql Error' . mysql_error());
$msg = "";
/* --------------------------------------------- */
$query_pag_num = "SELECT COUNT(*) AS count FROM `profilepicture` where (catalogid=$me or isdisplay='15') and type=2 and (isdisplay=3 or isdisplay=4 or isdisplay=12 or isdisplay=13 or isdisplay=15 or isdisplay=5 or isdisplay=7 or isdisplay=6 or isdisplay=8 or isdisplay=9)";
$query_pag_num = "SELECT COUNT(*) AS count FROM `profilepicture` where (catalogid=$me or isdisplay='15') and type=2 and ( isdisplay=4 or isdisplay=12 or isdisplay=13 or isdisplay=15 or isdisplay=5 or isdisplay=7 or isdisplay=6 or isdisplay=8 or isdisplay=9)";
$result_pag_num = mysqli_query($query_pag_num);
$row_Latest = mysql_fetch_array($result_pag_num);
$count = $row_Latest['count'];
$no_of_paginations = ceil($count / $per_page)-1;
/* ---------------Calculating the starting and endign values for the loop----------------------------------- */
if ($cur_page >= 7) {
$startRow_Latest_loop = $cur_page - 3;
if ($no_of_paginations > $cur_page + 3)
$end_loop = $cur_page + 3;
else if ($cur_page <= $no_of_paginations && $cur_page > $no_of_paginations - 6) {
$startRow_Latest_loop = $no_of_paginations - 6;
$end_loop = $no_of_paginations;
} else {
$end_loop = $no_of_paginations;
}
} else {
$startRow_Latest_loop = 1;
if ($no_of_paginations > 7)
$end_loop = 7;
else
$end_loop = $no_of_paginations;
}
/* ----------------------------------------------------------------------------------------------------------- */
$cur_pageX =$cur_page+1;
?>
<?php /*?> <h2>
<?php
if ($previous_btn && $cur_page > 0) {
$pre = $cur_page - 1;?>
<span p='<?php echo $pre ?>' class='active post-title' > <i class="icon-chevron-left"></i></span>
<?php } else if ($previous_btn) {?>
<span class='inactive post-title'> <i class="icon-chevron-left"></i></span>
<?php }?>
</h2>
<h2>
<?php
// TO ENABLE THE NEXT BUTTON
if ($next_btn && $cur_page < $no_of_paginations) {
$nex = $cur_page + 1;?>
<span p='<?php echo $nex ?>' class='active' > <i class="icon-chevron-right"></i></span>
<?php } else if ($next_btn) {?>
<span class='inactive'><i class="icon-chevron-right"></i></span>
<?php }?></h2>
<?php */?>
<script type="text/javascript">
$(".followme").click(function() {
var ID = $(this).attr("id");
$("#newtheme").val(ID);
$("#description").html("*"+ID);
$("#description").attr("style","background-color:#09F");
selectTheme();
});
</script>
<?php
while ($row_Latest = mysql_fetch_array($result_pag_data)) { $msg_id = $db->base64url_encode($row_Latest['newsid']);?>
<div class="swiper-slide"><img src="<?php echo $server ?>/brandX.php?mag=yes&theme_id=<?php echo $row_Latest['newsid'] ?>&AppNo=254722000000&x=0&y=0&pic=<?php echo $row_Latest['picture']; ?>&gratitude=posted&context=s&filter=mood&cl=machine&overlay=0&display=1&nani=<?php echo $me ?>&width=80" height="150" width="150" alt="">
<div class="app-title"><?php echo $row_Latest['title']; ?></div>
<div class="app-category">Themes</div>
<div class="app-price">Free</div>
</div>
<?php }
?>
<div class="swiper-slide">
<div class="app-title"> </div>
<div class="app-category"></div>
<div class="app-price"></div>
</div>
</div>
</div>