You can subscribe to this list here.
2004 |
Jan
|
Feb
(27) |
Mar
(26) |
Apr
(16) |
May
(31) |
Jun
(25) |
Jul
(41) |
Aug
|
Sep
(13) |
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
|
Feb
|
Mar
(2) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Edmilson F. <edm...@gm...> - 2005-04-10 21:09:38
|
From: Edmilson F. <edm...@gm...> - 2005-03-29 22:26:16
|
Hugo... neste pr=F3ximo final de semana, estarei retomando as atividades referente ao projeto: =20 1 - Darei uma olhada no esqueleto referente ao PHP5 no qual voc=EA enviou, pra usar como base para as futuras implementa=E7=F5es; =20 2 - Estarei pondo screenshots da aplica=E7=E3o e irei criar um chamado na sourceforge em busca de designers para implementar se poss=EDvel uma cara pr=F3pria para o sistema; =20 3 - Criarei um branch para as atualiza=E7=F5es referentes ao banco, ainda no mysql, com o int=FAito de facilitar o porte para outros bancos removendo fun=E7=F5es pr=F3prias do Mysql. =20 []'s =20 Edmilson Ferreira web developer |
From: Edmilson F. <edm...@gm...> - 2005-03-29 17:18:28
|
Hugo... neste pr=F3ximo final de semana, estarei retomando as atividades referente ao projeto: 1 - Darei uma olhada no esqueleto referente ao PHP5 no qual voc=EA enviou, pra usar como base para as futuras implementa=E7=F5es; 2 - Estarei pondo screenshots da aplica=E7=E3o e irei criar um chamado na sourceforge em busca de designers para implementar se poss=EDvel uma cara pr=F3pria para o sistema; 3 - Criarei um branch para as atualiza=E7=F5es referentes ao banco, ainda no mysql, com o int=FAito de facilitar o porte para outros bancos removendo fun=E7=F5es pr=F3prias do Mysql. []'s Edmilson Ferreira web developer |
From: Hugo P. L. <hu...@bo...> - 2004-09-08 03:01:52
|
Ok. --=20 Hugo P.L. "Precisamos de mais g=EAnios humildes no mundo, hoje somos poucos!" Edmilson Ferreira wrote: >ent=E3o compacta e manda!! > > >On Tue, 07 Sep 2004 23:43:04 +0000, Hugo Parente Lima ><hu...@bo...> wrote: > =20 > >>Eu s=F3 sei o b=E1sico do diagrama de classes de UML... UML tem uns 300 >>diagramas (9 eu acho)... sempre quis aprender UML, pelo menos os >>diagramas mais importantes... >> >>Design Patterns sem querer to usando alguns... e querendo outros... >>(Object Factory).... Voc=EA sabe um livro bom sobre o assunto? >> >>Como falei no ICQ... fiz um rascunho do MUSPA2 em PHP5... o esqueleto d= o >>design OO.... se quiser eu compacto e mando aqui na lista... >> >>flw... >> >>-- >>Hugo P.L. >>"Precisamos de mais g=EAnios humildes no mundo, hoje somos poucos!" >> =20 >> |
From: Edmilson F. <psy...@gm...> - 2004-09-08 02:52:39
|
ent=E3o compacta e manda!! On Tue, 07 Sep 2004 23:43:04 +0000, Hugo Parente Lima <hu...@bo...> wrote: > Eu s=F3 sei o b=E1sico do diagrama de classes de UML... UML tem uns 300 > diagramas (9 eu acho)... sempre quis aprender UML, pelo menos os > diagramas mais importantes... >=20 > Design Patterns sem querer to usando alguns... e querendo outros... > (Object Factory).... Voc=EA sabe um livro bom sobre o assunto? >=20 > Como falei no ICQ... fiz um rascunho do MUSPA2 em PHP5... o esqueleto do > design OO.... se quiser eu compacto e mando aqui na lista... >=20 > flw... >=20 > -- > Hugo P.L. > "Precisamos de mais g=EAnios humildes no mundo, hoje somos poucos!" >=20 >=20 >=20 >=20 > Edmilson Ferreira wrote: >=20 > >- PHP5 only [perfeito, no comments] > >- Usar template engine pr=F3pria, baseada em XML ;) [melhor dessa > >forma..., principalmente se esta engine for + r=E1pida que a > >pattemplate] > >- N=E3o usar XSLT [s=F3 quem pode responder melhor sobre este assunto = =E9 > >voc=EA, ent=E3o... vai ser assim =3DD] > >- Usar SQLite. [perfeito, sempre dei valor ao mesmo... =E9 um banco que > >est=E1 crescendo... e tem uma velocidade excepcional] > >- Novo design OO. [obrigat=F3ria, pois php5 vem com um suporte melhorado= ] > >- Editor WYSIWYG pr=F3prio. [ideia interessante, x=F4 gambiarras, podemo= s > >fazer um editor usando o poder do DOM e salvando em css] > >- Forma mais inteligente de ser utilizado no site.[sim =E9 interessante > >ser estudada uma formula para evitar as in=FAmeras requisi=E7=F5es ao > >servidor, problema no qual iria ocorrer usando da forma como est=E1... > >SSI, apesar de ser bastante pr=E1tico] > > > >Gostaria de acrescentar algumas ideias... > >- Relacionado aos t=F3picos "PHP5 only" e "No design OO", poderiamos > >remodelar todo o projeto MUSPA no padr=E3o UML, bibliografia na qual > >poderia servir como base seria... um livro... chamado "Building Web > >Applications with UML"/obs.: tem em port este livro em bibliotecas que > >eu n=E3o tenho acesso, site "http://www.uml.org/". > >Outra coisa seria... tentar aplicar tbm.. Design patterns, isso estas > >coisinhas ajudariam a tornar o projeto comum graur maior de qualidade. > > > >por hora =E9 s=F3... tendo ideias vc sabe que eu falo... eu gostaria de > >estar + ativo no projeto... por=E9m, como ainda n=E3o est=E1 sendo poss= =EDvel > >vou ajudando pelo menos nas ideias. > > > >outra coisa.... vou falar novamente... quero fazer umas blusas para > >mim bordadas... tanto de gnu/linux como MUSPA / PHP5 vs JAVA POO, se > >tiver interesse me avise para pensarmos juntos se n=E3o, farei da forma > >como quero e pronto. > > > >abra=E7os!! > > > > > >------------------------------------------------------- > >This SF.Net email is sponsored by BEA Weblogic Workshop > >FREE Java Enterprise J2EE developer tools! > >Get your free copy of BEA WebLogic Workshop 8.1 today. > >http://ads.osdn.com/?ad_idP47&alloc_id=10808&op=3Dclick > >_______________________________________________ > >Muspa-devel mailing list > >Mus...@li... > >https://lists.sourceforge.net/lists/listinfo/muspa-devel > > > > > > >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_idP47&alloc_id=10808&opclick > _______________________________________________ > Muspa-devel mailing list > Mus...@li... > https://lists.sourceforge.net/lists/listinfo/muspa-devel > |
From: Hugo P. L. <hu...@bo...> - 2004-09-08 02:40:57
|
Eu s=F3 sei o b=E1sico do diagrama de classes de UML... UML tem uns 300=20 diagramas (9 eu acho)... sempre quis aprender UML, pelo menos os=20 diagramas mais importantes... Design Patterns sem querer to usando alguns... e querendo outros...=20 (Object Factory).... Voc=EA sabe um livro bom sobre o assunto? Como falei no ICQ... fiz um rascunho do MUSPA2 em PHP5... o esqueleto do=20 design OO.... se quiser eu compacto e mando aqui na lista... flw... --=20 Hugo P.L. "Precisamos de mais g=EAnios humildes no mundo, hoje somos poucos!" Edmilson Ferreira wrote: >- PHP5 only [perfeito, no comments] >- Usar template engine pr=F3pria, baseada em XML ;) [melhor dessa >forma..., principalmente se esta engine for + r=E1pida que a >pattemplate] >- N=E3o usar XSLT [s=F3 quem pode responder melhor sobre este assunto =E9 >voc=EA, ent=E3o... vai ser assim =3DD] >- Usar SQLite. [perfeito, sempre dei valor ao mesmo... =E9 um banco que >est=E1 crescendo... e tem uma velocidade excepcional] >- Novo design OO. [obrigat=F3ria, pois php5 vem com um suporte melhorado= ] >- Editor WYSIWYG pr=F3prio. [ideia interessante, x=F4 gambiarras, podemo= s >fazer um editor usando o poder do DOM e salvando em css] >- Forma mais inteligente de ser utilizado no site.[sim =E9 interessante >ser estudada uma formula para evitar as in=FAmeras requisi=E7=F5es ao >servidor, problema no qual iria ocorrer usando da forma como est=E1... >SSI, apesar de ser bastante pr=E1tico] > >Gostaria de acrescentar algumas ideias... >- Relacionado aos t=F3picos "PHP5 only" e "No design OO", poderiamos >remodelar todo o projeto MUSPA no padr=E3o UML, bibliografia na qual >poderia servir como base seria... um livro... chamado "Building Web >Applications with UML"/obs.: tem em port este livro em bibliotecas que >eu n=E3o tenho acesso, site "http://www.uml.org/". >Outra coisa seria... tentar aplicar tbm.. Design patterns, isso estas >coisinhas ajudariam a tornar o projeto comum graur maior de qualidade. > >por hora =E9 s=F3... tendo ideias vc sabe que eu falo... eu gostaria de >estar + ativo no projeto... por=E9m, como ainda n=E3o est=E1 sendo poss=ED= vel >vou ajudando pelo menos nas ideias. > >outra coisa.... vou falar novamente... quero fazer umas blusas para >mim bordadas... tanto de gnu/linux como MUSPA / PHP5 vs JAVA POO, se >tiver interesse me avise para pensarmos juntos se n=E3o, farei da forma >como quero e pronto. > >abra=E7os!! > > >------------------------------------------------------- >This SF.Net email is sponsored by BEA Weblogic Workshop >FREE Java Enterprise J2EE developer tools! >Get your free copy of BEA WebLogic Workshop 8.1 today. >http://ads.osdn.com/?ad_idP47&alloc_id=10808&op=3Dclick >_______________________________________________ >Muspa-devel mailing list >Mus...@li... >https://lists.sourceforge.net/lists/listinfo/muspa-devel > > =20 > |
From: Edmilson F. <psy...@gm...> - 2004-09-08 02:23:22
|
- PHP5 only [perfeito, no comments] - Usar template engine pr=F3pria, baseada em XML ;) [melhor dessa forma..., principalmente se esta engine for + r=E1pida que a pattemplate] - N=E3o usar XSLT [s=F3 quem pode responder melhor sobre este assunto =E9 voc=EA, ent=E3o... vai ser assim =3DD] - Usar SQLite. [perfeito, sempre dei valor ao mesmo... =E9 um banco que est=E1 crescendo... e tem uma velocidade excepcional] - Novo design OO. [obrigat=F3ria, pois php5 vem com um suporte melhorado] - Editor WYSIWYG pr=F3prio. [ideia interessante, x=F4 gambiarras, podemos fazer um editor usando o poder do DOM e salvando em css] - Forma mais inteligente de ser utilizado no site.[sim =E9 interessante ser estudada uma formula para evitar as in=FAmeras requisi=E7=F5es ao servidor, problema no qual iria ocorrer usando da forma como est=E1... SSI, apesar de ser bastante pr=E1tico] Gostaria de acrescentar algumas ideias... - Relacionado aos t=F3picos "PHP5 only" e "No design OO", poderiamos remodelar todo o projeto MUSPA no padr=E3o UML, bibliografia na qual poderia servir como base seria... um livro... chamado "Building Web Applications with UML"/obs.: tem em port este livro em bibliotecas que eu n=E3o tenho acesso, site "http://www.uml.org/". Outra coisa seria... tentar aplicar tbm.. Design patterns, isso estas coisinhas ajudariam a tornar o projeto comum graur maior de qualidade. por hora =E9 s=F3... tendo ideias vc sabe que eu falo... eu gostaria de estar + ativo no projeto... por=E9m, como ainda n=E3o est=E1 sendo poss=EDv= el vou ajudando pelo menos nas ideias. outra coisa.... vou falar novamente... quero fazer umas blusas para mim bordadas... tanto de gnu/linux como MUSPA / PHP5 vs JAVA POO, se tiver interesse me avise para pensarmos juntos se n=E3o, farei da forma como quero e pronto. abra=E7os!! |
From: Hugo P. L. <hu...@bo...> - 2004-09-06 04:03:14
|
Ae.... n=E3o sei quando vou come=E7ar o desenvolvimento do MUSPA2... mas=20 tenho algumas coisas em memte: - PHP5 only - Usar tempalte engine pr=F3pria, baseada em XML ;) - N=E3o usar XSLT - Usar SQLite. - Novo design OO. - Editor WYSIWYG pr=F3prio. - Forma mais inteligente de ser utilizado no site. Usar apenas PHP5, pq programar em PHP5 =E9 mais divertido =3D] Usar template engine pr=F3pria pq eu fiz uma aqui =3DP A op=E7=E3o de n=E3o usar XSLT =E9 pq acho um peso desnecessario j=E1 que= acho que=20 um XHTML limpo tableless com CSS viajante da conta. Usar SQLite pelas grandes vantagens do SQLite, n=E3o depender de um=20 servidor de banco de dados, velocidade, SQLite tem coisas legais do SQL=20 padr=E3o que o MySQL (pelo menso vers=E3o 3.23) n=E3o suporta, TRANSACTIO= NS,=20 TRIGGERS, VIEW's, etc... O design OO do MUSPA atual n=E3o me agrada mais.... manter um m=F3dulo co= m=20 1500 linhas como o de not=EDcias as vezes =E9 meio chato.... principalme= nte=20 se seu editor n=E3o tiver meios de ir direto para o m=E9todo desejado....= =20 com o poder OO do PHP5 pretendo conseguir uma forma mais inteligente de=20 organizar o design OO do MUSPA. Um editor WYSIWYG pr=F3prio seria legal... evitaria as atuais gambiarras=20 feitas atualmente para utilizar o HTMLAREA3.0, e o editor poderia ser=20 exatamente como quisermos! A forma que o MUSPA usa para se integrar ao site n=E3o =E9 legal... a ide= ia=20 de usar SSI n=E3o =E9 muito boa.... pois se uma p=E1gina usar mais de um=20 m=F3dulo ela ter=E1 mais de um SSI, isso significa que para ver uma =FAni= ca=20 p=E1gina, carregamos o PHP 2x, fazemos 2 conex=F5es com o MySQL, etc....=20 para ver uma =FAnica p=E1gina carregamos o servidor como se estivessemos=20 vendo duas.... Al=E9m do que a forma atual para alguns m=F3dulos esta=20 confusa em com poucas op=E7=F5es.... fazendo com que seja impossivel algu= em=20 que n=E3o saiba ou saiba pouco sobre PHP instalar o MUSPA. =E9 isso.... Psy, comenta algo ai, fala sobre o que voc=EA concorda ou=20 discorda, etc... Ainda n=E3o sei quando vou come=E7ar isso.... mas pretendo come=E7ar.... = =3D] --=20 Hugo P.L. "Precisamos de mais g=EAnios humildes no mundo, hoje somos poucos!" |
From: Hugo P. L. <hu...@us...> - 2004-09-06 00:51:43
|
Update of /cvsroot/muspa/muspa/modules/enquete/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9516 Modified Files: formulario.htm Log Message: Módulo da enquete, agora funcional. Index: formulario.htm =================================================================== RCS file: /cvsroot/muspa/muspa/modules/enquete/templates/formulario.htm,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** formulario.htm 24 Feb 2004 03:39:59 -0000 1.2 --- formulario.htm 6 Sep 2004 00:51:30 -0000 1.3 *************** *** 46,50 **** <tr> <td colspan="2"> ! <input type="checkbox" class="checkbox" name="visible" id="visible" value="1" {VISIBLE} /> <label for="visible">Enquete Visível:</label> <img src="img/ic_help.gif" width="11" height="11" border="0" alt="" onmouseover="DisplayTip('Deixe esta opção marcada para a enquete aparecer no site. <br />Se esta opção estiver desmarcada esta enquete só aparecerá no site quando a enquete anterior acabar.');" onmouseout="HideTip();" /> --- 46,50 ---- <tr> <td colspan="2"> ! <input type="checkbox" class="checkbox" name="visible" id="visible" value="Y" {VISIBLE} /> <label for="visible">Enquete Visível:</label> <img src="img/ic_help.gif" width="11" height="11" border="0" alt="" onmouseover="DisplayTip('Deixe esta opção marcada para a enquete aparecer no site. <br />Se esta opção estiver desmarcada esta enquete só aparecerá no site quando a enquete anterior acabar.');" onmouseout="HideTip();" /> |
From: Hugo P. L. <hu...@us...> - 2004-09-06 00:46:48
|
Update of /cvsroot/muspa/muspa/modules/enquete In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8737 Modified Files: enquete.php Added Files: enquete_conf.php index.php Log Message: Módulo da enquete, agora funcional. Index: enquete.php =================================================================== RCS file: /cvsroot/muspa/muspa/modules/enquete/enquete.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** enquete.php 24 Apr 2004 23:23:47 -0000 1.3 --- enquete.php 6 Sep 2004 00:46:38 -0000 1.4 *************** *** 30,91 **** var $restriction; - /** - * Nome do módulo - */ - function moduleName() - { - return "Enquete"; - } - - /** - * Descrição do módulo - */ - function moduleDescription() - { - return "Gerênciador de enquetes."; - } - /** - * Meu lindo nome. - */ - function author() - { - return "Hugo P.L."; - } - - /** - * Versão do módulo - */ - function version() - { - return "0.5"; - } - - /** - * Lista de submódulos - */ - function subModules() - { - return array( - array( - "nome" => "Listar", - "descricao" => "Lista as enquetes", - "link" => "?m=enquete&action=listar", - "privs" => PRIV_NORMAL - ), - array( - "nome" => "Cadastrar", - "descricao" => "Cadastra uma enquete", - "link" => "?m=enquete&action=showcadastro", - "privs" => PRIV_NORMAL - ), - array( - "nome" => "Config Seções", - "descricao" => "Configura as seções de enquete.", - "link" => "?m=enquete&action=showconfigsecao", - "privs" => PRIV_ADMIN - ) - ); - } - function run() { --- 30,33 ---- *************** *** 135,139 **** array('respostas', 'respostas', FRM_OBRIGATORIO), array('dataend', 'data do término', FRM_DATA | FRM_OPCIONAL), ! array('visible', 'enquete visível', FRM_OPCIONAL, "/^1$/") ); } --- 77,81 ---- array('respostas', 'respostas', FRM_OBRIGATORIO), array('dataend', 'data do término', FRM_DATA | FRM_OPCIONAL), ! array('visible', 'enquete visível', FRM_OPCIONAL, "/^Y$/") ); } *************** *** 147,165 **** function apagarEnquete($id, $multipleids = false) { ! $where = ""; if ($multipleids) ! $where = " IN (".$id.") "; else $where = "= ".((int)$id)." "; // Funciona apenas para mysql 4.0.0 ! ! $this->db->query("DELETE ".PRE_TABLE."enquete_enquetes FROM " ! .PRE_TABLE."enquete_enquetes E, " ! .PRE_TABLE."enquete_secoes S " ! ." WHERE E.id ".$where." AND " ! ." E.secao = S.id AND ".$this->restriction, __FILE__, __LINE__); // Apaga todas as respostas da enquete ! $this->db->query("DELETE FROM ".PRE_TABLE."enquete_respostas WHERE " ! ." enquete ".$where, __FILE__, __LINE__); } --- 89,109 ---- function apagarEnquete($id, $multipleids = false) { ! $where = ''; if ($multipleids) ! $where = ' IN ('.$id.') '; else $where = "= ".((int)$id)." "; // Funciona apenas para mysql 4.0.0 ! ! $this->db->query('DELETE '.PRE_TABLE.'enquete_enquetes FROM ' ! .PRE_TABLE.'enquete_enquetes E, ' ! .PRE_TABLE.'enquete_secoes S ' ! .' WHERE E.id '.$where.' AND ' ! .' E.secao = S.id AND '.$this->restriction, __FILE__, __LINE__); // Apaga todas as respostas da enquete ! $this->db->query('DELETE FROM '.PRE_TABLE.'enquete_respostas WHERE ' ! .' enquete '.$where, __FILE__, __LINE__); ! // Apaga a lista de IP's ! $this->db->query('DELETE FROM '.PRE_TABLE.'enquete_ips WHERE enquete '.$where); } *************** *** 181,199 **** { $ids = implode(', ', $aIds); ! $query = ""; switch ($_GET['subaction']) { case 'show': ! $query = "UPDATE ".PRE_TABLE."enquete_enquetes E, " ! .PRE_TABLE."enquete_secoes S SET " ! ." E.visible='Y' WHERE E.id IN (".$ids.") AND " ! ." E.secao = S.id AND ".$this->restriction; break; case 'hidden': ! $query = "UPDATE ".PRE_TABLE."enquete_enquetes E, " ! .PRE_TABLE."enquete_secoes S SET " ! ." E.visible='N' WHERE E.id IN (".$ids.") AND " ! ." E.secao = S.id AND ".$this->restriction; break; case 'del': --- 125,143 ---- { $ids = implode(', ', $aIds); ! $query = ''; switch ($_GET['subaction']) { case 'show': ! $query = 'UPDATE '.PRE_TABLE.'enquete_enquetes E, ' ! .PRE_TABLE.'enquete_secoes S SET ' ! .' E.visible="Y" WHERE E.id IN ('.$ids.') AND ' ! .' E.secao = S.id AND '.$this->restriction; break; case 'hidden': ! $query = 'UPDATE '.PRE_TABLE.'enquete_enquetes E, ' ! .PRE_TABLE.'enquete_secoes S SET ' ! .' E.visible="N" WHERE E.id IN ('.$ids.') AND ' ! .' E.secao = S.id AND '.$this->restriction; break; case 'del': *************** *** 203,207 **** if ($query) $this->db->query($query, __FILE__, __LINE__); ! header("Location: ?m=enquete&action=listar"); exit; } --- 147,151 ---- if ($query) $this->db->query($query, __FILE__, __LINE__); ! header('Location: ?m=enquete&action=listar'); exit; } *************** *** 210,221 **** ! $this->setCaption("Listando enquete(s)"); $this->tmpl->readTemplatesFromFile('modules/enquete/templates/listar.htm'); // Paginação // Conta o total de enquetes para fazer a paginação ! $this->db->query("SELECT count(E.id) " ! ." FROM ".PRE_TABLE."enquete_enquetes E, ".PRE_TABLE."enquete_secoes S" ! ." WHERE ".$this->restriction." AND E.secao = S.id" ,__FILE__, __LINE__); $total = (int) $this->db->result(0, 0); --- 154,165 ---- ! $this->setCaption('Listando enquete(s)'); $this->tmpl->readTemplatesFromFile('modules/enquete/templates/listar.htm'); // Paginação // Conta o total de enquetes para fazer a paginação ! $this->db->query('SELECT count(E.id) ' ! .' FROM '.PRE_TABLE.'enquete_enquetes E, '.PRE_TABLE.'enquete_secoes S' ! .' WHERE '.$this->restriction.' AND E.secao = S.id' ,__FILE__, __LINE__); $total = (int) $this->db->result(0, 0); *************** *** 240,256 **** '?m=enquete&action=listar&page='.($page+1)); } ! $this->tmpl->addVar('lista', 'PAGE', $page."/".ceil($total/ENQUETE_PER_PAGE) ); // Pega todas as enquetes que o usuário pode manusear ! $rResult = $this->db->query("SELECT E.id, E.pergunta, S.nome AS secao, " ! ." E.visible," ! ." DATE_FORMAT(E.datastart, '".SQL_DATETIMEFORMAT."') AS inicio," ! ." DATE_FORMAT(E.dataend, '".SQL_DATETIMEFORMAT."') AS fim" ! ." FROM ".PRE_TABLE."enquete_enquetes E, ".PRE_TABLE."enquete_secoes S" ! ." WHERE E.secao = S.id AND ".$this->restriction ! ." ORDER BY E.datastart DESC" ! ." LIMIT ".(($page-1)*ENQUETE_PER_PAGE).", ".ENQUETE_PER_PAGE ,__FILE__, __LINE__); if (!$this->db->numRows()) --- 184,200 ---- '?m=enquete&action=listar&page='.($page+1)); } ! $this->tmpl->addVar('lista', 'PAGE', $page.'/'.ceil($total/ENQUETE_PER_PAGE) ); // Pega todas as enquetes que o usuário pode manusear ! $rResult = $this->db->query('SELECT E.id, E.pergunta, S.nome AS secao, ' ! .' E.visible,' ! .' DATE_FORMAT(E.datastart, "'.SQL_DATETIMEFORMAT.'") AS inicio,' ! .' DATE_FORMAT(E.dataend, "'.SQL_DATETIMEFORMAT.'") AS fim' ! .' FROM '.PRE_TABLE.'enquete_enquetes E, '.PRE_TABLE.'enquete_secoes S' ! .' WHERE E.secao = S.id AND '.$this->restriction ! .' ORDER BY E.datastart DESC' ! .' LIMIT '.(($page-1)*ENQUETE_PER_PAGE).", ".ENQUETE_PER_PAGE ,__FILE__, __LINE__); if (!$this->db->numRows()) *************** *** 358,373 **** if ($res === true) // Tudo Ok, cadastre! { ! $dataend = isset($_POST['sql_dataend']) ? "'".$_POST['sql_dataend']."'" ! : 'NULL'; // Cadastra a pergunta ! $this->db->query("INSERT INTO ".PRE_TABLE."enquete_enquetes " ! ."(datastart, dataend, user, visible, secao, pergunta) VALUES (" ! ."NOW(), " ! .$dataend.", " ! .$this->aUser['id'].", " ! .$_POST['visible'].", " ! .$_POST['secao'].", " ! ."'".$this->db->escapeHTMLString($_POST['pergunta'])."'" ! .");", __FILE__, __LINE__); // Cadastra as respostas $enqueteid = $this->db->insertedId(); --- 302,317 ---- if ($res === true) // Tudo Ok, cadastre! { ! $dataend = isset($_POST['sql_dataend']) ? "'".$_POST['sql_dataend']."'" : 'NULL'; ! $visible = isset($_POST['visible']) ? ($_POST['visible'] == 'Y' ? 'Y' : 'N') : 'N'; // Cadastra a pergunta ! $this->db->query('INSERT INTO '.PRE_TABLE.'enquete_enquetes ' ! .'(datastart, dataend, user, visible, secao, pergunta) VALUES (' ! .'NOW(), ' ! .$dataend.', ' ! .$this->aUser['id'].', ' ! .'"'.$visible.'", ' ! .$_POST['secao'].', ' ! .'"'.$this->db->escapeHTMLString($_POST['pergunta']).'"' ! .');', __FILE__, __LINE__); // Cadastra as respostas $enqueteid = $this->db->insertedId(); --- NEW FILE: enquete_conf.php --- <?php /******************************************************************************* * MUSPA * * Copyright (C) 2004 MUSPA Project * * Este programa é software livre; você pode redistribuí-lo e/ou modificá-lo * sob os termos da Licença Pública Geral GNU conforme publicada pela Free * Software Foundation; tanto a versão 2 da Licença, como (a seu critério) * qualquer versão posterior. * * Este programa é distribuído na expectativa de que seja útil, porém, SEM * NENHUMA GARANTIA; nem mesmo a garantia implícita de COMERCIABILIDADE OU * ADEQUAÇÃO A UMA FINALIDADE ESPECÍFICA. Consulte a Licença Pública Geral do * GNU para mais detalhes. * * Você deve ter recebido uma cópia da Licença Pública Geral do GNU junto com * este programa; se não, escreva para a Free Software Foundation, Inc., no * endereço 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. * *******************************************************************************/ class Enquete_conf extends Conf { /** * Nome do módulo */ function moduleName() { return "Enquete"; } /** * Descrição do módulo */ function moduleDescription() { return "Gerênciador de enquetes."; } /** * Meu lindo nome. */ function author() { return "Hugo P.L."; } /** * Versão do módulo */ function version() { return "0.5"; } /** * Lista de submódulos */ function subModules() { return array( array( "nome" => "Listar", "descricao" => "Lista as enquetes", "link" => "?m=enquete&action=listar", "privs" => PRIV_NORMAL ), array( "nome" => "Cadastrar", "descricao" => "Cadastra uma enquete", "link" => "?m=enquete&action=showcadastro", "privs" => PRIV_NORMAL ), /* array( "nome" => "Config Seções", "descricao" => "Configura as seções de enquete.", "link" => "?m=enquete&action=showconfigsecao", "privs" => PRIV_ADMIN )*/ ); } }; ?> --- NEW FILE: index.php --- <?php /** * Mostra enquete */ require "../../config.php"; require "../../include/db.php"; error_reporting(E_ALL); $secao = isset($_GET['secao']) ? (int) $_GET['secao'] : 0; if (!$secao) die('Erro: Você precisa especificar a seção da enquete.'); $db = new db(DB_HOST, DB_USER, DB_PWD, DB_DB); switch(isset($_GET['action']) ? $_GET['action'] : '') { case 'vote': Vote($db, $secao); default: Display($db, $secao); } /** * faz a votação e retorna um JS para mostrar o resultado... */ function Vote(&$db, $secao) { header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header('Content-type: text/javascript'); $parcial = isset($_GET['parcial']) ? $_GET['parcial'] : 0; // Arruma as variaveis de entrada $id = isset($_GET['enquete']) ? (int) $_GET['enquete'] : 0; if (!$id) die('alert("Enquete desconhecida");'); if (!$parcial) { $voto = isset($_GET['voto']) ? (int) $_GET['voto'] : 0; if (!$voto) die('alert("Você não pode votar em branco!");'); $ip = ip2long($_SERVER['REMOTE_ADDR']); if ($ip == -1 || !$ip) die('alert("Seu IP é inválido.");'); $res = $db->query('INSERT INTO '.PRE_TABLE.'enquete_ips VALUES('.$ip.', '.$id.')', __FILE__, __LINE__, true); if (!$res) { echo <<<EOT var oEnquete = document.getElementById("enquete"); oEnquete.firstChild.firstChild.data = "Aviso"; oEnquete.childNodes[1].firstChild.style.display = 'none'; // some o <form> document.getElementById("enquete-mensagem").style.display = 'block'; EOT; exit; } //!!! BUG!!! // Ainda é possivel votar em uma enquete encerrada. $db->query('UPDATE '.PRE_TABLE.'enquete_respostas SET count=count+1 WHERE id='.$voto.' AND enquete='.$id); } // Pega o total de votos $db->query('SELECT SUM(count) FROM '.PRE_TABLE.'enquete_respostas WHERE enquete='.$id); $total = $db->result(0); // Pega todos os votos $aPerc = array(); $aResp = array(); $db->query('SELECT `count`, resposta FROM '.PRE_TABLE.'enquete_respostas WHERE enquete='.$id); while($row = $db->fetchAssoc()) { $aPerc[] = round(100.0*$row['count']/$total, 1); $aResp[] = $row['resposta']; } echo <<<EOT document.getElementById("enquete").firstChild.firstChild.data = "Parciais"; document.getElementById("enquete-mensagem").style.display = "none"; // Pega o form; var oRespostas = document.getElementById("enquete-respostas"); oRespostas.parentNode.style.display = "block"; oRespostas.innerHTML = ' EOT; $n = count($aPerc); for($i = 0; $i < $n; $i++) { echo '<div class="resposta">'.addcslashes($aResp[$i], "\"'").'<br />', '<img src=\"imagens/bar_left.gif\" width=\"7\" height=\"14\" /><img src=\"imagens/bar_center.gif\" width=\"'.((int)$aPerc[$i]).'\" height=\"14\" /><img src=\"imagens/bar_right.gif\" width=\"7\" height=\"14\" /> '.$aPerc[$i].'%</div>'; } echo "';\n"; // Código em JS para apagar todos os inputs echo 'document.getElementById("enquete-botoes").innerHTML = "";'; exit; } /** * Mostra a enquete */ function Display(&$db, $secao) { $db->query('SELECT id, pergunta, IF(dataend, dataend > NOW(), 1) AS ativa FROM '.PRE_TABLE.'enquete_enquetes WHERE visible = "Y" AND secao="'.$secao.'" ORDER BY datastart DESC LIMIT 1'); if (!$db->numRows()) die('Não existem enquetes cadastradas.'); $row = $db->fetchAssoc(); $pergunta = $row['pergunta']; $id = $row['id']; $ativa = $row['ativa']; $res = $db->query('SELECT id, count, resposta FROM '.PRE_TABLE.'enquete_respostas WHERE enquete='.$id); $respostas = $botoes = ''; // Enquete ativa! if ($ativa) { while($row = $db->fetchAssoc($res)) $respostas .= '<div class="resposta"><input class="radio" type="radio" name="resposta" value="'.$row['id'].'">'.$row['resposta'].'</div>'; $botoes = '<input type="button" value="Votar" onclick="Vote(this);"> ' .'<input type="button" value="Parcial" onclick="Parcial();">'; } else // Enquete inativa =( { // Pega o total de votos $db->query('SELECT SUM(count) FROM '.PRE_TABLE.'enquete_respostas WHERE enquete='.$id); $total = $db->result(0); while($row = $db->fetchAssoc($res)) $respostas .= '<div class="resposta">'.$row['resposta'].'<br>' .'<img src="imagens/bar_left.gif" width="7" height="14" /><img src="imagens/bar_center.gif" width="'.$row['count'].'" height="14" /><img src="imagens/bar_right.gif" width="7" height="14" /> ' .round(100.0*$row['count']/$total, 2).'%</div>'; } echo <<<EOT <div id="enquete"><h2>Enquete</h2><div class="body"><form method="post" action="" onsubmit="return false;"> <div id="enquete-pergunta">$pergunta</div> <div id="enquete-respostas">$respostas</div> <div id="enquete-botoes">$botoes</div> </form> <div id="enquete-mensagem" style="display: none;">Você já votou nesta enquete. Veja os <a href="javascript:Parcial()">resultados parciais</a>.</div> </div> <div class="footer"><p></p></div> </div> EOT; ?> <span id="enquete-script"></span> <script type="text/javascript"> <!-- function Vote(btn) { // Verifica se o cara votou em algo var aElem = btn.form.elements; var ok = false; var value = 0; for(var i = 0; i < aElem.length; i++) { if (aElem[i].checked) { ok = true; value = aElem[i].value; break; } } if (!ok) { window.alert("Você precisa escolher uma opção."); return; } var oContainer = document.getElementById("enquete-script"); oContainer.innerHTML = ''; oScript = document.createElement("script"); oScript.src = "admin/modules/enquete/?secao=<?=$secao?>&action=vote&enquete=<?=$id?>&voto="+value; oContainer.appendChild(oScript); } function Parcial() { var oContainer = document.getElementById("enquete-script"); oContainer.innerHTML = ''; oScript = document.createElement("script"); oScript.src = "admin/modules/enquete/?secao=<?=$secao?>&action=vote&enquete=<?=$id?>&parcial=1"; oContainer.appendChild(oScript); } // --> </script> <?php } ?> |
From: Hugo P. L. <hu...@us...> - 2004-09-04 19:47:17
|
Update of /cvsroot/muspa/muspa In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8447 Modified Files: muspa.sql Log Message: Adicionado campos no modulo noticias Index: muspa.sql =================================================================== RCS file: /cvsroot/muspa/muspa/muspa.sql,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** muspa.sql 19 Jun 2004 21:13:14 -0000 1.6 --- muspa.sql 4 Sep 2004 19:47:08 -0000 1.7 *************** *** 117,122 **** --- 117,124 ---- `olho` varchar(128) default NULL, `titulo` varchar(128) NOT NULL default '', + `titulocor` int default NULL, `fonte` varchar(128) default NULL, `minitexto` text NOT NULL, + `chamada` varchar(48) default NULL, `capaimg` int(10) unsigned default NULL, `conteudo` text NOT NULL, *************** *** 124,127 **** --- 126,130 ---- `fixed` enum('Y','N') NOT NULL default 'N', `visible` enum('Y','N') NOT NULL default 'Y', + `newsletter` enum('Y','N') NOT NULL default 'N', PRIMARY KEY (`id`), KEY `secao` (`secao`), |
From: Hugo P. L. <hu...@us...> - 2004-09-04 19:42:59
|
Update of /cvsroot/muspa/muspa/modules/noticia/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7530 Modified Files: addimage.htm formmodelo.htm formulario.htm Log Message: adições para o suporte ao modulo newsletter e para novos campos adicionados no modulo noticia Index: formulario.htm =================================================================== RCS file: /cvsroot/muspa/muspa/modules/noticia/templates/formulario.htm,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** formulario.htm 8 May 2004 03:49:55 -0000 1.4 --- formulario.htm 4 Sep 2004 19:42:51 -0000 1.5 *************** *** 62,65 **** --- 62,78 ---- } + /** + * Muda a cor do titulo + */ + function ChangeTitleColor( obj ) + { + Dialog("editors/htmlarea/popups/select_color.html", function(color) { + if (color) + { + obj.style.borderRight = "15px solid #"+color; + document.getElementById("titulocor").value = color; + } + }, null); + } // --> </script> *************** *** 91,95 **** <tr> <td>Olho:</td> ! <td><input type="text" name="olho" value="{OLHO}" size="40" {OLHOERR} /> <img src="img/ic_help.gif" width="11" height="11" border="0" alt="" onmouseover="DisplayTip('O olho da notícia.');" onmouseout="HideTip();" /> </td> --- 104,108 ---- <tr> <td>Olho:</td> ! <td><input type="text" name="olho" id="olho" value="{OLHO}" size="40" {OLHOERR} /> <img src="img/ic_help.gif" width="11" height="11" border="0" alt="" onmouseover="DisplayTip('O olho da notícia.');" onmouseout="HideTip();" /> </td> *************** *** 97,101 **** <tr> <td>Título:</td> ! <td><input type="text" name="titulo" value="{TITULO}" size="40" {TITULOERR} /> <img src="img/ic_help.gif" width="11" height="11" border="0" alt="" onmouseover="DisplayTip('O título da notícia.');" onmouseout="HideTip();" /> <img src="img/ic_required.gif" width="11" height="11" border="0" alt="" /> --- 110,116 ---- <tr> <td>Título:</td> ! <td><input type="text" name="titulo" id="titulo" value="{TITULO}" size="40" {TITULOERR} /> ! <input type="text" name="titulocor" id="titulocor" value="{TITULOCOR}" style="display: none" /> ! <input type="button" class="button" id="titulocorbutton" value="Cor do titulo" onclick="ChangeTitleColor(this);" /> <img src="img/ic_help.gif" width="11" height="11" border="0" alt="" onmouseover="DisplayTip('O título da notícia.');" onmouseout="HideTip();" /> <img src="img/ic_required.gif" width="11" height="11" border="0" alt="" /> *************** *** 112,115 **** --- 127,137 ---- <td><textarea name="minitexto" cols="40" rows="5" {MINITEXTOERR}>{MINITEXTO}</textarea> <img src="img/ic_help.gif" width="11" height="11" border="0" alt="" onmouseover="DisplayTip('Um <b>pequeno</b> texto introdutório para a notícia usado em alguns modelos.<br />O mini texto, assim como o título da notícia também é usado na busca, por isso é sempre aconselhavél preenchelo.');" onmouseout="HideTip();" /> + <!-- <img src="img/ic_required.gif" width="11" height="11" border="0" alt="" />--> + </td> + </tr> + <tr> + <td>Chamada:</td> + <td><input type="text" name="chamada" value="{CHAMADA}" size="30" {CHAMADAERR} /> + <img src="img/ic_help.gif" width="11" height="11" border="0" alt="" onmouseover="DisplayTip('Texto usado no link para ver a notícia completa.');" onmouseout="HideTip();" /> <img src="img/ic_required.gif" width="11" height="11" border="0" alt="" /> </td> *************** *** 136,140 **** <tr> <td colspan="2"> ! <input type="checkbox" class="checkbox" name="fixed" id="fixed" value="1" {FIXED} /> <label for="fixed"> Fixar notícia no topo</label> <img src="img/ic_help.gif" width="11" height="11" border="0" alt="" onmouseover="DisplayTip('Se marcado, a notícia ficará em primeiro na página até que esta opção seja desmarcada.');" onmouseout="HideTip();" /> --- 158,162 ---- <tr> <td colspan="2"> ! <input type="checkbox" class="checkbox" name="fixed" id="fixed" value="Y" {FIXED} /> <label for="fixed"> Fixar notícia no topo</label> <img src="img/ic_help.gif" width="11" height="11" border="0" alt="" onmouseover="DisplayTip('Se marcado, a notícia ficará em primeiro na página até que esta opção seja desmarcada.');" onmouseout="HideTip();" /> *************** *** 143,147 **** <tr> <td colspan="2"> ! <input type="checkbox" class="checkbox" name="visible" id="visible" value="1" {VISIBLE} /> <label for="visible"> Deixar notícia visível</label> <img src="img/ic_help.gif" width="11" height="11" border="0" alt="" onmouseover="DisplayTip('Se <b>desmarcado</b>, a notícia ficará invisível e <b>NÃO</b> apararecerá no site.');" onmouseout="HideTip();" /> --- 165,169 ---- <tr> <td colspan="2"> ! <input type="checkbox" class="checkbox" name="visible" id="visible" value="Y" {VISIBLE} /> <label for="visible"> Deixar notícia visível</label> <img src="img/ic_help.gif" width="11" height="11" border="0" alt="" onmouseover="DisplayTip('Se <b>desmarcado</b>, a notícia ficará invisível e <b>NÃO</b> apararecerá no site.');" onmouseout="HideTip();" /> *************** *** 149,152 **** --- 171,181 ---- </tr> <tr> + <td colspan="2"> + <input type="checkbox" class="checkbox" name="newsletter" id="newsletter" value="Y" {NEWSLETTER} /> + <label for="newsletter"> Disponibilizar para newsletter</label> + <img src="img/ic_help.gif" width="11" height="11" border="0" alt="" onmouseover="DisplayTip('Se <b>marcado</b>, a notícia poderá ser utilizada na newsletter.');" onmouseout="HideTip();" /> + </td> + </tr> + <tr> <td colspan="2">Conteúdo:</td> </tr> *************** *** 170,174 **** /** Init Scripts */ ChangeSecao( document.getElementById("secao") ); ! --- 199,205 ---- /** Init Scripts */ ChangeSecao( document.getElementById("secao") ); ! if ("{TITULOCOR}") ! document.getElementById("titulocorbutton").style.borderRight = "15px solid {TITULOCOR}"; ! Index: addimage.htm =================================================================== RCS file: /cvsroot/muspa/muspa/modules/noticia/templates/addimage.htm,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** addimage.htm 11 May 2004 03:13:13 -0000 1.4 --- addimage.htm 4 Sep 2004 19:42:51 -0000 1.5 *************** *** 74,77 **** --- 74,78 ---- var param = new Object(); param["legenda"] = document.getElementById("legenda").value; + param["credito"] = document.getElementById("credito").value; param["alinhamento"] = document.getElementById("alinhamento").value; param["borda"] = document.getElementById("borda").value; *************** *** 103,107 **** </head> ! <body onload="Init()" onunload="Destructor();" class="content" style="margin: 0px;"> <div style="background-color: white;"> --- 104,108 ---- </head> ! <body onload="Init();InitTips();" onunload="Destructor();" class="content" style="margin: 0px;"> <div style="background-color: white;"> *************** *** 138,141 **** --- 139,148 ---- </td> </tr> + <tr> + <td>Crédito:</td> + <td><input type="text" name="credito" id="credito"> + <img src="img/ic_help.gif" width="11" height="11" border="0" alt="" onMouseOver="DisplayTip('Créditos da foto');" onMouseOut="HideTip();"> + </td> + </tr> </table> Index: formmodelo.htm =================================================================== RCS file: /cvsroot/muspa/muspa/modules/noticia/templates/formmodelo.htm,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** formmodelo.htm 5 Jul 2004 04:50:30 -0000 1.4 --- formmodelo.htm 4 Sep 2004 19:42:51 -0000 1.5 *************** *** 43,46 **** --- 43,47 ---- <li>{FONTE} - Fonte da notícia.</li> <li>{MINITEXTO} - Minitexto da notícia.</li> + <li>{CHAMADA} - Chamada da notícia (Leia mais, etc)</li> <li>{CONTEUDO} - Conteúdo.</li> <li>{LINK} - Endereço da página que mostrará o conteúdo da notícia.</li> |
From: Hugo P. L. <hu...@us...> - 2004-09-04 19:41:54
|
Update of /cvsroot/muspa/muspa/modules/noticia In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7285 Added Files: list.php Log Message: script para mostrar lista simples e paginada de noticias. --- NEW FILE: list.php --- <?php /** * Mostra lista de noticias */ require "../../config.php"; require "../../include/db.php"; error_reporting(E_ALL); // Quantidade de noticias por página define('PER_PAGE', 10); $full = isset($_GET['full']) ? (int)$_GET['full'] : 0; $secao = isset($_GET['secao']) ? $_GET['secao'] : 0; $nopage = isset($_GET['nopaging']) ? (int)$_GET['nopaging'] : 0; if (!$secao) die('Seção inválida'); $secao = split(',', $secao); if (count($secao) > 1) $secao = 'IN ('.implode(', ', $secao).')'; else $secao = '="'.$secao[0].'"'; $db = new db(DB_HOST, DB_USER, DB_PWD, DB_DB); if (!$nopage) { // Paginação! $db->query('SELECT count(*) FROM '.PRE_TABLE.'noticia_noticias WHERE secao '.$secao); $total = ceil($db->result(0)/PER_PAGE); $page = isset($_GET['page']) ? (int)$_GET['page'] : 1; if ($page < 1) $page = 1; } else $page = 1; $db->query('SELECT id, olho, titulo, minitexto FROM '.PRE_TABLE.'noticia_noticias WHERE secao '.$secao.' ORDER BY datahora DESC LIMIT '.(($page-1)*PER_PAGE).', '.PER_PAGE); if (!$db->numRows()) echo 'Não existem notícias cadastradas.'; else { $i = 1; while($row = $db->fetchAssoc()) { echo '<p><div class="olho">', $row['olho'], '</div>'; echo '<div><a href="', INSTALL_DIR, '/modules/noticia/?type=content&id=', $row['id'], '" class="titulo2">', $row['titulo'], '</a></div>'; if ($i <= $full) echo $row['minitexto']; echo '</p>'; $i++; } } if (!$nopage && $total > 1) { $prev = $next = ''; if ($page > 1) $prev = '<a href="?page='.($page-1).'"><img src="imagens/seta_esq.gif" width="10" height="9" border="0" alt="Página anterior"></a>'; if ($page < $total) $next = '<a href="?page='.($page+1).'"><img src="imagens/seta_dir.gif" width="10" height="9" border="0" alt="Próxima página"></a>'; echo <<<EOT <p> $prev <strong>página $page</strong> $next </p> EOT; } ?> |
From: Hugo P. L. <hu...@us...> - 2004-09-04 19:40:19
|
Update of /cvsroot/muspa/muspa/modules/noticia In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6808 Modified Files: index.php Log Message: Alguns bugfixes... e um monte de coisa inutil e complicada que adicionei mas ja me arrempendi... só que tenho preguiça de retirar.... Index: index.php =================================================================== RCS file: /cvsroot/muspa/muspa/modules/noticia/index.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** index.php 19 Jun 2004 21:46:24 -0000 1.8 --- index.php 4 Sep 2004 19:40:06 -0000 1.9 *************** *** 50,54 **** if (!isset($_GET['end'])) die('Variável "end" faltando. ' ! .'Você precisa especificar quantas seções serão mostradas.'); $end = (int)$_GET['end']; --- 50,54 ---- if (!isset($_GET['end'])) die('Variável "end" faltando. ' ! .'Você precisa especificar quantas noticias serão mostradas.'); $end = (int)$_GET['end']; *************** *** 58,62 **** // Váriaveis opcionais $start = isset($_GET['start']) ? (int)$_GET['start'] : 0; ! $basedir = isset($_GET['basedir']) ? $_GET['basedir'] : ""; $aRawSecoes = explode(',', $_GET['secao']); --- 58,73 ---- // Váriaveis opcionais $start = isset($_GET['start']) ? (int)$_GET['start'] : 0; ! $basedir = isset($_GET['basedir']) ? $_GET['basedir'] : ''; ! ! // Divisores ! $aDiv = isset($_GET['div']) ? $_GET['div'] : array(); ! $aDivat = isset($_GET['divat']) ? $_GET['divat'] : array(); ! $aDivCond = isset($_GET['divcond']) ? $_GET['divcond'] : array(); ! ! if (!is_array($aDiv) || !is_array($aDivat)) ! die('Você especificou a string do divisor (DIV) mas não especificou quanto devo coloca-la (DIVAT)'); ! if (count($aDiv) != count($aDivat)) ! die('Você precisa especificar as mesmas quantidades de DIV e DIVAT\'s'); ! $ndiv = count($aDiv); $aRawSecoes = explode(',', $_GET['secao']); *************** *** 88,92 **** .' FROM '.PRE_TABLE.'noticia_noticias N, '.PRE_TABLE.'noticia_modelos M ' .' WHERE N.modelo = M.id AND ' ! .' N.secao '.$secao.' GROUP BY N.modelo LIMIT '.$end, __FILE__, __LINE__); if (!$db->numRows()) return; --- 99,103 ---- .' FROM '.PRE_TABLE.'noticia_noticias N, '.PRE_TABLE.'noticia_modelos M ' .' WHERE N.modelo = M.id AND ' ! .' N.secao '.$secao.' GROUP BY N.modelo', __FILE__, __LINE__); if (!$db->numRows()) return; *************** *** 112,116 **** $db->query('SELECT N.id, N.modelo, N.olho, N.titulo, ' ! .' N.fonte, N.minitexto, N.conteudo, N.datahora,' .' I.url AS capaimg, M.html AS html,' .' S.nome AS secao '.$dataQuery --- 123,128 ---- $db->query('SELECT N.id, N.modelo, N.olho, N.titulo, ' ! .' N.fonte, N.minitexto, N.conteudo, N.datahora, N.chamada,' ! .' N.titulocor, ' .' I.url AS capaimg, M.html AS html,' .' S.nome AS secao '.$dataQuery *************** *** 121,135 **** .' WHERE N.secao '.$secao .' ORDER BY N.fixed DESC, N.datahora DESC' ! .' LIMIT '.$end , __FILE__, __LINE__); ! $row = $db->fetchAssoc(); ! $db->reset(); ! while($row = $db->fetchAssoc()) { $modelo = $row['html']; $modelo = str_replace('{OLHO}', $row['olho'], $modelo); ! $modelo = str_replace('{TITULO}', $row['titulo'], $modelo); if (isset($aDataHora[$row['modelo']])) --- 133,154 ---- .' WHERE N.secao '.$secao .' ORDER BY N.fixed DESC, N.datahora DESC' ! .' LIMIT '.$start.', '.$end , __FILE__, __LINE__); + //echo $db->sql; + // $row = $db->fetchAssoc(); + // $db->reset(); ! $i = 0; while($row = $db->fetchAssoc()) { $modelo = $row['html']; $modelo = str_replace('{OLHO}', $row['olho'], $modelo); ! ! if ($row['titulocor']) ! $modelo = str_replace('{TITULO}', '<span style="color: #' ! .sprintf('%06X', $row['titulocor']).'">'.$row['titulo'].'</span>', ! $modelo); ! else ! $modelo = str_replace('{TITULO}', $row['titulo'], $modelo); if (isset($aDataHora[$row['modelo']])) *************** *** 144,147 **** --- 163,167 ---- $modelo = str_replace('{SECAO}', $row['secao'], $modelo); $modelo = str_replace('{FONTE}', $row['fonte'], $modelo); + $modelo = str_replace('{CHAMADA}', $row['chamada'], $modelo); $modelo = str_replace('{MINITEXTO}', $row['minitexto'], $modelo); $modelo = str_replace('{CONTEUDO}', $row['conteudo'], $modelo); *************** *** 150,161 **** $modelo = str_replace('{CAPAIMG}', '<img src="' .$basedir.INSTALL_DIR.'/modules/noticia/imagens/'.$row['capaimg'] ! .'" alt="" />', $modelo); else $modelo = str_replace('{CAPAIMG}', '', $modelo); $modelo = str_replace('{LINK}', $basedir .INSTALL_DIR.'/modules/noticia/?type=content&id='.$row['id'], $modelo); - // echo "<PRE>".(++$i)."</pre>"; echo $modelo; } } --- 170,191 ---- $modelo = str_replace('{CAPAIMG}', '<img src="' .$basedir.INSTALL_DIR.'/modules/noticia/imagens/'.$row['capaimg'] ! .'" alt="" border="0"/>', $modelo); else $modelo = str_replace('{CAPAIMG}', '', $modelo); + $modelo = str_replace('{LINK}', $basedir .INSTALL_DIR.'/modules/noticia/?type=content&id='.$row['id'], $modelo); echo $modelo; + + if ($ndiv) + { + for($k = 0; $k < $ndiv; $k++) + { + if (((bool)($i % $aDivat[$k])) == (bool)$aDivCond[$k]) + echo $aDiv[$k]; + } + $i++; + } } } |
From: Hugo P. L. <hu...@us...> - 2004-09-04 19:39:08
|
Update of /cvsroot/muspa/muspa/modules/noticia In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6652 Modified Files: noticia.php Log Message: muitos bugfixes e suporte ao modulo newsletter. Index: noticia.php =================================================================== RCS file: /cvsroot/muspa/muspa/modules/noticia/noticia.php,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** noticia.php 10 Jul 2004 08:40:15 -0000 1.16 --- noticia.php 4 Sep 2004 19:38:58 -0000 1.17 *************** *** 31,35 **** define('NOTICIA_UPLOADDIR', 'modules/noticia/imagens/'); - /** * Modulo Noticia --- 31,34 ---- *************** *** 58,67 **** array('olho', 'olho', FRM_OPCIONAL), array('titulo', 'título', FRM_OBRIGATORIO), array('fonte', 'fonte', FRM_OPCIONAL), ! array('minitexto', 'mini texto', FRM_OBRIGATORIO), array('capaimg', 'imagem da capa', FRM_OPCIONAL), array('datahora', 'data', FRM_DATA | FRM_OBRIGATORIO), ! array('fixed', 'fixar notícia', FRM_OPCIONAL, "/^1$/"), ! array('visible', 'notícia visível', FRM_OPCIONAL, "/^1$/"), array('conteudo', 'conteudo', FRM_OBRIGATORIO), ); --- 57,70 ---- array('olho', 'olho', FRM_OPCIONAL), array('titulo', 'título', FRM_OBRIGATORIO), + array('titulocor', 'cor do título', FRM_OPCIONAL), array('fonte', 'fonte', FRM_OPCIONAL), ! // array('minitexto', 'mini texto', FRM_OBRIGATORIO), ! array('minitexto', 'mini texto', FRM_OPCIONAL), ! array('chamada', 'chamada', FRM_OBRIGATORIO), array('capaimg', 'imagem da capa', FRM_OPCIONAL), array('datahora', 'data', FRM_DATA | FRM_OBRIGATORIO), ! array('fixed', 'fixar notícia', FRM_OPCIONAL, "/^Y$/"), ! array('visible', 'notícia visível', FRM_OPCIONAL, "/^Y$/"), ! array('newsletter', 'disponível para newsletter', FRM_OPCIONAL, "/^Y$/"), array('conteudo', 'conteudo', FRM_OBRIGATORIO), ); *************** *** 94,97 **** --- 97,101 ---- $aParam['datahora'] = date('d\/m\/Y H:i'); $aParam['visible'] = 1; + $aParam['chamada'] = 'Leia mais'; $this->displayForm($aParam); break; *************** *** 349,353 **** { $aInfo = GetImageSize('modules/noticia/imagens/'.$row['url']); ! $aImagens['URL'][] = $row['url'].'|'.$aInfo[0].'|'.$aInfo[1]; } else --- 353,357 ---- { $aInfo = GetImageSize('modules/noticia/imagens/'.$row['url']); ! $aImagens['URL'][] = './modules/noticia/imagens/'.$row['url'].'|'.$aInfo[0].'|'.$aInfo[1]; } else *************** *** 433,486 **** function displayForm( &$aValues ) { - - /// Lista os modelos disponíveis - $this->db->query('SELECT id, nome, html FROM '.PRE_TABLE.'noticia_modelos '); - - // Verifica se existe algum modelo criado [x] - if (!$this->db->numRows()) - SemiFatalError($this->aUser['privs'] == PRIV_ADMIN ? - 'É necessário criar pelo menos um modelo e uma seção, nesta ordem, para poder habilitar o formulário de cadastro de notícias.' : 'Não existem modelos cadastrados, avise ao Administrador.', - $this->aUser['privs'] == PRIV_ADMIN ? '?m=noticia&action=shownovomodelo' : '?m=entrada'); - // Carrega os templates $this->tmpl->readTemplatesFromFile('modules/noticia/templates/formulario.htm'); $this->tmpl->readTemplatesFromFile('sys/templates/editor.htm'); - /** Monta JS Array de todos os Modelos */ - $modelos = "[\n"; - // Monta a array do JavaScript - while ($row = $this->db->fetchAssoc()) - { - if (isset($aValues['modelo'])) - $selected = $aValues['modelo'] ? 'true' : 'false'; - else - $selected = ''; - $modelos .= "\t[ ".$row['id'].", '".$row['nome']."', ".$selected." ],\n"; - } - $modelos = rtrim($modelos, ",\n")."\n]"; - $this->tmpl->addVar('formulario', 'MODELOSARRAY', $modelos); - /** --- **/ - - if (isset($aValues['fixed'])) $aValues['fixed'] = ($aValues['fixed']) ? 'checked="checked"' : ''; if (isset($aValues['visible'])) $aValues['visible'] = ($aValues['visible']) ? 'checked="checked"' : ''; $this->tmpl->addVars('formulario', $aValues); ! /// Lista as seções disponiveis $this->db->query('SELECT id, nome, modelos ' .' FROM '.PRE_TABLE.'noticia_secoes ' .' WHERE INSTR(users, "'.$this->aUser['id'].'")', __FILE__, __LINE__); - // Verifica se existe alguma seção criada [x] - if (!$this->db->numRows()) - SemiFatalError( $this->aUser['privs'] == PRIV_ADMIN ? - 'É necessário que seja criada pelo menos uma seção para habilitar o cadastro de notícias.' : - 'Seu usuário não esta habilitado a cadastrar notícias em nenhuma seção, fale com o administrador.' - , $this->aUser['privs'] == PRIV_ADMIN ? '?m=noticia&action=shownovasecao' : '?m=entrada'); - - // Monta JS Array e patTemplate Var $aSecoes = array(); --- 437,458 ---- function displayForm( &$aValues ) { // Carrega os templates $this->tmpl->readTemplatesFromFile('modules/noticia/templates/formulario.htm'); $this->tmpl->readTemplatesFromFile('sys/templates/editor.htm'); if (isset($aValues['fixed'])) $aValues['fixed'] = ($aValues['fixed']) ? 'checked="checked"' : ''; if (isset($aValues['visible'])) $aValues['visible'] = ($aValues['visible']) ? 'checked="checked"' : ''; + if (isset($aValues['newsletter'])) + $aValues['newsletter'] = ($aValues['newsletter']) ? 'checked="checked"' : ''; $this->tmpl->addVars('formulario', $aValues); ! /// Lista de seções disponiveis $this->db->query('SELECT id, nome, modelos ' .' FROM '.PRE_TABLE.'noticia_secoes ' .' WHERE INSTR(users, "'.$this->aUser['id'].'")', __FILE__, __LINE__); // Monta JS Array e patTemplate Var $aSecoes = array(); *************** *** 502,505 **** --- 474,494 ---- /** --- **/ + + /** Monta JS Array de todos os Modelos */ + $this->db->query('SELECT id, nome, html FROM '.PRE_TABLE.'noticia_modelos '); + $modelos = "[\n"; + // Monta a array do JavaScript + while ($row = $this->db->fetchAssoc()) + { + if (isset($aValues['modelo'])) + $selected = $aValues['modelo'] ? 'true' : 'false'; + else + $selected = ''; + $modelos .= "\t[ ".$row['id'].", '".$row['nome']."', ".$selected." ],\n"; + } + $modelos = rtrim($modelos, ",\n")."\n]"; + $this->tmpl->addVar('formulario', 'MODELOSARRAY', $modelos); + /** --- **/ + /** Adiciona lista de CSS's disponiveis */ $this->db->query('SELECT nome FROM '.PRE_TABLE.'noticia_csss ORDER BY nome'); *************** *** 516,519 **** --- 505,509 ---- /** --- **/ + // Adiciona as imagens que podem ser usadas na Capa $imgid = isset($aValues['capaimg']) ? $aValues['capaimg'] : null; *************** *** 641,646 **** $url = $this->copyImage(TEMPDIR.$basename); // Pega o nome fantasia da imagen ! $pseudoname = str_replace('sess'.session_id().'_', '', ! $basename); // Insere as imagens no DB $this->db->query('INSERT INTO '.PRE_TABLE.'noticia_imagens ' --- 631,635 ---- $url = $this->copyImage(TEMPDIR.$basename); // Pega o nome fantasia da imagen ! $pseudoname = preg_replace('/^sess'.session_id().'_[0-9]+_/', '', $basename); // Insere as imagens no DB $this->db->query('INSERT INTO '.PRE_TABLE.'noticia_imagens ' *************** *** 655,662 **** } // Adiciona a noticia $this->db->query('INSERT INTO '.PRE_TABLE.'noticia_noticias ' ! .'(user, secao, modelo, olho, titulo, fonte, minitexto, ' ! .' capaimg, conteudo, datahora, fixed, visible) VALUES( ' .'"'.$this->aUser['id'].'", ' .'"'.$_POST['secao'].'", ' --- 644,654 ---- } + + $titulocor = $_POST['titulocor'] ? '"'.hexdec($this->db->escapeString($_POST['titulocor'])).'"' : 'NULL'; // Adiciona a noticia $this->db->query('INSERT INTO '.PRE_TABLE.'noticia_noticias ' ! .'(user, secao, modelo, olho, titulo, titulocor, fonte,' ! .'minitexto, chamada,' ! .' capaimg, conteudo, datahora, fixed, visible, newsletter) VALUES( ' .'"'.$this->aUser['id'].'", ' .'"'.$_POST['secao'].'", ' *************** *** 664,674 **** .'"'.$this->db->escapeHTMLString($_POST['olho']).'", ' .'"'.$this->db->escapeHTMLString($_POST['titulo']).'", ' .'"'.$this->db->escapeHTMLString($_POST['fonte']).'", ' .'"'.$this->db->escapeHTMLString($_POST['minitexto']).'", ' .$capaimg.', ' .'"'.$this->db->escapeString($_POST['conteudo'], true).'", ' .'"'.$_POST['sql_datahora'].'", ' ! .'"'.($_POST['fixed'] ? 'Y' : 'N').'", ' ! .'"'.($_POST['visible'] ? 'Y' : 'N').'" ' .');', __FILE__, __LINE__); --- 656,669 ---- .'"'.$this->db->escapeHTMLString($_POST['olho']).'", ' .'"'.$this->db->escapeHTMLString($_POST['titulo']).'", ' + .$titulocor.', ' .'"'.$this->db->escapeHTMLString($_POST['fonte']).'", ' .'"'.$this->db->escapeHTMLString($_POST['minitexto']).'", ' + .'"'.$this->db->escapeHTMLString($_POST['chamada']).'", ' .$capaimg.', ' .'"'.$this->db->escapeString($_POST['conteudo'], true).'", ' .'"'.$_POST['sql_datahora'].'", ' ! .'"'.(isset($_POST['fixed']) ? 'Y' : 'N').'", ' ! .'"'.(isset($_POST['visible']) ? 'Y' : 'N').'", ' ! .'"'.(isset($_POST['newsletter']) ? 'Y' : 'N').'" ' .');', __FILE__, __LINE__); *************** *** 716,726 **** // Pega a noticia do DB... $this->db->query('SELECT N.id, N.secao, ' ! .' N.modelo, N.titulo, N.olho, N.titulo, N.fonte, ' ! .' N.minitexto, N.conteudo, N.fixed, N.visible, N.capaimg, ' .' DATE_FORMAT(N.datahora, "'.SQL_DATETIMEFORMAT.'") AS datahora' .' FROM '.PRE_TABLE.'noticia_noticias N, '.PRE_TABLE.'noticia_secoes S' .' WHERE N.secao = S.id AND '.$this->restriction .' AND N.id = '.$id ! .' ORDER BY N.fixed DESC, N.datahora DESC' .' LIMIT 1' ,__FILE__, __LINE__); --- 711,721 ---- // Pega a noticia do DB... $this->db->query('SELECT N.id, N.secao, ' ! .' N.modelo, N.titulo, N.titulocor, N.olho, N.titulo, N.fonte, ' ! .' N.minitexto, N.chamada, N.conteudo, N.fixed, N.visible, N.newsletter, N.capaimg, ' .' DATE_FORMAT(N.datahora, "'.SQL_DATETIMEFORMAT.'") AS datahora' .' FROM '.PRE_TABLE.'noticia_noticias N, '.PRE_TABLE.'noticia_secoes S' .' WHERE N.secao = S.id AND '.$this->restriction .' AND N.id = '.$id ! .' ORDER BY N.fixed, N.datahora DESC' .' LIMIT 1' ,__FILE__, __LINE__); *************** *** 738,741 **** --- 733,742 ---- if ($aNoticia['visible'] == 'N') unset($aNoticia['visible']); + if ($aNoticia['newsletter'] == 'N') + unset($aNoticia['newsletter']); + if ($aNoticia['titulocor'] != '') + $aNoticia['titulocor'] = sprintf('#%06X', $aNoticia['titulocor']); + else + unset($aNoticia['titulocor']); $this->tmpl->readTemplatesFromFile('modules/noticia/templates/editar.htm'); *************** *** 764,768 **** if ($res === true) // Tudo Ok... Salve! { ! $aImgIds = $this->readImages($_POST['conteudo'], $id); // Adiciona a noticia $this->db->query('UPDATE '.PRE_TABLE.'noticia_noticias SET ' --- 765,813 ---- if ($res === true) // Tudo Ok... Salve! { ! $aTransTable = $this->readImages($_POST['conteudo'], $id); ! // Se o cara quer uma imagem na capa... ! $capaimg = 'NULL'; ! if ($_POST['capaimg']) ! { ! $basename = basename($_POST['capaimg']); ! ! // Verifica se eh uma imagem nova ! if (preg_match('/^sess'.session_id().'_[0-9]+_/', $basename)) ! { ! // Verifica se a img da capa já foi parseada pelo readImages() ! if (isset($aTransTable[$basename])) ! $capaimg = '"'.$aTransTable[$basename].'"'; ! else ! { ! // Copia a imagem ! $url = $this->copyImage(TEMPDIR.$basename); ! // Pega o nome fantasia da imagen ! $pseudoname = preg_replace('/^sess'.session_id().'_[0-9]+_/', '', $basename); ! // Insere as imagens no DB ! $this->db->query('INSERT INTO '.PRE_TABLE.'noticia_imagens ' ! .'(noticia, nome, url) VALUES(' ! .'"'.$id.'", ' ! .'"'.$pseudoname.'", ' ! .'"'.$url.'" ' ! .');', __FILE__, __LINE__); ! $capaimg = "'".$this->db->insertedId()."'"; ! $aTransTable[$basename] = $this->db->insertedId(); ! } ! } ! else ! { ! $this->db->query('SELECT id FROM '.PRE_TABLE.'noticia_imagens WHERE ' ! .' noticia='.$id ! .' AND url="'.$basename.'"'); ! $imgid = (int)$this->db->result(0); ! if ($imgid) ! $capaimg = $imgid; ! } ! } ! ! $fixed = isset($_POST['fixed']) ? ($_POST['fixed'] == 'Y' ? 'Y' : 'N') : 'N'; ! $visible = isset($_POST['visible']) ? ($_POST['visible'] == 'Y' ? 'Y' : 'N') : 'N'; ! $newsletter = isset($_POST['newsletter']) ? ($_POST['newsletter'] == 'Y' ? 'Y' : 'N') : 'N'; ! // Adiciona a noticia $this->db->query('UPDATE '.PRE_TABLE.'noticia_noticias SET ' *************** *** 775,781 **** .'minitexto = "'.$this->db->escapeHTMLString($_POST['minitexto']).'", ' .'conteudo = "'.$this->db->escapeString($_POST['conteudo'], true).'", ' .'datahora = "'.$_POST['sql_datahora'].'", ' ! .'fixed = "'.($_POST['fixed'] ? 'Y' : 'N').'", ' ! .'visible = "'.($_POST['visible'] ? 'Y' : 'N').'" ' .'WHERE id='.$id, __FILE__, __LINE__); header('Location: ?m=noticia&action=editarok'); --- 820,828 ---- .'minitexto = "'.$this->db->escapeHTMLString($_POST['minitexto']).'", ' .'conteudo = "'.$this->db->escapeString($_POST['conteudo'], true).'", ' + .'capaimg = '.$capaimg.', ' .'datahora = "'.$_POST['sql_datahora'].'", ' ! .'fixed = "'.$fixed.'", ' ! .'visible = "'.$visible.'", ' ! .'newsletter = "'.$newsletter.'" ' .'WHERE id='.$id, __FILE__, __LINE__); header('Location: ?m=noticia&action=editarok'); |
From: Hugo P. L. <hu...@us...> - 2004-09-04 19:06:29
|
Update of /cvsroot/muspa/muspa/modules/opcoes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32729 Modified Files: opcoes.php Log Message: Fix em bug ao alterar senha Index: opcoes.php =================================================================== RCS file: /cvsroot/muspa/muspa/modules/opcoes/opcoes.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** opcoes.php 4 Jul 2004 04:47:36 -0000 1.2 --- opcoes.php 4 Sep 2004 19:06:17 -0000 1.3 *************** *** 88,92 **** else { ! $senha = $this->db->escapeString(strlen($_POST['senha'])); $this->db->query('UPDATE '.PRE_TABLE.'users SET ' .'pwd = PASSWORD("'.$senha.'") ' --- 88,92 ---- else { ! $senha = $this->db->escapeString($_POST['senha']); $this->db->query('UPDATE '.PRE_TABLE.'users SET ' .'pwd = PASSWORD("'.$senha.'") ' |
From: Edmilson F. <psy...@gm...> - 2004-07-17 04:21:06
|
faz ent=E3o o litephpadmin ou sqllitephpadmin =3DD boa ideia esta sua... se eu tivesse uma eu faria algo mais at=E9 agora... ta vazia minha head abra=E7os!! |
From: Hugo P. L. <hu...@bo...> - 2004-07-16 03:21:47
|
Edmilson Ferreira wrote: >http://www.zend.com/zend/tut/tutorial-wong3.php > >hmm legal... > > >------------------------------------------------------- >This SF.Net email sponsored by Black Hat Briefings & Training. >Attend Black Hat Briefings & Training, Las Vegas July 24-29 -=20 >digital self defense, top technical experts, no vendor pitches,=20 >unmatched networking opportunities. Visit www.blackhat.com >_______________________________________________ >Muspa-devel mailing list >Mus...@li... >https://lists.sourceforge.net/lists/listinfo/muspa-devel > > > =20 > Instalei o php5 aki tb. =3D]. To fazendo um administrador de SQLite tipo phpMyAdmin... para enviar para aquele contest... vai ver eu ganho pelo menos uma camiseta =3DP, dai to fazendo tb uma classe de template toda baseada em XML para usar nele... =3D] Algumas coisas v=E3o ficar parecidas com a patTemplate a aparencia... outras com XSLT.... ta ficando massinha... deposi eu te mando... --=20 Hugo P.L. "Precisamos de mais g=EAnios humildes no mundo, hoje somos poucos!" |
From: Edmilson F. <psy...@gm...> - 2004-07-14 04:48:20
|
http://www.zend.com/zend/tut/tutorial-wong3.php hmm legal... |
From: Hugo P. L. <hu...@us...> - 2004-07-11 22:29:37
|
Update of /cvsroot/muspa/muspa In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11781 Modified Files: Tag: MUSPA_2_0_branch index.php Log Message: Mudanças para o XSL... Index: index.php =================================================================== RCS file: /cvsroot/muspa/muspa/index.php,v retrieving revision 1.4 retrieving revision 1.4.2.1 diff -C2 -d -r1.4 -r1.4.2.1 *** index.php 4 Jul 2004 04:45:55 -0000 1.4 --- index.php 11 Jul 2004 22:29:28 -0000 1.4.2.1 *************** *** 105,109 **** // cleanup! call_user_func(array('Admin', 'cleanUp')); ! include './sys/templates/fatalerror.htm'; exit; } --- 105,118 ---- // cleanup! call_user_func(array('Admin', 'cleanUp')); ! $tmpl = new patTemplate(); ! $tmpl->readTemplatesFromFile('sys/templates/msgbox.xml'); ! $tmpl->addVars('main', array ( ! 'TITLE' => 'Erro fatal', ! 'SUBTITLE' => 'erro', ! 'CAPTION' => 'Erro Fatal!', ! 'MSG' => $error, ! 'URL' => './', ! 'VERSION' => VERSION)); ! ProcessXSLT($tmpl); exit; } *************** *** 114,120 **** function SemiFatalError( $error, $url ) { ! include './sys/templates/semifatalerror.htm'; exit; } ! --- 123,148 ---- function SemiFatalError( $error, $url ) { ! $tmpl = new patTemplate(); ! $tmpl->readTemplatesFromFile('sys/templates/msgbox.xml'); ! $tmpl->addVars('main', array ( ! 'TITLE' => 'Erro fatal', ! 'SUBTITLE' => 'erro', ! 'CAPTION' => 'Erro Fatal!', ! 'MSG' => $error, ! 'URL' => $url, ! 'VERSION' => VERSION)); ! ProcessXSLT($tmpl); exit; } ! function ProcessXSLT(&$tmpl) ! { ! $xslt = xslt_create(); ! xslt_set_encoding($xslt, 'ISO-8859-1'); ! $args = array( ! '/_xml' => '<?xml version="1.0" encoding="ISO-8859-1"?>'.$tmpl->getParsedTemplate('main'), ! '/_xsl' => implode('', file('skins/phptools/phptools.xsl')) ! ); ! echo xslt_process($xslt, 'arg:/_xml', 'arg:/_xsl', null, $args); ! xslt_free($xslt); ! } |
From: Hugo P. L. <hu...@us...> - 2004-07-11 15:22:15
|
Update of /cvsroot/muspa/muspa/modules/opcoes/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5881 Modified Files: Tag: MUSPA_2_0_branch alterarsenha.xml Added Files: Tag: MUSPA_2_0_branch senhaalterada.xml Log Message: Novos templates em XML --- NEW FILE: senhaalterada.xml --- (This appears to be a binary file; contents omitted.) Index: alterarsenha.xml =================================================================== RCS file: /cvsroot/muspa/muspa/modules/opcoes/templates/Attic/alterarsenha.xml,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** alterarsenha.xml 11 Jul 2004 14:03:20 -0000 1.1.2.1 --- alterarsenha.xml 11 Jul 2004 15:22:06 -0000 1.1.2.2 *************** *** 8,15 **** <formtable method="post" action="?m=opcoes&action=alterarsenha"> <item name="Nova senha"> ! <textfield type="password" name="senha" value="{SENHA}" size="16" maxlength="16" /> </item> <item name="Confirmação"> ! <passwordfield type="password" name="confirmacao" size="16" maxlength="16" /> </item> <item type="mono"> --- 8,15 ---- <formtable method="post" action="?m=opcoes&action=alterarsenha"> <item name="Nova senha"> ! <passwordfield name="senha" value="{SENHA}" size="16" maxlength="16" /> </item> <item name="Confirmação"> ! <passwordfield name="confirmacao" size="16" maxlength="16" /> </item> <item type="mono"> |
From: Hugo P. L. <hu...@us...> - 2004-07-11 15:19:58
|
Update of /cvsroot/muspa/muspa/modules/opcoes/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5422 Removed Files: Tag: MUSPA_2_0_branch senhaalterada.htm Log Message: ... --- senhaalterada.htm DELETED --- |
From: Hugo P. L. <hu...@us...> - 2004-07-11 14:03:31
|
Update of /cvsroot/muspa/muspa/modules/opcoes/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25184 Added Files: Tag: MUSPA_2_0_branch alterarsenha.xml Log Message: Novos templates em XML --- NEW FILE: alterarsenha.xml --- (This appears to be a binary file; contents omitted.) |
From: Hugo P. L. <hu...@us...> - 2004-07-11 13:59:04
|
Update of /cvsroot/muspa/muspa/modules/opcoes/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24242 Removed Files: Tag: MUSPA_2_0_branch alterarsenha.htm Log Message: ... --- alterarsenha.htm DELETED --- |
From: Hugo P. L. <hu...@us...> - 2004-07-11 13:53:20
|
Update of /cvsroot/muspa/muspa/sys/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23493 Removed Files: Tag: MUSPA_2_0_branch base.htm entrada.htm fatalerror.htm login.htm logout.htm semifatalerror.htm tip.htm Log Message: ... --- login.htm DELETED --- --- semifatalerror.htm DELETED --- --- entrada.htm DELETED --- --- base.htm DELETED --- --- fatalerror.htm DELETED --- --- logout.htm DELETED --- --- tip.htm DELETED --- |