-
✘✘✘ WIBUHAX0R1337 ✘✘✘
-
✘
PATCH :
/
home
/
indianstaffing
/
www
/
admin
/
Upload File:
files >> /home/indianstaffing/www/admin/growth.php
<?php include'include/header.php'; include'include/sidebar.php'; $date = date('D-M-Y'); if(isset($_GET['type']) && $_GET['type'] !=""){ $type = mysqli_real_escape_string($con, $_GET['type']); if($type=='status'){ $operation = mysqli_real_escape_string($con, $_GET['operation']); $id = mysqli_real_escape_string($con, $_GET['id']); if($operation =='activate'){ $status = '1'; }else{ $status = '0'; } mysqli_query($con, "UPDATE `research` SET status='$status' WHERE id = $id"); } if($type == 'delete'){ $id = mysqli_real_escape_string($con, $_GET['id']); $delete = "DELETE FROM `research` WHERE id= '$id'"; $update_run = mysqli_query($con, $delete); } } ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <div class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-sm-6"> <h1 class="m-0">Growth Graph</h1> </div><!-- /.col --> <div class="col-sm-6"> <ol class="breadcrumb float-sm-right"> <li class="breadcrumb-item"><a href="<?= $weburl; ?>/index">Home</a></li> <li class="breadcrumb-item active">Growth</li> </ol> </div><!-- /.col --> </div><!-- /.row --> </div><!-- /.container-fluid --> </div> <!-- /.content-header --> <!-- Main content --> <section class="content"> <div class="container-fluid"> <!-- /.row --> <div class="row"> <div class="col-12"> <div class="card"> <!-- <div class="card-header"> <a type="button" class="btn btn-primary" href="add-growth.php"> Add Growth </a> </div> --> <!-- ./card-header --> <div class="card-body"> <table class="table table-bordered table-hover" id="example"> <thead> <tr> <th>S.No</th> <th>Category</th> <th>Graph Image</th> <!-- <th>Heading</th> --> <!-- <th>Description</th> --> <th>Added On</th> <th>Status</th> </tr> </thead> <tbody> <?php $i=1; $selectsql = mysqli_query($con, "SELECT * FROM `research` order by id desc "); if (mysqli_num_rows($selectsql)>0 ) { while($rows=mysqli_fetch_assoc($selectsql)){ if($rows['category']==1){ $category = 'Trend Growth'; }else{ $category = 'Head Count Growth'; } ?> <tr> <td style="width:8%;"><?= $i; ?></td> <td ><?= $category; ?></td> <td style="width:150px;"><img src="../isf-images/research(new)-img/<?=$rows['intro_graph']; ?>" style="width:100px;"></td> <td><?= $rows['added_on']; ?></td> <td > <?php echo '<a href="add-growth.php?type=edit&id='.$rows['id'].'" class="text-success"><i class="fa fa-pen"></i></a> '; ?> </td> </tr> <?php $i++; } } ?> </tbody> </table> </div> <!-- /.card-body --> </div> <!-- /.card --> </div><!-- /.container-fluid --> </section> <!-- /.content --> </div> <?php include'include/footer.php'; ?>
2022 - 2023 Copyright By Lutfifakee || Padang Blackhat ♥