Code Duplication    Length = 4-5 lines in 3 locations

ecrire/inc/chercher_rubrique.php 1 location

@@ 153-156 (lines=4) @@
150
	$opt = sous_menu_rubriques($id_rubrique,0, 0,$data,$enfants,$idem, $restreint, $type);
151
	$att = " id='id_parent' name='id_parent'\nclass='selecteur_parent verdana1'";
152
153
	if (preg_match(',^<option[^<>]*value=.(\d*).[^<>]*>([^<]*)</option>$,',$opt,$r))
154
	  $r = "<input$att type='hidden' value='" . $r[1] . "' />" . $r[2] ;
155
	else 
156
	  $r = "<select$att size='1'>\n$opt</select>\n";
157
158
	# message pour neuneus (a supprimer ?)
159
#	if ($type != 'auteur' AND $type != 'breve')

ecrire/public/criteres.php 1 location

@@ 478-482 (lines=5) @@
475
	      }
476
	  } else $sens ='';
477
478
	  if ($fct) {
479
	    if (preg_match("/^\s*'(.*)'\s*$/", $order, $r))
480
	      $order = "'$fct(" . $r[1] . ")'";
481
	    else $order = "'$fct(' . $order . ')'";
482
	  }
483
	  $t = $order . $collecte . $sens;
484
	  if (preg_match("/^(.*)'\s*\.\s*'([^']*')$/", $t, $r))
485
	      $t = $r[1] . $r[2];

ecrire/public/vertebrer.php 1 location

@@ 102-105 (lines=4) @@
99
	$res = "";
100
	foreach($fields as $n => $t) {
101
		$texte = "#" . strtoupper($n);
102
		if (preg_match('/\s+references\s+([\w_]+)/' , $t, $r)) {
103
			$url = "[(#SELF|parametre_url{page,'" . $r[1] . "'})]";
104
			$texte = "<a href='$url'>" . $texte . "</a>";
105
		}
106
		if (sql_test_int($t))
107
			$s = " style='text-align: right;'";
108
		else {