BLHTML.org

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

 
  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
  •   Show pages 1377 0
    Admin can with detta script show all account datapages and associated rubrics
    (även inaktiverade pages)

    Example script:
    #IF(#SYSTEM[whoami]# > 99) then(#HALT#)#
    #SET_CATCH_PAGE#

    #IF(!$id) then(#SYSTEM[whoami] return=id#)#


    <br>
    id:<br>
    #DATA[id] post=new#<br><br>

    #PAGE_ADMIN id=$id#

    #$n=0#
    #: loop#
    #DATA[rubric] post=set value(#+#$blhtml_page_admin[$n] id($id) always=true#+#) blhtml=on#
    #+##
    $blhtml_page_admin[$n]##+# #DATA[rubric] blhtml=on#<br>

    #SUM value($n 1) return=n#
    #IF($blhtml_page_admin[$n]) then(#GOTO loop#)#
    <br><br>

    #PLOPP name=ignore value(Show pages)#<br><br>

    More information:
  • #PAGE_ADMIN#
  • BLHTML forum  


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