This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$servidor = "localhost"; | |
$user = "root"; | |
$password = ""; | |
$bd = "sistema"; | |
$conexion = mysql_connect($servidor, $user, $password); | |
mysql_select_db($bd, $conexion); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php require "config.php"; | |
$sql = "SELECT * FROM alumnos WHERE idalumno = ".$_GET["id"]; | |
$alumnos = mysql_query($sql); | |
$alumno = mysql_fetch_array($alumnos); | |
?> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Venta { | |
private $precio_unit; | |
private $cantidad; | |
private $igv; | |
public function __construct($precio_unit, $cantidad) { | |
$this->precio_unit = $precio_unit; | |
$this->cantidad = $cantidad; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Venta { | |
function costo_total($precio_unit, $cantidad){ | |
$this->total = $precio_unit * $cantidad; | |
return $this->total; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var Persona = function (var_nombre, var_edad, var_fecha){ | |
this.nombre = var_nombre+"------"; | |
this.edad = var_edad; | |
this.fechaNacimiento = var_fecha; | |
} | |
var Masculino = function (){ | |
this.saludo = "Sr."; | |
this.saludar = function () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Formularios</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> | |
</head> | |
<body> | |
<div class="container"> | |
<h1 class="text-center">Libro de reclamaciones</h1> | |
<form class="col-sm-6 col-sm-offset-3" action="reclamacion.php" method="POST"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Botones con Bootstrap</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css"> | |
<style type="text/css"> | |
button { | |
width: 123px; | |
height: 100px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
// Leer http://www.xatakaciencia.com/computacion/alphago-su-victoria-en-el-go-nos-encamina-a-un-nuevo-mundo-de-inteligencia-artifical | |
function randomIntervalo(numeroInicio, numeroFin) { | |
var aleatorio = Math.random(); | |
var diferencia = numeroFin - numeroInicio; | |
var numero = aleatorio * diferencia; | |
return Math.round(numero) + numeroInicio; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Practica de grillas</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-sm-4"> | |
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. In dolor ex, dictum et velit non, interdum sodales nulla. Suspendisse a ullamcorper est. Vestibulum in iaculis velit. Nam sit amet vestibulum risus. Vestibulum hendrerit egestas ipsum sed imperdiet. Nulla ante sem, sagittis vitae ex sed, commodo aliquet urna. Mauris eu massa libero. Mauris massa metus, elementum quis dignissim eget, egestas a libero. Maecenas viverra ligula sem, quis congue turpis feugiat et. Sed nec magna nisi. Vivamus convallis, est non varius aliquet, est lacus finibus lorem, nec pharetra tortor nulla maximus urna. Phasellus vulputate libero ut urna congue pharetra. Suspendisse dapibus nulla eu tellus eleifend, eget ullamcorper tellus pellentesque.</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.sidebar { | |
background: black; | |
color: white; | |
font-size: 30px; | |
height: 100%; | |
} | |
.sidebar img { | |
margin: 30px 0; | |
} | |
.sidebar i { |