BLHTML.org

Variable Handling /

 
  BLHTML control variables 1785 1
BLHTML använder följande $var/#DATA# php: $secure styrvariables:

Webserver:
variable:description:
$PHPSESSIDphp sessionsvariable
  • #DB#


  • SYSTEM $secure variables:
    variables:  description:
    mainset to TRUE if the main web database is active
    connected#DB value=connected#
    active#DB show=database#
    linkLink Variable for current connection to SQL Server

    $secure variables: system/boot.php
    variables:  description:
    typeTyp of databas
    serverAddress to SQL server
    databaseDatabase name
    userDatabase user
    passwdPassword database user

Admin Styrvariables:

variable:value:description:
$blhtml_su$blhtml_su=username Switsh User username

BLHTML System styrvariables:

variable:value:description:
$blhtml $blhtml="logon"
$blhtml="Logon"  

$blhtml=menu
$blhtml=logout
$blhtml=MyPAGE
Manage inloggningen
Manage inloggningen

Sätter Top menu on/av
Loggar ut user
Shows users homepage

$blhtml_printDisplaying Datapage for utskrift

$blhtml_actionSätter PHP returpage, standard; action=index.php
$blhtml_cmdcurrent BLHTML script kommando som exekveras

$blhtml_off$blhtml_off=1Shutdown BLHTML execute for current pagecalls
$JavaScript$JavaScript=1
$JavaScript=2
onfocus
#EDii#
$new_visitor_detected  sätts on if new user
$onfocusonfocus, sätt aktivt element

Datapage:

variable:description:
$blhtml_lastDatum datapage last updatedes
$blhtml_rubricDatapages rubric

The page's rubric: #$blhtml_rubric#<br>
<div align=RIGHT>Page last updated: <b>#WHEN type=date space=- value=$blhtml_last#</b></div>

$makestr$makestr=true returnerar bara sid data
$no_margin$no_margin=true Ingen marginal
$page_marginSätter margin-top and margin-bottom
$page_paddingSätter padding-left and padding-right (mellanrum mellan ram and sid data)

$page_margin and $page_padding sätts som standard to 15px
IE klarar inte of att sätta:
margin-left and margin-right, IE räknar with hela datapage and därmed hamnar ramen under the menu.

$border_typeSätter ramtyp for datapage
$border_colorSätter ramfärgen for datapage
$border_sizeSätter border width for datapage

Example:
#A id=1 page=A value(HOME ridge) data(border_type=ridge&border_color=FFB778&border_size=20)#<br>
#A id=1 page=A value(HOME dotted) data(border_type=dotted&border_color=FF983D&border_size=44)#

Returns:
HOME ridge
HOME dotted

Edit datapage:

variable:description:
$blhtml_safemodeSafe Mode, don't preview page when edit page
$blhtml_sendSave datapage
$blhtml_previewPreviews current datapage
$EDii_blhtmlShow #BLHTML# tags
$EDii_htmlShow <html> tags
$EDii_brGör <br> vid new rad
$EDii_textareaCreate kod in en TEXTAREA

Editor att skapa pages:
#EDii id=msg#<br>

#PLOPP name=blhtml_preview value=Preview#
#PLOPP name=blhtml_send value=Update#<br><br><br>

<hr> // Dessa kryssrutor är extra functions to editor att skapa pages and är därfor inte obligatoriska!
<input type=checkbox name=EDii_blhtml class=std>Show #+#BLHTML#+# tags<br>
<input type=checkbox name=EDii_html class=std>Show #<#html#># tags<br>
<input type=checkbox name=EDii_br class=std>Gör #<#br#># vid new rad<br>
<input type=checkbox name=EDii_textarea class=std>Create in en TEXTAREA
Page sätt under: Control Panel -> Editor att skapa pages

Forum variables:

$action$variabledescription:
edit$blhtml_forum_edit_preview// "edit" Preview post in forum
$blhtml_forum_edit_save// "edit" Update post in forum
quip$blhtml_forum_new_preview// Preview new forum post
reply$blhtml_forum_new_save// Save new forum post

Account administration script variables:

variable:value:description:
$blhtml_id#SYSTEM[whoami]#$blhtml_id; account id som talar if vart the script skall be installed
Administratör can change $blhtml_id under: Create script on account
Knappen Run script install script on account: $blhtml_id

$blhtml_myname#SYSTEM[myname]#$blhtml_myname; Name on account som run the script.
Val of $blhtml_id sätter $blhtml_myname
$blhtml_id and $blhtml_myname can användas in the script
for att tala if vilket account som the script skall slutligen be installed on

Övriga:

#IF# and #SWITCH#:
variable:description:
$blhtml_RETURNFunction som returneras to tolken
$RETURN_TEXTText som returneras from IF

#EDii#:
variable:description:
$EDii_nameName on EDii, standard name=EDii_msg
$EDii_rubric_classCSS class on rubricfields
$EDii_br_classCSS class on kryssrutor

forumedit page som edit post in forum
variable:description:
#SYSTEM[EDii_width]#TEXTAREA characters width
#SYSTEM[EDii_height]#rader for TEXTAREA

#PLOPP# and #EDii#:
variable:description:
$blhtml_inpCSS for BLHTML knapp
$blhtml_inp_onCSS for aktiverad BLHTML knapp

More information:
  • Översättättning
  • Account Admin variables
  • #IF#
  • #DATA#
  • #EDii#
  • #PLOPP#
  •   onfocus 1664 0
    Attributesen id sätter <html id=object> id can sättas for:
  • #DATA#
  • #EDii#
  • #TEXTAREA#
  • #PLOPP#

  • onfocus can sätta dessa object to aktiv if $onfocus = objects id värde.

    Example:
    #DATA[index] post=hidden value=242# // Sätter denna post som retur post

    #SET_CATCH_PAGE#
    #DATA[JavaScript] post=hidden value=1#
    // include JavaScript for onfocus function
    #DATA[onfocus] post=new type=dropdown value(()input textarea plopp)#<br><br> // Setting $onfocus variable

    INPUT:<br>
    #DATA[dat] id=input post=new class=txtbox#<br><br>

    TEXTAREA:<br>
    #TEXTAREA id=textarea name=tex rows=3 class=txtbox##$tex##/TEXTAREA#<br><br>

    #PLOPP id=plopp value(Chose textelement to use)#

    Returns:


    INPUT:


    TEXTAREA:




    More information:
  • BLHTML control variables
  • BLHTML forum  


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