<?
$nombre=$_POST['nombre'];
$opcion=$_POST['opcion'];
if($opcion=="pcc")
{
echo"<script>;location.href='peritos.html'</script>";
}
else if($opcion=="baco")
{
echo"<script>;location.href='baco.html'</script>";
}
else if($opcion=="merca")
{
echo"<script>;location.href='merca.html'</script>";
}
else if($opcion=="bad")
{
echo"<script>;location.href='bad.html'</script>";
}
else if($opcion=="pae")
{
echo"<script>;location.href='pae.html'</script>";
}
?>
miércoles, 20 de abril de 2016
select option
<html>
<head>
<title>formulario</title>
<meta charset="uft-8">
</head>
<body>
<form action="opciones.php" method="post">
<table border="2" width="400" align="center">
<tr>
<td colspan="2">
<center>
<img src="imagenes/icono.png" width="500" ></IMG>
</center>
</td>
</tr>
<tr>
<td>
INGRESE NOMBRE
</td>
<td>
<input type="text" name="nombre"></input>
</td>
</tr>
<tr>
<td>
SELECCIONE UNA CARRERA
</td>
<td>
<SELECT name="opcion">
<option value="baco">BACHILLERATO EN COMPUTACIÓN</OPTION>
<option value="merca">MERCADOTECNIA Y PUBLICIDAD</OPTION>
<option value="bad">BACHILLERATO EN DISEÑO GRAFICO</OPTION>
<option value="pcc">PERITO CONTADOR</OPTION>
<option value="pae">PERITO EN ADMINISTRACIÓN DE EMPRESAS</OPTION>
</SELECT>
</td>
</tr>
<TR>
<TD COLSPAN="2">
<button type="sumbit" value="INGRESAR">VER CARRERA</button>
</TD>
</TR>
</table>
</form>
</html>
<head>
<title>formulario</title>
<meta charset="uft-8">
</head>
<body>
<form action="opciones.php" method="post">
<table border="2" width="400" align="center">
<tr>
<td colspan="2">
<center>
<img src="imagenes/icono.png" width="500" ></IMG>
</center>
</td>
</tr>
<tr>
<td>
INGRESE NOMBRE
</td>
<td>
<input type="text" name="nombre"></input>
</td>
</tr>
<tr>
<td>
SELECCIONE UNA CARRERA
</td>
<td>
<SELECT name="opcion">
<option value="baco">BACHILLERATO EN COMPUTACIÓN</OPTION>
<option value="merca">MERCADOTECNIA Y PUBLICIDAD</OPTION>
<option value="bad">BACHILLERATO EN DISEÑO GRAFICO</OPTION>
<option value="pcc">PERITO CONTADOR</OPTION>
<option value="pae">PERITO EN ADMINISTRACIÓN DE EMPRESAS</OPTION>
</SELECT>
</td>
</tr>
<TR>
<TD COLSPAN="2">
<button type="sumbit" value="INGRESAR">VER CARRERA</button>
</TD>
</TR>
</table>
</form>
</html>
lunes, 28 de marzo de 2016
IF ELSE Y CASE EN VBA EXCEL
CALCULANDO LA EDAD DE UNA PERSONA
_________________________________________________________________________________
Private Sub CommandButton1_Click()
If Val(TextBox1.Text) >= 18 Then
TextBox2.Text = " mayor"
Else
TextBox2.Text = "menor"
End If
End Sub
EJEMPLO DE IF ELSE EN VBA EXCEL
________________________________________________
Private Sub CommandButton1_Click()
If Val(TextBox1.Text) = 1 Then
TextBox2.Text = " HOY ES DIA LUNES"
Else
If Val(TextBox1.Text) = 2 Then
TextBox2.Text = " HOY ES DIA MARTES"
Else
If Val(TextBox1.Text) = 3 Then
TextBox2.Text = " HOY DIA MIRCOLES"
Else
If Val(TextBox1.Text) = 4 Then
TextBox2.Text = " HOY DIA JUEVES"
Else
If Val(TextBox1.Text) = 5 Then
TextBox2.Text = " HOY DIA VIERNES"
Else
If Val(TextBox1.Text) = 6 Then
TextBox2.Text = " HOY DIA SABADO"
Else
If Val(TextBox1.Text) = 7 Then
TextBox2.Text = " DOMINGO"
Else
TextBox2.Text = " ESE NUMERO DE DIA NO EXISTE INTENTE CON OTRO"
End If
End If
End If
End If
End If
End If
End If
End Sub
EJEMPLO DEL CASE EN VAB EXCEL
_____________________________________________________________
Private Sub CommandButton1_Click()
Select Case TextBox1.Text
Case 1:
TextBox2.Text = " HOY ES DIA LUNES"
Case 2:
TextBox2.Text = " HOY ES DIA MARTES"
Case 3:
TextBox2.Text = " HOY ES DIA MIERCOLES"
Case 4:
TextBox2.Text = "HOY ES DIA JUEVES"
Case 5:
TextBox2.Text = " HOY ES DIA VIERNES"
Case 6:
TextBox2.Text = " HOY ES DIA SABADO"
Case 7:
TextBox2.Text = " HOY ES DIA DOMINGO"
Case Else
TextBox2.Text = " ESE DIA NO EXISTE"
End Select
End Sub
________________________________________
realice el siguiente ejercicio utilizando la condicion if else
si la compra es mayor a Q400 aplicar el 5% de descuento =0.05
de lo contrario el descuento es cero el total final reste total menos descuento
HACER OTRO PROGRAMA QUE CALCULE LA EDAD DE UNA PERSONA Y NOS MUESTRE SI ES MAYOR O MENOR DE EDAD
martes, 8 de marzo de 2016
condición if else
EJEMPLO UNO
If Val(TextBox1.Text) = 1 Then
TextBox2.Text = " ES DIA LUNES"
Else
If Val(TextBox1.Text) = 2 Then
TextBox2.Text = " ES DIA MARTES"
Else
If Val(TextBox1.Text) = 3 Then
TextBox2.Text = " ES DIA MIRCOLES"
Else
If Val(TextBox1.Text) = 4 Then
TextBox2.Text = " ES DIA JUEVES"
Else
If Val(TextBox1.Text) = 5 Then
TextBox2.Text = " ES DIA VIERNES"
Else
If Val(TextBox1.Text) = 6 Then
TextBox2.Text = " ES DIA SABADO"
Else
If Val(TextBox1.Text) = 7 Then
TextBox2.Text = " ES DIA DOMINGO"
Else
TextBox2.Text = " ESE NUMERO DE DIA NO EXISTE INTENTE CON OTRO"
End If
End If
End If
End If
End If
End If
End If
If Val(TextBox1.Text) = 1 Then
TextBox2.Text = " ES DIA LUNES"
Else
If Val(TextBox1.Text) = 2 Then
TextBox2.Text = " ES DIA MARTES"
Else
If Val(TextBox1.Text) = 3 Then
TextBox2.Text = " ES DIA MIRCOLES"
Else
If Val(TextBox1.Text) = 4 Then
TextBox2.Text = " ES DIA JUEVES"
Else
If Val(TextBox1.Text) = 5 Then
TextBox2.Text = " ES DIA VIERNES"
Else
If Val(TextBox1.Text) = 6 Then
TextBox2.Text = " ES DIA SABADO"
Else
If Val(TextBox1.Text) = 7 Then
TextBox2.Text = " ES DIA DOMINGO"
Else
TextBox2.Text = " ESE NUMERO DE DIA NO EXISTE INTENTE CON OTRO"
End If
End If
End If
End If
End If
End If
End If
lunes, 15 de febrero de 2016
CONSULTAS EN ACCESS
AHORA ESTUDIAREMOS COMO REALIZAR CONSULTAS EN ACCESS
PARA ESO REALIZAREMOS UNA RELACIÓN DE UNA A VARIOS
PARA ESO REALIZAREMOS UNA RELACIÓN DE UNA A VARIOS
lunes, 8 de febrero de 2016
SISTEMA FACTURABLE
REALIZAREMOS UN SISTEMA FACTURA BLE EN ACCESS
1. HACEMOS NUESTRA BASE DE DATOS
2. REALIZAMOS NUESTRA PRIMERA TABLA LLAMADA
PRODUCTO
1. HACEMOS NUESTRA BASE DE DATOS
2. REALIZAMOS NUESTRA PRIMERA TABLA LLAMADA
PRODUCTO
2. REALIZAMOS LA SEGUNDA TABLA LLAMADA
FACTURA
3. HACEMOS NUESTRA TERCERA TABLA LLAMADA DETALLE
ESTA ES LA QUE NOS PERMITE HACER LA RELACIÓN DE UNO A VARIOS
RECUERDE QUE EL CAMPO CALCULADO DEBE DE QUEDAR [CANTIDAD]*[PRECIO]
AL TERMINAR LAS TABLAS LAS CERRAMOS Y NO VAMOS AL MENU HERRAMIENTA DE BASE DE DATOS Y elegimos relaciones y unimos los campos en comun
tendrá que quedar nuestra relación
nos vamos a la tabla de productos e ingresamos nuestros productos que tendra nuestra base de datos
ejemplo:
EN EL ASISTENTE PARA FORMULARIOS TRASLADAMOS LOS DATOS DE FACTURA TAL COMO VE LA IMAGEN
LUEGO DE LA TABLA DETALLE SOLO TRASLADO EL CAMPO CODIGO TAL COMO LO VE EN LA IMAGEN
LUEGO DE LA TABLA PRODUCTO TRASLADO EL CAMPO NOMBRE_PRODUCTO
LUEGO DE LA TABLA DETALLE TRASLADO LOS CAMPOS CANTIDAD, PRECIO, Y TOTAL
ELIJO SIGUIENTE LUEGO SIGUIENTE Y SIGUIENTE
HASTA LLEGAR A FINALIZAR DEBE QUEDAR MI FACTURA DE ESTA MANERA
DE MANERA QUE CUANDO INGRESE EL CODIGO DEL PRODUCTO ME DESPLIEGUE EL NOMBRE DEL PRODUCTO
Y LISTO TU SISTEMA FACTURA-BLE YA ESTA !!
Suscribirse a:
Comentarios (Atom)













