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 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247
| echo "<p style='color: #FF3366'> *Required fields.</p>";
echo "
<form method='post' action='majcreer.php' name='mon_form'>
<table cellpadding='2' cellspacing='1' border='0' width='100%' bordercolor='#000000'>
<tr align='left' style='font: small; color:#ffffff; border: #FF9933' bgcolor='#6666ff' border='0'>
<td width=20%>Main information</td><td width=30%> </td>
<td width=21%> </td><td width=29%> </td>
</tr>
<tr align='left' style='font: x-small; color:black' bgcolor='#EFEFEF' border='0'>
<td>Type</td>
<td><input type='text' name='Type' size='25' maxlength='48' value='$Type'></td>
<td>Model</td>
<td><input type='text' name='Model' size='25' maxlength='48' value='$Model'></td>
</tr>
<tr align='left' style='font: x-small; color:black' bgcolor='#EFEFEF' border='0'>
<td>Partition</td>
<td><input type='text' name='Partition' size='25' maxlength='48' value='$Partition'></td>
<td> </td><td> </td>
</tr>
<tr align='left' style='font: x-small; color:black' bgcolor='#EFEFEF' border='0'>
<td>Serial Number</td>
<td><input type='text' name='Num_serie' size='25' maxlength='48' value='$Num_serie'></td>
<td>Status<font style='color: #FF3366'>*</font></td><td><select name='status'>";
//requete pour récuper toutes les status de la table poste
$requete="SHOW COLUMNS FROM INV_poste LIKE 'Status' ";
$envoi=mysql_query($requete);
$i=0;
$Status=mysql_result($envoi,$i,"Type");
$essai= $status;
$set=explode("'",$Status);
$i=1;
while ($set[$i]!=''){
if ($set[$i]==$Statusc){
echo "<OPTION selected>$set[$i]";
}
else{
echo "<OPTION>$set[$i]";
}
$i=$i+2;
}
echo "
</SELECT></td></tr>
<tr align='left' style='font: x-small; color:black' bgcolor='#EFEFEF' border='0'>
<td> </td><td> </td><td> </td><td> </td>
</tr>
<tr align='left' style='font: small; color:#ffffff; border: #FF9933' bgcolor='#6666ff' border='0'>
<td width=20%>Location</td><td width=30%> </td>
<td width=20%> </td><td width=30%> </td>
</tr>
<tr align='left' style='font: x-small; color:black' bgcolor='#EFEFEF' border='0'>
<td>IBM Site<font style='color: #FF3366'>*</font></td>
<td><select name='lieu'>";
//requete pour récuper toutes les lieux de la table poste
$requete="SHOW COLUMNS FROM INV_poste LIKE 'Lieu' ";
$envoi=mysql_query($requete);
$nb_ligne=mysql_num_rows($envoi);
$i=0;
$Lieu=mysql_result($envoi,$i,"Type");
$set=explode("'",$Lieu);
$i=1;
while ($set[$i]!=''){
if ($set[$i]==$Lieuc){
echo "<OPTION selected>$set[$i]";
}
else{
echo "<OPTION>$set[$i]";
}
$i=$i+2;
}
echo "
</SELECT></td>
<td>Room<font style='color: #FF3366'>*</font></td><td><input type='text' size='25' maxlength='15' value='$Sallec' name='salle' ></td>
</tr>
<tr align='left' style='font: x-small; color:black' bgcolor='#EFEFEF' border='0'>
<td> </td><td> </td><td> </td><td> </td>
</tr>
<tr align='left' style='font: small; color:#ffffff; border: #FF9933' bgcolor='#6666ff' border='0'>
<td width=20%>Description Material</td><td width=30%> </td>
<td width=20%> </td><td width=30%> </td>
</tr>
<tr align='left' style='font: x-small; color:black' bgcolor='#EFEFEF' border='0'>
<td>Hostname 1</td><td><input type='text' size='25' maxlength='255' value='$Hostname1c' name='Hostname1' value='-'></td>
<td>TME label</td><td><input type='text' size='25' maxlength='255' value='$TME_labelc' name='TME_label' value='-'></td>
</tr>
<tr align='left' style='font: x-small; color:black' bgcolor='#EFEFEF' border='0'>
<td>ID Account<font style='color: #FF3366'>*</font></td>
<td><select name='Account_ID'>";
//requete pour récuper toutes les ACCOUNT_ID de la table poste
$requete="SHOW COLUMNS FROM INV_poste LIKE 'Account_ID' ";
$envoi=mysql_query($requete);
$nb_ligne=mysql_num_rows($envoi);
$i=0;
$Account_ID=mysql_result($envoi,$i,"Type");
$set=explode("'",$Account_ID);
$i=1;
while ($set[$i]!=''){
if ($set[$i]==$Account_IDc){
echo "<OPTION selected>$set[$i]";
}
else{
echo "<OPTION>$set[$i]";
}
$i=$i+2;
}
echo "
</SELECT></td>
<td>free2</td><td><input type='text' size='25' maxlength='255' value='$libre2c' name='libre2' value='-'></td>
</tr>
<tr align='left' style='font: x-small; color:black' bgcolor='#EFEFEF' border='0'>
<td>free4</td><td><input type='text' size='25' maxlength='255' value='$libre4c' name='libre4' value='-'></td>
<td> </td><td> </td>
</tr>
<tr align='left' style='font: x-small; color:black' bgcolor='#EFEFEF' border='0'>
<td>free5</td><td><input type='text' size='25' maxlength='255' value='$libre5c' name='libre5' value='-'></td>
<td> </td><td> </td>
</tr>
<tr align='left' style='font: x-small; color:black' bgcolor='#EFEFEF' border='0'>
<td>IP Adress</td><td><input type='text' size='25' maxlength='15' name='ip' value='$IPc'></td>
<td> </td><td> </td>
</tr>
<tr align='left' style='font: x-small; color:black' bgcolor='#EFEFEF' border='0'>
<td>OS</td><td><input type='text' size='25' maxlength='15' name='os' value='$os'></td>
<td>Version Release </td>
<td><input type='text' size='25' maxlength='32' name='vr' value='$VRc' ></td>
</tr>
<tr align='left' style='font: x-small; color:black' bgcolor='#EFEFEF' border='0'>
<td>Platform</td><td><select name='platform'>";
//requete pour récuper toutes les platform de la table poste
$requete="SHOW COLUMNS FROM INV_poste LIKE 'Platform' ";
$envoi=mysql_query($requete);
$nb_ligne=mysql_num_rows($envoi);
$i=0;
$plat=mysql_result($envoi,$i,"Type");
$set=explode("'",$plat);
$i=1;
while ($set[$i]!=''){
if ($set[$i]==$Platformc){
echo "<OPTION selected>$set[$i]";
}
else{
echo "<OPTION>$set[$i]";
}
$i=$i+2;
}
echo "
</SELECT></td><td> </td><td> </td></tr>
<tr align='left' style='font: x-small; color:black' bgcolor='#EFEFEF' border='0'>
<td>Marketing Description</td><td><input type='text' size='25' maxlength='255' name='DM' value='$DMc'></td>
<td>Function</td><td><input type='text' size='25' maxlength='255' name='fonction' value='$Fonctionc'></td>
</tr>
<tr align='left' style='font: x-small; color:black' bgcolor='#EFEFEF' border='0'>
<td>Processor Speed</td><td><input type='text' size='25' maxlength='15' name='vitesse_proc' value='$VPc'></td>
<td>Processor Type</td><td><input type='text' size='25' maxlength='15' name='type_proc' value='$TPc'></td>
</tr>
<tr align='left' style='font: x-small; color:black' bgcolor='#EFEFEF' border='0'>
<td>RAM</td><td><input type='text' size='25' maxlength='15' name='RAM' value='$RAMc'></td>
<td>DASD</td><td><input type='text' size='25' maxlength='15' name='DASD' value='$DASDc'></td>
</tr>
<tr align='left' style='font: x-small; color:black' bgcolor='#EFEFEF' border='0'>
<td>Free Comment</td><td><textarea NAME='commentaire' ROWS='3' cols='30'>$librec</TEXTAREA></td>
<td> </td><td> </td>
</tr>
<tr align='left' style='font: x-small; color:black' bgcolor='#EFEFEF' border='0'>
<td> </td><td> </td><td> </td><td> </td>
</tr>
<tr align='left' style='font: small; color:#ffffff; border: #FF9933' bgcolor='#6666ff' border='0'>
<td width=20%>Security informations</td><td width=30%> </td>
<td width=20%> </td><td width=30%> </td>
</tr>
<tr align='left' style='font: x-small; color:black' bgcolor='#EFEFEF' border='0'>
<td>ITCS Classification<font style='color: #FF3366'>*</font></td><td><select name='ci'>";
//requete pour récuper toutes les CI
$requete="SHOW COLUMNS FROM INV_poste LIKE 'Classification_ITCS' ";
$envoi=mysql_query($requete);
$nb_ligne=mysql_num_rows($envoi);
$i=0;
$Class=mysql_result($envoi,$i,"Type");
$set=explode("'",$Class);
$i=1;
while ($set[$i]!=''){
if ($set[$i]==$CIc){
echo "<OPTION selected>$set[$i]";
}
else{
echo "<OPTION>$set[$i]";
}
$i=$i+2;
}
echo "
</SELECT></td>
<td>ITCS Classification Justification</td><td><input type='text' size='25' maxlength='15' name='justifCI' value='$Justifc'></td>
</tr>
<tr align='left' style='font: x-small; color:black' bgcolor='#EFEFEF' border='0'>
<td>Control Acces Level <font style='color: #FF3366'>*</font></td>
<td><select name='CAL'>";
//requete pour récuper toutes les CAL de la table poste
$requete="SHOW COLUMNS FROM INV_poste LIKE 'Control_Acces_Level' ";
$envoi=mysql_query($requete);
$nb_ligne=mysql_num_rows($envoi);
$i=0;
$CAL=mysql_result($envoi,$i,"Type");
$set=explode("'",$CAL);
$i=1;
while ($set[$i]!=''){
if ($set[$i]==$CALc){
echo "<OPTION selected>$set[$i]";
}
else{
echo "<OPTION>$set[$i]";
}
$i=$i+2;
}
echo "
</SELECT></td><td> </td><td> </td></tr>
<tr align='left' style='font: x-small; color:black' bgcolor='#EFEFEF' border='0'>
<td>eAMT Owner number<font style='color: #FF3366'>*</font></td><td>
<input type='text' size='25' maxlength='15' name='Mat_Owner' value='$Mat_Owneroldc'>
<a href='#' onClick=matricule(\"champ1\")><img border=no width='20' src='bonhome.jpg'></a></td>
<td> </td><td> </td></tr>
<tr align='left' style='font: x-small; color:black' bgcolor='#EFEFEF' border='0'>
<td> </td><td> </td><td> </td><td> </td>
</tr>
<tr align='left' style='font: small; color:#ffffff; border: #FF9933' bgcolor='#6666ff' border='0'>
<td width=22%>Contact(s)</td><td width=30%> </td>
<td width=20%> </td><td width=30%> </td>
</tr>
<tr align='left' style='font: x-small; color:black' bgcolor='#EFEFEF' border='0'>
<td>Suport Contact
<font style='color: #FF3366'>*</font></td><td><input type='text' size='25' maxlength='150' name='Mat_Resp' value='$Mat_Respoldc'>
<a href='#' onClick=matricule(\"champ2\")><img border=no width='20' src='bonhome.jpg'></a></td>
<td>Several Contacts possible, use ',' as separator (max. 10)</td><td>
</tr>
<tr align='left' style='font: x-small; color:black' bgcolor='#EFEFEF' border='0'>
<td>Customer contact
<font style='color: #FF3366'>*</font></td><td><input type='text' size='25' maxlength='150' name='Mat_Techn' value='$Mat_Technoldc'>
<a href='#' onClick=matricule(\"champ3\")><img border=no width='20' src='bonhome.jpg'></a></td>
<td>Several Contacts possible, use ',' as separator (max. 10)</td><td>
</tr>
<tr align='left' style='font: x-small; color:black' bgcolor='#EFEFEF' border='0'>
<td> </td><td> </td><td> </td><td> </td>
</tr>";
echo "
<tr><td><input type=button value=submit onClick='verifForm(this.form)'></td>
</tr>
</table>
</form>";
} |
Partager