docs.roxen.com
main | demo | docs
download | community | pike
© 2000 Roxen Internet Software
Suggestions, Comments or Complaints
manuals@roxen.com

DocsRoxen2.0Web Site Creator ManualText tags
   

  • <ai>
  • <autoformat>
  • <case>
  • <comment>
  • <default>
  • <doc>
  • <foldlist>
  • <obox>
  • <random>
  • <replace>
  • <smallcaps>
  • <sort>
  • <strlen>
  • <tablify>
  • <trimlines>
  • <tablify></tablify>

    Transforms texts into tables. No attributes required.

    Attributes

    rowseparator
    rowseparator=string (newline)
    Defines the rowseparator.
    cellseparator
    cellseparator=string (tab)
    Defines the cellseparator.
    border
    border=number
    Defines the width of the border. Default is 2 in nice and nicer modes. Otherwise undefined.
    cellspacing
    cellspacing=number
    Defines the cellspacing attribute. Default is 0 in nice and nicer modes. Otherwise undefined.
    cellpadding
    cellpadding=number
    Defines the cellpadding attribute. Default is 4 in nice and nicer modes. Otherwise undefined.
    interactive-sort
    Makes it possible for the user to sort the table with respect to any column.
    sortcol
    sortcol=number
    Defines which column to sort the table with respect to. The leftmost column is number 1. Negative value indicate reverse sort order.
    min
    min=number
    Indicates which of the inputed rows should be the first to be displayed. The first row is number 1.
    max
    max=number
    Indicates which of the inputed rows should be the last to be displayed.
    negativecolor
    negativecolor=color (#ff0000)
    The color of negative values in economic fields.
    cellalign
    cellalign={left, center, right}
    Defines how the cell contents should be align by default.
    cellvalign
    cellvalign={top, middle, bottom}
    Defines how the cell contents should be verically aligned.
    width
    width=number
    Defines the width of the table.
    <tablify cellseparator=','>
    Country, Population
    Sweden, 8 911 296
    Denmark, 5 356 845
    Norway, 4 438 547
    Iceland, 272 512
    Finland, 5 158 372
    </tablify>
    
    Country  Population  Sweden 8 911 296 Denmark 5 356 845 Norway 4 438 547 Iceland 272 512 Finland 5 158 372

    nice
    Add some extra layout to the table. All attributes below only applies in nice or nicer mode.
    grid
    grid=number
    Draws a grid with the thickness given.
    notitle
    Don't add a title to each column.
    bordercolor
    bordercolor=color (#000000)
    The color of the border.
    titlebgcolor
    titlebgcolor=color (#112266)
    The background color of the title.
    titlecolor
    titlecolor=color (#ffffff)
    The color of the title.
    modulo
    modulo=number
    Defines how many rows in a row should have the same color.
    oddbgcolor
    oddbgcolor=color (#ffffff)
    The first background color.
    evenbgcolor
    evenbgcolor=color (#ddeeff)
    The second background color.
    <tablify nice='' cellseparator=',' modulo='2'>
    Country, Population
    Sweden, 8 911 296
    Denmark, 5 356 845
    Norway, 4 438 547
    Iceland, 272 512
    Finland, 5 158 372
    </tablify>
    
    Country  Population  Sweden   8 911 296   Denmark   5 356 845   Norway   4 438 547   Iceland   272 512   Finland   5 158 372  

    nicer
    Add some extra extra layout to the table. All attributes below only applies in nicer mode. Nicer requires the gtext module.
    noxml
    Don't terminate the gifs with slashes.
    font
    font=text (lucida)
    Gtext font to write the column titles with.
    scale
    scale=float (0.36)
    Size of the gtext font to write the column titles with.
    textcolor
    textcolor=color (#000000)
    The color of the text. This will also work with economic fields in any mode.
    size
    size=number (2)
    The size of the table text.
    font
    font=string (helvetica,arial)
    The font of the table text.
    <tablify nicer='' cellseparator=',' font='andover' scale='1.0'>
    Country, Population
    Sweden, 8 911 296
    Denmark, 5 356 845
    Norway, 4 438 547
    Iceland, 272 512
    Finland, 5 158 372
    </tablify>
    
    Country  Population 
    Sweden   8 911 296  
    Denmark   5 356 845  
    Norway   4 438 547  
    Iceland   272 512  
    Finland   5 158 372  

    <fields></fields>

    The container 'fields' may be used inside the tablify container to describe the type of contents the fields in a column has. Available fields are
    • text (default)
    • left
    • center
    • right
    • num
    • int
    • economic-int
    • float
    • economic-float
    All fields except text overrides the cellvalign attribute.

    Attributes

    separator
    separator=string
    Defines the field type separator. The fields types are separated by
    • The value given in the separator attribute to fields.
    • The value given in the cellseparator attribute to tablify.
    • Tab.