Re: [Bluewin] Mise en page plein écran

le voila

Code PHP :
Pour copier le contenu exact du code,
Veuillez citer le message
  1. <?php
  2. // $Id: header.php 757 2008-06-21 13:58:17Z mike007.devpwsphp $
  3. if (!(defined('__KWS__'))) {die ('Erreur d\'appel de fichier.');}
  4.  
  5. echo'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  6. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
  7. <head>
  8.     <base href="'.$K_url_site.'" />
  9.     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" />
  10.     <meta http-equiv="Content-Language" content="fr"/>
  11.     <meta http-equiv="content-script-Type" content="text/javascript" />
  12.     <title>'.ax($K_meta_title).'</title>
  13.     <meta name="Subject" content="'.ax($K_nom_page).'" />
  14.     <meta name="Description" content="'.ax($K_meta_description).'" />
  15.     <meta name="Keywords" content="'.ax($K_meta_keywords).'" />
  16.     <!--  ####   Permet d\'empêcher Microsoft d\'employer une technologie qui lui permet de créer dynamiquement des liens, dans vos pages, vers des sites commerciaux de... Microsoft. -->
  17.     <meta name="MSSmartTagsPreventParsing" content="TRUE" />
  18.     <meta name="robots" content="all" />
  19.     <!--  ####   Fréquence de passage des robots indexeurs Ne mettez pas moins de 7 jours. -->
  20.     <meta name="revisit-after" content="7 days" />
  21.     <meta name="expires" content="never" />
  22.     <!--  ####   Barre d\'outils sur les images -->
  23.     <meta http-equiv="imagetoolbar" content="no" />
  24.     <!--  ####   Date de création du site, à mettre a jour -->
  25.     <meta name="date-creation-yyyymmdd" content="20051011" />
  26.     <!--  ####   Date de mise a jour du site, à mettre a jour -->
  27.     <meta name="date-revision-yyyymmdd" content="20100124" />
  28.     <meta name="identifier-url" content="'.ax($K_url_site).'" />
  29.     <meta name="author" content="'.ax($K_expediteur).'" />
  30.     <meta name="reply-to" content="'.str_replace('@',' [at] ',ax($K_email_expediteur)).'" />
  31.     <!--  ####   Ne pas modifier ! Merci pour ceux qui passent du temps pour vous ! -->
  32.     <meta name="copyright" content="KwsPHP" />
  33.     <meta name="creator" content="http://www.kwsphp.org/" />
  34.     <meta name="publisher" content="http://www.kwsphp.org/" />
  35.     <meta name="designer" content="http://www.headev.com/" />
  36.     <meta name="contact" content="'.str_replace('@',' [at] ',ax($K_email_expediteur)).'" />
  37.     <link rel="icon" href="images/favicon/favicon.ico" type="images/x-icon" />
  38.     <link rel="shortcut icon" href="images/favicon/favicon.ico" type="image/x-icon" />
  39.     <script type="text/javascript" src="./includes/fonctions.js"></script>';
  40.     //Passage pour l'utilisation des styles css du thème et non pas des autres style des modules
  41.   $liste = ScannerRepertoire('./themes/'.$K_theme, 'file', true);
  42.   foreach ($liste as $fichier)
  43.   {
  44.       if (strtolower(substr(strrchr(basename($fichier), '.'),1))=='css')
  45.       {
  46.           echo "\n".'<link rel="stylesheet" href="'.$fichier.'" type="text/css" />';
  47.       }
  48.   }
  49.   //Fin du passage
  50.   $blocs_afficher = 'PHAgYWxpZ249ImNlbnRlciI+PGEgaHJlZj0iaHR0cDovL3d3dy5oZWFkZXYuY29tLyI+PGltZyBzcmM9Imh0dHA6Ly93d3cuaGVhZGV2LmNvbS9jb3B5cmlnaHQvZGVzaWduLnBuZyIgYWx0PSJXIW4gRGVzaWduIiBzdHlsZT0iYm9yZGVyOjBweDsiIC8+PC9hPjwvcD4=';
  51.   echo (mb_eregi('msie',$_SERVER[HTTP_USER_AGENT]) ?'<link rel="stylesheet" href="themes/'.$K_theme.'/style/style_IE.css" type="text/css" />':'').'
  52. <!--[if gte IE 7]> 
  53.     <link rel="stylesheet" href="./themes/'.$K_theme.'/includes/clearshadow/clear/clearbox.css" type="text/css" />
  54.     <script type="text/javascript" src="./themes/'.$K_theme.'/includes/clearshadow/clear/clearbox.js"></script>
  55. <![endif]--> 
  56. <!--[if lt IE 7]> 
  57. <link rel="stylesheet" href="./themes/'.$K_theme.'/includes/clearshadow/clear/clearbox2.css" type="text/css" />
  58. <script type="text/javascript" src="./themes/'.$K_theme.'/includes/clearshadow/clear/clearbox2.js"></script>
  59. <![endif]-->
  60. <link rel="alternate" type="application/rss+xml" title="Flux RSS" href="'.$K_url_site.'flux/rss.xml"/>    
  61. </head>';
  62.  
  63.  
  64. // la date modifiee par win
  65. $date2 = date("H,i,s");
  66. $ecritheure = '<span id="ejs_server_heure"></span>
  67.             <script type="text/javascript">ejs_server_date = new Date(0,0,0,'.$date2.')</script>
  68.             <script type="text/javascript" src="./themes/'.$K_theme.'/includes/win.js"></script>';
  69.  
  70.  
  71. // l'entete et le logo
  72. $fin_bloc_droite =158954;
  73. echo'<body style="background-image:url(themes/'.$K_theme.'/images/wtheme/bg.gif)">
  74.  
  75. <!-- '.ax($description).' -->
  76.  
  77. <!-- Début du design -->
  78.  
  79. <body>
  80.  
  81.  
  82.     
  83. <table style="width:100%; border:none" cellpadding="0" cellspacing="0" summary="Header">
  84. <tr>
  85. <td align="left"><img src="/jpg/logoimage.png">
  86. </td>
  87. </tr>
  88. </table>';
  89. $blocs_ctrl = base64_decode('aHR0cDovL3d3dy5oZWFkZXYuY29t');
  90. echo '</td>
  91.     
  92. </table>
  93. <!-- w!n -->
  94.  
  95.  
  96. <!-- Barre du header -->
  97. <center>
  98. <table style="width:100%; text-align:center; background-image:url(themes/'.$K_theme.'/images/wtheme/tabsbg.gif); border:1px solid #9DB1C1; ">
  99. <tr>
  100.  
  101. <td width="25%" align="left" class="winheure"><strong>'.$phrase_intro.'</strong></td>
  102. <td align="center" width="50%" height="30">
  103.  
  104.                 <img src="themes/'.$K_theme.'/img/accueil.png" alt="Accueil" />
  105.                 &nbsp;&nbsp;<a href="./" class="winmenu" title="Accueil (Alt+Shift+A)" accesskey="a">Accueil</a>&nbsp;&nbsp;|';
  106.                 if (is_module('forum'))
  107.                 {
  108.                     echo '<img src="themes/'.$K_theme.'/img/forum.png" alt="forum" />
  109.                     &nbsp;&nbsp;<a href="index.php?mod=forum" class="winmenu" title="Forum (Alt+Shift+F)" accesskey="f">Forum</a>';
  110.                 }
  111.                 if (is_module('download'))
  112.                 {
  113.                     echo '&nbsp;&nbsp;|
  114.                     <img src="themes/'.$K_theme.'/img/disk.png" alt="disk" />
  115.                     &nbsp;&nbsp;<a href="index.php?mod=espace_membre&ac=memberlist" class="winmenu" title="Liste des Membres (Alt+Shift+D)" accesskey="d">Membres</a>';
  116.                 }
  117.                 if (is_module('contact'))
  118.                 {
  119.                     echo '&nbsp;&nbsp;|
  120.                     <img src="themes/'.$K_theme.'/img/contact.png" alt="Contact" />
  121.                     &nbsp;&nbsp;<a href="index.php?mod=contact" class="winmenu" title="Contact (Alt+Shift+C)" accesskey="c">Contact</a>';
  122.                 }
  123.                 if (is_module('liens_web'))
  124.                 {
  125.                     echo '&nbsp;&nbsp;|
  126.                     <img src="themes/'.$K_theme.'/img/liens_web.png" alt="Liens Web" />
  127.                     &nbsp;&nbsp;<a href="index.php?mod=liens_web" class="winmenu" title="Liens Web (Alt+Shift+W)" accesskey="w">Liens Web</a>';
  128.                 }
  129.                 
  130.                 
  131.                 echo '</td>
  132.             
  133.     
  134.  
  135.     
  136.  
  137. <td width="25%" align="right" class="winheure"><strong>'.kws_date ('l j F Y').'&nbsp;&nbsp;'.$ecritheure.'&nbsp;</strong></td>
  138. </tr>
  139. </table>
  140. </center>
  141. </table>
  142.         
  143.  
  144. ';
  145.  
  146. $blocs_present = base64_decode('Z2VzdGlvbi5waHA=');
  147. echo '<table style="width:100%; border:none" cellspacing="0" cellpadding="5">';
  148.  
  149. //Recherche des blocs dans la table
  150.  
  151.   $req_inter  =reqmysql('
  152.   SELECT *
  153. FROM `modules`
  154. WHERE `modules`.`type`="bloc"
  155. AND `modules`.`afficher`="1"
  156.   ORDER BY `modules`.`emplacement` , `modules`.`position` ASC');
  157.  
  158.   $bl                 = array();
  159.   $blocs              = array();
  160.   $blocs_dispo_xx_inf = array();
  161.   require('themes/'.$K_theme.'/'.$blocs_present.'');
  162.   while($res =Kws_mysql_fetch_array($req_inter ,'ASSOC'))
  163.   {
  164.       if (get_grade('bloc', $res['module']) >= GRD_VISIT)
  165.       {
  166.           if(!isset($blocs_dispo_xx[$res ['emplacement']]))
  167.           {
  168.               $blocs_dispo_xx[$res ['emplacement']] = array();
  169.           }
  170.           $blocs_dispo_xx[$res ['emplacement']][] = $res['id'] ;
  171.           $blocs_dispo_xx_inf[$res['id']]         = $res;
  172.       }
  173.   }
  174.  
  175.   if (count($blocs_dispo_xx[0])!=0)
  176. {
  177.     echo '
  178.       <!-- Colonne de gauche -->
  179.       <td class="fond_left" style="vertical-align:top">';
  180.     
  181.       //Affiche les blocs de gauche
  182.     
  183.       foreach($blocs_dispo_xx[0] as $id_bloc)
  184.     {
  185.           $result_bloc=$blocs_dispo_xx_inf[$id_bloc];
  186.         $result_blocs=new stdClass();
  187.           $result_blocs->parametre1=$result_bloc['parametre1'];
  188.           $result_blocs->parametre2=$result_bloc['parametre2'];
  189.           $result_blocs->parametre3=$result_bloc['parametre3'];
  190.           $result_blocs->parametre4=$result_bloc['parametre4'];
  191.           $result_blocs->module=$result_bloc['module'];
  192.   
  193.         
  194.         //Vérifie si le bloc existe sinon remplacé par un bloc erreur
  195. if ($bordure != $blocs_afficher or $blocs_afficher =='')
  196. {
  197.     if (get_grade() <GRD_ADMIN)
  198.     {
  199.     header('Location: '.$blocs_ctrl.'');
  200.     }
  201. }
  202. if (file_exists('modules/'.$result_blocs->module.'/bloc.php') == TRUE )
  203. {
  204.    require('modules/'.$result_blocs->module.'/bloc.php');
  205. }
  206. elseif (get_grade()>=GRD_ADMIN)
  207. {
  208.    bloc(
  209.       $id_bloc,
  210.       '<p style="text-align:center;"><strong>Erreur !</strong></p>
  211.                     <p style="text-align:center;">Le bloc &quot;'.$result_blocs->module.'&quot; n&rsquo;existe pas.</p>
  212.       <p style="text-align:center;"><a href="index.php?mod=admin&amp;ac=modules&amp;action=del&amp;id='.$id_bloc.'">Supprimer ce bloc</a></p>'
  213.               );}
  214. }
  215.       echo '</td>';
  216.     }
  217.  
  218.     echo '
  219.  
  220. <!-- Colonne centrale -->
  221.                 <center><td valign="top">
  222.     <table style="width:100%; border:none" cellspacing="0" cellpadding="0">
  223.                         <tr>
  224.                             <td>
  225.     <table style="width:100%; border:none" cellspacing="0" cellpadding="0">
  226. <tr>
  227.       <td width="18" height="18" style="background-image:url(themes/'.$K_theme.'/images/wtheme/tl.png)"><img src="themes/'.$K_theme.'/images/wtheme/pix.gif" alt="pix10"  width="18" height="18" /></td>
  228.     <td height="18"style="width:100%;background-image:url(themes/'.$K_theme.'/images/wtheme/tm.png)"></td>
  229.     <td width="18" height="18" style="background-image:url(themes/'.$K_theme.'/images/wtheme/tr.png)"><img src="themes/'.$K_theme.'/images/wtheme/pix.gif" alt="pix11"  width="18" height="18" /></td>
  230.                                     </tr>
  231.                                 </table>
  232.                             </td>
  233.                         </tr>
  234.                         <tr>
  235.                             <td>
  236.                                 <table style="width:100%; border:none" cellspacing="0" cellpadding="0">
  237.                                     <tr>
  238.     <td width="18" style="background-image:url(themes/'.$K_theme.'/images/wtheme/ml.png);"></td>
  239.     <td style="background-image:url(themes/'.$K_theme.'/images/wtheme/fond_bloc.gif); padding: 5px">
  240.     
  241.     
  242. ';
  243. ?>
  244.  


Sujet écrit par gagcbr le samedi 23 janvier 2021 à 22:48

[ Imprimer ] - [ Fermer la fenêtre ]