Ver Mensaje Individual
  #7 (permalink)  
Antiguo 23/10/2007, 11:15
Avatar de Gaby_Corr
Gaby_Corr
 
Fecha de Ingreso: junio-2005
Mensajes: 672
Antigüedad: 19 años, 10 meses
Puntos: 0
Re: problema al cargar pagina con input y boton

ok ok ahi va
sistemas.asp
Código PHP:
<!-- #include file="../conexion.asp"-->

<%
Dim id_sistemanombrelinea

id_sistema 
cint(request.Form("sistemas"))
nombre request.Form("nombre")
linea request.Form("linea")
funcion =request.Form("met")


call conectarDB
if id_sistema <> "" then
  sSQL 
"Select sistemas_id, sistemas_nombre, sistemas_linea FROM DS_Sistemas where sistemas_id = "id_sistema 
    Set rs 
cnn.execute(sSQL
    
    if 
not rs.eof then
        Sistema 
rs("sistemas_id")
        
Nombre rs("sistemas_nombre")
        
Linea rs("sistemas_linea")
        
strCondicion 0        
    
else
        
strCondicion 1
        Sistema 
id_sistema
        Nombre 
""
        
Linea ""    
        
    
end if
    
rs.close

end 
if
%>

<
html>
...
<
body>

<
form method="post" action="<%request.ServerVariables("SCRIPT_NAME")%>"  name="form1" id="form1">

    <
table width="100%" cellpadding="0" cellspacing="0">            
        <
tr><td>Número de Sistema: <br /><span class="dtobligatorio"> * </span><!-- onblur="Busqueda(this.id)" -->
            <%if (
Sistema=or IsNull(Sistema)) then Sistema="" end if%>
            <
input name="sistemas" type="text" id="sistemas" value="<%=Sistema%>" size="20" maxlength="20" onblur="Buscar(this.id)" />
            </
td></tr>
            
        <
tr><td>Nombre del sistema: <br /><span class="dtobligatorio"> * </span>
           <
input name="nombre" type="text" id="nombre" value="<%=Nombre%>" size="95" maxlength="30" />
        </
td>
        </
tr>
        <
tr><td>Línea de sistemas:<br /><span class="dtobligatorio"> * </span>
        <
input name="linea" type="text" id="linea" value="<%=Linea%>" size="95" maxlength="30"/>
    
        <
input type="hidden" name="sistemas" value="<%=idSistema%>">
        </
td></tr>

        <
tr><td><br /><br /></td></tr>                        
        <
tr><td>
            <
table align="left">
            <
tr>
                <% if 
strCondicion 1 then %>
                <
td width="167" height="36">                                    
                    <
input name="Guardar" type="image" value="submit" id="Guardar" src="images/GUARDAR1.gif"  style=" visibility: visible;"  onclick="Metodos(this.id)" />
                
                    </
td>
                <% else if 
strCondicion 0 then%>
                <
td width="167" height="36">
                   <
input name="Modificar" type="image" id="Modificar" src="images/modificar1.gif" style=" visibility:visible;" /></td>
                <
td width="159">
                   <
input name="Borrar" type="image"  id="Borrar" src="Images/ELIMINAR1.gif" style=" visibility: visible;" /></td>
                <
td width="72"
                   <
input  type="image" src="images/IMPRIMIR1.gif" name="Imprimir" id="Imprimir" style=" visibility: visible;" /></td>
                <%
end if  end if%>
            </
tr>
            <
input type="hidden" id="metodo" name="metodo" />
            
            </
table>
        </
td></tr>
        <
tr><td class="dtobligatorio"><br /><br />(*) Datos obligatorios </td></tr>
                
    </
table>
</
form>



</
body>
</
html

asi es como lo tengo ahorita
__________________
" Recuerda , estas donde debes estar ..."