1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
|
<form method="POST" action="modif_onglet.php?page=<?php echo $data['id']; ?>" id="chgniveau">
<fieldset style="border: 1px solid #AFD3F3;background-color:#E1EFFB;">
<legend style="border: 1px solid #AFD3F3;background-color:#ffffff;font-family:Arial; font-size:16px; color:#155a97;">Sélectionnez un niveau pour faire remonter la page souhaitée : </legend>
<p style="font-family:Arial; font-size:16px; color:#3770A8;"><strong>Division Analytical Sciences </strong></p>
<table width="97%" border="0" cellspacing="2" cellpadding="2" style="font-family:Arial; font-size:12px; color:#ffffff;">
<tr>
<td>
<?php
$sql = "select * from pp where reference='3' order by reference asc ";
$resultat = mysql_query($sql,$conn) or die('Erreur SQL !'.$sql.'<br>'.mysql_error());
while ($rang= mysql_fetch_array ($resultat)){
?>
<?php
}
?>
<?php
$niveau1='3'
?>
<select name="niveau2" class="blueok" style="margin-left:12px;width:200px;" onChange="document.forms['chgniveau'].submit();">
<option style="background-color:#89B0D3;" value="0">- - - Choix niveau 2 - - -</option>
<?php
$sql2 = "select * from pp where parent='$niveau1' order by reference asc ";
$resultat2 = mysql_query($sql2,$conn) or die('Erreur SQL !'.$sql2.'<br>'.mysql_error());
while ($rang2= mysql_fetch_array ($resultat2)){
?>
<option style="background-color:#89B0D3;" value="<?php echo($rang2['reference']); ?>"<?php if ($niveau2==$rang2['reference']) {?> selected<?php }?>><?php echo($rang2['titre']); ?></option>
<?php
}
?>
</select>
<?php
if (!$niveau2=='0') {
$ref_page=$niveau2;
?>
<select name="niveau3" class="blueok" style="margin-left:12px;width:200px;" onChange="document.forms['chgniveau'].submit();">
<option style="background-color:#89B0D3;" value="0">- - - Choix niveau 3 - - -</option>
<?php
$sql3 = "select * from pp where parent=$niveau2 order by reference asc ";
$resultat3 = mysql_query($sql3,$conn) or die('Erreur SQL !'.$sql3.'<br>'.mysql_error());
while ($rang3= mysql_fetch_array ($resultat3)){
?>
<option style="background-color:#89B0D3;" value="<?php echo($rang3['reference']); ?>"<?php if ($niveau3==$rang3['reference']) {?> selected<?php }?>><?php echo($rang3['titre']); ?></option>
<?php
}
?>
</select>
<?php
if (!$niveau3=='0') {
$ref_page=$niveau3;
?>
<select name="niveau4" class="blueok" style="margin-left:12px;width:200px;" onChange="document.forms['chgniveau'].submit();">
<option style="background-color:#89B0D3;" value="0">- - - Choix niveau 4 - - -</option>
<?php
$sql4 = "select * from pp where parent=$niveau3 order by reference asc ";
$resultat4 = mysql_query($sql4,$conn) or die('Erreur SQL !'.$sql4.'<br>'.mysql_error());
while ($rang4= mysql_fetch_array ($resultat4)){
?>
<option style="background-color:#89B0D3;" value="<?php echo($rang4['reference']); ?>"<?php if ($niveau4==$rang4['reference']) {?> selected<?php }?>><?php echo($rang4['titre']); ?></option>
<?php
}
?>
</select>
<?php
}
?>
<?php
if (!$niveau4=='0') {
$ref_page=$niveau4;
}
?>
<?php
}
?>
<br />
<label style="font-family:Arial; font-size:13px; color:#155a97;padding: 10px;border:0;"><br />
<em>Code page :
<?php echo $data['ref_page'] ?></em></label> </td>
</tr>
</table>
</form> |
Partager