BLHTML.org

BLHTML.org / Web Programming / BLHTML / BLHTML Manual / BLHTML funktion list /

 
  BLHTML funktion list 21395 79
funktion:  return:How to use:
#,#'Installation script, a packed '
#+##Showing: brädgård: #
#<#<Showing: html tagg: <
#>#>Showing: html tagg: >
#_#&nbsp;Shows fasta SPACE
 
#BS#\Showing: \
#-|##-|#Installation script, a packed (
#|-##|-#Installation script, a packed )
#,,#"Installation script, a packed "
#//#//Remark: // omit the remaining code on the following line
#/*#/*Remark: omit code starting marker /*
#*/#*/Remark: omit the final code selection */

More information:
  • Special characters
  • BLHTML Introduction
  • Function Information Overview information of BLHTML functions
  • BLHTML syntax How BLHTML are designed and provides
  •   NEWPOST 3121 0
    #NEWPOST# is a forum admin command
    Rights to use this function #NEWPOST#:
  • Data manager

  • #NEWPOST# Showing the new messages posted in the forum while the user was logged off.
    No new post Ingen new post har postats
    New Post been posted 2005-11-21 18:46 New post har postats den 2005-11-21 18:46
    If field last in table member är tomt show inte #NEWPOST#


    Example:
    #NEWPOST
            old(Ingen new post har postats)
            new(New Post been posted)
    #

    More information:
  • FORUM
  •   CLS 2928 0
    #CLS# is an independent function
    Rights to use this function #CLS#:
  • BASIC

  • #CLS# CLear Screen
    Page startas tom #CLS# återställer back to en tom page
    CLS är ett example kommando in MyBLHTML:
    modules/MyBLHTML.php
    Denna funktion can raderas!

    Example:
    #$error=1#
    This html text going to disappear
    #IF($error) then(#CLS#)#
    New text

    Returns:
    New text

    More information:
  • #HALT#
  •   SQLGET 3065 0
    #SQLGET# is an admin, database function
    Rights to use this function #SQLGET#:
  • Only Admin Accounts

  • #SQLGET#:
  • Hämtar ett or flera value from databasen
  • Kan hämta data from table pictures (that not har key field)
  • Forum sets #SYSTEM[forum]# to 1 for att forhindra att #SQLGET# används in forum
  • #SQLGET# can ej läsa password in table member

  • values:  defaults:  description:
    valueSQL fråga som can läsa ett field
    typetype=show shows only svaret
    blhtmlblhtml=on BLHTML executes value
    returnreturn=variable stores the results in $variable

    Ett field en variable:
    #SQLGET value(select no from pictures where user='$user' and no=$pic) return=pic#
    // Lagrar outcome from no to variable $pic

    Lagra in arrayer

    Returnera hela sökoutcome:
    #SQLGET value(select * from product where id=$id)#
    // Lagrar contents in fielden: $0, $fieldname1, $1, $fieldname2, $2 and $fieldname3 osv...

    Lagra array[-] with fieldindex:
    #SQLGET value(select id, user, rubric from Artiklar where id=1) return(A[-])# // Lagrar $A[0], $A[1] and $A[2]

    A: #$A#<br>
    A[+]: #$A[+]#<br>
    A[*]: #$A[*]#

    Returns:
    A: Array
    A[+]: 1 BLHTML (Web Programmering)
    A[*]: 0 1 1 BLHTML 2(Web Programmering)

    Lagra array[+] with fieldname:
    #SQLGET value(select id, user, rubric from Artiklar where id=1) return(B[+])# // Lagrar $B[id], $B[user] and $B[rubric]

    B: #$B#<br>
    B[+]: #$B[+]#<br>
    B[*]: #$B[*]#

    Returns:
    A: Array
    A[+]: 1 BLHTML (Web Programmering)
    A[*]: id 1 user BLHTML rubric(Web Programmering)

    Lagra array[*] with fieldindex and fieldname:
    #SQLGET value(select id, user, rubric from Artiklar where id=1) return(C[*])#
    // Lagrar $C[0], $C[id], $C[1], $C[id], $C[2] and $C[rubric]

    C: #$C#<br>
    C[+]: #$C[+]#<br>
    C[*]: #$C[*]#

    Returns:
    C: Array
    C[+]: 1 1 BLHTML BLHTML (Web Programmering) (Web Programmering)
    C[*]: 0 1 id 1 1 BLHTML user BLHTML 2(Web Programmering) rubric(Web Programmering)

    More information:
  • #FIELD#
  • #READ#
  • Array handling
  • array
  • #ARRAY#
  •   MEMBER_ADMIN 2932 0
    #MEMBER_ADMIN# is an Admin command
    Rights to use this function #MEMBER_ADMIN#:
  • Admin

  • #MEMBER_ADMIN#:
  • Read and write table member who handles accounts information
  • returnerar $blhtml_member_admin, en BLHTML array som contents value from:
    array value:  fieldname:  description:
    0statusKontorights
    1ldbKontots databaspage
    2activeAccount attribute
    3emailKontots nuvarande email
    4untiltid to konto skall raderas (ej Admin accounts)
  • Av säkerhets skäl can ej passwordet change
  • modules/admin.php

  • values:  defaults:  description:
    idcurrent accountAccount for editing
    typeinfoName on account id (all can använda)
    dropdelete account (only Admin accounts)
    statusKontorights
    dbKontots databaspage
    propertyAccount attribute
    emailKontots nuvarande email
    untilHur länge datapage skall vara tos datapage skall raderas
    (Admin datapage raderas ej)
    activeDatapage attribute
    blhtmlblhtml=on BLHTML executes until

    Example:
    #MEMBER_ADMIN id=100#
    #$blhtml_member_admin#<br>
    #DATA[blhtml_member_admin] array=0#

    Returns:
    (51) () (4294967292) (test@blhtml.com) (180730)
    51

    Example:
    #MEMBER_ADMIN id=100 status=51 until(#GETDATE year=1#) blhtml=on#
    // Set status = 51 and add one year on datasheet 100 livespan

    Sätter status = 51 and forlänger konto 100 livslängd with ett år.

    Vad är name for account 12? (only for admin):
    #IF($acc_1) else(#$acc_1=12#)#
    #MEMBER_ADMIN id=$acc_1 type=info return=ACC_1#

    Accountts name: <b>#$ACC_1#</b>

    Returns:
    Accountts name: Library

    More information:
  • #GETDATE#
  • Tabell member
  •   PIC_ADMIN 3104 0
    #PIC_ADMIN# is an Admin command
    Rights to use this function #PIC_ADMIN#:
  • Admin
  • Lesser admin (User can only manage egna pictures)

    • #PIC_ADMIN#:
    • Read and update the picture table which handles pictures for the account
    • returnerar $blhtml_pic_admin[+], en BLHTML array som contents value from field no (vilka pictures account innehar)
    • User with Lesser admin can only administer eget account and max skapa 20 pictures som är 200000 bytes
    • modules/admin.php
    values:  defaults:  description:
    idcurrent accountAccount for editing
    noPicture space som skall edited/raderas
    eraseerase=all, delete all pictures
    erase=on delete pic=picture (erase=on if värde or kryssruta)
    lastlast=X, lägger to/delete X amount pictures (erase=on for att radera pictures)
    sizeMax lagrings utrymme in byte pictures can vara
    widthShows pictures with width punkter bred
    heightShows pictures with height punkter hög
    altPicture name text
    titlePictures informationstext
    pictureShows standard picture no=picture
    untilHur länge pictures skall existera tos de raderas
    (Admin pictures raderas ej)
    blhtmlblhtml=on BLHTML executes until

    Example:
    // Add 5 pictureslot on account 150 that can store pictures that is 200000 bytes
    #PIC_ADMIN id=150 last=5 size=200000 until(#GETDATE year=1#) blhtml=on#

    #PIC_ADMIN no=1 picture=54#
    // Erase uploaded picture (if any) and set free picture no to 54

    Adderar 5 picture lagringsplatser on account 150 som can lagra pictures som är max 200000 byte stora

    More information:
  • Tabell pictures
  •   PAGE_ADMIN 3863 1
    #PAGE_ADMIN# is an Admin command
    Rights to use this function #PAGE_ADMIN#:
  • Admin
  • Lesser admin, user can only manage egna datapage
    • #PAGE_ADMIN#:
    • Page Manager show and manage the datapage table
    • returnerar blhtml_page_admin, en BLHTML array som contents pages for current (id) account
    • modules/admin.php
    values:  defaults:  description:
    idcurrent accountAccount for editing
    pageSpesifik page A-Z att addera or radera
    or amount pages som skall adderas, 0 + pages
    eraseerase=on delete page=A-Z
    erase=all delete all pages on current id
    untilny page: day+=7Hur länge datapage skall vara tos datapage skall raderas
    (Admin datapage raderas ej)
    attribDatapage attribute
    blhtmlblhtml=on BLHTML executes until

    Example:
    #$id=200#
    #PAGE_ADMIN id=$id page=3#

    // Add 3 datasheet to account 200 and add 7 day to datasheet livespan

    #PAGE_ADMIN id=201 page=B until(#GETDATE year=1#) blhtml=on#

    /*
            Add page B if not exist.
            If datasheet B exist PAGE_ADMIN only update field until
            to account 201 that get 365 days livespan from today
    */

    Lägger to 3 datapage to konto 200 som gäller in 7 days

    Lägger to datapage B if not existerar.
    If datapage existerar updates bara until
    for datapage to konto 201 som sklall gälla in 365 days

    More information:
  • Example: Installation script for flera account
  • Members page: Page handler
  • #GETDATE#
  • #COPY_PAGE#
  • Example: Show pages
  •   GETDATE 3798 0
    #GETDATE# is an independent function
    Rights to use this function #GETDATE#:
  • BASIC

  • #GETDATE# returnerar datum

    values:  defaults:  description:
    typetype=U Seconds since the Unix Epand (January 1 1970 00:00:00 GMT)
    formatday180722
    min1807220841
    yearAdderar on/ of år
    mounthAdderar månader on/av
    dayAdderar days on/av
    countRäkna amount days from #GETDATE# datum to count=YYYYMMDD
    returnreturn=variable stores the results in $variable

    Example:
    Today: #GETDATE#<br>
    Yesterday: #GETDATE day=-1#<br>
    Tomorrow: #GETDATE day=1#<br><br>

    +1 year: #GETDATE year=1#<br>
    +1 mounth: #GETDATE mounth=1#<br>
    +1: week: #GETDATE day=7#<br><br>

    +1 year +1 mounth +7 day: #GETDATE year=1 mounth=1 day=7#

    Returns:
    Today: 180722
    Yesterday: 180721
    Tomorrow: 180723

    +1 year: 190722
    +1 mounth: 180822
    +1: week: 180729

    +1 year +1 mounth +7 day: 190829

    Example: Räkna days
    #$date=20190323#
    #GETDATE count=$date return=end_date#

    Account end in #$end_date# days!

    Returns:
    Account end in 244 days!

    Formatera #GETDATE#:
    #WHEN value(#GETDATE year=1#) space=- type=date blhtml=on#

    Returns:
    2019-07-22

    Output min:
    #GETDATE type=U format=min value(#DATE value=U#) blhtml=on#
    Returns:
    1807220841

    More information:
  • #DATE#
  • #WHEN#
  •   FIELD 3452 0
    #FIELD# is a database function
    Rights to use this function #FIELD#:
  • Admin and lesser admins
  • Data manager, users can only read their own table

  • #FIELD# count / add up fields from the table

    values:  defaults:  description:
    idcurrent accountTable to be counted
    typecount
    sum
    avg
    first
    last
    min
    max
    rnd
    Counts the possitive numbers in fields from a table
    Sum of a field from a table
    The average of a field from a table
    Take out first key value and subtract sub=0
    Take out last key value and adding add=0
    Get the smallest number
    Get the biggest number
    Get a random field
    fieldkey fieldField to be treated
    whereSQL where expression
    decimal2type=avg Number of decimal places the answer must be presented with
    blhtmlblhtml=on BLHTML executes where
    returnreturn=variable stores the results in $variable

    Example:
    You have
    <b>#FIELD where(mailto = "#SYSTEM[myname]#" and grp = 1) blhtml=on#</b>
    unread mail in #SYSTEM[rubric]#
    of totaly #FIELD where(mailto = "#SYSTEM[myname]#") blhtml=on# mail<br><br>

    #FIELD
            type=sum
            field=income
            where(month=$month)
    #


    #FIELD id=13 type=last add=1#

    Returns:
    You have 1 unread mail in your inbox of totaly 8 mail

    The sum of all the fields where the field month equal to $month

    Get the last key value + 1 from table 13

    More information:
  • #READ#
  • basket
  • #BASKET#
  • #SQLGET#
  •   STR 5657 1
    #STR# is an independent function
    Rights to use this function #STR#:
  • Admin, type=delfile/tofile/fromfile
  • BASIC

  • #STR# manage and manipulerar strings

    values:  defaults:  description:
    valueString som skall edited value(Text string) / value(array[+])
    type tophparray
    fromphparray

    chr
    asc
    len

    noexe
    exe
    html
    txt
    upper
    lower
    names

    convert






    select

    replace
    pos

    md5
    rot13
    crypt
    password





    mirror
    rnd

    word
    shuffle
    inv
    sort

    echo


    smily

    delfile
    tofile
    fromfile
    #$blhtmlarray[+](NULL ONE TWO)##STR array=blhtmlarray type=tophparray return=tophp#
    #STR value(array(0 => 'NULL', 1 => 'ONE', 2 => 'TWO')) type=fromphparray return=toblhtml#

    Omvandla ASCii to character PHP: chr
    Omvandla character to ASCii PHP: ord
    Returnerar amount characters in string PHP: strlen

    Exekverar inte BLHTML variables, vid utskrift show variables and BLHTML functions
    Exekverar BLHTML, variables
    Konverterar string to html specialcharacters PHP: htmlentities
    Konverterar back html specialcharacters to characters PHP: html_entity
    Gör string to VERSALER PHP: strtoupper
    Gör string to gemener PHP: strtolower
    Gör string to gemener and varje ord börjar with en VERSAL

    convert Konverterar olika characters in dokument for att kunna användas for olika ändamål.
    format använder följande bitar:
    format=1 insert <br> for varje radbyte
    format=2 change ut all < > to #<# #>#
    format=4 change ut all # to #+#
    format=8 change ut all ' and " to #,# and #,,#

    select sätter from=0 and to=NULL som standard.
    Returnerar string from=from to=to from value PHP: substr
    Change ut from="string" in value="Orginal string" to="to" PHP: str_replace
    Returnerar position get=from value PHP: strpos

    Returnerar string/fils checksumma PHP: md5
    Roterar bokstäver A to Z, 13 steg in alfabetet PHP: str_rot13
    Krypterar string to standard Unix DES-baserad kryptering PHP: crypt
    Create a slumpmässig string.
    len=8 sätter längden on den slumpmässiga string
    format=0 Create a string with only VERSALER
    format=1 Create a string with VERSALER and gemener
    format=2 Create a string with VERSALER, gemener and siffror

    Inverterar bokstäverna in value(!gnärts ne rä atteD)
    Blandar ordningen on bokstäver from value

    word plockar ut field no=0 from value(array[+]) field
    Blandar ordningen on value(array[+]) field PHP: shuffle
    Inverterar ordningen on value(array[+]) field
    Sorterar "natural order" ordning on value(array[+]) field PHP: natsort

    Skickar value direkt to webpage, används for felsökning of kod,
    or to write above webpage.

    Konverterar: ":) ;) :D :'( :( :| : >:(" to smilysar

    type=delfile name=filename delete include/filename
    type=tofile name=filename value(Writes text to fil) mode=w mode table: PHP: fopen
    type=fromfile name=filename läser from fil. blhtml=on BLHTML executes contents from filen
    blhtmlblhtml=on BLHTML executes value
    returnreturn=variable stores the results in $variable

    exe, noexe and blhtml:
    #$picture=4#
    #$page=A#
    #STR value(#$picture id=1#) type=exe blhtml=on#<br>          // Exekverar variables, BLHTML
    #STR value(#+#$picture id=1#+#) blhtml=on type=exe#<br>          // Exekverar BLHTML, variables


    // Exekverar variables, BLHTML
    Länk: #STR value(#$page id=1#) blhtml=on#<br>

    // Exekverar nothing
    #STR type=noexe value(#$var=1#(#SUM value($var)#)(#$var#)($var))#"<br>
    // Exekverar BLHTML
    "#STR type=noexe value(#$var=2#(#SUM value($var)#)(#$var#)($var)) blhtml=on#"<br>
    // Exekverar variables, BLHTML
    "#STR value(#$var=8#(#SUM value($var)#)(#$var#)($var)) blhtml=on#"

    Returns:
    BLHTML
    #4 id=1#
    Länk: BLHTML.org
    "#$var=1#(#SUM value($var)#)(#$var#)($var)"
    "(2)(2)($var)"
    "(8)(8)(8)"

    String management with fil:
    // Create: include/test.log for läs and skriv

    #$file=test.log#
    #$s(Write one line to file: <b>$file</b><br>
    )#


    // #STR type=tofile value=$s name=$file# // Create a ny: test.log
    #STR type=tofile value=$s name=$file mode=a+#
    // Add value to file: $file

    Print from file:<br>
    #STR type=fromfile name=$file#
    // #STR type=delfile name=$file# // Delete fil: $file

    Returns:
    Print from file:
    Write one line to file: test

    Att skapa en string and kunna change variablesna in string:
    #$no(one two)#

    #STR type=noexe value(the string: $no) return=echo#

    1: #$echo#<br>
    1: #STR type=exe value=$echo#<br><br>

    #$no(ett två)#

    2: #$echo#<br>
    2: #STR type=exe value=$echo#

    Returns:
    1: the string: $no
    1: the string: one two

    2: the string: $no
    2: the string: ett två

    Slumpa/invertera strings:
    #$str(one two three four five)# // Create a string

    #STR type=password#<br>
    #STR type=rnd value(ABCDE)#<br>
    #STR type=mirror value=$str return=str#
    str: #$str#

    Returns:
    31L1103A
    DCABE
    str: evif ruof eerht owt eno

    Example: type=smily:
    #$smile=":);):D:'(smily example:(:|:\>:("#

    #$smile#
    <br>
    #STR type=smily value=$smile#

    Returns:
    :);):D:'(smily example:(:|:>:(
    happyblinkjoycrysmily examplesadwhat:angry

    Invertera, slumpa and sortera arrayer:
    #$str[+](one two three four five)# // Create a array

    // Function STR executes fler än en subfunktion: mirror and inv
    #STR type(mirror inv) value($str[+] six seven eight) return(str2[+])# // Returnerar outcome to a new array $str2
    (mirror inv) in new array: #$str2[+]#<br>

    sort: #STR type=sort value($str2[+] 'NINE 9' "10 TEN" (11 ELEVEN) TWELVE)#

    Returns:
    (mirror inv) in new array: thgie neves xis evif ruof eerht owt eno
    sort: thgie neves xis evif ruof eerht owt eno 'NINE 9' "10 TEN" (11 ELEVEN) TWELVE

    More information:
  • #STR# example
  • #SUM# counting numbers and variables
  • Show Error details
  • #ARRAY#
  • Array handling
  •   TEXTAREA 3079 0
    #TEXTAREA# is an independent function
    Rights to use this function #TEXTAREA#:
  • All

  • #TEXTAREA# can användas in #EDii# or <TEXTAREA>
    Texten inom #TEXTAREA# BLHTML executes

    values:  defaults:  description:
    idName on html id objects
    nameObject name
    inkTextcolor
    paperBackground color
    cols#SYSTEM[EDii_width]#TEXTAREA Characters width
    rows#SYSTEM[EDii_height]#   TEXTAREA Rader
    wrapwrap=off bryter ej rader in TEXTAREA
    classCSS class
    onclickEvent call javascript
    onselectEvent call javascript
    onkeyupEvent call javascript
    onkeydownEvent call javascript
    onchangeEvent call javascript

    Example:
    #$str(This is an text)#
    #TEXTAREA name=page paper=000000 ink=78FF78 cols=30 rows=3#
    #+#$str(#$str#)#+#
    #+#$str#+#
    #/TEXTAREA#

    Returns:


    More information:
  • #EDii#
  •   RUBRIC 3247 0
    #RUBRIC# is a forum admin command
    Rights to use this function #RUBRIC#:
  • Data manager

  • #RUBRIC# is the rubric in the forum
    If postens up = id skall link hänshow to id post
    go=up sätts så att #CLICKED# inte räknas upp (Besökare to post)

    values:  defaults:  description:
    classaaCSS for rubric
    emptyCSS for rubric on post utan svar
    blhtmlblhtml=on BLHTML executes $rubric

    Example:
    #RUBRIC class=$rubric_class empty=$rubric_class_off#

    More information:
  • Working with Forum
  •   EDii 4659 1
    #EDii# is a database function

    Rights to use this function #EDii#:
  • Data manager

  • #EDii# är BLHTML and html texteditor in the Web browser.
    Används to write and redigera in forum

    EDii variables:
    $htmlidhtml: Objectsid
    $EDii_namehtml: Objectname
    $EDii_msgname on TEXTAREA
    #SYSTEM[EDii_width]#TEXTAREA characters bred (controlled in the Control Panel
    #SYSTEM[EDii_height]#TEXTAREA rows high (controlled in the Control Panel
    #SYSTEM[inp_bg]#som kommer att change to inp_paper
    $blhtml_inpButtons CCS if not active
    $blhtml_inp_onButtons CCS if active
    $EDiiEDii is set so EDii can't be called again
    (EDii = 1 JavaScript är include, EDii = 2 EDii är aktiv)
    $EDii_wrap#EDii wrap# on/off

    values:  defaults:  description:
    idcurrent accountAccount for EDii datapage
    name$EDii_namename on TEXTAREA
    typeshow
    preview
    textarea
    Returnerar EDii objects
    forhandsgranskar forumsposts
    returnerar EDii <textarea>
    pageIPage som shows forhandsgranskning
    editTexten som skall editeras
    blhtmlon: BLHTML executes edit
    ink$inkTextcolor in TEXTAREA
    paper$paperBackground color on TEXTAREA
    cols#SYSTEM[EDii_width]#TEXTAREA characters bred
    rows#SYSTEM[EDii_height]#TEXTAREA rader hög
    wraponTexten bryts for att anpassa textarean
    offNormal radbrytning
    rights2
    rubclassCSS class on rubric fields
    brclassCSS class on BR checkbox and text
    butclass$blhtml_inpCSS class on ej aktiva knappar
    butonclass$blhtml_inp_onCSS class on aktiva knappar
    widthSätter knappens width

    Example forhandsgranska forum:
    <br>
    #EDii         id=1 type=preview#

    Rubric:<br>
    #DATA[rubric] post=new#<br><br>

    #EDii
            id=1 htmlid=msg name=EDii_msg page=I
            cols=85 rows=28 rights=2
    #
    <br><br>

    Insert #EDii# in en datalist:
    #EDii         htmlid=info name=info rows=20 cols=85#

    Create dina egna ikoner:
    // Sätt $EDii_sprite to your picture file som contents your ikonrad innan #EDii# is called
    #$EDii_sprite=Mina_ikoner.png#
    #SET_CATCH_PAGE forum=Mitt_forum site=1 sheet=A#
    #ECHO id=10 page=D limit=1 always=true# // Calling Shared forum EDii
    Download Sprite mallen: EDii.pspimage and gör dina egna menu ikoner.

    More information:
  • Working with Forum
  •   SWITCH 3155 0
    #SWITCH# is an independent function
    Rights to use this function #SWITCH#:
  • BASIC

  • #SWITCH# jämfor ett värde with SWITCH value. If sant utfors SWITCH expressionen tos ett break slutfor SWITCH sattsen. If värde inte hittats utfors default. Efter default avslutas SWITCH sattsen oavsett.

    SWITCH är känslig for små and STORA bokstäver som standard. If case är satt to on efter default can SWITCH jämfora strings ovavsätt if STORA or små bokstäver

    Hierarki for SWITCH:
    #SWITCH($propertystring)
            (unique SWITCH propertystring):
            (
                    SWITCH statement
            )
            break
            propertystring: statement break
            default break
    case=off
    #

    values:  defaults:  description:
    breakIf värde överensstämmer with SWITCH värde stoppas SWITCH sattsen here
    defaultIf nothing SWITCH värde överensstämt with value som checked avslutas SWITCH sattsen with att BLHTML executes default expressionet
    caseonSWITCH är känslig for stora and små bokstäver
    offSWITCH gör ingen skillnad on stora and små bokstäver

    Example:
    # SWITCH($color)
            red: (RED<br>) break
            green: (GREEN<br>) break
            (light green): (Light GREEN<br>) break
            blue: (BLUE and )
            white: (WHITE<br>) break
            black: (BLACK<br>) break

            default: (<font color=FF0000>ERROR</font> no known color)
    #

    Returns if color="green":
    GREEN<br>

    Returns if color="light green":
    Light GREEN<br>

    Returns if color="blue":
    BLUE and WHITE<br>

    Returns if color="pink":
    ERROR no known color

    Example, declare variables and ange text:
    STARTing Example:<br>
    #$e(this is)#
    #$s(an string...<br>)#
    #$u=tReE#

    #SWITCH($u)
            tree:($e $s)
            Eight:(#$eight=right#)
            2:(two)
            hej:(#$hello=yes#)
            3:(tree)
            4:(four five)
            5:(#$n=8# #$m[$n](ooooh $eight)#)
            6:(Eight?)
            7:(#CLS#)

            default:(<br>thats all for now, this is the End<br><br>) break
    case=off
    #


    hello=#$hello#<br>
    m[#$n#]=#$m[$n]#<br>
    eight=#$eight#

    Returns:
    this is an string...
    twotreefour fiveEight?
    thats all for now, this is the End

    hello=yes
    m[8]=ooooh right
    eight=right

    More information:
  • #IF#
  • #DO#
  • BLHTML syntax
  • Variable handling
  •   SET_CATCH_PAGE 3854 0
    #SET_CATCH_PAGE# is a database function

    Rights to use this function #SET_CATCH_PAGE#:
  • Data manager
  • BASIC

  • #SET_CATCH_PAGE# set return / catch page and basket/forum variables.

    Page management variables:
  • $ID
  • $page
  • $site
  • $sheet

  • basket variables:
  • $blhtml_table
  • $blhtml_erase

  • Forum variables:
  • $forum
  • $sort


  • values:  defaults:  description:
    idcurrent accountSätter $ID, retur table id
    page$pageSätter $page, retur databad
    tableSätter $blhtml_table, table som skall administreras
    keyKey FieldSätter field som skall agera key field
    eraseSätter $blhtml_erase som delete post/er

    forumSätter $forum
    siteSätter $site
    sheetSätter $sheet
    sortSätter $sort (Sätter sorteringsordning in delade forum)

    Example, att returnera to nuvarande page:
    #SET_CATCH_PAGE#

    Example, att returnera to nuvarande page and sätta basket variables:
    #SET_CATCH_PAGE table=data account erase=delete#

    Example, datapage skickas to basket returneras to new page in samma table:
    #SET_CATCH_PAGE page=H table=data account#

    Call ett virtuellt forum:
    #SET_CATCH_PAGE forum=User sort( DESC)#
    #ECHO id=34 page=A limit=1 always=true#

    More information:
  • #BASKET#
  • basket
  • Radera post/er
  •   PIC 3456 0
    #PIC# is an independent function

    Rights to use this function #PIC#:
  • All

  • #PIC# shows pictures i:
    images/
    Admin can lägga upp public pictures som all can ta del av

    values:  defaults:  description:
    idView image from account id
    noView image no from account id

    valuePicture filename
    typepngFiländelse
    widthpicture width
    heightpictures height
    altShow inga pictures, show only alt text
    titlepictures mouseover text
    returnreturn=variable stores the results in $variable

    Show uppladdade pictures:
    Example:
    #PIC value(logo) type=jpg alt(Logo text)# // shows picture images/logo.jpg if den existerar

    // forsöker save bliden images/natur/flower.jpg in variable $flower
    #PIC value(natur/flower) type=jpg return=flower#

    View pictures from account:
    Example:
    #2 id=1# // Hur you statiskt print out picture 2 on account 1

    #$no=3#
    #PIC no=$no id=1# // This print out picture 3 on account 1

    // Du can uppnå samma resultat with STR:
    #STR type=exe value(#$no id=1#) format=0 blhtml=on#
    // This print out picture 2 on account 1 dynamic

    More information:
  • My Pictures
  • #STR#
  • BLHTML forum  


    apache MySQL PHP No to software patents! BLHTML
    © 2003, 2010 BLHTML
    This page is created with BLHTML in 0.2690 seconds