Reglamento
INDUSTRIAL Y DE SERVICIOS No. 50
BASE DE DATOS
SISTEMA DE CONTROL DE PRODUCTOS
SAETI
ALUMNO:
__________________________________
05 DE OCTUBRE DE 2012.
ESTRUCTURA DE LA BASE DE DATOS
NOMBRE DE LA BASE DE DATOS: ControlProd
Nombre de la Tabla de Datos: tipoproducto
PK=primary key
TIPOPRODUCTO |
PK | Id_prod | int | 2 |Nomprod | char | 20 |
Nombre de la Tabla de Datos: productos
PK=primary key
PRODUCTOS |
CAMPOS | TIPO DE DATOS | TAMAÑO |
PK | codigo | int | 3 |
Nomprod | Char | 30 |
Marca | Char | 20 |
Tipoprod | Int | 2 |
Fabricante | Char | 30 |
Correo | char | 35 |
CONEX.PHP
<?php
function Connectto()
{
if (!($link=mysql_connect("localhost","root","")))
{
echo"Error Coneccion a la Base de Datos . . .";
exit();
}
if (!mysql_select_db("ControlProd",$link))
{
echo "Select Error . . .";
exit();
}
return $link;
}
?>
INICIO.PHP
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<htmlxmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin título</title>
</head>
<body bgcolor="#000000">
<marquee behavior="alternate" direction="left" bgcolor="#000000">
<font face="Arial" color="#FFFFFF" size="+4">CONTROL DE BIBLIOTECA</font></marquee>
<hrsize="3" color="#000099" noshade><br/>
<font face="Arial"size="+3" color="#FFFFFF">
<center>
<a href="captipoprod.php"><h2>ALTAS DE PRODUCTOS</h2></a>
<a href="elitipoprod.php"><h2>BAJAS DE PRODUCTOS</h2></a>
<a href="moditipoprod.php"><h2>MODIFICAR DATOS DE PRODUCTOS</h2></a>
<ahref="captipoprod.php"><h2>ALTAS DE TIPO DE PRODUCTOS</h2></a>
<a href="elittipoprod.php"><h2>BAJAS DE TIPO DE PRODUCTOS</h2></a>
<a href="moditipoprod.php"><h2>MODIFICAR DATOS DE TIPO DE PRODUCTOS</h2></a>
</center></font>
<br /><br /><hr size="3" color="#FF0000" noshade>
</body>
</html>CAPTIPOPROD.PHP
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Control de productos</title>
</head>
<body bgcolor="#006666">
<center>
<font face="Arial" size="5">
<table><tr>
<td class="PestanaPorDefecto"><a href="Inicio.php">Inicial</a></td><td>|</td>
<td class="PestanaPorDefecto"><font color="#FFFFFF">Altas</font></td>
<td>|</td>
<td class="PestanaPorDefecto"><a href="elitipoprod.php">Bajas</a></td>
<td>|</td>
<td class="PestanaPorDefecto"><a href="moditipoprod.php">Modificaciones</a></td>
<td>|</td>
<tdclass="PestanaPorDefecto"><a href="mostipoprod.php">Mostrar Registros</a></td>
</tr>
</table>
</font>
</center>
<br/>
<br/>
<marquee behavior="alternate" direction="left" bgcolor="#66CCFF"><font face="Arial" color="#FFFFFF" size="5">
<h1>Introducir Datos</h1></font></marquee><br/>
<hr size="3"color="#000099" noshade><br/><br/>
<center>
<form action="insertar_tipoprod.php">
<b><font face="Arial" size="4" color="#FFFFFF"><table>
<tr>
<td width="185"><span class="Estilo4">Clave Tipo de Producto:</span></td>
<td width="180"><input type="text" name="id_prod" size="2" maxlength="2"></td>...
Regístrate para leer el documento completo.