Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/05/2015, 08:50
rudiaz
 
Fecha de Ingreso: abril-2015
Ubicación: Santiago de Chile
Mensajes: 80
Antigüedad: 9 años, 11 meses
Puntos: 0
Información Alguien me puede explicar porque no va a la funcion guardar()

Este es el código, presiono el botón guardar y no hace nada, no se redirecciona a guardar()

Código PHP:
Ver original
  1. echo("<br>");
  2. echo("<form method=POST name=datos_ingreso>");
  3. echo("<input type=hidden value=".$_POST["usuario"]." name=num_actual>");
  4. echo("<table border=1 width=100%>");
  5. echo("<tr>");
  6. echo("</tr>");
  7. echo("<td colspan='2' bgcolor='#00FFFF'><span class='Estilo1 Estilo6'>Datos de Usuario</span></td>");
  8. echo("</tr>");
  9.  
  10. echo("<table border=1 width=100%>");
  11. echo("<tr>");
  12. echo("</tr>");
  13. echo("  <td>Nombre Completo</td>");
  14. 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>");
  15. echo("</tr>");
  16. echo("<tr>");
  17. echo("  <td>Sucursal</td>");
  18. echo("  <td>");
  19. echo("  <select name=sucursal onkeypress=".chr(34)."return tabular(event,this)".chr(34).">");
  20. $result = mysql_query("SELECT * FROM mae_ubicaciones WHERE sucursal ='S' order by Ubicacion");
  21. if (mysql_num_rows($result)>0){
  22.    $i=0;
  23.    $rows=mysql_num_rows($result);
  24.    while($i < $rows) {
  25.       if ($sucursal==mysql_result($result, $i, "Ubicacion")){
  26.         echo("<option selected value=".chr(34).mysql_result($result, $i, "Ubicacion").chr(34).">".mysql_result($result, $i, "Ubicacion")."</option>");
  27.         }else{
  28.         echo("<option value=".chr(34).mysql_result($result, $i, "Ubicacion").chr(34).">".mysql_result($result, $i, "Ubicacion")."</option>");
  29.         }
  30.    $i++;
  31.    }
  32. }
  33. echo("</select>");
  34. echo("  </td>");
  35. echo("</tr>");
  36. echo("<tr>");
  37. echo("  <td>Contrase&ntilde;a</td>");
  38. 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>");
  39. echo("</tr>");
  40. echo("<tr>");
  41. echo("  <td>Area de trabajo (Marcada con ''X'')</td>");
  42. 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>");
  43. echo("</tr>");
  44. echo("<tr>");
  45. echo("  <td></td>");
  46. 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>");
  47. echo("</tr>");
  48. echo("  <td></td>");
  49. 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>");
  50. echo("</tr>");
  51. echo("  <td></td>");
  52. 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>");
  53. echo("</tr>");
  54. echo("  <td></td>");
  55. 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>");
  56. echo("</tr>");
  57. echo("  <td></td>");
  58. 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>");
  59. echo("</tr>");
  60. echo("  <td></td>");
  61. 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>");
  62. echo("</tr>");
  63. echo("  <td></td>");
  64. 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>");
  65. echo("</tr>");
  66. echo("  <td></td>");
  67. 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>");
  68. echo("</tr>");
  69. echo("  <td></td>");
  70. 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>");
  71. echo("</tr>");
  72. echo("  <td></td>");
  73. 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>");
  74. echo("</tr>");
  75. echo("  <td></td>");
  76. 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>");
  77. echo("</tr>");
  78. echo("<tr>");
  79. echo("  <td>Fono</td>");
  80. 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>");
  81. echo("</tr>");
  82.  
  83. echo("<tr>");
  84. echo("  <td>Nivel</td>");
  85. echo("  <td>");
  86. echo("  <select name=nivel onkeypress=".chr(34)."return tabular(event,this)".chr(34).">");
  87. if ($nivel==3){echo("<option selected value=3>Vendedor</option>");}else{echo("<option value=3>Vendedor</option>");}
  88. if ($nivel==2){echo("<option selected value=2>Asistente</option>");}else{echo("<option value=2>Asistente</option>");}
  89. if ($nivel==1){echo("<option selected value=1>Administrador</option>");}else{echo("<option value=1>Administrador</option>");}
  90. echo("</select>");
  91. echo("  </td>");
  92. echo("</tr>");
  93. echo("<tr>");
  94. echo("  <td>Cargo</td>");
  95. echo("  <td><input type=text value=".chr(34).$cargo.chr(34)."  name=cargo size=30 maxlength=40 onkeypress=".chr(34)."return tabular(event,this)".chr(34)."></td>");
  96. echo("</tr>");
  97. echo("<tr>");
  98. echo("  <td>Celular</td>");
  99. echo("  <td><input type=text value=".chr(34).$celular.chr(34)."  name=celular size=12 maxlength=12 onkeypress=".chr(34)."return tabular(event,this)".chr(34)."></td>");
  100. echo("</tr>");
  101. $busqueda = 0;
  102. $cont=1;
  103. $busqueda = mysql_query("SELECT * FROM equipos_computacionales WHERE numero_unico=".$_POST["usuario"]);
  104. $Total=mysql_num_rows($busqueda);
  105. if (($busqueda)>0 and ($Total == 1)){
  106.     $ini=mysql_result($busqueda,0, "ini")+1;
  107.     $email=mysql_result($busqueda,0, "email");
  108.     $clave_correo=mysql_result($busqueda,0, "clave_correo");
  109.     $contrasena=mysql_result($busqueda,0,"contrasena");
  110.     $tipo_equipo=mysql_result($busqueda,0,"tipo_equipo");
  111.     $propietario=mysql_result($busqueda,0,"propietario");
  112.     $ip_equipo=mysql_result($busqueda,0,"ip_equipo");
  113.     $detalle=mysql_result($busqueda,0,"detalle");
  114.     $busqueda = 0;
  115.     $cont=$cont+1;
  116. }
  117. if ($Total==0){
  118.     $ini="1";
  119.     $email="";
  120.     $clave_correo="";
  121.     $contrasena="";
  122.     $tipo_equipo="";
  123.     $propietario="";
  124.     $detalle="";
  125.     $ip_equipo="";
  126.     $detalle="";
  127. }
  128.  
  129. echo("<table border=1 width=100%>");
  130. echo("<br>");
  131. echo("<tr>");
  132. echo("<td colspan='2' bgcolor='#00FFFF'><span class='Estilo1 Estilo6'>Claves del Sistema</span></td>");
  133. echo("</tr>");
  134.  
  135. echo("<table border=1 width=100%>");
  136. echo("<tr>");
  137. echo("</tr>");
  138. echo("  <td>e-Mail</td>");
  139. echo("  <td><input type=text value=".chr(34).$email.chr(34)." name=email size=20 maxlength=20 onkeypress=".chr(34)."return tabular(event,this)".chr(34)."></td>");
  140. echo("</tr>");
  141. echo("  <td>Clave Correo</td>");
  142. echo(" <td><input type=text value=".chr(34).$clave_correo.chr(34)."  name=clave_correo size=30 maxlength=40 onkeypress=".chr(34)."return tabular(event,this)".chr(34)."></td>");
  143. echo("</tr>");
  144. echo("</table>");
  145.  
  146. echo("</tr>");
  147. echo("<table border=1 width=100%>");
  148. echo("<br>");
  149. echo("<tr>");
  150. echo("<td colspan='2' bgcolor='#00FFFF'><span class='Estilo1 Estilo6'>Plataforma</span></td>");
  151. echo("</tr>");
  152.  
  153. echo("<table border=1 width=100%>");
  154. echo("<tr>");
  155. echo("</tr>");
  156. echo("<tr>");
  157. echo("<td>Nombre de Usuario</td>");
  158. echo("  <td><input type=text value=".chr(34).$nombre_user.chr(34)."  name=nombre size=12 maxlength=12 onkeypress=".chr(34)."return tabular(event,this)".chr(34)."></td>");
  159. echo("</tr>");
  160. echo("<tr>");
  161. echo("  <td>Contraseña</td>");
  162. echo("  <td><input type=text value=".chr(34).$contrasena.chr(34)."  name=contrasena size=12 maxlength=12 onkeypress=".chr(34)."return tabular(event,this)".chr(34)."></td>");
  163. echo("</tr>");
  164. echo("<tr>");
  165. echo("  <td>Numero Unico</td>");
  166. echo(" <td><input type=text value=".chr(10).$num_unico.chr(10)."  name=num_unico size=30 maxlength=40 onkeypress=".chr(10)."return tabular(event,this)".chr(10)."></td>");
  167. echo("</tr>");
  168. echo("</table>");
  169.  
  170. echo("</tr>");
  171. echo("<table border=1 width=100%>");
  172. echo("<br>");
  173. echo("<tr>");
  174. echo("<td colspan='2' bgcolor='#00FFFF'><span class='Estilo1 Estilo6'>Equipos</span></td>");
  175. echo("</tr>");
  176.  
  177. echo("<table border=1 width=100%>");
  178. echo("<tr>");
  179. echo("</tr>");
  180. echo("<tr>");
  181. echo("<td>Seleccione el Tipo de Equipo</td>");
  182. echo("<td>");
  183. ?> <select name="$tipo_equipo" size="1">
  184. <option value="PC" selected>PC</option>
  185. <option value="NOTEBOOK">Notebook</option>
  186. <option value="PANTALLA">Pantalla</option>
  187. </select>
  188. <?
  189. echo("</td>");
  190. echo("<tr>");
  191. echo("<tr>");
  192. echo("  <td>IP</td>");
  193. echo(" <td><input type=text value=".chr(34).$ip_equipo.chr(34)."  name=ip_equipo size=15 maxlength=15 onkeypress=".chr(15)."return tabular(event,this)".chr(15)."></td>");
  194. echo("</tr>");
  195. echo("<tr>");
  196. echo("<tr>");
  197. echo("  <td>Propiedad de:</td>");
  198. echo("<td>");
  199. ?> <select name="$propiedad" size="1">
  200. <option value="Curifor" selected>Curifor</option>
  201. <option value="Personal">Personal</option>
  202. </select>
  203. <?
  204. echo("</td>");
  205.  
  206. echo("<tr>");
  207. echo("  <td valign='top'>Detalles</td>");
  208. echo(" <td> "); ?>
  209. <textarea name="$detalle" rows="100" cols="100" enabled><? echo $detalle; ?>
  210. </textarea>
  211. <? echo "</td>";
  212. echo "</tr>";
  213. echo("</table>");
  214.  
  215. echo("<tr>");
  216. echo("<br>");
  217. echo("<table border=1 width=100%>");
  218. echo("<tr>");
  219. echo("<table border=1 width=100%>");
  220. ?>
  221. <input type="button" value="Guardar" onclick="guardar()">
  222. </form>
  223. <?
  224. }
  225. ?>
  226.  
  227. </div>
  228. </body>
  229. </html>