<h2 class="heading"><?php echo lg('VIDEODEJOUR'); ?> </h2> <?php global $db; if (!$db->Query("SELECT titr" . LANG . " as titre ,vod" . LANG . " as vod,id from vod where vod" . LANG . " IS NOT NULL order by id DESC limit 0,1 ")) { $db->Kill("error"); } if ($db->RowCount() > 0) { $db->EndOfSeek(); $row = $db->Row(); ?> <div class="video-container vod-home" style=" <?php echo ytb_img($row->vod, 247); ?> "> <a class="btn_play ytb_colbx" href="#" rel="<?php echo $row->vod; ?> "><img src="img/btn_play.png" /></a> </div> <?php } ?> </div>
<?php if ($array['video'] != "") { global $db; if (!$db->Query("SELECT titr" . LANG . " as titre ,vod" . LANG . " as vod,id from vod where id=" . $array['video'])) { $db->Kill("error"); } if ($db->RowCount() > 0) { $row = $db->Row(); ?> <h2 class="heading"><?php echo lg('VD'); ?> </h2> <article> <div class="video-container " style=" <?php echo ytb_img($row->vod); ?> "> <a class="btn_play ytb_colbx" href="#" rel="<?php echo $row->vod; ?> "><img src="img/btn_play.png" /></a> </div> </article> <?php } } ?>
<article> <ul class="nospace clear"> <?php while (!$db->EndOfSeek()) { $row = $db->Row(); $first = in_array($db->SeekPosition(), array(1, 5, 9, 13)) ? "first" : NULL; ?> <li class="one_quarter video-container-mini <?php echo $first; ?> " > <div class="video-container-mini" style=" <?php echo ytb_img($row->vod, 100); ?> "> <a class="btn_play-mini ytb_colbx" href="#" rel="<?php echo $row->vod; ?> "><img src="img/btn_play.png" /></a> </div>