<?php

 $sql="select cssname,title,kv,pidname,despjj from  ".TABLE_VIDEO."  where  pidname='$pidname'   $andlangbh order by  id desc";
     //echo $sql;
if(getnum($sql)>0) {
  $row=getrow($sql);
  $pidname=$row['pidname'];$title=$row['title'];
  $kv=$row['kv'];$cssname=$row['cssname'];
  //$effect=$row['effect'];
  $despjj=$row['despjj'];
  //$desp=$row['desp'];
//


 $despjj= web_despdecode($despjj);
  //video image
            if($kv=='') $videoimgv = STAPATH.'img/video.jpg';
            else  $videoimgv = UPLOADPATHIMAGE.$kv;

$videoarr ='<div class="bgvideoarrow"></div>';
if(is_int(strpos($cssname,'novideoarrow'))) $videoarr ='';


//video code ,see incldue/file_formpost_videopop.php
?>

<section class="videofullbg <?php echo $cssname;?>" style="background-image: url(<?php echo $videoimgv;?>);">
            <div class="bg_overlay_cover"></div>
			<div class="videofullbg_text">
            
			<h3><?php echo $title;?></h3>
			<div class="desp"><?php echo $despjj;?></div>
			
			<?php 
         // class="videoarrow"
      ?>
			  <a data-fancybox data-type="iframe" data-src="<?php echo BASEURL?>dmpostform.php?type=videopop&pidname=<?php echo $pidname;?>&lang=<?php echo LANGPATH;?>"  data-caption="<?php echo $despjj;?>" href="javascript:;" class="videoplaybutton">
           <span></span> 
				 
				</a>
     </div>
 </section>
		
		

<?php

}

   ?>
