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 | |
//--------------------------------------------------------------------------------------------------- | |
// Proyecto: jerarquia | |
// Archivo: class/nodo.php | |
// Tipo: definicion de clase | |
// Desarrolladores: Juanan Ruiz ([email protected]) y [email protected] | |
//--------------------------------------------------------------------------------------------------- | |
// Descripcion: lista, crea, borrar y edita nodos (falta mover nodos) | |
//--------------------------------------------------------------------------------------------------- | |
class nodo extends ADOdb_Active_Record |
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
<ul style="list-style-type:none" id="nodo"> | |
{* Se asigna el valor inicial a la variable profundidad en el arbol "dep" que se utiliza para pintar el arbol | |
y en concreto cuando son varios hijos solo tenemos el valor de la profundidad *} | |
{assign var = dep value = 1} | |
{* Se inicia el bucle que muestra todas las filas de la consuta empezando a 1 y evitar mostra el primer nodo *} | |
{section loop=$lista name=lis start=1} | |
{* El nivel se utiliza para poder determinar si el nodo es padre de otros nodos *} | |
{assign var=nivel value=$lista[lis].izq+1} | |
{if $dep == $lista[lis].dep} |
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 | |
$normalizado = array( | |
'Š'=>'S', 'š'=>'s', 'Ð'=>'Dj','Ž'=>'Z', 'ž'=>'z', 'À'=>'A', 'Á'=>'A', 'Â'=>'A', 'Ã'=>'A', 'Ä'=>'A', | |
'Å'=>'A', 'Æ'=>'A', 'Ç'=>'C', 'È'=>'E', 'É'=>'E', 'Ê'=>'E', 'Ë'=>'E', 'Ì'=>'I', 'Í'=>'I', 'Î'=>'I', | |
'Ï'=>'I', 'Ñ'=>'N', 'Ò'=>'O', 'Ó'=>'O', 'Ô'=>'O', 'Õ'=>'O', 'Ö'=>'O', 'Ø'=>'O', 'Ù'=>'U', 'Ú'=>'U', | |
'Û'=>'U', 'Ü'=>'U', 'Ý'=>'Y', 'Þ'=>'B', 'ß'=>'Ss','à'=>'a', 'á'=>'a', 'â'=>'a', 'ã'=>'a', 'ä'=>'a', | |
'å'=>'a', 'æ'=>'a', 'ç'=>'c', 'è'=>'e', 'é'=>'e', 'ê'=>'e', 'ë'=>'e', 'ì'=>'i', 'í'=>'i', 'î'=>'i', | |
'ï'=>'i', 'ð'=>'o', 'ñ'=>'n', 'ò'=>'o', 'ó'=>'o', 'ô'=>'o', 'õ'=>'o', 'ö'=>'o', 'ø'=>'o', 'ù'=>'u', | |
'ú'=>'u', 'û'=>'u', 'ý'=>'y', 'ý'=>'y', 'þ'=>'b', 'ÿ'=>'y', 'ƒ'=>'f' |
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 indicador extends ADOdb_Active_Record | |
{ | |
var $_table = 'indicador'; | |
// Obtiene los valores | |
function obtener_valores() | |
{ | |
$datos = array(); |
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 | |
if ($_POST) | |
{ | |
//Me traigo los datos que podrían interesarme: | |
$name = $params['name']; | |
$tipo = $params['tipo']; | |
$name = explode(", ",$name); | |
echo '<ul>'; | |
foreach ( $name as $valor) |
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 | |
//Me traigo los datos que podrían interesarme: | |
$name = $params['name']; | |
$id = $params['id']; if($id==""){ $id = $name; } | |
$type = $params['type']; | |
$size = $params['size']; | |
$value = $params['value']; | |
$text = $params['text']; | |
$obligado = (int)$params['obligado']; | |
$sesion = $params['sesion']; |
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 | |
$autorizados = array(jjmc,jmsb,juanan); | |
//comprueba si se esta autorizado para esta página | |
foreach ($autorizados as $value) | |
{ | |
if ($value == $_SESSION["usuario"]) | |
{$smarty->assign('autorizado', 'si');} | |
} |
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
{GRUPOexcelencia} | |
{if $autorizado != 'si'} | |
<div class="arena"><h3>No está autorizado en esta página</h3></div> | |
{else} | |
{if $smarty.session.usuario=='juanan' OR | |
$smarty.session.usuario=='jmsb' OR | |
$smarty.session.usuario=='dgonzalez'} | |
<h3>Subir ficheros</h3> | |
<div class="arena"> | |
<p> |
NewerOlder