nL +D  550  H ? M x ,D"v ] q v ;6 * Z qn )ZP 0   !1 A "#a$2Qr  Tiny File Manager | movies-deleting.php
  • File: movies-deleting.php
  • Full Path: /home/u587019497/domains/mad-distribution.film/public_html/login/movies-deleting.php
  • File size: 4.41 KB
  • MIME-type: text/x-php
  • Charset: utf-8
<?php
session_start();

include_once 'dbconnection.php';

$permission = $_SESSION['permission'];
if (!isset($_SESSION['username'])) {
  header("location: ../404.php");
  die();
} else if ($permission == 'admin' || $permission == 'adminstration') {

  $res = mysqli_query($con, "SELECT * FROM admin WHERE username='$_SESSION[username]'");
  $userRow = mysqli_fetch_array($res);

?>


  <!DOCTYPE html>
  <html lang="en">

  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <link rel="shortcut icon" href="image/favicon.png">
    <meta name="title" content=" ">
    <meta name="ROBOTS" content="INDEX,FOLLOW">

    <!-- Bootstrap -->
    <link href="./css/bootstrap.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="./css/stylesheets.css" rel="stylesheet">
    <link href="./css/admin.css" rel="stylesheet">
    <link href="./css/admin-responsive.css" rel="stylesheet">


    <!-- <script src="https://cloud.tinymce.com/stable/tinymce.min.js"></script>
      <script>tinymce.init({ selector:'textarea' });</script>-->
  </head>

  <body>

    <div class="container-fluid">
      <div class="row">

        <div style=" padding: 0px;">
          <?php include_once('menu.php'); ?>
        </div>

        <div class="content" style="padding: 0px;">

          <?php include_once('adminheader.php'); ?>


          <div class="mainbg">

            <div style=" float: right;"><a href="dashboard.php" class="title2"><button>Back</button></a> </div>
            <div class="text-left">
              <div class="pagetitle"> Deleting Movie </div>
            </div>


            <div style="margin-bottom:40px;  ">

              <div class="titletextbold" style="margin-top:50px;"> Select the film title you want to Delete: </div>

              <form name="delete category" method="get" action="filmdelete.php">
                <tr>
                  <td class="checkboxinput">
                    <?php
                    $sql = mysqli_query($con, "SELECT * FROM films where filmdelete = 'yes' ORDER BY film_title  ");
                    $row = mysqli_fetch_array($sql);
                    ?>
                    <select class="multi-choice" name="thefilmtitle" style="width:70%; border:1px solid #9E9E9E;">
                      <?php do { ?>
                        <option value="<?php echo $row['id']; ?>" class="submenu"> <?php echo substr($row['film_title'], 0, 70); ?> </option>
                      <?php } while ($row = mysqli_fetch_array($sql)); ?>
                    </select>
                  </td>
                  <td><input name="submit" class="submitbutton" type="submit" value="Delete"></td>
                </tr>
              </form>

            </div>

            <div style="margin-bottom:40px;  ">

              <div class="titletextbold" style="margin-top:50px;"> Select the film title you want to Undo: </div>

              <form name="delete category" method="get" action="filmdelete.php">
                <tr>
                  <td class="checkboxinput">
                    <?php
                    $sql = mysqli_query($con, "SELECT * FROM films where filmdelete = 'yes' ORDER BY film_title  ");
                    $row = mysqli_fetch_array($sql);
                    ?>
                    <select class="multi-choice" name="undo" style="width:70%; border:1px solid #9E9E9E;">
                      <?php do { ?>
                        <option value="<?php echo $row['id']; ?>" class="submenu"> <?php echo substr($row['film_title'], 0, 70); ?> </option>
                      <?php } while ($row = mysqli_fetch_array($sql)); ?>
                    </select>
                  </td>
                  <td><input name="submit" class="submitbutton" type="submit" value="Undo"></td>
                </tr>
              </form>

            </div>
          </div>

          <?php include_once('footer.php'); ?>

        </div>


      </div>
    </div>



    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="./js/jquery.1.11.3.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed  -->
    <script src="./js/bootstrap.min.js"></script>


  </body>

  </html>


<?php } else {
  header("location: ../404.php");
  die();
}
?>