( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ 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/tmpr/../tmpr/../tmpr/../pages/wardrobe.php
<?php
if (!empty($jsondata2)) {

$msg_id = $_POST['msg_id'];
$brand = "images/".$_POST['brand'];
$msg_id = $db->base64url_decode($msg_id); 
$msg_id = mysqli_real_escape_string($link,$msg_id);

$res = json_decode(stripslashes($_POST['jsondata2']), true);
/* get data */

$photo = $_POST['photo'];

$count_images = count($res['images']);
/* the background image is the first one */
$background 	= $res['images'][0]['src'];
$photo1 		= imagecreatefromjpeg($background);
$foto1W 		= imagesx($photo1);
$foto1H 		= imagesy($photo1);
$photoFrameW 	= $res['images'][0]['width'];
$photoFrameH 	= $res['images'][0]['height'];
$photoFrame 	= imagecreatetruecolor($photoFrameW,$photoFrameH);
imagecopyresampled($photoFrame, $photo1, 0, 0, 0, 0, $photoFrameW, $photoFrameH, $foto1W, $foto1H);




/* the other images */
for($i = 1; $i < $count_images; ++$i){
	$insert 		= $res['images'][$i]['src'];
	  $theId 		= $res['images'][$i]['id'];
	 $db->cart($theId);
	$photoFrame2Rotation = (180-$res['images'][$i]['rotation']) + 180;
	
	$photo2 		= imagecreatefrompng($insert);
	
	$foto2W 		= imagesx($photo2);
	$foto2H 		= imagesy($photo2);
	$photoFrame2W	= $res['images'][$i]['width'];
	$photoFrame2H 	= $res['images'][$i]['height'];

	$photoFrame2TOP = $res['images'][$i]['top'];
	$photoFrame2LEFT= $res['images'][$i]['left'];

	$photoFrame2 	= imagecreatetruecolor($photoFrame2W,$photoFrame2H);
	$trans_colour 	= imagecolorallocatealpha($photoFrame2, 0, 0, 0, 127);
	imagefill($photoFrame2, 0, 0, $trans_colour);

	imagecopyresampled($photoFrame2, $photo2, 0, 0, 0, 0, $photoFrame2W, $photoFrame2H, $foto2W, $foto2H);
	
	$photoFrame2 	= imagerotate($photoFrame2,$photoFrame2Rotation, -1,0);
	/*after rotating calculate the difference of new height/width with the one before*/
	$extraTop		=(imagesy($photoFrame2)-$photoFrame2H)/2;
	$extraLeft		=(imagesx($photoFrame2)-$photoFrame2W)/2;

	imagecopy($photoFrame, $photoFrame2,$photoFrame2LEFT-$extraLeft, $photoFrame2TOP-$extraTop, 0, 0, imagesx($photoFrame2), imagesy($photoFrame2));	
}
// Set the content type header - in this case image/jpeg

$src = "v/uploads/raw/$photo";
	 
	
imagejpeg($photoFrame, $src,100);


 
 $db->pimpedWard($msg_id);
 
  
  $msg_idR = $db->base64url_encode($msg_id);
 
	 
 header("Location: indexAlone.php?mode=wardrobe");
	 
   
}


if($go=="create")
{
$uploaddir = 'v/uploads/raw/';
$image ="images/wardrobe.jpg";
$date	= md5(date('D, d M Y H:i:s'));
$upload =  $date.basename($image);

$uploadfile = $uploaddir .$upload; 

 copy($image,$uploadfile);
 
 
//start  namwe it


	 while ($row_settings = mysql_fetch_array($rs_settings)) {
		 
	  $ca = $row_settings['catalogname']; 
$image_id_png       = $uploadfile; // id card image template path
$font               = 'assets/fonts/ITCEDSCR.TTF'; //font used

$dest = imagecreatefromjpeg($image_id_png); // source id card image template
//colors we use for font
$facebook_blue = imagecolorallocate($dest, 255,255,255); // Create blue color
$facebook_blue2 = imagecolorallocate($dest, 96,57,19); // Create blue color
$txt_user_name      = "$ca Fashion Collection";
imagealphablending($dest, true); //bring back alpha blending for transperent font
 



$width=814;
$font_size = 1;
$txt_max_width = intval(0.7*$width);

do{
	$font_size++;
	$p = imagettfbbox($font_size,0,$font,$txt_user_name);
	$txt_width = $p[2] - $p[0];
	$txt_height = $p[1] - $p[7];
	
}
while (($txt_width <= $txt_max_width)  &&   ($font_size   <= 80)) ;
//now center text

$y = $height * 0.6156156156156156; //baseline
$y = 75; //baseline
$x = ($width - $txt_width) / 2;
/*$y= ($height - $txt_height) / 2;*/
/*imagettftext($photo2,$font_size, 0, $x, $y, $facebook_blue2, $font, $txt_user_name);  */

imagettftext($dest,$font_size, 0, $x, $y, $facebook_blue2, $font, $txt_user_name); //Write name to id card
imagettftext($dest,$font_size, 0, $x+1, $y+1, $facebook_blue, $font, $txt_user_name); //Write name to id card







imagejpeg($dest, $image_id_png, 100);
	 }
 //start  namwe it
 
 
$yanani = $_SESSION['euserid'];
$db_file = $upload;
$new_image = $upload;
$titleme = "$txt_user_name ". date("M Y");
$type = 15;
$upload = $upload;
$db->addwardrobe($appno,$videouser,$yanani,$db_file,$new_image,$titleme,$url,$type,$upload);

 header("Location: ./indexAlone.php?mode=wardrobe&msg=Successfully+created+wardrobe");
 
}
$widget = $catalogid5;  
 
if($_GET["recsnorep"]) {
 
 $recsnorep=$_GET["recsnorep"];
$data=trim($recsnorep);
$videouser = $_SESSION['euserid'];
$ex=explode(" ",$data);
$size=sizeof($ex);
for($i=0;$i<$size;$i++) {
	$id=trim($ex[$i]);
	$db->delnewsrep($id,$VideoPath);

} 
 
 
 }
 



 $VideoPath = "uploads/live/";
$live_img = 'uploads/images/';
 $videouser = $_SESSION['euserid'];
 
 
 if($_GET["recsno"]) {
 
 $recsno=$_GET["recsno"];
 
$data=trim($recsno);
$videouser = $_SESSION['euserid'];
$ex=explode(" ",$data);
$size=sizeof($ex);
for($i=0;$i<$size;$i++) {
	$id=trim($ex[$i]);
	$db->delAllReport($id,$VideoPath);

} 
 
 header("Location: ./index.php?msg=Successfully+deleted");
 }

		 
 function sizeinput($input, $len){
        (int)$len;
  	 (string)$input;
  	 $n = substr($input, 0,$len);
	 $ret = trim($n);
 	 $out = htmlentities($ret, ENT_QUOTES);
 	 return $out;
}

 
 function checkfile($input){
    $ext = array('mpg', 'wma', 'mov', 'flv', 'mp4', 'm4v', 'avi', 'qt', 'wmv', 'rm', '3gp', 'mpeg', 'divx', 'moov', 'asf', 'swf', 'vob');
    $extfile = substr($input['name'],-4); 
    $extfile = explode('.',$extfile);
    $good = array();
    $extfile = $extfile[1];
    if(in_array($extfile, $ext)){
          $good['safe'] = true;
 		 $good['ext'] = $extfile;
    }else{
          $good['safe'] = false;
   }
     return $good;
 }
 


//no error reporting
//@error_reporting(0);

if (empty($page)){
$page = 0;
}

$record =7;

 


  // generate paging here
	

$delnews = $_GET["delnews"]; 
if ($delnews=="yes") {
 $msg_id = $db->base64url_decode($msg_id); 
$db->delnews($msg_id,$VideoPath);

 header("Location: ./indexAlone.php?mode=wardrobe&msg=Successfully+deleted+collection");
}





 if (!empty($editthumb)) {
      
   $tempuserfile = $_FILES['userfile']['tmp_name'];
   $tempuserfile_name = $_FILES['userfile']['name'];
   
   if ((!empty($tempuserfile)) && (!empty($tempuserfile_name))) {
   $userfile = $tempuserfile;
   $userfile_name = $tempuserfile_name;
   }
   
   if ((!empty($userfile)) && (!empty($userfile_name))) { 
   
  $videouser = $_SESSION['euserid'];
   $userfile_name = preg_replace('/[\ ]/', '-', $userfile_name);
   $userfile_name = $videouser.rand(455,78787).$userfile_name;
   
   $dest1 = $live_img.$userfile_name;
   copy($userfile, $dest1);
   
   
     $starting_image = imagecreatefromjpeg("$live_img$userfile_name");
$width = imagesx($starting_image);
$height = imagesy($starting_image);
$thumb_width = 130;
$thumb_height = 80;
$thumb_image = imagecreatetruecolor($thumb_width, $thumb_height);
imagecopyresampled($thumb_image, $starting_image, 0, 0, 0, 0, $thumb_width, $thumb_height, $width, $height);
imagejpeg($thumb_image, "$live_img$userfile_name");
   
   
   $db->addThumb($msg_id,$userfile_name,$live_img);
   }} 


if (!empty($addnews)) {
$_POST = filter($_POST);
$title = mysqli_real_escape_string($link,$title);
$content = mysqli_real_escape_string($link,$content);
$description = mysqli_real_escape_string($link,$description);
$keywords = mysqli_real_escape_string($link,$keywords);
$msg_id = $db->updateContent($title,$content,$keywords,$isdisplay,$description,$vcat,$slug,$episodeid);
				
								
}

if (!empty($editnewsr)) {
$_POST = filter($_POST);
$mytitle = mysqli_real_escape_string($link,$mytitle);
$content = mysqli_real_escape_string($link,$content);
$description = mysqli_real_escape_string($link,$description);
$keywords = mysqli_real_escape_string($link,$keywords);
 
 
$db->editnewsr($catalogid,$mytitle,$content,$keywords,$isdisplay,$description,$vcat,$summary,$thumb,$msg_id,$slug,$episodeid);
 
		$db->editslugr($msg_id,$slug,$mytitle,$str);
 	
	 



    header("Location: index.php?msg=content+edited+Successfully!");
   
}


if (!empty($editnewdsr2)) {
$_POST = filter($_POST);
$mytitle = mysqli_real_escape_string($link,$mytitle);
$content = mysqli_real_escape_string($link,$content);
$description = mysqli_real_escape_string($link,$description);
$keywords = mysqli_real_escape_string($link,$keywords);
 
 
$db->editnewsr2($catalogid,$mytitle,$content,$keywords,$isdisplay,$description,$vcat,$summary,$thumb,$msg_id,$slug,$episodeid);
 
		$db->editslugr($msg_id,$slug,$mytitle,$str);
 	
	 



    header("Location: index.php?msg=content+edited+Successfully!");
   
}




if (!empty($jsondata)) {

$step  = $_POST['step'];

$msg_id = $_POST['msg_id'];
$brand = "images/".$_POST['brand'];
$msg_id = $db->base64url_decode($msg_id); 
$msg_id = mysqli_real_escape_string($link,$msg_id);

$res = json_decode(stripslashes($_POST['jsondata']), true);
/* get data */

$photo = $_POST['photo'];

$count_images = count($res['images']);
/* the background image is the first one */
$background 	= $res['images'][0]['src'];
$photo1 		= imagecreatefromjpeg($background);
$foto1W 		= imagesx($photo1);
$foto1H 		= imagesy($photo1);
$photoFrameW 	= $res['images'][0]['width'];
$photoFrameH 	= $res['images'][0]['height'];
$photoFrame 	= imagecreatetruecolor($photoFrameW,$photoFrameH);
imagecopyresampled($photoFrame, $photo1, 0, 0, 0, 0, $photoFrameW, $photoFrameH, $foto1W, $foto1H);






  /*	brand it*/ if($step==6)  
		
		 {



 
	$photoFrame2Rotation = 0;
	
	$photo2 		= imagecreatefrompng($brand);
	
	$foto2W 		= imagesx($photo2);
	$foto2H 		= imagesy($photo2);
	$photoFrame2W	= 145;
	$photoFrame2H 	= 100;

	$photoFrame2TOP = 0;
	$photoFrame2LEFT= 0;

	$photoFrame2 	= imagecreatetruecolor($photoFrame2W,$photoFrame2H);
	$trans_colour 	= imagecolorallocatealpha($photoFrame2, 0, 0, 0, 127);
	imagefill($photoFrame2, 0, 0, $trans_colour);

	imagecopyresampled($photoFrame2, $photo2, 0, 0, 0, 0, $photoFrame2W, $photoFrame2H, $foto2W, $foto2H);
	
	$photoFrame2 	= imagerotate($photoFrame2,$photoFrame2Rotation, -1,0);
	/*after rotating calculate the difference of new height/width with the one before*/
	$extraTop		=(imagesy($photoFrame2)-$photoFrame2H)/2;
	$extraLeft		=(imagesx($photoFrame2)-$photoFrame2W)/2;

	imagecopy($photoFrame, $photoFrame2,$photoFrame2LEFT-$extraLeft, $photoFrame2TOP-$extraTop, 0, 0, imagesx($photoFrame2), imagesy($photoFrame2));
	


		 }
/*	brand it*/






/* the other images */
for($i = 1; $i < $count_images; ++$i){
	$insert 		= $res['images'][$i]['src'];
	 
	$photoFrame2Rotation = (180-$res['images'][$i]['rotation']) + 180;
	
	$photo2 		= imagecreatefrompng($insert);
	
	$foto2W 		= imagesx($photo2);
	$foto2H 		= imagesy($photo2);
	$photoFrame2W	= $res['images'][$i]['width'];
	$photoFrame2H 	= $res['images'][$i]['height'];

	$photoFrame2TOP = $res['images'][$i]['top'];
	$photoFrame2LEFT= $res['images'][$i]['left'];

	$photoFrame2 	= imagecreatetruecolor($photoFrame2W,$photoFrame2H);
	$trans_colour 	= imagecolorallocatealpha($photoFrame2, 0, 0, 0, 127);
	imagefill($photoFrame2, 0, 0, $trans_colour);

	imagecopyresampled($photoFrame2, $photo2, 0, 0, 0, 0, $photoFrame2W, $photoFrame2H, $foto2W, $foto2H);
	
	$photoFrame2 	= imagerotate($photoFrame2,$photoFrame2Rotation, -1,0);
	/*after rotating calculate the difference of new height/width with the one before*/
	$extraTop		=(imagesy($photoFrame2)-$photoFrame2H)/2;
	$extraLeft		=(imagesx($photoFrame2)-$photoFrame2W)/2;

	imagecopy($photoFrame, $photoFrame2,$photoFrame2LEFT-$extraLeft, $photoFrame2TOP-$extraTop, 0, 0, imagesx($photoFrame2), imagesy($photoFrame2));	
}
// Set the content type header - in this case image/jpeg

$src = "v/uploads/raw/$photo";
	 
	
imagejpeg($photoFrame, $src,100);

/*header('Content-type: image/jpeg');
imagejpeg($photoFrame, $targetfile,100); 
imagedestroy($photoFrame);*/
 
 $db->pimped($msg_id);
 
  
  $msg_idR = $db->base64url_encode($msg_id);
  if($step==1)  
		
		 {
	 
 header("Location: indexAlone.php?mode=pimpme&msg_id=$msg_idR&step=2");
		  }
  
   if($step==2)  
		
		 {
	 
 header("Location: indexAlone.php?mode=pimpme&msg_id=$msg_idR&step=3");
		  } 
  
  
   if($step==3)  
		
		 {
	 
 header("Location: indexAlone.php?mode=pimpme&msg_id=$msg_idR&step=4");
		  } 
  
  
  
    if($step==4)  
		
		 {
	 
 header("Location: indexAlone.php?mode=pimpme&msg_id=$msg_idR&step=5");
		  } 
		  
		     if($step==5)  
		
		 {
	 

	
 header("Location: indexAlone.php?mode=pimpme&msg_id=$msg_idR&step=6");
		  } 
  
  if($step==6)  
		
		 {
	 

	
 header("Location: indexAlone.php?mode=effects&msg_id=$msg_idR");
		  } 
   
}



if (!empty($crop)) {

$_POST = filter($_POST);
$msg_id = $_POST['msg_id'];
$msg_id = $db->base64url_decode($msg_id); 
$photo = $_POST['photo'];
$targ_w = $_POST['w'];
$mag = $_POST['mag'];

	
	$targ_h = $_POST['h'];
	$jpeg_quality = 100;

	$src = "v/uploads/raw/$photo";
	 
	$img_r = imagecreatefromjpeg($src);
	$dst_r = ImageCreateTrueColor( $targ_w, $targ_h );

	imagecopyresampled($dst_r,$img_r,0,0,$_POST['x'],$_POST['y'],
	$targ_w,$targ_h,$_POST['w'],$_POST['h']);
	
imagejpeg($dst_r,$src,$jpeg_quality);




$msg_id = mysqli_real_escape_string($link,$msg_id);
 
 if(!empty($mag))
 {
	$db->crop2($msg_id); 
	 header("Location: indexAlone.php?mode=magazines&msg=Photo+cropped+successfully!");
 }
 else
 {
$db->crop($msg_id);	 
 header("Location: index.php?msg=Photo+cropped+successfully!");
 }
 
 

 
   
}


if (!empty($skip)) {

$_POST = filter($_POST);
$msg_id = $_POST['msg_id'];
$msg_id = $db->base64url_decode($msg_id); 
  
$msg_id = mysqli_real_escape_string($link,$msg_id);
  
$db->crop($msg_id);
  header("Location: index.php?msg=Skipped+Cropping");
   
}






if (!empty($editmyreport)) {
$_POST = filter($_POST);
$mytitle = mysqli_real_escape_string($link,$mytitle);
$content = mysqli_real_escape_string($link,$content);
$description = mysqli_real_escape_string($link,$description);
$keywords = mysqli_real_escape_string($link,$keywords);
 
 
$db->editmyreport($catalogid,$mytitle,$content,$keywords,$msg_id);
 
		$db->editslugr($msg_id,$slug,$mytitle,$str);
 	 

    header("Location: index.php?msg=Content+Edited+Successfully!");
   
}













if (!empty($DP1)) {
   $db->del_Video($msg_id,$VideoPath);
}













 
$page_limit = $record ; 
$pagenext = $page+1;

$result = $db->getcatalognewsreport3($page,$record,$catid);


	 
?>
  <?php
              if (!empty($result)) {?>
              
			  <script type="text/javascript">
$(function() {

$(".delbutton").click(function(){
var del_id = element.attr("id");
var info = 'id=' + del_id;
if(confirm("Sure you want to delete this update? There is NO undo!"))
{
$.ajax({
type: "POST",
url: "ezikiframework.php",
data: info,
success: function(){
}
});
$(this).parents(".record").animate({ backgroundColor: "#fbc7c7" }, "fast")
.animate({ opacity: "hide" }, "slow");
}
return false;
});
});
</script>

 <script type="text/javascript" src="v/scripts/multiplereporta.js"> </script>           
<div id="insert_response5" style=" color:#4d90b4;font:Arial, Helvetica, sans-serif; font-size:11px;"></div>  <div id="insert_response66" style=" color:#4d90b4;font:Arial, Helvetica, sans-serif; font-size:11px;"></div>
<?php } ?>


<?php 

 

		
		
 ?>




 <form action="" method="post"> 

 

<table id="Table_01" width="100%" height="537" border="0" cellpadding="0" cellspacing="0" >
	<tr>
		<td>
        
         
     
     
     
     
     
     
     
    <table id="Table_01" width="100%" height="536" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td height="54" width="100%">
			 <h2 style="margin-top:0px" class="post-title">Fashion Collection</h2>
             <p class="h4">Show off your taste in fashion with your own custom collection.</p> Create one to get started</td>
		<td  width="48"  valign="top"  >
			
            
            
            
            
               <?php
         
	if ($page!=0)
		{
		$pagepre = $page-1;	
		?>
			
		<a href="?mode=wardrobe&page=<?php echo $pagepre ?>&catid=<?php echo $catid ?>"><img src="images/mycontent_03.png" width="48" height="54" alt=""></a> 
		<?php }else
		
		{?>
			<img src="images/mycontent_03.png" width="48" height="54" alt="">
		<?php } ?>
            
            
            
            
            
            
            </td>
		<td  width="41" valign="top"  >
			
            
            	  <?php
	  
		if (!empty($result))
		{?>
		<a href="?mode=wardrobe&page=<?php echo $pagenext ?>&catid=<?php echo $catid ?>"><img src="images/mycontent_04.png" width="41" height="54" alt=""></a>
		<?php }
		
		
		else
		
		{?>
			<img src="images/mycontent_04.png" width="41" height="54" alt="">
		<?php }
		?>
            
            
            
            
            
            
            
            
            
            
            </td>
	</tr>
	<tr>
		<td colspan="3" width="100%" align="center" height="482" valign="top">
		
        
        
        
        
          <?php 
		  
		  if (empty($result))
		  {
			  ?>
              
              <br />
<br />

<table id="Table_01" width="100%" height="76" border="0" cellpadding="0" cellspacing="0" style=" background-color:#666; background-repeat:no-repeat; margin-bottom:5px; margin-top:5px ; background-color:">
  <tr>
    <td   style="padding:5px">
    
    
    <table width="100%" cellspacing="0" cellpadding="0">
        <tr >
          <td width="64" valign="middle"></td>
          <td width="100%" valign="middle"><div align="left" style=" padding-left:10px; color:#Fff; font-size:14px"  title="Published: 2014-06-21" >You have no Collection yet. Create one on the right to get started...</div></td>
          <td width="40" style=" padding-right:15px">&nbsp;</td>
          
          <!-- <td width="54" valign="middle" >
                                         </td>  -->
          
          <td  width="40"  valign="middle" ><!--<a href="?mode=updateReport&msg_id=MTM2Mw,,"> <img src="images/edit.png" width="40" alt="Edit" hspace="10" /></a>--></td>
          <td width="104" style="padding-left:2px"><a href="?mode=wardrobe&go=create"> <IMG src="images/create.png"   id="Video_" ></a></td>
          <td width="30">&nbsp;</td>
        </tr>
      </table></td>
  </tr>
</table>
              
              <?php 
			  
		  } ?>
                   
<br />
          <?php 
		  foreach ($result as $key => $val) {
	       $msg_id = stripslashes($val["msg_id"]);
	        $yanani = stripslashes($val["catalogid_fk"]);
	        $message = stripslashes($val["message"]);
			   $original = stripslashes($val["original"]);
			   $viewnum = stripslashes($val["viewnum"]);
		 $isdisplay = stripslashes($val["isdisplay"]);	
			   $adddate = stripslashes($val["adddate"]);  
			    $content = stripslashes($val["content"]); 
				$type = stripslashes($val["type"]); 
				$adddate = stripslashes($val["adddate"]);    
	         $msg_id = $db->base64url_encode($msg_id);
			$msg_id2 = $msg_id;
			
			$myidis = $_SESSION['euserid']; 
			if ($yanani == $myidis)
			{
              ?>
              
        
        <table id="Table_01" width="100%" height="76" border="0" cellpadding="0" cellspacing="0" style="background-image:url(images/base.png); background-color:#333; background-repeat:no-repeat; margin-bottom:5px; margin-top:5px">
	<tr>
		<td   style="padding:5px">
        
        
        
        
        
        
        
        
        <table width="100%" cellspacing="0" cellpadding="0">
         
          <tr >
           
            <td width="64" valign="middle"> 
            
            
            
            
            
            
            
            
             <a href="taswira.php?width=900&image=/v/uploads/raw/<?php print "$original"; ?>" class="albumpix" rel="albumpix"><img src="<?php echo $siteaddress;?>taswira.php?width=100&height=60&nocache=1&cropratio=1.666666666666667:1&image=/v/uploads/raw/<?php print "$original"; ?>" alt="edit thumb"  title="Published: <?php echo $adddate ?>"  width="100" height="60" style=" margin-left:2px;-moz-border-radius : 3px 3px 3px 3px:-webkit-border-radius : 3px 3px 3px 3px;border-radius : 3px 3px 3px 3px;"/></a>
             
             
             
             </td>
            <td width="100%" valign="middle"><div align="left" style=" padding-left:10px; color:#FFF; font-size:14px"  title="Published: <?php echo $adddate ?>" ><?php print text_limit($message,8); ?> </div></td>
          
            








<td width="40" style=" padding-right:15px">
            <?php 
			
			?>                
                  <?php   
            
		     if ($isdisplay ==15 ){
				 
				 
				 ?>
             
              <a href="?mode=ward&msg_id=<?php print "$msg_id"; ?>&step=1">  <IMG src="images/addshoes.png"     id="Video_<?php echo $nmsg_id; ?>" ></a>
	   <?php   }
		
				   ?>      
                       
              
                   <?php   
            
		     if ($isdisplay !=15 ){
				 
				 
				 ?>
   
	                  
                       
                       
                       
                          <?php
                switch($type){
				
				 case "jpg":
                ?>  
                          <a href="taswira.php?width=900&image=/v/uploads/raw/<?php print "$original"; ?>" class="albumpix" rel="albumpix"> <img src="images/photo.png" width="40" /></a>
<?php
                break;
                
				
				 case "gif":
                ?>  
                    <a href="taswira.php?width=900&image=/v/uploads/raw/<?php print "$original"; ?>" class="albumpix" rel="albumpix">  <img src="images/photo.png" width="40" /></a>
<?php
                break;
                
                
                case "png":
                ?>  
                   <a href="taswira.php?width=900&image=/v/uploads/raw/<?php print "$original"; ?>" class="albumpix" rel="albumpix">  <img src="images/photo.png" width="40" /></a>
<?php
                break;   
				
		              
                }
                ?> 
               </td> 
               
               
               
               
               
               
               
                  <?php   }
		
				   ?>  
            
             
                 
                  
           
           <!-- <td width="54" valign="middle" >
                          <?php
                switch($isdisplay){
				
				 case "3":
                ?>  
                          <img src="images/distributed.png" width="40"  alt="Pending Distribution" />
<?php
                break;
                
				
				 case "2":
                ?>  
                   <img src="images/distributionpending.png" width="40"  alt="New  Distribution Added But Pending" />
<?php
                break;
                
                
                case "1":
                ?>  
                        <img src="images/distribute.png" width="40"  alt="Distributed"/>
<?php
                break;
                
                case "0":
                ?> 
                       <img src="no.png" alt="not featured" />  
                          <?php
                break;                
                }
                ?>
               </td>  --> 
                 
                 
                 
                 
               
             
                 
                 
                 
                 
                 
              
                   <td  width="40"  valign="middle" ><!--<a href="?mode=updateReport&msg_id=<?php print "$msg_id"; ?>"> <img src="images/edit.png" width="40" alt="Edit" hspace="10" /></a>--> </td>
               
             
                            <td width="104" style="padding-left:2px"> 
                      
                     
                     
                     
                     
                     
                     
                   <?php   
            
		     if ($isdisplay ==15 ){
				 
				 
				 ?>
            <a href="?mode=ward&msg_id=<?php print "$msg_id"; ?>&step=2">  <IMG src="images/addclothes.png"     id="Video_<?php echo $nmsg_id; ?>" ></a> 
            
 	   <?php   }
		
				   ?>         
                       
                  <?php   
             
		     if ($isdisplay ==16 ){
				 
				 
				 ?>
            <a href="?mode=share&msg_id=<?php print "$msg_id"; ?>&step=1"> <IMG src="images/share.png"   id="Video_<?php echo $nmsg_id; ?>" >  </a>
	   <?php   }
		
				   ?>       
                      
                      
                    <?php   
             
		     if ($isdisplay ==5 ){
				 
				 
				 ?>
            <a href="?mode=share&msg_id=<?php print "$msg_id"; ?>&msg_id3=<?php print "$idS"; ?>"> <IMG src="images/share.png"   id="Video_<?php echo $nmsg_id; ?>" ></a>
	   <?php   }
		
				   ?>       
                      
                      
                     </td>
             
             
                      <td width="30"> <a href="indexAlone.php?mode=wardrobe&msg_id=<?php print "$msg_id"; ?>&catid=<?php print "$catid"; ?>&delnews=yes&where=ward" class="en_b style6 style6"><img src="images/declined.png" width="30" hspace="10" alt="delete" /></a></td>    
                      
                      
                      
                  
                  </tr></table>
        
        
        
        
        
        
        
        </td></tr></table> 
              
              <?php }  
			  
			  
			  }
			  
			  
			 ?>
        
        
        
        
        
        
                  <?php 
		  
		  if (!empty($result))
		  {
			  ?>
              
                        
<table id="Table_01" width="100%" height="76" border="0" cellpadding="0" cellspacing="0" style=" background-repeat:no-repeat; margin-bottom:5px; margin-top:5px">
  <tr>
    <td   style="padding:5px"><table width="95%" cellspacing="0" cellpadding="0">
        <tr >
       
          <td  align="center"><a href="?mode=wardrobe&go=create"> <IMG src="images/createnew.png"   id="Video_" ></a></td>
         
        </tr>
      </table></td>
  </tr>
</table>
                
            
            <?php } ?>
            
        
        
        
        
        </td>
	</tr>
</table> 
     
     
     
  </td></tr></table>