Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
ynormeco
/
public_html
/
smapi
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/ynormeco/public_html/smapi/index.php
<?php include("inc/config.php"); $conn = connect_database(); session_start(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Satta Matka</title> <!-- google font --> <link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" rel="stylesheet" type="text/css" /> <!--bootstrap --> <link href="assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> <link href="assets/plugins/summernote/summernote.css" rel="stylesheet"> <!-- Material Design Lite CSS --> <!-- icons --> <link href="fonts/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css" /> <link href="fonts/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/> <link href="fonts/material-design-icons/material-icon.css" rel="stylesheet" type="text/css" /> <link rel="stylesheet" href="assets/plugins/material/material.min.css"> <link rel="stylesheet" href="assets/css/material_style.css"> <!-- inbox style --> <link href="assets/css/pages/inbox.min.css" rel="stylesheet" type="text/css" /> <!-- Theme Styles --> <link href="assets/css/theme/light/theme_style.css" rel="stylesheet" id="rt_style_components" type="text/css" /> <link href="assets/css/plugins.min.css" rel="stylesheet" type="text/css" /> <link href="assets/css/theme/light/style.css" rel="stylesheet" type="text/css" /> <link href="assets/css/responsive.css" rel="stylesheet" type="text/css" /> <link href="assets/css/theme/light/theme-color.css" rel="stylesheet" type="text/css" /> <script src="js/jquery.min.js"></script> <script type="text/javascript" src="js/varify-user.js"></script> </head> <!-- END HEAD --> <body class="page-header-fixed sidemenu-closed-hidelogo page-content-white page-md header-white white-sidebar-color logo-indigo"> <div class="page-wrapper"> <!-- start page container --> <div class="page-container"> <!-- start sidebar menu --> <!-- end sidebar menu --> <!-- start page content --> <div class=""> <div class="page-content"> <div class="row"> <div class="col-lg-12 col-md-12 col-sm-12 col-12"> <div class="card-box"> <br> <!-- <p align="center"><a href="https://www.sattamatkaa.co.in/notify/app-notification.php" target="_blank"><strong>Send Notification</strong></a></p> --> <?php $login = isset($_GET['delete']) ? $_GET['delete'] : NULL; if($login == 'success') { echo "<p align='center'> <span style='color:#276214; font-size:15px;'> <strong> Delete Succesfully</strong> </span> </p>"; } $login2 = isset($_GET['update']) ? $_GET['update'] : NULL; if($login2 == 'success') { echo "<p align='center'> <span style='color:#276214; font-size:15px;'> <strong> Updated Succesfully</strong> </span> </p>"; } $login1 = isset($_GET['insert']) ? $_GET['insert'] : NULL; if($login1 == 'success') { echo "<p align='center'> <span style='color:#276214; font-size:15px;'> <strong> Added Succesfully</strong> </span> </p>"; } if($login1 == 'fail') { echo "<p align='center'> <span style='color:#276214; font-size:15px;'> <strong> No Blank Enrty</strong> </span> </p>"; } ?> <div class="table-responsive"> <table class="table table-striped custom-table table-hover "> <tbody> <?php $i =1; $edit = isset($_GET['edit']) ? $_GET['edit'] : NULL; $midd = isset($_GET['mid']) ? $_GET['mid'] : NULL; date_default_timezone_set("Asia/Calcutta"); $currdate = date("Y-m-d"); // $currdate = "2025-12-13"; $today = date("D"); $sql = mysqli_query($conn,"select * from `market_category` where `display` = 'Yes' ORDER BY `srno` ASC "); while($row = mysqli_fetch_array($sql)) { $id = $row['id']; $days01 = $row['days']; $c50 = ""; $sql50 = mysqli_query($conn,"select * from live_update where `market_name` = '$id' and `entrydate` = '$currdate' "); if($row150 = mysqli_fetch_array($sql50)) { $c50 = $row150['c']; } $lengthOfC50 = strlen($c50); echo "<tr>"; if($midd == $id) { $id5 = $_GET['id']; $edate = $_GET['edate']; $sql5 = mysqli_query($conn,"select * from live_update where id = '$id5' "); if($row15 = mysqli_fetch_array($sql5)) { $mname = $row15['market_name']; $desc = $row15['msg']; $open = $row15['l1']."".$row15['l2']."".$row15['l3']; $c = $row15['c']; $close = $row15['r1']."".$row15['r2']."".$row15['r3']; echo "<td width='20%' style='font-size:12px;'>".$row['market_name']."-".$days01."</td>"; echo "<form class='form-horizontal' id='simple_form_1' method='POST' action='pages/update_live_up.php?id=$id5&cat=$mname&edate=$edate' 'onSubmit='return chk();' autocomplete='off'> <td width='80%' style='padding:5px;'>"; echo "<table style='width:100%; padding:0px;'>"; echo "<tr style='width:100%; padding:0px;'> <td style='width:30%; padding:2px;'><input type='text' name='open' placeholder='Open' value='$open' class='' maxlength='3' style='width:100%; font-size:12px; padding:5px;'/> </td> <td style='width:30%; padding:2px;'><input type='text' name='close' placeholder='Close' value='$close' class='' maxlength='3' style='width:100%; font-size:12px; padding:5px;' /></td> <td style='width:30%; padding:2px;' ><input type='submit' name='status' class='btn btn-danger' value='Update' style='width:100%;'></td></tr> </form>"; echo "<tr style='width:100%; '> <form class='form-horizontal' id='simple_form_1' method='POST' action='pages/update_live_msg.php?id=$id5&cat=$mname&edate=$edate' 'onSubmit='return chk();' autocomplete='off'><td style='width:70%; padding:2px;' colspan='2'><input type='text' name='desc' value='$desc' placeholder='Description' style='width:100%; font-size:12px; padding:5px;' /></td> <td style='width:30%; padding:2px;' ><input type='submit' name='status' class='btn btn-linkedin' value='Update MSG' style='width:100%;'></td></form> </tr>"; echo"</table> </td> "; } } else { if (($today == "Sat" && $days01 == 5) || ($today == "Sun" && ($days01 == 5 || $days01 == 6))) { } else { if($lengthOfC50 != 2) { echo "<td width='20%' style='font-size:12px;'>".$row['market_name']."-".$days01."</td>"; echo" <form action='pages/insert_live_up.php?id=$id' name='form' id= 'form' onSubmit='return chk();' method='post' id='form_sample_1' autocomplete='off' > <td width='80%;' style='padding:5px;'>"; echo "<table style='width:100%; padding:0px;'>"; echo "<tr style='width:100%; padding:0px;'> <td style='width:30%; padding:2px;'><input type='text' name='open' placeholder='Open' style='width:100%; font-size:12px; padding:5px;' maxlength='3' /></td> <td style='width:30%; padding:2px;'><input type='text' name='close' placeholder='Close' class='' style='width:100%; font-size:12px; padding:5px;' maxlength='3'/> </td> <td style='width:30%; padding:2px;'><input type='submit' name='status' class='btn btn-success' value='Save' style='width:100%;'></td> </tr>"; echo" </table></td> </form>"; } } } echo "</tr>"; $i++; } ?> </tbody> </table> </div> </div> </div> <div class="col-lg-12 col-md-12 col-sm-12 col-12"> <div class="card-box"> <div class="card-head"> <header>Market Result</header> </div> <div class="table-responsive"> <table class="table table-striped "> <thead> <tr> <th>Sr. No.</th> <th>Market</th> <th>Result</th> <th>Edit</th> <!--<th>Delete</th> --> </tr> </thead> <tbody> <?php $s = 0; $i = 1; $start = isset($_GET['start']) ? $_GET['start'] : NULL; if($start == "" ) { $s = 0; $i = 1; } else { $s = $start; $i = $start+1; } $sql = mysqli_query($conn,"select * from `live_update` ORDER BY `id` DESC LIMIT $s , 40 "); // $sql = mysqli_query($conn,"select * from `live_update` where `market_name` = '22' ORDER BY `id` DESC LIMIT $s , 40 "); // $sql = mysqli_query($conn,"select * from `live_update` where `entrydate` = '2025-12-13' ORDER BY `id` DESC LIMIT $s , 40 "); while($row = mysqli_fetch_array($sql)) { $id = $row['id']; $mid = $row['market_name']; $edate = $row['entrydate']; //echo "SELECT * FROM `agent_market` where `market_name` = '$mid' "; echo "<tr>"; echo "<td>".$i."</td>"; $mname = ""; $que = mysqli_query($conn, "Select * from market_category where `id` = '$mid' "); while($row1 = mysqli_fetch_array($que)) { $mname = $row1['market_name']; } echo "<td>".$mname."</td>"; echo "<td>".$row['l1']."".$row['l2']."".$row['l3']."-".$row['c']."-".$row['r1']."".$row['r2']."".$row['r3']."</td>"; echo "<td class='table-actions'> <a href='index.php?id=".$row['id']."&edit=yes&mid=".$mid."&edate=".$edate."' title='Edit' class='with-tip'><img src='img/pencil.png' width='16' height='16'></a>"; echo "</td>"; /*echo "<td class='table-actions'> "; echo "<a href='pages/del_live_update.php?id=".$row['id']."&edit=yes' title='Delete' class='with-tip'> <img src='img/cross-circle.png' width='16' height='16'></a>"; echo "</td>";*/ echo "</tr>"; $i++; } ?> </tbody> </table> <?php /*$query = mysqli_query($conn,"select * from `live_update` "); $no = mysqli_num_rows($query); $re = $no / 50; $j = 0; $s = 0; $h = 1; $page = isset($_GET['page']) ? $_GET['page'] : NULL; echo "<p align='center'> Page No. | "; while($j <= $no) { $j= $j + 50; if($page == $h) { echo $h++; } else { echo "<a href='?start=$s&page=$h'> ".$h++." </a>"; } echo " | "; $s = $j; } echo "</p>";*/ $sql51 = mysqli_query($conn,"SELECT * FROM `final_ank` "); if($row151 = mysqli_fetch_array($sql51)) { $ank = $row151['kalyan']; echo "<table width='100%'><form class='form-horizontal' id='simple_form_1' method='POST' action='pages/update_final-ank.php' autocomplete='off'>"; echo "<tr><td><input type='text' name='ank' placeholder='Close' value='$ank' class='' style='width:100%; font-size:12px; padding:5px;' required /></td> <td><input type='submit' name='status' class='btn btn-danger' value='Update' style='width:100%;'></td></tr> </form></table>"; } echo "<br>"; $sql512 = mysqli_query($conn,"SELECT * FROM `tbl_gold_silver_rate` "); if($row1512 = mysqli_fetch_array($sql512)) { $gold22 = $row1512['gold22']; $gold24 = $row1512['gold24']; $silver = $row1512['silver']; $petrol = $row1512['petrol']; $diesel = $row1512['diseal']; echo "<table width='100%'><form class='form-horizontal' id='simple_form_1' method='POST' action='pages/update_gold_rates.php' autocomplete='off'>"; echo "<tr> <td><input type='text' name='gold22' placeholder='Gold 22' value='$gold22' class='' style='width:100%; font-size:12px; padding:5px;' required /></td> <td><input type='text' name='gold24' placeholder='Gold24' value='$gold24' class='' style='width:100%; font-size:12px; padding:5px;' required /></td> <td><input type='text' name='silver' placeholder='Silver' value='$silver' class='' style='width:100%; font-size:12px; padding:5px;' required /></td> <td><input type='text' name='petrol' placeholder='Petrol' value='$petrol' class='' style='width:100%; font-size:12px; padding:5px;' required /></td> <td><input type='text' name='diesel' placeholder='Disel' value='$diesel' class='' style='width:100%; font-size:12px; padding:5px;' required /></td> <td><input type='submit' name='status' class='btn btn-success' value='Update' style='width:100%;'></td></tr> </form></table>"; } ?> <br><br> </div> </div> </div> <div id="result"></div> <!-- start new student list --> </div> <!-- end page content --> </div> <!-- end page container --> <!-- start footer --> <div class="page-footer" > <div class="page-footer-inner"> 2023 © SattaMatkaa.Co.In </div> <div class="scroll-to-top"> <i class="icon-arrow-up"></i> </div> </div> <!-- end footer --> </div> <script type="text/javascript"> function chk() { var cat = document.form.cat.selectedIndex; var result = document.form.result.value; var date = document.form.date.value; if(cat == 0 ) { alert("Please Select Market"); return false; } else if(date=="") { alert("Please Enter Date"); return false; } } </script> <!-- start js include path --> <script src="assets/plugins/jquery/jquery.min.js" ></script> <script src="assets/plugins/popper/popper.js" ></script> <script src="assets/plugins/jquery-blockui/jquery.blockui.min.js" ></script> <script src="assets/plugins/jquery-slimscroll/jquery.slimscroll.js"></script> <!-- bootstrap --> <script src="assets/plugins/bootstrap/js/bootstrap.min.js" ></script> <script src="assets/plugins/bootstrap-switch/js/bootstrap-switch.min.js" ></script> <script src="assets/plugins/sparkline/jquery.sparkline.js" ></script> <script src="assets/js/pages/sparkline/sparkline-data.js" ></script> <!-- Common js--> <script src="assets/js/app.js" ></script> <script src="assets/js/layout.js" ></script> <script src="assets/js/theme-color.js" ></script> <!-- material --> <script src="assets/plugins/material/material.min.js"></script> <!-- summernote --> <script src="assets/plugins/summernote/summernote.js" ></script> <script src="assets/js/pages/summernote/summernote-data.js" ></script> <!-- end js include path --> </body> </html>