Re: cvs: pearweb /public_html authors.php test.php /sql Makefile addusers.php cvs_acl.sql data.php users.sql

From: Date: Mon, 12 Nov 2001 20:23:34 +0000
Subject: Re: cvs: pearweb /public_html authors.php test.php /sql Makefile addusers.php cvs_acl.sql data.php users.sql
References: 1  Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1304@lists.php.net to get a copy of this message
Yeah, but personally I find the amount of code I have to write with HTML_Table ends up as pretty much the same, and then I prefer this way. I have used it in other places though. - Stig Bertrand Mansion wrote: > > Did you hear about an HTML_Table class in PEAR ? > ;-) > > >> while (is_array($row = $sth->fetchRow(DB_FETCHMODE_ASSOC))) { > >> extract($row); > >> if (++$rowno % 2) { > >> - print " <TR bgcolor=\"#e8e8e8\">\n"; > >> + print " <tr bgcolor=\"#e8e8e8\">\n"; > >> } else { > >> - print " <TR BGCOLOR=\"#e0e0e0\">\n"; > >> + print " <tr bgcolor=\"#e0e0e0\">\n"; > >> } > >> - print " <TD>$handle</TD>\n"; > >> - print " <TD>$name</TD>\n"; > >> + print " <td>$handle</td>\n"; > >> + print " <td>$name</td>\n"; > >> > >> if ($showemail) { > >> - print " <TD><A > >> HREF=\"mailto:$email\">$email</A></TD>\n"; > >> + print " <td><a > >> href=\"mailto:$email\">$email</a></td>\n"; > >> } else { > >> - print " <TD>(not shown)</TD>\n"; > >> + print " <td>(not shown)</td>\n"; > >> } > >> if (!empty($homepage)) { > >> - print "<TD><A > >> HREF=\"$homepage\">$homepage</A></TD>"; > >> + print "<td><a > >> href=\"$homepage\">$homepage</a></td>"; > >> } else { > >> - print '<TD>&nbsp;</TD>'; > >> + print '<td>&nbsp;</td>'; > >> } > >> - print "\n <TD><A > >> > >> HREF=\"edit-author.php?handle=".$row['handle']."\">[edit]</A>&nbsp; > >> - <A > >> > >> HREF=\"detail-author.php?handle=".$row['handle']."\">[details]</A></TD>\n"; > >> - print " </TR>\n"; > >> + print "\n <td><a > >> > >> href=\"edit-author.php?handle=".$row['handle']."\">[E]</a>&nbsp; > >> + <a > >> > >> href=\"detail-author.php?handle=".$row['handle']."\">[I]</A></td>\n"; > >> + print " </tr>\n"; > >> } > >> > >> -print "</TABLE>\n"; > >> +print "</table>\n"; > > -- > PEAR CVS Mailing List (http://pear.php.net/) > To unsubscribe, e-mail: pear-cvs-unsubscribe@lists.php.net > For additional commands, e-mail: pear-cvs-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.pear.cvs (#1304) next »