- <?
- /**
- * @package table
- * @filesource
- * @see HTML_TABLE_PAGE_PATH.'/CssTable.php'
- * @copyright (c) http://Finn-Rasmussen.com
- * @license http://Finn-Rasmussen.com/license/ myPHP License conditions
- * @author http://Finn-Rasmussen.com
- * @version 1.9
- * @since 21-oct-2005
- */
-
- /**
- * The required files
- */
- require_once(HTML_BASE_PAGE_PATH.'/Css.php');
-
- /**
- * Generates the Table CSS
- * <code>
- * Usage:
- * $css = new CssTable($href);
- * print $css->getHtml();
- * Or:
- * CssTable::display($href);
- * </code>
- * @package table
- */
-
- class CssTable extends Css {
- /**
- * Constructor
- * @param String $href The url to the css filename (i.e. /css/my.css)
- */
- function CssTable($href='') {
- $this->Css($href!=''?$href:CSS_FILE_NAME_TABLE);
- }
-
- /**
- * Returns the css Table components
- * @return String the complete css
- */
- function getCustom() {
- $html = '';
- $html .= $this->getHeader($this->getClassName());
- $html .= $this->getComponent('.'.CSS_SKELETON_LEFT ,CSS_SKELETON_LEFT_COLOR ,CSS_SKELETON_LEFT_BACKGROUND,'','','',CSS_SKELETON_WIDTH_LEFT);
- $html .= $this->getComponent('.'.CSS_SKELETON_CENTER,CSS_SKELETON_CENTER_COLOR,CSS_SKELETON_CENTER_BACKGROUND);
- $html .= $this->getComponent('.'.CSS_SKELETON_RIGHT ,CSS_SKELETON_RIGHT_COLOR ,CSS_SKELETON_RIGHT_BACKGROUND,'','','',CSS_SKELETON_WIDTH_RIGHT);
-
- $html .= $this->getBorderSingle('.'.CSS_BORDER_LEFT ,'left' ,'',CSS_1PX,CSS_BORDER_STYLE_SOLID);
- $html .= $this->getBorderSingle('.'.CSS_BORDER_RIGHT ,'right' ,'',CSS_1PX,CSS_BORDER_STYLE_SOLID);
- $html .= $this->getBorderSingle('.'.CSS_BORDER_TOP ,'top' ,'',CSS_1PX,CSS_BORDER_STYLE_SOLID);
- $html .= $this->getBorderSingle('.'.CSS_BORDER_BOTTOM ,'bottom' ,'',CSS_1PX,CSS_BORDER_STYLE_SOLID);
-
- // Different Views
- //$html .= $this->getClass('.'.CSS_BASKET_VIEW, CSS_BASKET_VIEW_COLOR ,CSS_BASKET_VIEW_BACKGROUND);
- //$html .= $this->getClass('.'.CSS_PAGE_VIEW, CSS_PAGE_VIEW_COLOR ,CSS_PAGE_VIEW_BACKGROUND);
- $html .= $this->getClass('.'.CSS_LIST_VIEW, CSS_LIST_VIEW_COLOR ,CSS_LIST_VIEW_BACKGROUND);
- //$html .= $this->getClass('.'.CSS_INVOICE_VIEW, CSS_INVOICE_VIEW_COLOR ,CSS_INVOICE_VIEW_BACKGROUND);
- //$html .= $this->getClass('.'.CSS_SHOW_VIEW, CSS_SHOW_VIEW_COLOR ,CSS_SHOW_VIEW_BACKGROUND);
- //$html .= $this->getClass('.'.CSS_FORM_VIEW, CSS_FORM_VIEW_COLOR ,CSS_FORM_VIEW_BACKGROUND);
- //$html .= $this->getClass('.'.CSS_SEARCH_VIEW, CSS_SEARCH_VIEW_COLOR ,CSS_SEARCH_VIEW_BACKGROUND);
- return $html;
- }
-
- /**
- * Display html
- * <code>
- * Usage:
- * CssTable::display($href);
- * </code>
- * @static
- * @param String $href The url to the css file (i.e. /css/my.css)
- */
- function display($href='') {
- $html = new CssTable($href);
- $html->addHtml();
- }
- }
- ?>