jueves, 8 de mayo de 2014

<HTML>
<HEAD>
<style type="text/css">
h1 {
color: #ff00ff;
size: 25px;
}
</style>
</head>
<BODY>
<div style="opacity:0.2;position:absolute;left:100px;width:2500px;height:460px;background-color:#40B3DF"></div>

<div style="opacity:0.2;position:absolute;left:150px;width:4000px;height:600px;background-color:#8AC007"></div>
<?php
class mueble
{
private $codigo;
private $precio;
public function mueble($codigo,$precio)
{
$this->codigo=$codigo;
$this->precio=$precio;
}

}

class silla extends mueble
{
private $mod;
private $color;

public function silla($codigo,$mod,$color,$precio)
{
parent::$this->codigo=$codigo;
parent::$this->precio=$precio;
$this->mod=$mod;
$this->color=$color;
  }
public function mostrar()
{
echo "<center>";
echo "<h1>";
echo " codigo : ".parent::$this->codigo."<br>";
echo " modelo  : ".$this->mod."<br>";
echo " color: ".$this->color."<br>";
echo " precio : ".parent::$this->precio."<br>";
}
}

$a=$_POST['cod'];
$b=$_POST['mod'];
$c=$_POST['col'];
$d=$_POST['precio'];

$uno= new silla($a,$b,$c,$d);
$uno->mostrar();

?>
</body>
</html>
<?php
session_start();
$pass="pass";
if($_POST){
$_SESSION['user']=$_POST['user'];
$pass=$_POST['pass'];
$_SESSION['log']="no" ;
if(isset($_SESSION['user'])){
if( $_SESSION['user'] == "ventas" ){
if($pass=="compras"){
$_SESSION['log']="siv";
}
else {
header('location: pass.php');//header('location: pass.php');
}
}
else{
if( $_SESSION['user'] == "humanos" ){
if($pass=="recursos"){
$_SESSION['log']="sih";
}
else {
header('location: pass.php');
}
}
else{
$_SESSION['log']="si";
}}
}
if($_SESSION['log']=="si" || $_SESSION['log']=="siv" || $_SESSION['log']=="siv"  )
{
echo $_SESSION['user'];
echo "<br>".$_SESSION['log'];
}
}
?>


<html>

<head>

<meta name="description" content="Micropsia paginaweb">

<meta name="keywords" content="antropologia,musica,literatura, boliviana">

<meta name="author" content="vic" >

<title>MICROPSIA</title>

<style type="text/css">

div{padding=6px;}

div.titulo{

font-family:"Georgia";

font-size: 25px; color: #333366;

background-color:#E0E0E0 ;

}

div.texto{

font-family:"Times New Roman";

font-size: 18px; color: #000000;

background-color:#E0E0E0;

}

div.bar{

font-family:"Comic Sans MS";

font-size:18px;color: #400000;

border: 3px solid #FF6347;

background-color: #FF6347;

}

div.btext{

border-top: 6px dotted #FFAA70;

border-bottom: 6px dotted #FFAA70;

}

.navlist li

{

display: inline;

padding-right: 170px;

}

</style>

</head>

<body bgcolor= #E0E0E0>

<center>

<table border="0" style="width:720px">

<tr>

<td style="width:50px; padding:6px" height="20"> <a href="inicio.php"> 

<td align="right"> <a href="registro.php"><img src="regis.jpg" height="155"> </a> </td>

</tr>

</table>

<br>

<br>

<div class=bar> <ul class="navlist">

<li ><a href="musica.php">       M  U  S  I  C  A  </a></li>

<li ><a href="literatura.php"> L  I  T  E  R  A  T  U  R  A </a></li>

<li ><a href="antro.php"> A  N  T  R  O  P  O  L  O  G  I  A  </a></li>

</ul>

</div>

<br>

<br>

<hr>

<div class=titulo>  </div>

<hr>

<div class=btext>

<div class=texto> <blockquote> 


</div>

</div>

</center>

</body>

</html>