1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <?php
foreach ( $offres as $o ){
?>
<script type="text/javascript">
function popUp(){
w = (document.all ? screen.width : screen.width) * 0.9;
h = (document.all ? screen.height : screen.height-150) * 0.9;
pm = 'scrollbars=yes,toolbar=yes,location=yes,directories=yes,menubar=yes,resizable=yes,status=yes,width=' + w + ',height=' + h + ',screenX=0,screenY=0,top=0,left=0';
window.open(urlConstruct(),"_blank",pm);
}
function urlConstruct(){
id = '<?php echo $_HTML->prog['id_programme']; ?>';
partenaire = '<?php echo $o['id_partenaire']; ?>';
sscat = '<?php echo $_HTML->prog['id_rubriquess']; ?>';
url = '<?php echo base64_encode($o['url']); ?>';
urlComplete = 'http://www.totalvod.com/redirection.php?id=' + id + '&partenaire=' + partenaire + '&sscat=' + sscat + '&url=' + url;
return urlComplete;
}
</script>
<?php
echo '<div class="col_fiche">
<span class="tableau_logo">
<img src="/data/partenaires/'.$o['logo'].'_60.jpg" border="0" align="right" alt="'.$o['logo'].'"/>
</span>'.$o['libelle'].' - <strong class="txt_gris">'.$o['prix'].' </strong> .......... <a href="#" onclick="javascript:popUp()" title="Accéder à la vidéo">Accéder à la vidéo</a>
</div>';
}
?> |
Partager