Mini Shell

Direktori : /proc/self/root/proc/thread-self/root/home/rizant5/public_html-1210/admin/
Upload File :
Current File : //proc/self/root/proc/thread-self/root/home/rizant5/public_html-1210/admin/ads.php

<?php require_once("function-file.php");
require_once("function-menu.php");
require_once("../config.php");
cookiecheck();?>
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Courses</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <?php  cssfile();?>
  </head>
  <body class="hold-transition skin-blue layout-top-nav">
    <!-- Site wrapper -->
    <div class="wrapper">
<?php headermenu();?>
      <!-- =============================================== -->
      <!-- Content Wrapper. Contains page content -->
      <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
            <li><a href="#">Examples</a></li>
            <li class="active">Blank page</li>
          </ol>
        </section>
        <!-- Main content -->
        <section class="content"><br>

          <!-- Default box -->
          <div class="box">
            <div class="box-header with-border">
              <h3 class="box-title">Advertisement</h3>
              <div class="box-tools pull-right">
                <button class="btn btn-box-tool" data-widget="collapse" data-toggle="tooltip" title="Collapse"><i class="fa fa-minus"></i></button>
                <button class="btn btn-box-tool" data-widget="remove" data-toggle="tooltip" title="Remove"><i class="fa fa-times"></i></button>
              </div>
            </div>
            <div class="box-body">
                <div class="col-md-4 col-sm-4">
                    <form action="#" method="post">
                    <?php
                        if(isset($_POST["save-ad"])){
                            $add = $_POST["addContent"];
                            $endDate = $_POST["endDate"];

                            $addSql = mysqli_query($connt, "UPDATE advertisment SET `ad_value` = '".$add."', end_time = '".$endDate."' ");
        
                        }

                        // Get current Value
                        $getSql = mysqli_query($connt, "SELECT * FROM advertisment");
                        $ress = mysqli_fetch_assoc($getSql);

                    ?>
                        <textarea name="addContent" id="addContent" class="form-control editor1" rows="10"><?php echo $ress["ad_value"]; ?></textarea><br>
                        <input type="date" name="endDate" id="endDate" class="form-control" value="<?php echo $ress["end_time"]; ?>"><br>
                        <button type="reset"  class="btn btn-default" rows="4">Reset</button>&nbsp;&nbsp;
                        <button type="submit" name="save-ad" class="btn btn-success" >Save</button>
                    </form>
                </div>

                

            </div><!-- /.box-body -->
            <div class="box-footer">
              
            </div><!-- /.box-footer-->
          </div><!-- /.box -->

        </section><!-- /.content -->
      </div><!-- /.content-wrapper -->
      <?php footer();?>
    </div><!-- ./wrapper -->
   <?php jsfile();?>

   <script src="//cdn.ckeditor.com/4.5.8/full/ckeditor.js"></script>
<script>
$(function() {
  $('.editor1').each(function(){
    CKEDITOR.replace( $(this).attr('id') );
  });
});
</script>



  </body>
</html>

Zerion Mini Shell 1.0