[ Index ]
 

Code source de SPIP Agora 1.4

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/Agora1-4/ecrire/ -> brouteur_select_mot.php (source)

   1  <?php
   2  /*****************************************************
   3  * This file is part of Agora, web based content management system.
   4  *
   5  * Agora is free software; you can redistribute it and/or modify
   6  * it under the terms of the GNU General Public License as published by
   7  * the Free Software Foundation; version 2 of the License.
   8  *
   9  * Agora is distributed in the hope that it will be useful,
  10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12  * GNU General Public License for more details (file "COPYING").
  13  *
  14  * Copyright © Arnaud Martin, Antoine Pitrou et Philippe Rivière.
  15  * List of authors detailed in "copyright_fr.html" file.
  16  * E-mail : agora@sig.premier-ministre.gouv.fr
  17  * Web site : http://www.agora.gouv.fr
  18  *****************************************************/
  19  /**  Permet de selectionner un mot-clé à la maniere du brouteur existant dans SPIP.
  20   * @version      $Id$
  21   */
  22  
  23  ###
  24  # Includes
  25  ###
  26  require_once  'inc.php';
  27  
  28  require_once  ("include/bd/inc_groupe_mot_factory.php");
  29  
  30  ###
  31  # Traitement des paramètres
  32  ###
  33  $id_groupe_mot = $_GET['id_groupe_mot'];
  34  $id_mot = $_GET['id_mot'];
  35  
  36  //debut_page(_T('titre_page_articles_tous'), "asuivre", "tout-site");
  37  debut_html();
  38  ?>
  39  
  40  <script type = "text/javascript" src = "js/brouteur.lib.js"></script>
  41  
  42  <?php
  43  $groupeMot = &recuperer_instance_groupe_mot();
  44  //$aGroupeMots = $groupeMot->getAllGroupe();
  45  $aGroupeMots = $groupeMot->getAllForTable($_GET['table'], "'oui'");
  46  
  47  echo "<div>&nbsp;</div>";
  48  
  49  /// TODO: passer en conf
  50  //$largeur_table = 974;
  51  $largeur_table = 874;
  52  $hauteur_table = 400;
  53  //$nb_col = 4;
  54  $nb_col = 5;
  55  
  56  $largeur_col = round($largeur_table / $nb_col);
  57  
  58  echo "<table border='0' cellpadding='0' cellspacing='2' width='$largeur_table'>";
  59  
  60  $dest = array();
  61  $dest[0] = 0;
  62  
  63  if ($id_groupe_mot != 0) {
  64      //echo "PARAMETRE ID_GROUPE_MOT=>".$id_groupe_mot;
  65      $dest[1] = $id_groupe_mot;
  66  }
  67  
  68  echo "<tr width='$largeur_table'>";
  69  
  70  for ($i = 0; $i < $nb_col; $i++) {
  71      echo "<td valign='top' width='$largeur_col' >";
  72      echo "\n<iframe width='100%'  height='$hauteur_table' id='iframe$i' name='iframe$i' src='brouteur_select_mot_frame.php?id_groupe_mot=" . $dest[$i]. "&frame=$i&table=" . $_GET['table']. "&height='$hauteur_table' style='background-color: #eeeeee; border-right: 1px solid white; border-bottom: 1px solid white; border-left: 1px solid #cccccc; border-top: 1px solid #cccccc;'></iframe>\n";
  73      echo "</td>";
  74  }
  75  
  76  echo "</tr>";
  77  echo "</table>";
  78  ?>


Généré le : Sat Feb 24 14:40:03 2007 par Balluche grâce à PHPXref 0.7