Skip to content

Instantly share code, notes, and snippets.

View ricardosiri68's full-sized avatar

Ricardo Agustin Siri ricardosiri68

  • Nubi
  • Capital Federal
View GitHub Profile
@ricardosiri68
ricardosiri68 / index.php
Created October 18, 2013 21:17
ensalda de etiquetas
<section class="contenedorlat inicio">
<aside class="columna latbanner">
<div>
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','117','height','60','vspace','5','src','images/indoorkart','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','images/indoorkart' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="117" height="60" vspace="5">
<param name="movie" value="images/indoorkart.swf">
<param name="quality" value="high">
<embed src="images/indoorkart.swf" width="117" height="60" vspace="5" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"></embed>
</object></noscript>
<section class="contenedorlat inicio">
<aside class="columna latbanner">
<div>
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','117','height','60','vspace','5','src','images/indoorkart','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','images/indoorkart' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="117" height="60" vspace="5">
<param name="movie" value="images/indoorkart.swf">
<param name="quality" value="high">
<embed src="images/indoorkart.swf" width="117" height="60" vspace="5" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"></embed>
</object></noscript>
<div id='mainDiv_132448' style='transform : translate3d(0,0,0); -moz-transform : translate3d(0,0,0); -ms-transform : translate3d(0,0,0); -o-transform : translate3d(0,0,0); -webkit-transform : translate3d(0,0,0); overflow: hidden; position:relative; width:117px; height:60px; background-color:#ffffff; '>
<canvas id='image0_132448' style='visibility: hidden; position: absolute;' width=111 height=39>
</canvas>
<canvas id='image1_132448' style='visibility: hidden; position: absolute;' width=111 height=20>
</canvas>
<canvas id='image2_132448' style='visibility: hidden; position: absolute;' width=31 height=30>
</canvas>
<canvas id='image3_132448' style='visibility: hidden; position: absolute;' width=104 height=16>
</canvas>
</div> <!--
CREATE TABLE categorias
(
'id' INT(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
'parent_id' INT(11) NOT NULL REFERENCES categorias(id),
'nombre' VARCHAR(255) UNIQUE NOT NULL
);
@ricardosiri68
ricardosiri68 / database.sql
Created October 18, 2013 19:54
hola a todos, estoy haciendo un trabajo practico donde tengo que armar una web de ventas de articulos donde se deben hacer los casos de usos mas dificiles por asi decirlo. para hacer el buscador, primero deberia de poder cargar los articulos, y para cargar los articulos antes deberia de organizar bien el tema de categorias y caracteristicas el a…
CREATE TABLE categorias
(
'id' INT(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
'nombre' VARCHAR(255) UNIQUE NOT NULL
);
CREATE TABLE subcategorias
(
'id' INT(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
'categoria_id' INT(11) NOT NULL REFERENCES categoria(id),
<?php
session_start();
include('acceso_db.php');
if(isset($_POST['enviar'])) { // comprobamos que se hayan enviado los datos del formulario
// comprobamos que los campos usuarios_nombre y usuario_clave no estén vacíos
if(empty($_POST['usuario_nombre']) || empty($_POST['usuario_clave'])) {
echo "El usuario o la contraseña no han sido ingresados. <a href='javascript:history.back();'>Reintentar</a>";
}else {
// "limpiamos" los campos del formulario de posibles códigos maliciosos
$usuario_nombre = mysql_real_escape_string($_POST['usuario_nombre']);
@ricardosiri68
ricardosiri68 / index.php
Created October 17, 2013 18:08
otro que no puede enviar un e-mail con PHP
<form class="form" action="<?=$_SERVER['PHP_SELF']?>" method="post" enctype="text/plain">
<label for="name" accesskey="n" tabindex="1">Nombre</label>
<input type="text" id="name" name="name" value="" />
<label for="email" accesskey="e" tabindex="2">E-Mail</label>
<input type="text" id="email" name="email" value=""/>
<label for="website" accesskey="w" tabindex="3">Sitio Web</label>
<input type="text" id="website" name="website" value=""/>
<label for="mensaje" accesskey="m" tabindex="4">Mensaje</label>
<textarea name="mensaje" id="mensaje" rows="10" cols="10"></textarea>
<div style="clear:both"></div>
@ricardosiri68
ricardosiri68 / biblio.php
Created October 15, 2013 05:15
biblio.php
<?
class XMLListImages{
private $siteUrl = "http://www.yosoydeolavarria.com.ar/galclub/gran";
private $extensions = array(
'JPEG', 'jpeg',
'JPG', 'jpg',
'PNG', 'png',
'BMP', 'bmp'
);
public function __construct($folderPath)
--
-- Database: `images`
--
-- --------------------------------------------------------
--
-- Table structure for table `imagenes`
--
CREATE TABLE IF NOT EXISTS `positions` (
@ricardosiri68
ricardosiri68 / biblio.php
Created October 14, 2013 03:41
ulta mersion
<?
class XMLListImages{
private $siteUrl = "http://www.yosoydeolavarria.com.ar/galery";
private $extensions = array(
'JPEG', 'jpeg',
'JPG', 'jpg',
'PNG', 'png',
'BMP', 'bmp'
);
public function __construct($folderPath)