From 4bd5b015eaad5307d46555bcee7ba8ae87f3071c Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Wed, 1 Dec 2010 21:20:52 +0000 Subject: [PATCH] Inclusão de opções de bookmark na ferramenta comentários --- classesjs/classe_util.js | 253 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------------------------------------------------------------------------------------- ferramentas/comentarios/index.php | 11 ++++++++--- imagens/delicious.gif | Bin 0 -> 113 bytes imagens/digg.gif | Bin 0 -> 248 bytes imagens/facebook.gif | Bin 0 -> 173 bytes imagens/stumbleupon.gif | Bin 0 -> 1023 bytes 6 files changed, 139 insertions(+), 125 deletions(-) create mode 100644 imagens/delicious.gif create mode 100644 imagens/digg.gif create mode 100644 imagens/facebook.gif create mode 100644 imagens/stumbleupon.gif diff --git a/classesjs/classe_util.js b/classesjs/classe_util.js index 14e3a54..ff1e0e2 100644 --- a/classesjs/classe_util.js +++ b/classesjs/classe_util.js @@ -1952,6 +1952,13 @@ i3GEO.util = { if(typeof(console) !== 'undefined'){console.info(mensagem);} var js = i3GEO.configura.locaplic+"/ferramentas/"+dir+"/index.js.php"; i3GEO.util.scriptTag(js,"i3GEOF."+nome+".criaJanelaFlutuante()","i3GEOF."+nome+"_script"); + }, + bookmark: function(link){ + ins = " "; + ins += " "; + ins += " "; + ins += ""; + return ins; } }; @@ -1968,140 +1975,142 @@ i3GEO.util = { // TODO: build hover script for highlighting header in IE // TODO: attach behaviour based on rel attribute //++++++++++++++++++++++++++++++++++++ +try{ + YAHOO.namespace("lutsr"); + YAHOO.lutsr.accordion = { + properties : { + animation : true, + animationDuration : 10, + multipleOpen : false, + Id: "sanfona", + altura: 200, + ativa: 0 + }, -YAHOO.namespace("lutsr"); -YAHOO.lutsr.accordion = { - properties : { - animation : true, - animationDuration : 10, - multipleOpen : false, - Id: "sanfona", - altura: 200, - ativa: 0 - }, - - init : function(animation,animationDuration,multipleOpen,Id,altura,ativa) { - if(animation) { - this.properties.animation = animation; - } - if(animationDuration) { - this.properties.animationDuration = animationDuration; - } - if(multipleOpen) { - this.properties.multipleOpen = multipleOpen; - } - if(Id) { - this.properties.Id = Id; - } - if(altura) { - this.properties.altura = altura; - } - if(ativa) { - this.properties.ativa = ativa; - } - var accordionObject = document.getElementById(this.properties.Id); - if(accordionObject) { - if(accordionObject.nodeName == "DL") { - var headers = accordionObject.getElementsByTagName("dt"); - var bodies = headers[0].parentNode.getElementsByTagName("dd"); + init : function(animation,animationDuration,multipleOpen,Id,altura,ativa) { + if(animation) { + this.properties.animation = animation; } - this.attachEvents(headers,0); - } - }, + if(animationDuration) { + this.properties.animationDuration = animationDuration; + } + if(multipleOpen) { + this.properties.multipleOpen = multipleOpen; + } + if(Id) { + this.properties.Id = Id; + } + if(altura) { + this.properties.altura = altura; + } + if(ativa) { + this.properties.ativa = ativa; + } + var accordionObject = document.getElementById(this.properties.Id); + if(accordionObject) { + if(accordionObject.nodeName == "DL") { + var headers = accordionObject.getElementsByTagName("dt"); + var bodies = headers[0].parentNode.getElementsByTagName("dd"); + } + this.attachEvents(headers,0); + } + }, - attachEvents : function(headers,nr) { - for(var i=0; i + +

Bookmark esse tema com:

query("select * from i3geoadmin_comentarios where id_tema = $id_tema ",PDO::FETCH_ASSOC); $lista = $lista->fetchAll(); - echo "

todos os comentários"; - echo " comentários para o tema

"; echo ""; foreach ($lista as $reg) @@ -84,6 +84,9 @@ function listaComentarios() echo "

"; $dbhw = null; $dbh = null; + echo "

todos os comentários"; + echo " comentários para o tema

"; + } function gravaComentario() { @@ -108,5 +111,7 @@ function converte($texto){ } ?> \ No newline at end of file diff --git a/imagens/delicious.gif b/imagens/delicious.gif new file mode 100644 index 0000000..d284f82 Binary files /dev/null and b/imagens/delicious.gif differ diff --git a/imagens/digg.gif b/imagens/digg.gif new file mode 100644 index 0000000..303e3bb Binary files /dev/null and b/imagens/digg.gif differ diff --git a/imagens/facebook.gif b/imagens/facebook.gif new file mode 100644 index 0000000..d435422 Binary files /dev/null and b/imagens/facebook.gif differ diff --git a/imagens/stumbleupon.gif b/imagens/stumbleupon.gif new file mode 100644 index 0000000..a253617 Binary files /dev/null and b/imagens/stumbleupon.gif differ -- libgit2 0.21.2