Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Klasa HTML
Forum PHP.pl > Forum > Gotowe rozwiązania > Szukam
yarns
Witam serdecznie,

czy ktoś z szanownych grupowiczy posiada lub wie gdzie znaleźć dobrą klase HTML?

Pozdrawiam
FiDO
ke ?

Mozesz wyjasnic co masz na mysli przez klase HTML ?
yarns
Coś w stylu:

  1. <?php
  2.  
  3. class HTML {
  4. /**
  5.  * functions for table production TblsStart : start of the table, we open the ta
    g
  6.  *
  7.  * @param integer $bordure define the size of the border
  8.  * @param integer $width define the width of the table
  9.  * @param integer $height define the height of the table
  10.  * @param integer $espCell define the space between cell
  11.  * @param integer $rempCell define the remp between cell
  12.  * @param string $bordercolor define the color of the border of the table
  13.  * @param string $class use a pre define style for the table
  14.  */
  15.  
  16. function TblStart ($bordure = "1", $width = -1, $height = -1, $espCell = "2",
  17. $rempCell = "4", $bordercolor = -1, $class = -1)
  18. {
  19. $optionClasse = "" ;
  20. $optionWidth = "" ;
  21. $optionHeight = "" ;
  22. if ($bordercolor != -1)
  23. $optionClasse = " BORDERCOLOR ="$bordercolor"" ;
  24. if ($class != -1)
  25. $optionClasse .= " CLASS ="$class"" ;
  26. if ($width != -1)
  27. $optionWidth = " WIDTH ="$width"" ;
  28. if ($height != -1)
  29. $optionHeight = " HEIGHT ="$height"" ;
  30.  
  31. echo "<TABLE BORDER ="$bordure"" . " CELLSPACING ="$espCell" CELLPADDING ="$rempCell" "
  32.  . $optionWidth . $optionHeight . $optionClasse . ">n" ;
  33. } 
  34. }
  35.  
  36. ?>
FiDO
Hmm.. nie znam takich, bo jakos nie przemawia do mnie ich funkcjonalnosc. Jestes pewien, ze wolisz takie cos niz jakis system szablonow ?
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2024 Invision Power Services, Inc.