Collections functions
General functions
Render functions
Theme permission 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 939 to 957

Definition

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

    if (
getval("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 4th October 2022 11:05 Europe/London time based on the source file dated 4th October 2022 09:50 Europe/London time.