Esta es la segunta parte del programa:
Código PHP:
Ver original $fortaleza_camiones=mysql_result($result,0,"fortaleza_camiones"); }
echo("<br>");
echo("<input type=hidden value=".$_POST["usuario"]." name=num_actual>");
echo("<table border=1 width=100%>");
echo("<tr>");
echo("</tr>");
echo("<td colspan='2' bgcolor='#00FFFF'><span class='Estilo1 Estilo6'>Datos de Usuario</span></td>");
echo("</tr>");
echo $num_unico;
echo("<table border=1 width=100%>");
echo("<tr>");
echo("</tr>");
echo(" <td>Nombre Completo</td>");
echo(" <td><input type=text value=".chr(34).$nombre_largo.chr(34)." name=nombre_largo size=20 maxlength=20 onkeypress=".chr(34)."return tabular(event,this)".chr(34)."></td>"); echo("</tr>");
echo("<tr>");
echo(" <td>Sucursal</td>");
echo(" <td>");
echo(" <select name=sucursal onkeypress=".chr(34)."return tabular(event,this)".chr(34).">"); $result = mysql_query("SELECT * FROM mae_ubicaciones WHERE sucursal ='S' order by Ubicacion"); $i=0;
while($i < $rows) {
}else{
}
$i++;
}
}
echo("</select>");
echo(" </td>");
echo("</tr>");
echo("<tr>");
echo(" <td>Contraseña</td>");
echo(" <td><input type=text value=".chr(34).$pass.chr(34)." name=clave size=10 maxlength=10 onkeypress=".chr(34)."return tabular(event,this)".chr(34)."></td>"); echo("</tr>");
echo("<tr>");
echo(" <td>Area de trabajo (Marcada con ''X'')</td>");
echo(" <td>Camiones Usados <input type=text value=".chr(3).$c_usados.chr(3)." name=c_usados size=1 maxlength=1 onkeypress=".chr(3)."return tabular(event,this)".chr(3)."></td>"); echo("</tr>");
echo("<tr>");
echo(" <td></td>");
echo(" <td>Camiones Ford Nuevos <input type=text value=".chr(3).$c_ford_nuevos.chr(3)." name=c_ford_nuevos size=1 maxlength=1 onkeypress=".chr(3)."return tabular(event,this)".chr(3)."></td>"); echo("</tr>");
echo(" <td></td>");
echo(" <td>Hyundai <input type=text value=".chr(3).$Hyundai.chr(3)." name=Hyundai size=1 maxlength=1 onkeypress=".chr(3)."return tabular(event,this)".chr(3)."></td>"); echo("</tr>");
echo(" <td></td>");
echo(" <td>Global <input type=text value=".chr(3).$global.chr(3)." name=global size=1 maxlength=1 onkeypress=".chr(3)."return tabular(event,this)".chr(3)."></td>"); echo("</tr>");
echo(" <td></td>");
echo(" <td>Utilitarios Livianos <input type=text value=".chr(3).$u_livianos.chr(3)." name=u_livianos size=1 maxlength=1 onkeypress=".chr(3)."return tabular(event,this)".chr(3)."></td>"); echo("</tr>");
echo(" <td></td>");
echo(" <td>Ford Livianos <input type=text value=".chr(3).$ford_livianos.chr(3)." name=ford_livianos size=1 maxlength=1 onkeypress=".chr(3)."return tabular(event,this)".chr(3)."></td>"); echo("</tr>");
echo(" <td></td>");
echo(" <td>Fortaleza <input type=text value=".chr(3).$fortaleza.chr(3)." name=Fortaleza size=1 maxlength=1 onkeypress=".chr(3)."return tabular(event,this)".chr(3)."></td>"); echo("</tr>");
echo(" <td></td>");
echo(" <td>Fortaleza Camiones <input type=text value=".chr(3).$fortaleza_camiones.chr(3)." name=fortaleza_camiones size=1 maxlength=1 onkeypress=".chr(3)."return tabular(event,this)".chr(3)."></td>"); echo("</tr>");
echo(" <td></td>");
echo(" <td>Motos <input type=text value=".chr(3).$motos.chr(3)." name=motos size=1 maxlength=1 onkeypress=".chr(3)."return tabular(event,this)".chr(3)."></td>"); echo("</tr>");
echo(" <td></td>");
echo(" <td>Rentacar <input type=text value=".chr(3).$rentacar.chr(3)." name=Rentacar size=1 maxlength=1 onkeypress=".chr(3)."return tabular(event,this)".chr(3)."></td>"); echo("</tr>");
echo(" <td></td>");
echo(" <td>Agricola <input type=text value=".chr(3).$agricola.chr(3)." name=agricola size=1 maxlength=1 onkeypress=".chr(3)."return tabular(event,this)".chr(3)."></td>"); echo("</tr>");
echo(" <td></td>");
echo(" <td>Sin Area <input type=text value=".chr(3).$sin_area.chr(3)." name=sin_area size=1 maxlength=1 onkeypress=".chr(3)."return tabular(event,this)".chr(3)."></td>"); echo("</tr>");
echo("<tr>");
echo(" <td>Fono</td>");
echo(" <td><input type=text value=".chr(34).$fono_fijo.chr(34)." name=fono_fijo size=12 maxlength=12 onkeypress=".chr(34)."return tabular(event,this)".chr(34)."></td>"); echo("</tr>");
echo("<tr>");
echo(" <td>Nivel</td>");
echo(" <td>");
echo(" <select name=nivel onkeypress=".chr(34)."return tabular(event,this)".chr(34).">"); if ($nivel==3){echo("<option selected value=3>Vendedor</option>");}else{echo("<option value=3>Vendedor</option>");}
if ($nivel==2){echo("<option selected value=2>Asistente</option>");}else{echo("<option value=2>Asistente</option>");}
if ($nivel==1){echo("<option selected value=1>Administrador</option>");}else{echo("<option value=1>Administrador</option>");}
echo("</select>");
echo(" </td>");
echo("</tr>");
echo("<tr>");