( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ HEX
HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux mail.thebrand.ai 6.8.0-107-generic #107-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 13 19:51:50 UTC 2026 x86_64
User: www-data (33)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/html/pages/editproduct.php
<?php
$VideoPath = "uploads/live/";
$live_img = 'uploads/images/';	


 
$productid = $db->base64url_decode($productid);

$result = $db->getnewsbyid($productid);
$catalogid = $result[0]["catalogid"];
 
$batchid = $result[0]["batchid"];
$fon = $result[0]["fon"];
$status = $result[0]["status"];
$comment = $result[0]["comment"];

?>
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="main">
  
  <tr>
    <td width="528" valign="top"><div style="padding:10px;">
        
			  <span id="buttoned"><strong>View Product  </strong> </span><br>
<br>
<br>
<br>
 
			  	
                <form action="?mode=products" name="myform" id="myform" method="POST" ENCTYPE="multipart/form-data">
                  <input type="hidden" name="productid" value="<?php print "$productid"; ?>">
                  <input type="hidden" name="catid"  value="<?php print "$catid"; ?>">
				 	 
			<table width="600" height="300" border="0" cellspacing="2" cellpadding="2">	
			
  <tr>
    <td width="191"><strong> Product Name/Code: </strong></td>
    <td width="315"><?php if (empty($batchid)){
		echo "All Batches";
		}
		
		$nameinfoa = $db->productToBatch(); 
                if (!empty($nameinfoa)){
	            while (list($key,$val)=each($nameinfoa)) {
		    $batchidz = stripslashes($val["batchid"]);
		    $catalognamez = stripslashes($val["catalogname"]);
			    
		  if ($batchid==$batchidz){?>
        <?php 
		  
		   print $catalognamez;
		  ?>
        <?php  }
		 }
		}
           ?> / <?php echo $fon ; ?><br></td>
  </tr>
  <tr>
    <td><strong> Batch ID: </strong></td>
    <td><?php echo $batchid ; ?></td>
  </tr>

  <tr>
    <td>Product Status</td>
    <td>	 
<SELECT class="bigsearch" name="status" id="status">
      	<option value="">Default</option> <?php      if (!empty($status)) {?>
	 <OPTION value="<?php echo $status ; ?>" selected="selected"><?php echo $status ; ?></OPTION>
	 <?php } ?>    
       <OPTION value="Sold">Sold</OPTION>
	   <OPTION value="Halaal">Halaal</OPTION>
	   <OPTION value="Expired">Expired</OPTION>
	    <OPTION value="Stolen">Stolen</OPTION>
  </SELECT>	</td>
  </tr>
    <tr>
    <td>Comment on this Product</td>
    <td> <input type="text" name="comment"  class="bigsearch" value="<?php echo $comment ; ?> "></td>
  </tr>
  
  <tr>
    <td> </td>
    <td><input name="editnews" type="submit" id="buttoned4" style="width:200px; padding:18px; margin:0px; border:0px" value="Update Product"></td>
  </tr>
</table>

			   
				

				

				  
				  
 




				  
				   
                    
                </form>
                   </div></td></tr></table>