FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour FiveWeb de FiveTech (gratis hasta la versi贸n 1.0)
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: FiveWeb de FiveTech (gratis hasta la versi贸n 1.0)

Posted: Wed Nov 14, 2012 10:18 AM
A帽adido soporte para el comando SET COLOR TO ...

http://www.fivetechsoft.net/cgi-bin/tutor03

tutor03.prg
Code (fw): Select all Collapse
// Using controls

#include "FiveWeb.ch"

function Main()

聽 聽local oDlg, lValue := .T.
聽 聽
聽 聽SET COLOR TO "#99CCFF"
聽 聽
聽 聽DEFINE DIALOG oDlg TITLE "Hello FiveWeb" SIZE 600, 400
聽 聽
聽 聽@ 120, 聽70 BUTTON "One" SIZE 120, 50 OF oDlg ACTION MsgInfo( "one" )

聽 聽@ 120, 220 BUTTON "Two" SIZE 120, 50 OF oDlg ACTION MsgInfo( "two" )

聽 聽@ 120, 370 BUTTON "Three" SIZE 120, 50 OF oDlg ACTION MsgInfo( "three" )
聽 聽
聽 聽@ 200, 160 CHECKBOX lValue PROMPT "Tested" SIZE 150, 40 OF oDlg
聽 聽
聽 聽ACTIVATE DIALOG oDlg 

return nil
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: FiveWeb de FiveTech (gratis hasta la versi贸n 1.0)

Posted: Wed Nov 14, 2012 11:21 AM
Estableciendo la imagen de fondo y dinamicamente seleccionando el tema a usar:

http://www.fivetechsoft.net/cgi-bin/tutor04

tutor04.prg
Code (fw): Select all Collapse
#include "FiveWeb.ch"

function Main()

聽 聽local oDlg
聽 聽
聽 聽SET BACKIMAGE TO "http://fiveweb.googlecode.com/svn/trunk/images/beach.jpg"
聽 聽
聽 聽SetTheme( "cupertino" )
聽 聽
聽 聽DEFINE DIALOG oDlg TITLE "Hello FiveWeb" SIZE 600, 400
聽 聽
聽 聽ACTIVATE DIALOG oDlg NOWAIT

return nil
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1516
Joined: Thu May 27, 2010 02:06 PM

Re: FiveWeb de FiveTech (gratis hasta la versi贸n 1.0)

Posted: Wed Nov 14, 2012 07:36 PM
A帽adido un primer soporte para arrays en el browser . :-)

Code (fw): Select all Collapse
function Browse()

   local oDlg, oBrw
   local aDatos:={}

   if ! File( "clients.dbf" )
      DbCreate( "clients.dbf", { { "title",   "C", 10, 0 },;
                                 { "family",  "C", 80, 0 },;
                                 { "vorname", "C", 80, 0 } } )
   endif
   
   USE clients SHARED

   aadd( aDatos, {"title","Family","Vorname"} )
   
   go top
   do while !eof()
      aadd(aDatos,{clients->title, clients->family,clients->vorname })
      skip
   enddo

   
   DEFINE DIALOG oDlg TITLE "Clients browse" SIZE 800, 600
   
   @ 10, 10 BROWSE oBrw SIZE 500, 400 OF oDlg ARRAY aDatos
   
   ACTIVATE DIALOG oDlg NOWAIT
   
   USE

return nil
Posts: 189
Joined: Wed Apr 05, 2006 09:48 PM

Re: FiveWeb de FiveTech (gratis hasta la versi贸n 1.0)

Posted: Thu Nov 15, 2012 05:08 PM

Antonio, me he descargado los samples para linux compilados, en mi servidor linux el archivo log me da este error: Premature end of script headers: tutor01

El servidor soporta cgi, incluso me han preparado un ejemplo y lo han ejecutado y funciona perfectamente, alguna idea por que falla tutor01 ?

Un saludo

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: FiveWeb de FiveTech (gratis hasta la versi贸n 1.0)

Posted: Thu Nov 15, 2012 05:49 PM

Tienes que asegurarte de que le das permisos de ejecuci贸n, esto lo haces por SSH:

chmod 755 tutor01

y por otra parte, para asegurarte de que no falta nada, ejecuta la aplicaci贸n por SSH tambien:

./tutor01

Si falta alguna librer铆a de enlace din谩mico, etc te aparecer谩 el error por la ventana de SSH

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 111
Joined: Sat Jan 30, 2010 08:35 AM

Re: FiveWeb de FiveTech (gratis hasta la versi贸n 1.0)

Posted: Thu Nov 15, 2012 06:11 PM

Hola Antonio,

Tengo instalado XAMPP en windows Xp.

Con el reciente cambio de quitar la extension .exe de las llamadas me da error. si pongo la extension me funciona perfectamente.

Tengo que cambiar algo en http.conf ?

La verdard, estoy un poco perdido.

Muchas gracias, estais haciendo un gran trabajo.
Pere

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: FiveWeb de FiveTech (gratis hasta la versi贸n 1.0)

Posted: Thu Nov 15, 2012 06:19 PM

Pere,

No hay que quitar la extensi贸n EXE. Eso es solo para Linux en donde no se usa.

Asi que las aplicaciones Harbour + FiveWeb usan la extensi贸n .EXE en Windows. Y no la necesitan en Linux

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1516
Joined: Thu May 27, 2010 02:06 PM

Re: FiveWeb de FiveTech (gratis hasta la versi贸n 1.0)

Posted: Thu Nov 15, 2012 10:53 PM
Avances en el browser y algunos cambios . Ahora se puede definir stilos para cabecera y lineas, tambien se puede definirv efecto pijama .

