function W3SelectPage() { ############################################# # User function logic should be added below # ############################################# # e.g. # global $w3UI; if (W3IsEmptyRequest()) { return W3CreateUI("uidPageDebug"); } else { if (preg_match(W3CreateAPIReg("aidPage"), $_SERVER["REQUEST_URI"], $matches) and array_key_exists($matches[1], $w3UI)) { return W3CreateUI($matches[1]); } } return W3CreateUI("uidPageError"); ############################################# # User function logic should be added above # ############################################# }
function W3CreatePanel($uid) { global $w3UI; W3CreateUIBasePro($uid); $type = "div"; $body = ""; if (array_key_exists(w3PropTypeDef, $w3UI[$uid])) { foreach ($w3UI[$uid][w3PropTypeDef] as $value) { $body .= W3CreateUI($value); } } $attr = ""; return W3CreateUIBase($uid, $type, $body, $attr); }