ok
Direktori : /home2/selectio/public_html/tnpsctestbatch.com/ |
Current File : /home2/selectio/public_html/tnpsctestbatch.com/mock-test-details.php |
<?php include "header.php" ;?> <style> table td{ text-align: left; max-width: 30%; } .twm-w-process-steps3 { padding-bottom:0px!important; } </style> <?php $heading = ""; $exam_type = ""; if($_GET['exam_id']==1){ $heading = "TNPSC Group 1"; $exam_type = " AND exam_type =".$_GET['exam_id']." ORDER BY id DESC"; } elseif($_GET['exam_id']==2){ $heading = "TNPSC Group 2/2A"; $exam_type = " AND exam_type =".$_GET['exam_id']." ORDER BY id DESC"; }else{ $heading = "TNPSC Group 4"; $exam_type = " AND exam_type =".$_GET['exam_id']." ORDER BY id DESC"; } error_log("SELECT * FROM tbl_test_series WHERE status=1".$exam_type); $test_series = $pdo->prepare("SELECT * FROM tbl_test_series WHERE status=1".$exam_type); $test_series->execute(); $result_test_series = $test_series->fetchAll(PDO::FETCH_ASSOC); $test_series_total = $test_series->rowCount(); if(isset($_GET['exam_id'])){ $mock_test_sql= $pdo->prepare("SELECT * FROM tbl_mocktest_description WHERE status=1 AND type=".$_GET['exam_id']." ORDER BY id DESC"); $mock_test_sql->execute(); $mock_test_data = $mock_test_sql->fetchAll(PDO::FETCH_ASSOC); $mock_test_total = $mock_test_sql->rowCount(); $title = $mock_test_data[0]['title']; $description = $mock_test_data[0]['description']; $keyword = $mock_test_data[0]['keyword']; } ?> <!-- Mock Details row starts here --> <div class="section-full p-t120 p-b90 site-bg-gray twm-how-it-work-area"> <div class="container"> <!-- TITLE START--> <div class="section-head center wt-small-separator-outer"> <!--<div class="wt-small-separator site-text-primary">--> <!-- <h2 class="wt-title"><?= $heading ?></h2> --> <!--</div>--> <h3 class="wt-title" style="font-size: 41px;font-weight: 500;" ><?=$title ?></h3> <p style="font-family: Arial, Helvetica, sans-serif;font-size: 18px;text-align: justify;"> <?= $description ?> </p> </div> <!-- TITLE END--> <div class="twm-how-it-work-section3"> <div class="row"> <?php if($test_series_total > 0){ $rd = 0; foreach ($result_test_series as $result_test_dats){ $rd++; ?> <div class="col-xl-4 col-lg-6 col-md-6" style="background: burlywood;padding: 25px;"> <a href="quiz/mock-exam.php?exam_id=<?= $result_test_dats['id'] ?>"> <div class="twm-w-process-steps3"> <div class="twm-w-pro-top"> <span class="twm-large-number text-clr-pink"> <?= $rd ?> </span> <div class="twm-media bg-clr-pink"> <span><img src="images/work-process/icon1.png" alt="icon1" /></span> </div> </div> <p style="text-align:center;font-weight:bolder;font-size: 18px;font-family: math;"><?= $heading ?></p> <p style="text-align:center;font-weight:bolder;font-size: 18px;font-family: math;"><?= $result_test_dats['test_name'] ?></p> </div> </a> </div> <?php } } else{ echo "No Records Founds"; } ?> </div> </div> </div> </div> <!-- Mock Details row Ends here --> <?php include "footer.php"?>