Exemplo n.º 1
0
 public function setIframesIndex()
 {
     $iframes = new zcale_server_html_views_Iframes();
     $params = zcale_core_path_targets_ServerPath::get_PARAMS();
     $params->remove("run");
     $phpUrl = _hx_string_or_null(zcale_core_path_targets_ServerPath::get_ROOT_URL()) . _hx_string_or_null(zcale_core_path_targets_ServerPath::get_RELATIVE()) . "?" . _hx_string_or_null(zcale_PathTools::paramsToString($params));
     $jsUrl = _hx_string_or_null(zcale_core_path_targets_ServerPath::get_ROOT_URL()) . "?run=" . "js" . "&/#!" . _hx_string_or_null(zcale_core_path_targets_ServerPath::get_RELATIVE()) . "?" . _hx_string_or_null(zcale_PathTools::paramsToString($params));
     $flashUrl = _hx_string_or_null(zcale_core_path_targets_ServerPath::get_ROOT_URL()) . "?run=" . "fl" . "&/#!" . _hx_string_or_null(zcale_core_path_targets_ServerPath::get_RELATIVE()) . "?" . _hx_string_or_null(zcale_PathTools::paramsToString($params));
     $iframes->addIframe($phpUrl)->addIframe($jsUrl)->addIframe($flashUrl);
     $this->html->head->addStyle("html, body { height: 100%; }");
     $this->html->body->add($iframes->toString());
 }
Exemplo n.º 2
0
function zcale_tests_PathTest_0()
{
    $str = "";
    $str .= "\n Path.DIR: " . _hx_string_or_null(zcale_core_path_targets_ServerPath::get_DIR());
    $str .= "\n Path.URL:      " . _hx_string_or_null(zcale_core_path_targets_ServerPath::get_URL());
    $str .= "\n Path.ROOT_URL:  " . _hx_string_or_null(zcale_core_path_targets_ServerPath::get_ROOT_URL());
    $str .= "\n Path.ROOT_DIR: " . _hx_string_or_null(zcale_core_path_targets_ServerPath::get_ROOT_DIR());
    $str .= "\n Path.FILE_DIR: " . _hx_string_or_null(zcale_core_path_targets_ServerPath::get_FILE_DIR());
    $str .= "\n Path.RELATIVE: " . _hx_string_or_null(zcale_core_path_targets_ServerPath::get_RELATIVE());
    $str .= "\n Path.PARAMS_STRING: " . _hx_string_or_null(zcale_core_path_targets_ServerPath::get_PARAMS_STRING());
    $str .= "\n PathTools.paramsToString( Path.PARAMS ): " . _hx_string_or_null(zcale_PathTools::paramsToString(zcale_core_path_targets_ServerPath::get_PARAMS()));
    zcale_Core::trace($str);
}