Skip to content

Instantly share code, notes, and snippets.

View devloe's full-sized avatar

Juan Pablo Lozano devloe

View GitHub Profile
<?
$SQL_query_init = mysql_query('select * from ' . TBL_IMGEMPREN . ' where `id_em` = "'.$idparent.'" and `area` = "mini_estado" and `estado` = "general" ');
while($campi = mysql_fetch_array($SQL_query_init)) { ?>
<a href="../data/emprendimientos/<?=$campi['area']?>/<?=$campi['archivo_nombre']?>" class="fancybox">
<img src="../data/emprendimientos/<?=$campi['area']?>/<?=$campi['archivo_nombre']?>">
</a>
<? } ?>
<div class="wrapper">
<ul class="banners_home">
<?
$banner_query = mysql_query('select id,`title_'.$lc.'`,`content_'.$lc.'`,`image_'.$lc.'`,`link_'.$lc.'`,`type` from ' . TBL_BANNERS .' where `situation`=2 and `status`=1 order by `order` ASC');
while($banner = mysql_fetch_array($banner_query)){
if($banner['link_'.$lc] != '') { ?>
<? if($banner['type'] == 1) { $target = 'target="_blank"'; } else { $target = 'target="_self"'; } ?>
<li>
<a href="<?=$banner['link_'.$lc]?>">
<? } ?>
@devloe
devloe / hola
Created March 27, 2013 16:22 — forked from anonymous/hola
<table cellspacing="0" class="table" style="margin-left:5px;">
<tr>
<th>Adjuntos</th>
<th></th>
</tr>
<tr>
<td>
<br />
<?
$SQL_query_init = mysql_query('select `archivo_nombre`,`id` from ' . TBL_FILE . ' where `cliente` like "%#'.$idclient.'#%"');
@devloe
devloe / index.php
Created September 22, 2012 22:58 — forked from anonymous/index.php
<div id="main">
<?php foreach($programacion->dias as $i => $nombre){ ?>
<?=$nombre?>
<table class="listado">
<tr>
<th>Nombre</th>
<th>Horario</th>
<th>Integrantes</th>
<th>Dia</th>
@devloe
devloe / index.php
Created September 22, 2012 22:34 — forked from anonymous/index.php
<div id="main">
<?php foreach($programacion->dias as $i => $nombre){ ?>
<div class="todos">
<?=$nombre?>
<table class="listado">
<?php
$listado = $programacion->listar($i);
while($row = mysql_fetch_assoc($listado)){
?>