Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

refresh_collection_frame()

Description

Adds script to page that refreshes the Collection bar

Parameters

ColumnTypeDefaultDescription
$collection integer "" Collection id

Return

void

Location

include/collections_functions.php lines 643 to 660

Definition

 
function refresh_collection_frame($collection="")
    {
    
# Refresh the CollectionDiv
    
global $baseurl$headerinsert;

    if (
getvalescaped("ajax",false))
        {
        echo 
"<script  type=\"text/javascript\">
        CollectionDivLoad(\"" 
$baseurl "/pages/collections.php" . ((getval("k","")!="")?"?collection=" urlencode(getval("collection",$collection)) . "&k=" urlencode(getval("k","")) . "&":"?") . "nc=" time() . "\");    
        </script>"
;
        }
    else
        {
        
$headerinsert.="<script  type=\"text/javascript\">
        CollectionDivLoad(\"" 
$baseurl "/pages/collections.php" . ((getval("k","")!="")?"?collection=" urlencode(getval("collection",$collection)) . "&k=" urlencode(getval("k","")) . "&":"?") . "nc=" time() . "\");
        </script>"
;
        }
    }

This article was last updated 23rd November 2020 16:05 Europe/London time based on the source file dated 23rd November 2020 16:00 Europe/London time.