Server : Apache
System : Linux 8.167.178.68.host.secureserver.net 4.18.0-553.158.1.el8_10.x86_64 #1 SMP Wed Aug 26 03:18:33 EDT 2026 x86_64
User : avscylinder ( 1028)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /home/avscylinder/public_html/admin/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : /home/avscylinder/public_html/admin/admin/update-clients-logo.php
<?php include('site-header.php'); ?>
  <!-- end of LOGO CONTAINER -->
  <!-- - - - - - - - - - - - - -->
  <!-- start of SIDEBAR        -->
  <!-- - - - - - - - - - - - - -->
<?php include('left-nevigation.php'); ?>
  <!-- - - - - - - - - - - - - -->
  <!-- end of SIDEBAR          -->
  <!-- - - - - - - - - - - - - -->
  <main id="playground">
    <!-- - - - - - - - - - - - - -->
    <!-- start of TOP NAVIGATION -->
    <!-- - - - - - - - - - - - - -->
<?php include('site-top-header.php'); ?>
    <!-- - - - - - - - - - - - - -->
    <!-- end of TOP NAVIGATION   -->
    <!-- - - - - - - - - - - - - -->
    <!-- PAGE TITLE -->
<?php 
$image_name=$_FILES['logo_image_name']['name']; 
$image_names= time()."_".$image_name;
?>  
  <?php
if(isset($_REQUEST['Insert'])){
$sqlinsrt="insert into client_logo set
logo_image_name='$image_names'";
 mysqli_query($link,$sqlinsrt);
    move_uploaded_file($_FILES['logo_image_name']['tmp_name'],"../logo-images/".$image_names);         
}
?> 
<?php
if(isset($_REQUEST['client_logo_id'])!=""){
if(isset($_REQUEST['Updt'])){
$sqlUp="update client_logo set 
logo_image_name='$image_names'
where client_logo_id='$_REQUEST[client_logo_id]'";
$data=mysqli_query($link,$sqlUp);
header('location:update-client-logo.php');
move_uploaded_file($_FILES['logo_image_name']['tmp_name'],"../logo-images/".$image_names);         
}}
?> 
<?php 
if($_REQUEST['del_logo_id']!=""){
$del_logo_id=$_REQUEST['del_logo_id'];
$sql="delete from client_logo where client_logo_id='$del_logo_id'";
$data=mysqli_query($link,$sql);
}
?>
<?php 
$sqlImage="select * from client_logo";
$data=mysqli_query($link,$sqlImage);
?>
    <section id="page-title" class="row">
      <div class="col-md-8">
        <h1>Client Logo</h1>
        <p class="lead">Update your clients / brands logo</strong>.</p>

      </div>
      <div class="col-md-4">
       <!--  <ol class="breadcrumb pull-right no-margin-bottom">
          <li><a href="dashboard.php">Client Logo</a></li>
          <li class="active">Update Clients / Brands Logo</li>
        </ol> -->
      </div>
    </section>
    <!-- / PAGE TITLE -->
    <div class="container-fluid">
      <div class="row">
      <?php
                while($resultImg=mysqli_fetch_array($data)){
				?> 
                 <form method="post" enctype="multipart/form-data">
        <div class="col-md-3">
         <section class="panel tasks-widget"> <img  src="../logo-images/<?php echo $resultImg['logo_image_name'];?>" class="img-responsive" style="height:200px; width:100%;"> </section>
          <div class="text-center"> 
            <label>image size (200 x 100)pixel:</label>
            <input type="file" name="logo_image_name" class="btn btn-primary"> </div>
          <div class="text-center"> <input type="hidden" name="client_logo_id" value="<?php echo $resultImg['client_logo_id'];?>" class="btn btn-primary"> </div>
             
          <div class="text-center"> <button type="submit" name="Updt" class="btn btn-primary" style="float:right; width:100%;">Update Logo </button></div>
          </form><form>
           <div class="text-center"> <input type="hidden" name="del_logo_id" value="<?php echo $resultImg['client_logo_id'];?>" class="btn btn-primary"> </div>
           <div class="text-center"> <button type="submit" name="Updt" class="btn btn-primary" style="float:right; width:100%;">Delete Logo </button></div></form>
        </div>
        
          
        <?php } ?>
       
      </div>
      <!-- / row -->
    </div>
    <div class="container-fluid" style="margin-top:80px;">
      <div class="row">
        <div class="col-md-4"></div>
        <form method="post" enctype="multipart/form-data">
          <div class="col-md-4">
          <div class="text-center"> <input type="file" name="logo_image_name" class="btn btn-primary"> </div>
            <div class="text-center"> <button type="submit" name="Insert" class="btn btn-primary" style=" width:100%;">Add Logo </button></div>
          </div>
        </form>
        <div class="col-md-4"></div>
      </div>
      <!-- / row -->
    </div>
    
    <!-- / container-fluid -->
 <?php include('site-footer.php'); ?>

F1le Man4ger