[ Index ]
 

Code source de SPIP 1.8.3

Accédez au Source d'autres logiciels libres | Soutenez Angelica Josefina !

title

Body

[fermer]

/ecrire/ -> mots_type.php3 (source)

   1  <?php
   2  
   3  /***************************************************************************\
   4   *  SPIP, Systeme de publication pour l'internet                           *
   5   *                                                                         *
   6   *  Copyright (c) 2001-2005                                                *
   7   *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
   8   *                                                                         *
   9   *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
  10   *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
  11  \***************************************************************************/
  12  
  13  
  14  include  ("inc.php3");
  15  
  16  
  17  if ($connect_statut == '0minirezo' AND $new == "oui") {
  18      $id_groupe = '';
  19      $type = filtrer_entites(_T('titre_nouveau_groupe'));
  20      $onfocus = " onfocus=\"if(!antifocus){this.value='';antifocus=true;}\"";
  21      $ancien_type = '';
  22      $unseul = 'non';
  23      $obligatoire = 'non';
  24      $articles = 'oui';
  25      $breves = 'oui';
  26      $rubriques = 'non';
  27      $syndic = 'oui';
  28      $acces_minirezo = 'oui';
  29      $acces_comite = 'oui';
  30      $acces_forum = 'non';
  31  } else {
  32      $query_groupes = "SELECT * FROM spip_groupes_mots WHERE id_groupe='$id_groupe'";
  33      $result_groupes = spip_query($query_groupes);
  34      while($row = spip_fetch_array($result_groupes)) {
  35          $id_groupe = $row['id_groupe'];
  36          $type = $row['titre'];
  37          $ancien_type = $type;
  38          $titre = typo($type);
  39          $descriptif = $row['descriptif'];
  40          $texte = $row['texte'];
  41          $unseul = $row['unseul'];
  42          $obligatoire = $row['obligatoire'];
  43          $articles = $row['articles'];
  44          $breves = $row['breves'];
  45          $rubriques = $row['rubriques'];
  46          $syndic = $row['syndic'];
  47          $acces_minirezo = $row['minirezo'];
  48          $acces_comite = $row['comite'];
  49          $acces_forum = $row['forum'];
  50      }
  51  }
  52  
  53  debut_page("&laquo; $titre &raquo;", "documents", "mots");
  54  
  55  debut_gauche();
  56  
  57  
  58  
  59  debut_droite();
  60  
  61  debut_cadre_relief("groupe-mot-24.gif");
  62  
  63  
  64  
  65  echo "\n<table cellpadding=0 cellspacing=0 border=0 width='100%'>";
  66  echo "<tr width='100%'>";
  67  
  68      echo "<td  align='right' valign='top'>";
  69      icone(_T('icone_retour'), "mots_tous.php3", "mot-cle-24.gif", "rien.gif");
  70      echo "</td>";
  71      echo "<td>". http_img_pack('rien.gif', " ", "width='5'") . "</td>\n";
  72  
  73  echo "<td width='100%' valign='top'>";
  74  echo "<font face='Verdana,Arial,Sans,sans-serif' size=1><b>"._T('titre_groupe_mots')."</b><br></font>";
  75  gros_titre($titre);
  76  echo aide("motsgroupes");
  77  
  78  if ($connect_statut =="0minirezo"){
  79      $type=entites_html(urldecode($type));
  80      echo "<p><font face='Verdana,Arial,Sans,sans-serif'>";
  81      echo "<FORM ACTION='mots_tous.php3' METHOD='post'>\n";
  82      echo "<INPUT TYPE='Hidden' NAME='modifier_groupe' VALUE=\"oui\">\n";
  83      echo "<INPUT TYPE='Hidden' NAME='id_groupe' VALUE=\"$id_groupe\">\n";
  84      echo "<INPUT TYPE='Hidden' NAME='ancien_type' VALUE=\"$ancien_type\">\n";
  85      debut_cadre_formulaire();
  86      echo "<b>"._T('info_changer_nom_groupe')."</b><br>\n";
  87      echo "<INPUT TYPE='Text' SIZE=40 CLASS='formo' NAME='change_type' VALUE=\"$type\" $onfocus>\n";
  88  
  89      if ($options == 'avancees' OR $descriptif) {
  90          echo "<B>"._T('texte_descriptif_rapide')."</B><BR>";
  91          echo "<TEXTAREA NAME='descriptif' CLASS='forml' ROWS='4' COLS='40' wrap=soft>";
  92          echo $descriptif;
  93          echo "</TEXTAREA><P>\n";
  94      }
  95      else
  96          echo "<INPUT TYPE='hidden' NAME='descriptif' VALUE=\"$descriptif\">";
  97  
  98      if ($options == 'avancees' OR $texte) {
  99          echo "<B>"._T('info_texte_explicatif')."</B><BR>";
 100          echo "<TEXTAREA NAME='texte' ROWS='8' CLASS='forml' COLS='40' wrap=soft>";
 101          echo $texte;
 102          echo "</TEXTAREA><P>\n";
 103      }
 104      else
 105          echo "<INPUT TYPE='hidden' NAME='texte' VALUE=\"$texte\">";
 106  
 107  
 108      echo "<p><div align='right'><INPUT TYPE='submit' CLASS='fondo' NAME='Valider' VALUE='"._T('bouton_valider')."'></div>";
 109      fin_cadre_formulaire();
 110  }
 111  
 112  
 113  echo "</td></tr></table>";
 114  
 115  
 116  
 117  fin_cadre_relief();
 118  
 119  if ($connect_statut =="0minirezo"){
 120      echo "<p>";
 121      debut_cadre_formulaire();
 122      echo "<div style='padding: 5px; border: 1px dashed #aaaaaa; background-color: #dddddd;'>";
 123          echo "<b>"._T('info_mots_cles_association')."</b>";
 124          echo "<ul>";
 125          
 126          if ($articles == "oui") $checked = "checked";
 127          else $checked = "";
 128          echo "<input type='checkbox' name='articles' value='oui' $checked id='articles'> <label for='articles'>"._T('item_mots_cles_association_articles')."</label><br>";
 129          $activer_breves = lire_meta("activer_breves");
 130          if ($activer_breves != "non"){
 131              if ($breves == "oui") $checked = "checked";
 132              else $checked = "";
 133              echo "<input type='checkbox' name='breves' value='oui' $checked id='breves'> <label for='breves'>"._T('item_mots_cles_association_breves')."</label><br>";
 134          } else {
 135              echo "<input type='hidden' name='breves' value='non'>";
 136          }
 137          if ($rubriques == "oui") $checked = "checked";
 138          else $checked = "";
 139          echo "<input type='checkbox' name='rubriques' value='oui' $checked id='rubriques'> <label for='rubriques'>"._T('item_mots_cles_association_rubriques')."</label><br>";
 140          if ($syndic == "oui") $checked = "checked";
 141          else $checked = "";
 142          echo "<input type='checkbox' name='syndic' value='oui' $checked id='syndic'> <label for='syndic'>"._T('item_mots_cles_association_sites')."</label>";
 143          
 144          echo "</ul>";
 145      echo "</div>";
 146  
 147  
 148      $config_precise_groupes = lire_meta("config_precise_groupes");
 149      if ($config_precise_groupes == "oui" OR $unseul == "oui" OR $obligatoire == "oui"){
 150          echo "<p><div style='padding: 5px; border: 1px dashed #aaaaaa; background-color: #dddddd;'>";
 151  
 152          if ($unseul == "oui")
 153              $checked = "checked";
 154          else
 155              $checked = "";
 156          echo "<input type='checkbox' name='unseul' value='oui' $checked id='unseul'> <label for='unseul'>"._T('info_selection_un_seul_mot_cle')."</label>";
 157          echo "<br>";
 158  
 159          if ($obligatoire == "oui")
 160              $checked = "checked";
 161          else $checked = "";
 162          echo "<input type='checkbox' name='obligatoire' value='oui' $checked id='obligatoire'> <label for='obligatoire'>"._T('avis_conseil_selection_mot_cle')."</label>";
 163  
 164          echo "</div>";
 165      } else {
 166          echo "<input type='hidden' name='unseul' value='non'>";
 167          echo "<input type='hidden' name='obligatoire' value='non'>";
 168      }
 169  
 170  
 171      
 172      echo "<p>";
 173      echo "<div style='padding: 5px; border: 1px dashed #aaaaaa; background-color: #dddddd;'>";
 174          echo "<b>"._T('info_qui_attribue_mot_cle')."</b>";
 175          echo "<ul>";
 176          
 177          if ($acces_minirezo == "oui") $checked = "checked";
 178          else $checked = "";
 179          echo "<input type='checkbox' name='acces_minirezo' value='oui' $checked id='administrateurs'> <label for='administrateurs'>"._T('bouton_checkbox_qui_attribue_mot_cle_administrateurs')."</label><br>";
 180          if ($acces_comite == "oui") $checked = "checked";
 181          else $checked = "";
 182          echo "<input type='checkbox' name='acces_comite' value='oui' $checked id='comite'> <label for='comite'>"._T('bouton_checkbox_qui_attribue_mot_cle_redacteurs')."</label><br>";
 183      
 184          $mots_cles_forums = lire_meta("mots_cles_forums");
 185          $forums_publics=lire_meta("forums_publics");
 186          
 187          if (($mots_cles_forums == "oui" OR $acces_forum == "oui") AND $forums_publics != "non"){
 188              if ($acces_forum == "oui") $checked = "checked";
 189              else $checked = "";
 190              echo "<input type='checkbox' name='acces_forum' value='oui' $checked id='forum'> <label for='forum'>"._T('bouton_checkbox_qui_attribue_mot_cle_visiteurs')."</label>";
 191          } 
 192          else {
 193              echo "<input type='hidden' name='acces_forum' value='non'>";
 194          }
 195              
 196          echo "</ul>";
 197      echo "</div>";
 198      
 199      
 200      
 201  
 202      echo "<p><div align='right'><INPUT TYPE='submit' CLASS='fondo' NAME='Valider' VALUE='"._T('bouton_valider')."'></div>";
 203      echo "</FORM><P>";
 204      fin_cadre_formulaire();    
 205      echo "</font>";
 206  
 207  
 208  }else{
 209  
 210      echo "<H3>"._T('avis_non_acces_page')."</H3>";
 211  
 212  }
 213  
 214  
 215  fin_page();
 216  
 217  ?>


Généré le : Thu Feb 22 22:27:47 2007 par Balluche grâce à PHPXref 0.7