示例#1
0
function pp_getLink($text, $url, $modal = False)
{
    global $moo;
    if (!$moo) {
        $moo = new moo();
    }
    if ($modal) {
        return $moo->popup($text, $url, 1, "input");
    } else {
        return $moo->popup($text, $url, 0, "input", 0, 1);
    }
}
示例#2
0
    function getHeader($bannerText = '')
    {
        if ($this->headerSent() || core_getOption('CLI')) {
            return;
        }
        $this->parse_GET();
        if ($bannerText) {
            $this->bannerText = $bannerText;
        }
        if ($_SERVER["HTTPS"] == 'on') {
            $this->ref = $this->refSSL;
        } else {
            $this->ref = $this->home;
        }
        if (!$this->headerToShow) {
            $this->menuToShow = False;
        }
        if (!$this->menuToShow) {
            $this->alignCenter = True;
        }
        if (!$this->title) {
            $this->title = strip_tags($this->bannerText);
        }
        #preg_replace("/^<.*>(.*)<.*>$/",'\1',$this->bannerText);
        if (!$this->revision) {
            $this->revision = date("Ymd", getlastmod());
        }
        $fullWidth = !$this->menuToShow ? 'wide-' : '';
        if ($a = $GLOBALS["authClass"]) {
            if ($a->authenticated()) {
                unset($this->loginPage);
            }
        }
        if (FALSE) {
            if ($l = $this->loginPage) {
                $this->loginIcon = "<a href='" . $l . "'><img src='img/user_locked_16x16.png' border='0' alt='login'></a>";
            }
        } else {
            $moo = new moo();
            if ($l = $this->loginPage) {
                $this->loginIcon = $moo->popup("<img src='img/user_locked_16x16.png' border='0' alt='login'>", $l, True, True, True);
            }
        }
        if ($_GET["modal"] != 'yes') {
            ?>
<!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01//EN' 'http://www.w3.org/TR/html4/strict.dtd'>
<html lang='en'>
  <head>
    <title><?php 
            echo $this->title;
            ?>
</title>
    <meta http-equiv='content-type'        content='text/html; charset=utf-8'>
    <meta http-equiv='content-style-type'  content='text/css'>
    <meta http-equiv='content-script-type' content='text/javascript'>
    <meta http-equiv='pragma'              content='no-cache'>
    <meta http-equiv='cache-control'       content='no-cache, must-revalidate'>
    <meta http-equiv='expires'             content='0'>
    <meta http-equiv='imagetoolbar'        content='no'>
    <meta name='robots'                 content='index,follow'>
    <meta name='author'                 content='<?php 
            echo $this->author;
            ?>
'>
    <meta name='date-revision-yyyymmdd' content='<?php 
            echo $this->revision;
            ?>
'>
    <meta name='description'            content='NORDITA - Nordic Institute for Theoretical Physics'>
    <meta name='keywords'               content='NORDITA, Nordic Institute for Theoretical Physics, nordic, theoretical physics, physics, astrophysics, nuclear physics, astrobiology, high energy physics, condensed matter physics, condensed matter, string theory, particle physics, '>
    <link rel='shortcut icon' href='img/favicon_star.png'>
    <link type='text/css' rel='stylesheet' media='screen' href='css/screen.css'>
    <link type='text/css' rel='stylesheet' media='print'  href='css/print.css'>
<?php 
            $this->getJS_CSS();
            ?>
    <script type='text/javascript'>if (self != top) top.location=self.location</script>
  </head>
  <body>
<?php 
            $this->norditaHead();
            $this->menu();
            ?>
    <div id='container-<?php 
            print $fullWidth;
            ?>
body'>
      <div id='block-main'>
        <hr class='hidden'>
        <div id='div-main-content'>
<?php 
        }
        $this->headerSent('yes');
    }