Code (fw): Select all Collapse
Function DefineClassLine() //--definimos  un estilo

 ?'<style type="text/css">'
 ?'<!-- '
 ?'.linea { font-family: Verdana, Arial, Helvetica, sans-serif;'
 ?' font-size: 13px;color: #333333; background-color: transparent;'
 ?'}'
 ?'-->'
 ? '</style>'
Return nil

Function DefineClassHead()  //------definimos otro estilo

 ?'<style type="text/css">'
 ?'<!-- '

?' .boxtitulo { '
?'  background-image: url(glbnav_background.gif);'
?'  background-position: 4px;'
?'  border-bottom-color: #333333;'
?'  border-bottom-style: solid;'
?'  border-bottom-width: 1px;'
?'  border-left-color: #333333;'
?'  border-left-style: solid;'
?'  border-left-width: 1px;'
?'  border-right-color: #000000;'
?'  border-right-style: solid;'
?'  border-right-width: 1px;'
?'  border-top-color: #333333;'
?'  border-top-style: solid;'
?'  border-top-width: 1px;'
?'  color: #333333;'
?'  background-color:#a5beb5 ;'
?'  font-family: Verdana, Arial, Helvetica, sans-serif;'
?'  font-size: 12px;'
?'  font-weight: bold;'
?'  height: 18px;'
?'  text-align: center;'

 ?'}'

 ?'-->'
 ? '</style>'

Return nil




//----------------------------------------------------------------------------// 


function Browse()

   local oDlg, oBrw
   local aDatos:={}

   if ! File( "clients.dbf" )
      DbCreate( "clients.dbf", { { "title",   "C", 10, 0 },;
                                 { "family",  "C", 80, 0 },;
                                 { "vorname", "C", 80, 0 } } )
   endif
   
   USE clients SHARED

   aadd( aDatos, {"title","Family","Vorname"} )
   
   go top
   do while !eof()
      aadd(aDatos,{clients->title, clients->family,clients->vorname })
      skip
   enddo

   DefineClassLine()   
   DefineClassHead()  
   
   DEFINE DIALOG oDlg TITLE "Clients browse" SIZE 800, 600
   
   @ 10, 10 BROWSE oBrw SIZE 500, 400 OF oDlg ARRAY aDatos
   
    oBrw:cClassTable:= "" //"browse"
    oBrw:cClassLine:="linea"
    obrw:cClassHead:= "boxtitulo"
    oBrw:lZebra:= .t.

   oBrw:CreateFromCode()
   
   ACTIVATE DIALOG oDlg NOWAIT
   
   USE

return nil

//----------------------------------------------------------------------------//
Posts: 1516
Joined: Thu May 27, 2010 02:06 PM

Re: FiveWeb de FiveTech (gratis hasta la versi贸n 1.0)

Posted: Fri Nov 16, 2012 09:46 AM
A帽adido a la clase TSay la posibilidad de a帽adirle un enlace url .
Code (fw): Select all Collapse
function Main()

   local oDlg
   
   SET BACKIMAGE TO "http://fiveweb.googlecode.com/svn/trunk/images/beach.jpg"
   
   SetTheme( "cupertino" )
   
   DEFINE DIALOG oDlg TITLE "Hello FiveWeb" SIZE 600, 400
   
    @ 12, 10 SAY "Hola:" OF oDlg  URL "http://www.google.com"
   
   ACTIVATE DIALOG oDlg NOWAIT

return nil
Posts: 189
Joined: Wed Apr 05, 2006 09:48 PM

Re: FiveWeb de FiveTech (gratis hasta la versi贸n 1.0)

Posted: Fri Nov 16, 2012 10:54 AM

Antonio, al ejecutar por ssh tutor01 me da este error: ./tutor01 cannot execute binary file
lo raro es que dentro de la misma carpeta tengo otros cgi y funcionan pefectamente.

Un saludo

Posts: 1516
Joined: Thu May 27, 2010 02:06 PM

Re: FiveWeb de FiveTech (gratis hasta la versi贸n 1.0)

Posted: Fri Nov 16, 2012 12:24 PM

le has dado permiso de ejecuci贸n chmod +x archivo ?

Posts: 189
Joined: Wed Apr 05, 2006 09:48 PM

Re: FiveWeb de FiveTech (gratis hasta la versi贸n 1.0)

Posted: Fri Nov 16, 2012 03:38 PM

Tiene permisos chmod 755, no hay forma de que funciona, no estara mal el ejecutable ?

Un saludo

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: FiveWeb de FiveTech (gratis hasta la versi贸n 1.0)

Posted: Fri Nov 16, 2012 03:49 PM

Javier,

En el mensaje de error debe mencionar que le falta, posiblemente una libreria que no est茅 disponible en el Linux que est茅s usando

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 189
Joined: Wed Apr 05, 2006 09:48 PM

Re: FiveWeb de FiveTech (gratis hasta la versi贸n 1.0)

Posted: Fri Nov 16, 2012 04:09 PM

Antonio solo me da este error: ./tutor01 cannot execute binary file

El sistema operativo del servidor: Linux server7.red-dns.com 2.6.32-4-pve #1 SMP Tue Mar 29 09:08:37 CEST 2011 i686 i686 i386 GNU/Linux

Un saludo

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: FiveWeb de FiveTech (gratis hasta la versi贸n 1.0)

Posted: Fri Nov 16, 2012 06:43 PM

Javier,

Es un hosting comercial conocido ?

Para ver que versi贸n de Linux usan

regards, saludos

Antonio Linares
www.fivetechsoft.com