This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link href="assets/stylesheets/bootstrap-responsive.css" rel="stylesheet"> | |
<%= analytics_init if Rails.env.production? %> | |
<title>Guidelines for Me</title> | |
<%= stylesheet_link_tag "application", :media => "all" %> | |
<%= javascript_include_tag "application" %> |
This file contains 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
//Para usarlo de la misma forma que el live, puede hacer lo siguiente: | |
$(document).on('click', '.selector_elemento', function(){}); | |
//La gracia que tiene el "on" es que amarras eventos a un contenedor pero a su vez le puedes | |
//asignar un selector específico. | |
//En el caso anterior, se asigna el evento "click" al todo el html del sitio (document), | |
//pero al especificar el selector ".selector_elemento" solo va ha escuchar los eventos de ese | |
//selector especifico, la gracia de esto, es que como el evento lo amarras a elemento "document", | |
//no es necesario que el elemento ".selector_elemento" exista al momento del amarre, |
This file contains 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 | |
session_start(); | |
if ($_POST['usuario']){ | |
include("../inc/opencon.php3"); | |
$sql = "select * from tbl_admin where usuario='".$_POST['usuario']."' and clave='".md5($_POST['clave'])."'"; | |
$result=mysql_query($sql,$dbh); | |
if($row = mysql_fetch_array($result)) { |
This file contains 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
Array | |
( | |
[tipo_empresa_id] => Array | |
( | |
) | |
[region_id] => Array | |
( | |
) |
This file contains 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
ficha01 100 – 400 | |
100 <= 500 <= 400 //No | |
$CI->sphinxclient->SetFilterRange('puntaje_fps_min',100,500); | |
$CI->sphinxclient->SetFilterRange('puntaje_fps_max',500,400); | |
ficha02 300 – 550 | |
300 <= 500 <= 550 //SI |
This file contains 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
<header> | |
<div class="ym-wrapper"> | |
<div class="ym-wbox"> | |
<div class="ym-g25 ym-gl"> | |
Saturno | |
</div> | |
<div class="ym-g75 ym-gl"> | |
<img src="http://placehold.it/320x50/" alt="" class="flexible"> | |
</div> | |
</div> |
This file contains 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
CASE WHEN ficha.req_especial = 1 THEN 1 ELSE 0 END AS mujer,\ | |
CASE WHEN ficha.req_especial = 2 THEN 1 ELSE 0 END AS indigena,\ | |
CASE WHEN ficha.formalizacion = 1 THEN 1 ELSE 0 END AS informal,\ | |
CASE WHEN ficha.formalizacion = 2 THEN 1 ELSE 0 END AS formal\ |
This file contains 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
var HEmpresas = response[0].HechosEmpresa; | |
var cnt = 0; | |
for(var cnt in HEmpresas){ | |
response = HEmpresas[cnt].Fichas; | |
console.log(HEmpresas[cnt]); | |
for(var i in response){ | |
if( response[i].titulo != undefined ) { | |
html+='<li>'; | |
html+='<a href="'+site_url+'fichas/ver/'+response[i].maestro_id+'">'; |
This file contains 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
[ | |
{ | |
"id": "1", | |
"HechosEmpresa": [ | |
{ | |
"id": "1", | |
"Fichas": [ | |
{ | |
"id": "24052", | |
"titulo": "Certificado de veh\u00edculos a gas" |
This file contains 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
function getEventoForPeriod($date_start, $date_end) | |
{ | |
$query = Doctrine_Query::create(); | |
$query->select('f.id, f.titulo, f.maestro_id, e.*'); | |
$query->from('Ficha f, f.Eventos e'); | |
$query->where('f.maestro = 0 AND f.publicado = 1'); | |
$query->andwhere('postulacion_start BETWEEN "'.$date_start.'" AND "'.$date_end.'" OR postulacion_end BETWEEN "'.$date_start.'" AND "'.$date_end.'"'); | |
// debug($query->getSqlQuery()); | |
return $query->execute(array(), Doctrine::HYDRATE_ARRAY); | |
} |
OlderNewer