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 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
|
echo '<div style="width:90%;height:25em; margin:auto; ">
<form action="" name="inscription" method="post">
<fieldset class="fieldset1 ">
<legend >Gestion de l\'administration:</legend>
<div align="center" class="div2">
<div align="left"><span style="margin-left:30px; color:#000000; font-weight: bold;"><label for="name"><input type="radio" value="newadmin" name="admin"> Ajouter </label></span>
<select name="utilisateur1" class="select1">
';
for($i=0;$i<$nbutil;$i++)
{
echo '<option>'.$util[$i].'</option>';
}
echo' </select>
<span style="margin-left:10px; margin-right: 10px; color:#000000; font-weight: bold;">comme administrateur</span>
</div>
<div align="left"><span style="margin-left:30px; color:#000000; font-weight: bold;"><label for="name"><input type="radio" value="eraseadmin" name="admin"> Suprimer </label></span>
<select name="utilisateur2" class="select1">
';
for($i=0;$i<$nbadmin;$i++)
{
echo '<option>'.$admin[$i].'</option>';
}
echo' </select>
<span style="margin-left:10px; margin-right: 22px; color:#000000; font-weight: bold;">des administrateurs</span>
</div>
</fieldset>
<div align="center">
<BUTTON type="submit" class="button"><IMG src="../imagesite/boutonvalider.jpg"></BUTTON>
<br>
</div>
<br>
<fieldset class="fieldset1 ">
<legend >Gestion des membres:</legend>
<div align="center" class="div2">
<div align="left"><span style="margin-left:30px; color:#000000; font-weight: bold;"><label for="name"><input type="radio" value="newmember" name="member"> Ajouter </label></span>
<select name="utilisateur3" class="select1">
';
for($i=0;$i<$nbutil;$i++)
{
echo '<option>'.$util[$i].'</option>';
}
echo' </select>
<span style="margin-left:10px; margin-right: 10px; color:#000000; font-weight: bold;">comme membres de Manganimes</span>
</div>
<div align="left"><span style="margin-left:30px; color:#000000; font-weight: bold;"><label for="name"><input type="radio" value="inactivemember" name="member"> Rendre </label></span>
<select name="utilisateur4" class="select1">
';
for($i=0;$i<$nbmembres;$i++)
{
echo '<option>'.$membres[$i].'</option>';
}
echo' </select>
<span style="margin-left:10px; margin-right: 10px; color:#000000; font-weight: bold;">inactif</span>
</div>
<div align="left"><span style="margin-left:30px; color:#000000; font-weight: bold;"><label for="name"><input type="radio" value="deletemember" name="member"> Suprimer </label></span>
<select name="utilisateur5" class="select1">
';
for($i=0;$i<$nbmembres;$i++)
{
echo '<option>'.$membres[$i].'</option>';
}
echo' </select>
<span style="margin-left:10px; margin-right: 10px; color:#000000; font-weight: bold;">des membres de Manganimes</span>
</div>
</fieldset>
<div align="center">
<BUTTON type="submit" class="button"><IMG src="../imagesite/boutonvalider.jpg"></BUTTON>
<br>
</div>
<br>
<fieldset class="fieldset1 ">
<legend >Gestion des droits des membres:</legend>
<div align="center" class="div2">
<div align="left"><span style="margin-left:30px; color:#000000; font-weight: bold;"><label for="name"> Selectionnez un membres: <SELECT name="membres" onChange="this.form.submit();" >';
for($i=0;$i<$nbmembres;$i++)
{
echo '<option>'.$membres[$i].'</option>';
}
echo' </select></label></span>
</div>
';
if(isset($_POST['membres']))
{
$membrepo=$_POST['membres'];
//Récupération des information concernant le membres
$sql="SELECT * FROM admin WHERE nom='".$membrepo."'";
$requette=mysql_query($sql,$c);
$result=mysql_fetch_array($requette);
$postnews=$result['postnews'];
echo'<div align="left"><span style="margin-left:30px; color:#000000; font-weight: bold;"><label for="name">Peut poster une news:<input type="radio" value="oui" name="postnews" '; if($postnews==1){echo 'checked';} echo'> oui <input type="radio" value="non" name="postnews" '; if($postnews==0){echo 'checked';} echo'> non</label></span>
</div>';
}
echo'
</fieldset>
<div align="center">
<BUTTON type="submit" class="button"><IMG src="../imagesite/boutonvalider.jpg"></BUTTON>
<br>
</div>
</form>
</div>'; |
Partager