File: /var/www/nclive/backend/exam_date.php
<?php
include 'top-header.php';
include 'header.php';
include 'functions.php';
//echo "<pre> Data : ",print_r($_REQUEST , TRUE )."</pre>";
//$getexamdata = examdetails($SESSION['baseurl'],$exam);
$slug="exam_date";
$getexamlist = examlist($SESSION['baseurl'],$slug);
$getotherentity = otherentity($SESSION['baseurl']);
?>
<style>
.exams_admit{
color:#000;
font-weight:bolder;
padding:0px;
margin:2px;
}
.exams_admit:hover{
color:#ff174d;
text-decoration: underline;
}
.otherlink:hover{
background-color:#ff174d;
color:white!important;
}
</style>
</br></br>
<div style="margin-bottom: 12px;" class="container">
<div class="row">
<div class="col-md-8">
<div style="border:3px solid #441f7c; border-top:0px solid red; border-radius:50px 50px 5px 5px;;" class="brand_item sm-m-top-20">
<h4 style="font-weight:bolder; border-radius:50px 50px 5px 5px; padding:5px 0px 5px 50px; background-color:#441f7c; color:#fff;"> <?php echo $getexamlist[0]["entity"]; ?> </h4>
<?php for($d=0;$d<count($getexamlist[0]["exams"]);$d++){
if ($getexamlist[0]["exams"][$d]["link"][0]["exam_name"]!=""){
?>
<div class="action_item text-left">
<h4 style="border:2px solid #000; font-weight:bolder; font-family:Gotham Rounded; color:#441f7c; margin:10px; padding:5px 0px 5px 0px;"><img class="image-responsive" src="assets/images/ssc_black.png" alt="" /> <?php echo $getexamlist[0]["exams"][$d]["category"]; ?></h4>
</div>
<?php
}
for($e=0;$e<count($getexamlist[0]["exams"][$d]['link']);$e++){
if($getexamlist[0]["exams"][$d]['link'][$e]["date_type"]=="FT"){
$var=$getexamlist[0]["exams"][$d]['link'][$e]["date"];
$myArray = explode(',', $var);
$date=' <b>From</b> '.$myArray[0].' <b>To </b>'.$myArray[1];
}
elseif($getexamlist[0]["exams"][$d]['link'][$e]["date_type"]=="N"){
$date=$getexamlist[0]["exams"][$d]['link'][$e]["date"];
}
?>
<div style="margin-left:10px;" class="action_item text-left">
<ul style="margin-top:-15px;" class="m-top-20">
<li class="m-top-20"><i class="fa fa-hand-o-right" aria-hidden="true"></i>
<a class="exams_admit" href="test.php?slug=<?php echo $getexamlist[0]["exams"][$d]['link'][$e]["url_slug"]; ?>"><?php echo $getexamlist[0]["exams"][$d]['link'][$e]["exam_name"].' | '.$date; ?> </a></li>
</ul>
</div>
<?php } }?>
</div>
</div>
<div class="col-md-4">
<div class="scroll">
<div class="wrapper cf">
<div class="content">
<div style="border:3px solid #441f7c; border-top:0px solid red; border-radius:50px 50px 5px 5px;;" class="brand_item sm-m-top-20">
<h4 style="font-weight:bolder; border-radius:50px 50px 5px 5px; padding:5px 0px 5px 50px; background-color:#441f7c; color:#fff;"> Other Links</h4>
<?php for($d=0;$d<count($getotherentity);$d++){
?>
<div class="action_item text-left">
<a href="<?php echo $getotherentity[$d]["entity_id"];?>.php"><h4 class="otherlink" style="border:2px solid #000; font-weight:bolder; font-family:Gotham Rounded; color:#441f7c; margin:10px; padding:5px 0px 5px 0px; font-size: 1.2rem;<?php if($getotherentity[$d]["entity"]==$getexamlist[0]["entity"]){ echo "background-color:#ff174d;color:white;cursor: no-drop;";}?>;"> <?php echo $getotherentity[$d]["entity"]; ?></h4></a>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
include 'footer.php';
?>