@wuiPhpHtmlBannerTop()

Inserts standard NST WUI banner that should be at start of page.

Inserts the standard NST WUI top banner into the page being rendered. NOTE: This is macro is rarely used directly (only if your page defines its own specialized <body> section instead of using the predefined ones which are available). This macro is automatically included for you if you use either the @wuiPhpHtmlBodyBegin() or @wuiPhpHtmlDocBegin() macro.

Example of using the macro:

<?php

@wuiPhpSetPageInfo("$Id: wuiphp.xml,v 1.4 2008/12/22 13:24:55 rwhalb Exp $","2006-08-26","NST File Upload")

?>
@wuiPhpHtmlHeadBegin()
@wuiPhpHtmlHeadEnd()

<body>
  @wuiPhpHtmlBannerTop()

  @wuiPhpHtmlBannerBottom()
</body>
</html>

Assuming the com.ccg.macros.at.All class is within your CLASSPATH and the config/wuiphp.at macros file has been generated (Hint: run make atmacros in the wui directory), a developer should be able to run the above example by copy/pasting from below:

[root@probe root]# java com.ccg.macros.at.All <<EOF
@include("config/wuiphp.at",,"d")

<?php

@wuiPhpSetPageInfo("$Id: wuiphp.xml,v 1.4 2008/12/22 13:24:55 rwhalb Exp $","2006-08-26","NST File Upload")

?>
@wuiPhpHtmlHeadBegin()
@wuiPhpHtmlHeadEnd()

<body>
  @wuiPhpHtmlBannerTop()

  @wuiPhpHtmlBannerBottom()
</body>
</html>

EOF

This macro is defined as:

<a @htmlAttr("name","top")></a>

@javascriptBegin()
  beginDate = new Date();
  var startTime = beginDate.getTime();
  var sid = getSessionId();
  addSectionLink();
@javascriptEnd()

  <table@htmlAttr("class","hstyle")
        @htmlAttr("width","100%")
        @htmlAttr("border","0")
	@htmlAttr("summary","NST Header")>
    <tr>
      <td@htmlAttr("align","left")
         @htmlAttr("width","20%")>
        <table@htmlAttr("border","1")
	      @htmlAttr("summary","Nav Buttons")
              @htmlAttr("cellspacing","0")
              @htmlAttr("cellpadding","0")>
          <tr>
            <td>
              @wuiLinkButton("@outUrl()/frame.cgi","&nbsp;Contents&nbsp;","
                @htmlAttr("title","Main NST WUI Page")@htmlAttr("target","_top")")
            </td>
            <td>
              @wuiLinkButton("@outUrl()/index.cgi","&nbsp;No&nbsp;Frames&nbsp;","
                @htmlAttr("title","Main NST WUI Page (No Side Navigation Panel)")
                @htmlAttr("target","_top")")
            </td>
          </tr>
        </table>
      </td>

      <td@htmlAttr("align","center")
         @htmlAttr("width","60%")>
        <table@htmlAttr("class","sstyle")
              @htmlAttr("width","100%")
	      @htmlAttr("summary","Banner Info")
              @htmlAttr("border","0")>
          <tr>
            <td@htmlAttr("class","sstyle")
               @htmlAttr("align","left")
               @htmlAttr("width","34%")>
<?php
  $serverName = $wuiPageInfo->getServerName();
  if (serverName != null) {
    echo \"$serverName<br />\";
  }

  $serverAddr = $wuiPageInfo->getServerAddress();
  echo \"$serverAddr\";
?>
            </td>
            <td@htmlAttr("class","sstyle")
               @htmlAttr("align","center")
               @htmlAttr("width","32%")>
<?php
  $startDateStr = strftime("%a %b %e, %Y", $wuiPageInfo->getStartTime());
  $startTimeStr = strftime("%r %Z", $wuiPageInfo->getStartTime());
  echo \"$startDateStr<br />$startTimeStr\";
?>
            </td>

            <td@htmlAttr("class","sstyle")
               @htmlAttr("align","center")
               @htmlAttr("width","34%")>
              <p@htmlAttr("class","sstyle")
                @htmlAttr("style","text-align: right; margin: 0;")
                @htmlAttr("title","Running Time Duration Since Last Boot: (Days Hours:Minutes)")>@wuiPhpHtmlInline("echo $wuiPageInfo->getUpTime();")</p>
              <p@htmlAttr("class","sstyle")
                @htmlAttr("style","text-align: right; margin: 0;")
                @htmlAttr("title","Load Average For The Past: 1, 5 and 15 Minutes")>@wuiPhpHtmlInline("echo $wuiPageInfo->getLoadAvg();")</p>

            </td>

          </tr>
        </table>
      </td>

      <td@htmlAttr("align","right")
         @htmlAttr("width","20%")>
        <a @htmlAttr("href","@nstWuiMain()")>
	  <img @htmlAttr("src","@imageDirUrl()/splasnst157x46.gif")
	     @htmlAttr("width","157")
	     @htmlAttr("height","46")
	     @htmlAttr("border","0")
	     @htmlAttr("alt","NST Logo")
	     @htmlAttr("title","Go To NST Start Page")></a>
      </td>
    </tr>
  </table>