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

Segunda tanda:

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