ok
Direktori : /home2/selectio/www/tnpsctestbatch.com/ |
Current File : /home2/selectio/www/tnpsctestbatch.com/today-current-affairs-in-tamil-for-TNPSC.php |
today-current-affairs-in-tamil-for-TNPSC.php<?php include 'header.php'; $query_current = $pdo->prepare("SELECT * FROM tbl_current_affairs_titile WHERE current_status=1"); $query_current->execute(); $result_current = $query_current->fetchAll(PDO::FETCH_ASSOC); $total_current = $query_current->rowCount(); $mock_test_sql= $pdo->prepare("SELECT * FROM tbl_current_affars_description WHERE status=1"); $mock_test_sql->execute(); $mock_test_data = $mock_test_sql->fetchAll(PDO::FETCH_ASSOC); $mock_test_total = $mock_test_sql->rowCount(); ?> <style> div.scrollmenu { overflow: auto; text-align: center;font-size:14px; white-space: nowrap;min-width: 35px; } div.scrollmenu span { display: inline-block; text-align: center; padding: 5px; font-size:14px; margin: 2px;min-width: 35px; text-decoration: none; } div.scrollmenu span:hover { background-color: green;font-size:14px; color:white;min-width: 35px;-webkit-text-fill-color: white; } .actives{ background-color: green; color: white;inline: 'center';-webkit-text-fill-color: white;font-weight: 900; } .sd{ background-color: #1967d2;color:white;-webkit-text-fill-color: white; font-weight: 800;min-width: 50px; } </style> <style> .twm-employer-list-style1 .twm-media { width: 115px; height: 128px; display: block; text-align: center; background-color: #fff; border-radius: 10px; box-shadow: 0px 0px 4px rgba(56, 152, 226, 0.3); margin-right: 39px; position: absolute; bottom: 4px; line-height: 150px; overflow: hidden; } @media (max-width: 576px){ .twm-employer-list-style1 p { font-size: 14px; /* padding-top: 0px; */ width: 75%; position: relative; top: 2px; /* left: 47px; */ text-align: right !important; } .twm-right-content { width: 100%; /* float: left; */ position: relative; left: 120px; top: -25px; } a.btn.btn-primary.btn-sm { position: relative; top: 40px; } .wt-small-separator { margin-top: 52px; font-size: 19px; line-height: 12px; letter-spacing: -3px; } .get_started{ margin-top: 3%; margin-left:31%; } .total_quetions_no{ margin-top: 10px !important; margin-left: 75px !important; padding-bottom: 15px !important; } } .twm-employer-list-style1 .twm-media { width: 115px; height: 128px; display: block; text-align: center; background-color: #fff; border-radius: 10px; box-shadow: 0px 0px 4px rgba(56, 152, 226, 0.3); margin-right: 39px; position: absolute; bottom: -14px; line-height: 150px; overflow: hidden; } } </style> <!-- OUR BLOG START --> <div class="section-full p-t120 p-b90 site-bg-white"> <div class="container"> <div class="row"> <div class="col-lg-9 col-md-9"> <div class="twm-jobs-list-wrap"> <div class="twm-job-categories-section-2 m-b30"> <div class="job-categories-style1 m-b30"> <div class="row"> <div class="container"> <div class="row"> <div class="col-md-12" style="display: flex;justify-content: center;"> <div class="wt-small-separator site-text-primary"> <h2><?=$mock_test_data[0]['title']?></h2> </div> </div> </div> <div class="row"> <div class="col-md-12"> <p style="font-family: Arial, Helvetica, sans-serif;font-size: 18px;text-align: justify;"> <?=$mock_test_data[0]['description']?> </p> </div> </div> </div> <div class="twm-employer-list-wrap"> <ul> <div id="current-affaires"></div> </ul> </div> </div> </div> </div> </div> </div> <div class="col-lg-3 col-md-3 rightSidebar"> <div class="side-bar"> <div class="sidebar-elements search-bx"> <div class="mb-3"> <input type="date" class="form-control" onchange="currentdate()" id="current_date" > </div> </div> </div> </div> </div> </div> </div> <!-- OUR BLOG END --> <?php include 'footer.php';?> <script> $(document).ready(function(){ page_change(); var page=0; }); function page_change(cur_page){ var date = $("#current_date").val(); var cur_page=0; <?php if(isset($_GET['page']) && $_GET['page']>0){ echo "cur_page=".$_GET['page'].";"; } ?> $('#div_loading').show(); $('#current-affaires').hide(); $.ajax({ type: 'POST', url: 'api/titles-list-api.php', data: {type:'titles',cur_page:cur_page,date:date}, success: function(response) { $('#current-affaires').empty(); $('#current-affaires').append(response); $('#div_loading').hide(); $('#current-affaires').show(); } }); } function currentdate(){ page_change(); } </script>