Projet

Général

Profil

Révision 00335597

Ajouté par Jocelyn Delande il y a plus de 10 ans

simplification

Voir les différences:

addParams.php
8 8
   <meta http-equiv="Content-type" content="text/html; charset=UTF-8"/>
9 9
   <link rel="stylesheet" media="screen" href="css/base.css" />
10 10
   <title>Positionnerment dun panoramique</title>
11

  
11 12
<?php
12 13
   // tableau de vérification de conformité
13 14
 $params = array('title' => array('name' => 'titre',
......
48 49
  }
49 50
}
50 51

  
51
if (isset($values['panorama'])) {
52
  $back_url = sprintf('panorama.php?panorama=%s', $values['panorama']);
53
  if (isset($values['dir'])) $back_url .= '&amp;dir='. $values['dir'];
54
} else {
55
  $back_url = '.';
56
}
57 52

  
58 53
if (count($wrong) == 0) {
59 54
	$pano = site_point::get($values['panorama']);
......
79 74

  
80 75
	echo "</dl>\n";
81 76
	echo '<p class="succes">Paramétrage terminé.</p>'."\n";
77
  printf('<a href="%s">Retour au panorama</a></p>'."\n", $panorama->get_url());
78

  
79

  
82 80
 } else {
83 81
	echo '<p class="error">Les valeurs suivantes sont incorrectes.</p>'."\n";
84 82
	echo "<dl>\n";
......
87 85
	}
88 86
	echo "</dl>\n";
89 87
}
90
printf('<a href="%s">Retour au panorama</a></p>'."\n", $back_url);
91

  
92 88
?>
93 89
</html>

Formats disponibles : Unified diff