phphtmllib-devel Mailing List for phpHtmlLib (Page 163)
Status: Beta
Brought to you by:
hemna
You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(33) |
Jul
(2) |
Aug
(3) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
|
Feb
|
Mar
(4) |
Apr
|
May
(3) |
Jun
(1) |
Jul
(10) |
Aug
(5) |
Sep
|
Oct
|
Nov
(2) |
Dec
(5) |
2004 |
Jan
(1) |
Feb
(8) |
Mar
(139) |
Apr
(65) |
May
(32) |
Jun
(55) |
Jul
(21) |
Aug
(60) |
Sep
(43) |
Oct
(1) |
Nov
(18) |
Dec
(34) |
2005 |
Jan
(25) |
Feb
(2) |
Mar
(49) |
Apr
(13) |
May
(40) |
Jun
(22) |
Jul
(21) |
Aug
(59) |
Sep
(178) |
Oct
(54) |
Nov
(3) |
Dec
(49) |
2006 |
Jan
(21) |
Feb
(1) |
Mar
(5) |
Apr
(29) |
May
(86) |
Jun
(79) |
Jul
(52) |
Aug
(127) |
Sep
(187) |
Oct
(90) |
Nov
(61) |
Dec
(48) |
2007 |
Jan
(79) |
Feb
(136) |
Mar
(58) |
Apr
(139) |
May
(293) |
Jun
(112) |
Jul
(138) |
Aug
(112) |
Sep
(148) |
Oct
(76) |
Nov
(29) |
Dec
(66) |
2008 |
Jan
(45) |
Feb
(60) |
Mar
(119) |
Apr
(169) |
May
(172) |
Jun
(136) |
Jul
(107) |
Aug
(114) |
Sep
(104) |
Oct
(26) |
Nov
(50) |
Dec
(48) |
2009 |
Jan
(9) |
Feb
(35) |
Mar
(22) |
Apr
(43) |
May
(83) |
Jun
(68) |
Jul
(58) |
Aug
(21) |
Sep
(23) |
Oct
(62) |
Nov
(36) |
Dec
(26) |
2010 |
Jan
(16) |
Feb
(83) |
Mar
(73) |
Apr
(51) |
May
(76) |
Jun
(96) |
Jul
(70) |
Aug
(33) |
Sep
(10) |
Oct
(1) |
Nov
(2) |
Dec
|
2011 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
(1) |
Mar
(12) |
Apr
|
May
(1) |
Jun
(2) |
Jul
|
Aug
(3) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
(3) |
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
(5) |
Oct
(1) |
Nov
|
Dec
(1) |
2014 |
Jan
(2) |
Feb
(1) |
Mar
|
Apr
(2) |
May
(1) |
Jun
|
Jul
(1) |
Aug
(2) |
Sep
(2) |
Oct
(2) |
Nov
(3) |
Dec
|
2015 |
Jan
(1) |
Feb
(1) |
Mar
(2) |
Apr
(1) |
May
(2) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
(1) |
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Culley H. <cu...@fa...> - 2004-03-09 06:11:09
|
Should the version number in the example9.php have been something different? I put it in at 1.0.0. culley |
From: <cu...@us...> - 2004-03-09 00:50:33
|
Update of /cvsroot/phphtmllib/phphtmllib/examples In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1369 Added Files: example9.php Log Message: example generating a html table fragment. Also tries to use most of the table methods. --- NEW FILE: example9.php --- <?php /** * * The ideal way to use phphtmllib is to use the PageWidget object to create * complete html documents. If you are managing an existing code base with its * own structure and templates the ideal setup might not be practical. This * doesn't mean you can't use phphtmllib. Every descendant from the Container * object (all the classes for html tags) have a render() method which allow * you to generate output. * * This example generates a short html table fragment that could be inserted * anywhere in your code. It also attempts to make use of most of the TABLETag * methods. * * $Id: example9.php,v 1.1 2004/03/09 00:33:46 culley Exp $ * * @author Culley Harrelson <cu...@fa...> * @package phpHtmlLib * @subpackage examples * @version 1.0.0 * */ // load the phphtmllib files $phphtmllib = $_SERVER["DOCUMENT_ROOT"] . "/phphtmllib"; include_once("$phphtmllib/includes.inc"); // html_table() is a built-in helper function that returns a table object $table = html_table('95%', 1, 5, 5); // add caption tag as the first element in the table. TR tags should be added with add_row() $table->add(html_caption("A Caption for the table")); // default attributes for TDTags $table->set_default_col_attributes(array('nowrap' => 'nowrap')); // default attributes for TRTags $table->set_default_row_attributes(array('align' => 'center')); // these methods are available to all html tags $table->set_class('myclass'); $table->set_id('table1'); $table->set_style('background-color:#EEE'); $table->set_tag_attribute('name', 'the name of my table'); // add some data for ($i = 0; $i<20; $i++) { // add_row takes any number of arguments. Each argument will be a cell in the row // any item can be another html attribute-- the first column here is a BTag object $table->add_row(html_b(rand(1,1000)), rand(2000,3000), rand(3000,4000)); } // update a cells content and attributes-- row and column settings are 0 based $table->set_cell_content(1, 2, 'this cell is special and it will not wrap because we set no wrap above'); $table->set_cell_attributes(1, 2, array('align' => 'right', 'style' => 'background-color:#F00;')); // udate a row $table->set_row_attributes(5, array('align' => 'left')); // set the summary attribute of the table $table->set_summary('the sum of all tables'); // generate the html print $table->render(); ?> |
From: <cu...@us...> - 2004-03-08 22:36:20
|
Update of /cvsroot/phphtmllib/phphtmllib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5416 Modified Files: INSTALL Log Message: mention SECURITY file in setup instructions. Index: INSTALL =================================================================== RCS file: /cvsroot/phphtmllib/phphtmllib/INSTALL,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- INSTALL 2 Apr 2003 22:06:04 -0000 1.8 +++ INSTALL 8 Mar 2004 22:19:22 -0000 1.9 @@ -68,6 +68,8 @@ include_once("$phphtmllib/includes.inc"); to include all of the files in the lib, or you can include each file that you need individually to save include processing. + 3. Optionally, review the SECURITY file if you are installing + phphtmllib into a production environment. 9. Contacts -------- |
From: Walter A. B. I. <wab...@3g...> - 2004-03-08 20:51:16
|
Quoting Culley Harrelson <cu...@fa...>: > > Ok this sounds good. Go ahead and check it into SECURITY. Should=20 > > probably > > update the README and INSTALL files to discuss this file. > > >=20 > I'll get this set up. ---awesome thanks! > I don't mind writing examples-- as I learn a new portion of the API=20 > writing an example helps make everything stick in my mind. It might=20 > also help in the long run for testing. Initially I thought developing=20 > test cases would be the way to go but writing test cases for UI code is= =20 > kind of difficult-- ultimately it needs to look right. The new web=20 > testing stuff built into Simple Test=20 > (http://www.lastcraft.com/web_tester_documentation.php) might be=20 > useful-- build up test cases for each of the examples... another some=20 > day project. ---I have started some PHPUnit tests that live in the test directory. I'= ve thought about adding more tests there. Like you said though, its hard to validate html in one respect, because it's mostly about how it looks. On= the other hand, if we have widgets that output a known html block, then we co= uld test against that string. This might suck though in the long run, becaus= e if we change the resulting html output, then the unit test will fail. =20 Walt |
From: <cu...@us...> - 2004-03-08 20:43:43
|
Update of /cvsroot/phphtmllib/phphtmllib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10065 Added Files: SECURITY Log Message: File listing apache directives for forbidding .inc files --- NEW FILE: SECURITY --- # # $Id: SECURITY,v 1.1 2004/03/08 20:27:03 culley Exp $ # # DESCRIPTION # These are the apache directives to "lock down" phphtmllib after installation in # the web root on your production machine. This doesn't *have* to happen-- no # critical information will be displayed if it is not done. # # USAGE # 1. rename this file to .htaccess (for this to work AllowOverride All needs to be set some- # where in httpd.conf) You can also place these directives in the appropriate directory # block in your httpd.conf file if you have access. # 2. You can delete these directories: test, doc, examples. They are not needed in production. # # <files *.inc> Deny from All </files> <files ~ "(CHANGELOG|INSTALL|LICENSE|TODO)"> Deny from All </files> |
From: Culley H. <cu...@fa...> - 2004-03-08 20:34:20
|
On Mar 8, 2004, at 10:23 AM, Walter A. Boring IV wrote: > Ok this sounds good. Go ahead and check it into SECURITY. Should > probably > update the README and INSTALL files to discuss this file. > I'll get this set up. > I liked your example. It's nice to see another viewpoint on using > phpl. I'm so > used to using it that it's second nature to me now, so I'm not that > great at > writing new examples. > I don't mind writing examples-- as I learn a new portion of the API writing an example helps make everything stick in my mind. It might also help in the long run for testing. Initially I thought developing test cases would be the way to go but writing test cases for UI code is kind of difficult-- ultimately it needs to look right. The new web testing stuff built into Simple Test (http://www.lastcraft.com/web_tester_documentation.php) might be useful-- build up test cases for each of the examples... another some day project. I need to modify my editor (vim) to get my commenting style in sync with yours before I publish the examples. I have been using a bulk comment/uncomment module that just puts // at the front of a line rather than the /* * */ style of comment. Need to go dig around on the vim site to see if I can find something that will do this... culley |
From: Walter A. B. I. <wab...@3g...> - 2004-03-08 18:31:52
|
Ok this sounds good. Go ahead and check it into SECURITY. Should probab= ly update the README and INSTALL files to discuss this file. I liked your example. It's nice to see another viewpoint on using phpl. = I'm so used to using it that it's second nature to me now, so I'm not that great= at writing new examples. Walt > Hey Walt, >=20 > So I put together a sample .htaccess file that people could put in in=20 > the phphtmllib directory to tighten things up a bit in a production=20 > environment. I was thinking this file could be named HTACCESS or=20 > SECURITY and put in the root folder of phphtmllib. Here is the=20 > contents: >=20 > ########################## > # > # $Id$ > # > # DESCRIPTION > # These are the apache directives to "lock down" phphtmllib after=20 > installation in > # the web root on your production machine. This doesn't *have* to=20 > happen-- no > # critical information will be displayed if it is not done. > # > # USAGE > # 1. rename this file to .htaccess (for this to work AllowOverride=20 > All needs to be set some- > # where in httpd.conf) You can also place these directives in the=20 > appropriate directory > # block in your httpd.conf file if you have access. > # 2. Delete these directories: test, doc, examples. They are not=20 > needed in production. > # > # >=20 > <files *.inc> > Deny from All > </files> >=20 > <files ~ "(CHANGELOG|INSTALL|LICENSE|TODO)"> > Deny from All > </files> > ########################## >=20 > Does this sound ok? >=20 > Also, I put together a phphtmllib page on my usually neglected wiki: >=20 > http://mudhut.org/index.php/PhpHtmlLib >=20 > and wrote a short example-- it is really simple but sometimes new=20 > people like to have things spelled out for them :) >=20 > culley >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dc= lick > _______________________________________________ > Phphtmllib-devel mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phphtmllib-devel >=20 |
From: Culley H. <cu...@fa...> - 2004-03-08 18:11:35
|
ok great :) On Mar 8, 2004, at 9:48 AM, Walter A. Boring IV wrote: > Howdy, > Thanks :) It's actually not much work for me to put the examples on=20= > the site. > I just have an array defined of the examples that I want to show on=20 > the site. > Maybe I should update the site to get the examples dynamically. Go=20 > ahead and > check in any examples you have, just make sure they have a lot of=20 > inline > comments to explain how to use em. :) > > Walt > >> I have been working on another example... maybe this and the other >> example I created should be in the examples directory? I put the one >> on my site because I didn't want to create more work for you in >> updating the main phphtmllib site with example listings. >> >> culley >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: IBM Linux Tutorials >> Free Linux tutorial presented by Daniel Robbins, President and CEO of >> GenToo technologies. Learn everything from fundamentals to system >> administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dc= lick >> _______________________________________________ >> Phphtmllib-devel mailing list >> Php...@li... >> https://lists.sourceforge.net/lists/listinfo/phphtmllib-devel >> > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id638&op=3Dclick > _______________________________________________ > Phphtmllib-devel mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phphtmllib-devel |
From: Walter A. B. I. <wab...@3g...> - 2004-03-08 17:57:11
|
Howdy, Thanks :) It's actually not much work for me to put the examples on th= e site. I just have an array defined of the examples that I want to show on the s= ite. Maybe I should update the site to get the examples dynamically. Go ahead= and check in any examples you have, just make sure they have a lot of inline comments to explain how to use em. :) Walt > I have been working on another example... maybe this and the other=20 > example I created should be in the examples directory? I put the one=20 > on my site because I didn't want to create more work for you in=20 > updating the main phphtmllib site with example listings. >=20 > culley >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dc= lick > _______________________________________________ > Phphtmllib-devel mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phphtmllib-devel >=20 |
From: Culley H. <cu...@fa...> - 2004-03-08 16:17:43
|
I have been working on another example... maybe this and the other example I created should be in the examples directory? I put the one on my site because I didn't want to create more work for you in updating the main phphtmllib site with example listings. culley |
From: Culley H. <cu...@ab...> - 2004-03-08 16:17:10
|
I have been working on another example... maybe this and the other example I created should be in the examples directory? I put the one on my site because I didn't want to create more work for you in updating the main phphtmllib site with example listings. culley |
From: <cu...@us...> - 2004-03-08 15:54:23
|
Update of /cvsroot/phphtmllib/phphtmllib/form/form_elements In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9989 Modified Files: FEText.inc Log Message: After looking at other form elements I realized that moving the required and max length arguments was out of keeping with other elements. I moved them back to where they were and put regex and error_message at the end of the list. Index: FEText.inc =================================================================== RCS file: /cvsroot/phphtmllib/phphtmllib/form/form_elements/FEText.inc,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- FEText.inc 3 Mar 2004 23:22:12 -0000 1.19 +++ FEText.inc 8 Mar 2004 15:37:53 -0000 1.20 @@ -513,13 +513,13 @@ * The constructor * * @param label string - text label for the element - * @param regex string - a valid regular expression i.e. '/[a-z]+$/i' - * @param error_message string - error message for failure to match the regex * @param required bool- is this a required element * @param width int - element width in characters, pixels (px), percentage (%) or elements (em) * @param maxlength int- maximum number of chars allowed to type in + * @param regex string - a valid regular expression i.e. '/[a-z]+$/i' + * @param error_message string - error message for failure to match the regex */ - function FERegEx($label, $regex, $error_message, $required=false, $width = NULL, $maxlength = NULL) { + function FERegEx($label, $required=false, $width = NULL, $maxlength = NULL, $regex, $error_message) { $this->FEText($label, $required, $width, $maxlength); $this->_regex = $regex; $this->_error_message = $error_message; |
From: Culley H. <cu...@fa...> - 2004-03-08 03:51:17
|
Hey Walt, So I put together a sample .htaccess file that people could put in in the phphtmllib directory to tighten things up a bit in a production environment. I was thinking this file could be named HTACCESS or SECURITY and put in the root folder of phphtmllib. Here is the contents: ########################## # # $Id$ # # DESCRIPTION # These are the apache directives to "lock down" phphtmllib after installation in # the web root on your production machine. This doesn't *have* to happen-- no # critical information will be displayed if it is not done. # # USAGE # 1. rename this file to .htaccess (for this to work AllowOverride All needs to be set some- # where in httpd.conf) You can also place these directives in the appropriate directory # block in your httpd.conf file if you have access. # 2. Delete these directories: test, doc, examples. They are not needed in production. # # <files *.inc> Deny from All </files> <files ~ "(CHANGELOG|INSTALL|LICENSE|TODO)"> Deny from All </files> ########################## Does this sound ok? Also, I put together a phphtmllib page on my usually neglected wiki: http://mudhut.org/index.php/PhpHtmlLib and wrote a short example-- it is really simple but sometimes new people like to have things spelled out for them :) culley |
From: <cu...@us...> - 2004-03-08 03:35:22
|
Update of /cvsroot/phphtmllib/phphtmllib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7497 Modified Files: CHANGELOG Log Message: updated log Index: CHANGELOG =================================================================== RCS file: /cvsroot/phphtmllib/phphtmllib/CHANGELOG,v retrieving revision 1.115 retrieving revision 1.116 diff -u -d -r1.115 -r1.116 --- CHANGELOG 3 Mar 2004 23:24:11 -0000 1.115 +++ CHANGELOG 8 Mar 2004 03:19:16 -0000 1.116 @@ -5,6 +5,8 @@ - minor change Version 2.4.1 - DEVTBD + + Fixed a bug causing problems with PEAR+postgresql in the data list widget. + --culley - Added align parameter to html_img_href() (Denny Reeh <den...@gm...>) - Fixed a bug with the displaying of the FormElement label when the FormElement had an error. |
From: <cu...@us...> - 2004-03-08 03:31:15
|
Update of /cvsroot/phphtmllib/phphtmllib/widgets/data_list In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7114 Modified Files: PEARSQLDataListSource.inc Log Message: minor modifications to jumpstart postgresql usage Index: PEARSQLDataListSource.inc =================================================================== RCS file: /cvsroot/phphtmllib/phphtmllib/widgets/data_list/PEARSQLDataListSource.inc,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- PEARSQLDataListSource.inc 29 Apr 2003 06:38:05 -0000 1.8 +++ PEARSQLDataListSource.inc 8 Mar 2004 03:15:08 -0000 1.9 @@ -92,7 +92,8 @@ $this->_result = $this->_db->query($this->_query); if (DB::isError($this->_result)) { $msg = $this->_result->getMessage(); - user_error("PEARSQLDataListSource::do_query() - query failed : ".$msg); + $query = $this->_query; + user_error("PEARSQLDataListSource::do_query($query) - query failed : ".$msg); return false; } else { return true; @@ -128,7 +129,7 @@ $clause = " LIMIT $offset, $limit "; break; case "db_pgsql": - $clause = " LIMIT $limit, $offset "; + $clause = " LIMIT $limit OFFSET $offset "; break; default: $clause = " LIMIT $offset, $limit "; @@ -151,14 +152,13 @@ */ function count($tables, $where_clause='', $count_clause='*') { $query = "select count(".$count_clause.") as COUNT from ".$tables." ".$where_clause; - $result = $this->_db->query($query); + $result = $this->_db->getOne($query); if (DB::isError($result)) { $msg = $result->getMessage(); user_error("PEARSQLDataListSource::count() - query failed : ".$msg); return 0; } else { - $value = $result->fetchRow(DB_FETCHMODE_ASSOC); - return ($value ? (int)$value["COUNT"] : NULL); + return $result; } } |
From: Culley H. <cu...@fa...> - 2004-03-07 22:46:48
|
>> > ---heh yah. I hear ya. I am going through the process of converting > a home > baked DB object to adodb at my job now. It's a daunting task, but one > that will > pay off in the long run. > The transition from PEAR probably wouldn't be too bad-- I could probably just write up a global find and replace script for object methods and then manually do the one's whose arguments don't match. Someday I will do this. It is on the someday pile. >> > ---thats kewl. I appreciate it. Just give me a heads up when you > make the > changes. I'll be soon updating the cvs repository on sourceforge to > auto email > us when commits are made to the module. > This is ready to go but Sourceforge CVS seems to be on the fritz. Later today I guess. > > I've always been a big fan of OOP, and widgets for html seemed to > make sense > to me at least. > The OO-ness of phphtmllib is one of the primary features I think. Unfortunately the sites I maintain are basically a sequential series of include files so I can't use the PageWidget. I am just rendering html fragments... Someday I would like to convert everything to using PageWidgets but I get a little dizzy just thinking about all that work. >> > ---you almost have it. action_button() returns a button object that > is placed > in the actionbar. So the proper way to do it is to override the > actionbar_cell() method and return the buttons you want to see there > Very slick! This widget is the crown jewel of phl... Hey so I was just testing a form for cross site scripting vulnerability and this code executed in into the confirm page: <script> alert(location.href); </script> Single and double quotes are escaped so that solves a lot of problems but I'm sure there is a way to do something malicious without using quotes. So this could be handled in the form code but what about tackling it higher up, say in HTMLTagClass? If there were a flag method like HTMLTagClass::scrub_data(bool $scrub = true) that, when set would scrub the output of any data rendered in any html tag. Writing secure pages would be much easier if this could somehow be called once for a container and recursively effect all contained objects. Or better yet something like: HTMLTagClass::register_callback_scrubber() so you could set exactly what you want done to the data. Sometimes strip_tags() other times nl2br(), myFunc() etc. Maybe this isn't practical... Just brainstorming. :) culley |
From: <he...@us...> - 2004-03-07 05:19:41
|
Update of /cvsroot/phphtmllib/phphtmllib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23716 Modified Files: README Log Message: update to 2.4.1 for next rev Index: README =================================================================== RCS file: /cvsroot/phphtmllib/phphtmllib/README,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** README 3 Feb 2004 23:46:17 -0000 1.6 --- README 7 Mar 2004 05:04:16 -0000 1.7 *************** *** 2,6 **** phpHtmlLib ! Version 2.4.0 by --- 2,6 ---- phpHtmlLib ! Version 2.4.1 by |
From: Walter A. B. I. <wab...@3g...> - 2004-03-07 03:01:27
|
>=20 > ok :) You get to use X at work?!? That is pretty cool-- sounds like=20 > you have a lot of freedom where you work. What IDE do you develop in? ---yah I'm a linux guy full time. I run Gentoo linux on all of my machin= es now. =20 I use Visual Slick Edit as my IDE. Its a great environment for developin= g in linux. Unfortunatly its pretty expensive. I have been able to get my wo= rk to buy it for me :) > Birmingham to visit friends for 6 or 7 days then Philidelphia for a=20 > conference for my wife. More fun vacations out there but this is what=20 > we are doing... ---sounds like a fun trip! have a good time. =20 > Form wizard is going to take a while unfortunately. ---hehe its ok. It's been sitting there stale for a while as it is. :( = =20 =20 > > > > So you were playing with the PEARSQLDataListSource and using PEAR's= =20 > > Postgres > > driver and it didn't work? I usually don't use PEAR myself, so I=20 > > haven't played > > with it in ages. I usually use ADODB, as it is much more feature=20 > > rich, and is > > faster then PEAR. I'm a bit of a contributor to ADODB as well. > > >=20 > It didn't work-- It might have been specifics of the PEAR::DB object I=20 > was throwing at it-- I will make sure before I change anything. I will= =20 > also test mysql. >=20 > I would love to switch to ADODB but I have 700 or 800 files using=20 > PEAR::DB and at this point I don't want to use it *that* much :) ---heh yah. I hear ya. I am going through the process of converting a h= ome baked DB object to adodb at my job now. It's a daunting task, but one th= at will pay off in the long run. =20 > ok-- I didn't want to dive in and start changing too much without=20 > getting a sense of how much you wanted to be involved in my changes... ---thats kewl. I appreciate it. Just give me a heads up when you make t= he changes. I'll be soon updating the cvs repository on sourceforge to auto= email us when commits are made to the module. > I have been kind of looking for a project to contribute to. Everyone=20 > is so hot on template engines lately and they just don't do it for me--= =20 > phphtmllib is much more my style. I'd like to see it become more=20 > popular... eventually I want to write some more examples and tutorials=20 > which will hopefully make it more accessible to people. Get more=20 > people involved and that will mean more widgets. ----yah I hear ya. I've done template based apps before, but they are invariably a mess. A lot of folks say that templating gives you the sepe= ration of logic from presentation, but not really. The entire logic of any temp= late based app, spends all of its time populating replacement variables which = are specific to the presentation it wants. So I don't really buy into it. T= his is besides the overly ornate and complicated template parsers, which just do= esn't makes sense to me. The only way I'd ever go w/ a 'template' style is usi= ng include(). I've always been a big fan of OOP, and widgets for html seemed to make = sense to me at least. =20 =20 > One more question. I was tinkering with a DataList and I wanted to=20 > test the action column stuff. I tried this in user_setup() >=20 > $this->add_action_column('checkbox', 'FIRST', 'payment_id'); > $this->action_button('test', 'test'); >=20 > and the checkbox worked but the action button did not show up. What do= =20 > I have to do do get an action button? ---you almost have it. action_button() returns a button object that is p= laced in the actionbar. So the proper way to do it is to override the actionbar_cell() method and return the buttons you want to see there function actionbar_cell() { $c =3D container(); $c->add( $this->action_button('test', 'test'), _HTML_SPACE, $this->action_button('foo', 'bar_url.php?id=3D'.$_REQUEST['che= ckbox']) ); return $c; } =20 Walt |
From: Culley H. <cu...@fa...> - 2004-03-07 02:23:53
|
>> > ---hehe. I see you log in and out in irc. I usually have 8 or so > desktops in > X, so when I'm working I'm usually in a different desktop then my irc > app is. I > usually check on it every 5 minutes, so ya just have to hang out for a > bit until > I come back to that desktop. sorry man. > ok :) You get to use X at work?!? That is pretty cool-- sounds like you have a lot of freedom where you work. What IDE do you develop in? > ----heh ok. Where are you going for vacation? If you have any > questions about > the FormProcessor of the FormContent, feel free to shoot me an email. > Birmingham to visit friends for 6 or 7 days then Philidelphia for a conference for my wife. More fun vacations out there but this is what we are doing... Form wizard is going to take a while unfortunately. > > So you were playing with the PEARSQLDataListSource and using PEAR's > Postgres > driver and it didn't work? I usually don't use PEAR myself, so I > haven't played > with it in ages. I usually use ADODB, as it is much more feature > rich, and is > faster then PEAR. I'm a bit of a contributor to ADODB as well. > It didn't work-- It might have been specifics of the PEAR::DB object I was throwing at it-- I will make sure before I change anything. I will also test mysql. I would love to switch to ADODB but I have 700 or 800 files using PEAR::DB and at this point I don't want to use it *that* much :) > > If you find bugs w/ stuff then feel free to make fixes, just make sure > to test > them, and then annotate the CHANGELOG file with what was changed. > ok-- I didn't want to dive in and start changing too much without getting a sense of how much you wanted to be involved in my changes... > Thanks again for helping out!! I really appreciate it. > I have been kind of looking for a project to contribute to. Everyone is so hot on template engines lately and they just don't do it for me-- phphtmllib is much more my style. I'd like to see it become more popular... eventually I want to write some more examples and tutorials which will hopefully make it more accessible to people. Get more people involved and that will mean more widgets. One more question. I was tinkering with a DataList and I wanted to test the action column stuff. I tried this in user_setup() $this->add_action_column('checkbox', 'FIRST', 'payment_id'); $this->action_button('test', 'test'); and the checkbox worked but the action button did not show up. What do I have to do do get an action button? culley |
From: Walter A. B. I. <wab...@3g...> - 2004-03-07 01:46:41
|
Quoting Culley Harrelson <cu...@fa...>: > Hey Walt, >=20 > Tried to find you on irc yesterday without much luck... ---hehe. I see you log in and out in irc. I usually have 8 or so deskto= ps in X, so when I'm working I'm usually in a different desktop then my irc app= is. I usually check on it every 5 minutes, so ya just have to hang out for a bi= t until I come back to that desktop. sorry man. =20 > I am going to keep working on the form wizard but it is going to take a= =20 > while. I need to learn the internals of FormProcessor and FormContent=20 > and it is going to take a while. I am working on setting up xdebug so=20 > I can actually step through the code. I am going on vacation next=20 > Thursday for 12 days and I am going to tinker with it while on the=20 > road. ----heh ok. Where are you going for vacation? If you have any questions= about the FormProcessor of the FormContent, feel free to shoot me an email. =20 > Meanwhile I started working with DataList-- pretty slick! Specifically= =20 > I was working with the PEAR+postgresql flavor. Right out of the box it= =20 > wouldn't work and I had to hack the internals a bit to get it to work=20 > with postgresql. I noticed that at some point you created=20 > PGSQLDataListSource so I am assuming I was seeing known issues with=20 > PEAR + postgresql. I am wondering if my changes would be a good patch?= =20 ----The PGSQLDataListSource is just a simple postgresql specific version = of the SQLDataListSource class. It doesn't even use PEAR. There is a PEARSQLDataListSource as well. So you were playing with the PEARSQLDataListSource and using PEAR's Pos= tgres driver and it didn't work? I usually don't use PEAR myself, so I haven't= played with it in ages. I usually use ADODB, as it is much more feature rich, a= nd is faster then PEAR. I'm a bit of a contributor to ADODB as well. > If so I can test them against mysql to make sure I haven't broken=20 > anything there. If you find bugs w/ stuff then feel free to make fixes, just make sure to= test them, and then annotate the CHANGELOG file with what was changed.=20 Thanks again for helping out!! I really appreciate it. Walt |
From: Culley H. <cu...@fa...> - 2004-03-06 15:42:40
|
Hey Walt, Tried to find you on irc yesterday without much luck... I am going to keep working on the form wizard but it is going to take a while. I need to learn the internals of FormProcessor and FormContent and it is going to take a while. I am working on setting up xdebug so I can actually step through the code. I am going on vacation next Thursday for 12 days and I am going to tinker with it while on the road. Meanwhile I started working with DataList-- pretty slick! Specifically I was working with the PEAR+postgresql flavor. Right out of the box it wouldn't work and I had to hack the internals a bit to get it to work with postgresql. I noticed that at some point you created PGSQLDataListSource so I am assuming I was seeing known issues with PEAR + postgresql. I am wondering if my changes would be a good patch? If so I can test them against mysql to make sure I haven't broken anything there. culley |
From: Walter A. B. I. <wab...@3g...> - 2004-02-21 01:05:48
|
Quoting Erich Enke <twi...@fa...>: > 1) For the issue of zooming in and out and seeing the TextCSSNav not > respect its containing table's boundaries, see > www.theexecutivecenter.com/testing/mine.php ----aaahhh ok. I see the issue. If you look at the theme.php output it = has the css defined for the TextCSSNav. the main class '.textnav' has a height: = 16px; setting, which is most likely what is breaking the layout in your page. = The browser doesn't seem to make the outer TD stretch to allow this to fit. = Try uncommenting the css style in main.css for .menublock make the height:2= 1px; uncommented. See if that helps some. This is just a css/html issue. =20 You can customize the css styles for any of the phphtmllib widgets withou= t hacking the widget's source. Check out the code in the phphtmllib/css di= r. =20 > 2) One of the more difficult things with setting up a complete site > solution, at least for beginners, seems to be getting a user registrati= on > and login system going. I would love to see widgets in phphtmllib hand= le > login and so on, maybe setting flags for if you want to authenticate > using MYSQL or ADODB or /etc/passwd. Ideally, one would be able to add > the authentication widget to your page, and it would take care of > starting the session with appropriate session variables and so on. The > widget would have a method that you could call to see explicitly if the > user is logged in or not. >=20 > In addition to a login/authentication widget, there would be an > associated registration widget, in which you could register new users, > and maybe a change password widget. >=20 > One benefit to having these predefined widgets is that it would give > users a starting place as to knowing how the forms are all supposed to > work together. Another benefit is that, well, I would love to be able = to > just include the LoginWidget, and have that be that. Also, such forms > that are commonplace to e-commerce could be done securely once, instead > of having all sorts of insecure hacks running around out there. ----yah this might be helpfull, but that gets phphtmllib into the realm o= f a framework, instead of just an html library. What password checking algor= ithm would one use? Some use myslq's built in password(), others would use an= md5, others could use blowfish, etc. etc. This is besides the fact that other= s might want to use a flat file for storing account info. This widget would have= to abstract the 'db' which is out of the scope of phphtmllib. I guess it co= uld create an interface which a user would be forced to override to provide t= he checking mechanism...hmm. food for thought at least. > Only problem is, I'm having trouble figuring out how to implement it.=20 > Such as, how does one make sure that the session is started before any > HTML is output once you have authenticated the user? Add a > this_is_an_authentication_page method to any page-like widget? Make an > authentication widget that contains any other component which does its > stuff first and then passes control off to its children? Something els= e > I haven't considered? -----when someone submits the login form, you do all of the checking for authentication. Once authenticated, then you start the session. This al= l happens during the processing of the form, which happens before render() = time and hence before any html output. W >=20 > Thanks, > --epte >=20 > --=20 > http://www.fastmail.fm - Access your email from home and the web >=20 >=20 > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=3D1356&alloc_id=3D3438&op=3Dclick > _______________________________________________ > Phphtmllib-devel mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phphtmllib-devel >=20 |
From: Erich E. <twi...@fa...> - 2004-02-21 00:07:24
|
1) For the issue of zooming in and out and seeing the TextCSSNav not respect its containing table's boundaries, see www.theexecutivecenter.com/testing/mine.php 2) One of the more difficult things with setting up a complete site solution, at least for beginners, seems to be getting a user registration and login system going. I would love to see widgets in phphtmllib handle login and so on, maybe setting flags for if you want to authenticate using MYSQL or ADODB or /etc/passwd. Ideally, one would be able to add the authentication widget to your page, and it would take care of starting the session with appropriate session variables and so on. The widget would have a method that you could call to see explicitly if the user is logged in or not. In addition to a login/authentication widget, there would be an associated registration widget, in which you could register new users, and maybe a change password widget. One benefit to having these predefined widgets is that it would give users a starting place as to knowing how the forms are all supposed to work together. Another benefit is that, well, I would love to be able to just include the LoginWidget, and have that be that. Also, such forms that are commonplace to e-commerce could be done securely once, instead of having all sorts of insecure hacks running around out there. Only problem is, I'm having trouble figuring out how to implement it. Such as, how does one make sure that the session is started before any HTML is output once you have authenticated the user? Add a this_is_an_authentication_page method to any page-like widget? Make an authentication widget that contains any other component which does its stuff first and then passes control off to its children? Something else I haven't considered? Thanks, --epte -- http://www.fastmail.fm - Access your email from home and the web |
From: Walter A. B. I. <wab...@3g...> - 2004-02-19 23:51:38
|
Quoting Erich Enke <twi...@fa...>: > I've been playing around with the different widgets, getting myself a > nice template to work from. I have a nice page now (mine.php -- > attached), and everything stays pretty much within bounds when zooming = in > and out on the page... except for my TextCSSNav menu bar. I have it > enclosed in a table, and so I expected the TextCSSNav to respect the > boundaries of the table, but the table doesn't even resize, as if the > table doesn't recognize that it has anything in it. >=20 > I've tried everything I could think of, and I still don't know whether = it > is an error on my part, or something that phphtmllib should be doing bu= t > isn't. It's probably just one of those dumb oversights on my part.=20 > Insights? >=20 > Source and css are attached. >=20 > Thanks, > --epte Howdy, My box here @ work is currently being reinstalled w/ gentoo, so I'm goi= ng to be out of action for the rest of the day :( Do you have a url where I ca= n hit and see the issue you are talking about here? sorry, Walt |
From: Erich E. <twi...@fa...> - 2004-02-19 23:33:48
|
I've been playing around with the different widgets, getting myself a nice template to work from. I have a nice page now (mine.php -- attached), and everything stays pretty much within bounds when zooming in and out on the page... except for my TextCSSNav menu bar. I have it enclosed in a table, and so I expected the TextCSSNav to respect the boundaries of the table, but the table doesn't even resize, as if the table doesn't recognize that it has anything in it. I've tried everything I could think of, and I still don't know whether it is an error on my part, or something that phphtmllib should be doing but isn't. It's probably just one of those dumb oversights on my part. Insights? Source and css are attached. Thanks, --epte -- http://www.fastmail.fm - A no graphics, no pop-ups email service |