GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/public_html/includes/
Upload File :
Current File : /home/serb/public_html/includes/left_midtop.php

<?php
if (!isset($gender) || $gender == 'home') {
	$gender = 'Female';
} else {
	switch(strtolower($gender)) {
		case 'diffmale' :
			$gender = 'Female\' OR gender = \'Trans';
		break;
		case 'female' :
		case 'females' :
			$gender = 'Female';
		break;
		case 'male' :
		case 'males' :
			$gender = 'Male';
		break;
		case 'tran' :
		case 'trans' :
			$gender = 'Trans';
		break;
		default : 
			$gender = 'Female';
		break;
	}
}

?><style type="text/css">
#jcl-demo a.prev {
	display: block;
	width: 27px;
	height: 53px;
	background:url(images/scroll_prev.png) 0 0 no-repeat;
	float: left;
}
#jcl-demo a.next {
	display: block;
	width: 27px;
	height: 53px;
	background:url(images/scroll_next.png) 0 0 no-repeat;
	float: left;
}
#jcl-demo a.prev {
	margin: 75px 0px 0 0;
	text-indent: 7px;
}
#jcl-demo a.next {
	margin: 75px 0 0 3px;
	text-indent: 10px;
}
#jcl-demo .carousel {
	border-radius: 10px;
	float: left;
	padding-left: 0px;
	/* Needed for rendering without flicker */
	position: relative;
	visibility: hidden;
	left: -5001px;
	width :648px !important;
	height:222px !important;
}
#jcl-demo .carousel li img{
	margin: 2px 3px 1px 5px;
}
#jcl-demo .carousel li img {
	vertical-align:middle;
	border-radius: 2px;
}
#jcl-demo .carousel, #jcl-demo .carousel * {
	box-sizing: content-box;    /* My theme uses border-box for whatever reason, I don't know. I am switching it to the standard content-box here */
}

#jcl-demo .carousel li {
	margin-right: 5px;
}

#jcl-demo .carousel a {
	display: block;
	width: 153px;
	height: 210px;
	overflow: hidden;
	position: relative;
	display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
	display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
	display: -ms-flexbox;      /* TWEENER - IE 10 */
	display: -webkit-flex;     /* NEW - Chrome */
	display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */
	
	-webkit-box-align: center;
	
	align-content: center;
	align-self: center;
	align-items: center;

	background-color: #000;
}

#jcl-demo .carousel a img {
	width: 100%;
	position: relative;
	margin: 0;
}

#jcl-demo .carousel a > div {
	width: 153px;
	opacity: 0.5;
	height: 30px !important;
	background: #000;
	color: #F6C1D5;
	z-index: 10;
	position: absolute;
	text-align: center;
	font-size: 14px;
	text-transform: uppercase;
	bottom: 15px;
	left: 0;
}
</style>
<div class="leftct_midtop">
    <div style="height:5px;"></div>
    <div class="scroller">
        <div id="jcl-demo" class="entry-content">
            <div class="custom-container main">
                <a href="#" class="prev"></a>
                <div class="carousel" style="width:648px !important;">
                    <ul>
                        <?php
                        $sql_post="SELECT * FROM escort_details WHERE status='a' AND gender = '$gender'  AND country_name='".$_SESSION['countryname']."' ORDER BY RAND()";
                        $res_post=execute_query($sql_post);
                        while($row_post=mysql_fetch_array($res_post)) {
                            $citynameParsed = getUrlAttrib($row_post['escort_city']);
                            $title = getTitle($row_post['slogan']);
                            $url = "http://{$citynameParsed}.{$serverName}/".ucfirst($row_post['gender'])."Escorts/{$row_post['nickname']}".($title ? "/{$title}" : null)."/{$row_post['id']}";
                            $sql_estpic="SELECT * FROM escort_photo WHERE postid='".$row_post['id']."' GROUP BY postid LIMIT 0,1";
                            $res_estpic=execute_query($sql_estpic);
                            while($row_estpic=mysql_fetch_array($res_estpic)) {
                            ?>
                            <li style="text-align:center; height:210px !important;"><a href="<?php echo $url; ?>"><img src="avatar.php?image=<?=$row_estpic['picture']?>">
                                <div>
                                    <p style="margin-top:0px !important; padding:5px;" id="aaa"><?=$row_post['nickname']?></p>
                                </div> 
                            </a></li>
                            <?php } ?>
                        <?php } ?>
                    </ul>
                </div>
                <a href="#" class="next"></a>
                <div class="clear"></div>
            </div>
            <script>
                $(function() {
                    $(".main .carousel").jCarouselLite({
                        btnNext: ".main .next",
                        btnPrev: ".main .prev",
                        speed: 500
                    });
                });
            </script>
        </div>
    </div> 
</div>
<?php /*
<div class="leftct_midtop">
	<div style="height:5px;"></div>
	<div class="scroller">
		<div id="jcl-demo" class="entry-content">
			<div class="custom-container main">
				<a href="#" class="prev"></a>
				<div class="carousel" style="width:648px !important;">
					<ul>
					<?php
						$todatee=date('Y-m-d');
						$sql_post="SELECT * FROM escort_details WHERE status='a' AND gender!='Male' AND country_name='".$_SESSION['countryname']."' ORDER BY RAND()";
						$res_post=execute_query($sql_post);
						while($row_post=mysql_fetch_array($res_post)) {
							$sql_estpic="SELECT * FROM escort_photo WHERE postid='".$row_post['id']."' GROUP BY postid LIMIT 0,1";
							$res_estpic=execute_query($sql_estpic);
							while($row_estpic=mysql_fetch_array($res_estpic)) {
								$title = preg_replace('/[^\da-zA-Z]/i', '', $row_post['slogan']); 
							?>
								<li style="text-align:center; height:210px !important;"><a href="http://<?php echo getUrlAttrib($row_post['escort_city']); ?>.<?php echo $serverName; ?>/<?php echo ucfirst($row_post['gender']); ?>Escort/<?= str_replace(' ', '-', $row_post['nickname']); ?><?php echo $title ? '/' . $title : null; ?>/<?php echo $row_post['id']; ?>"><img src="avtar/<?=$row_estpic['picture']?>"><br/><p class="namespan"><? echo ucfirst($row_post['nickname'])?></p></a></li>
							<?php } ?>
					<?php } ?>
					</ul>
				</div>
				<a href="#" class="next"></a>
				<div class="clear"></div>
			</div>
			<script>
				$(function() {
					$(".main .carousel").jCarouselLite({
						btnNext: ".main .next",
						btnPrev: ".main .prev",
						speed: 500
					});
				});
			</script>
		</div> 
	</div>
</div> */ ?>

./BlackJoker Mini Shell 1.0