Your IP : 3.135.244.36


Current Path : /usr/local/mgr5/skins/dragon/
Upload File :
Current File : //usr/local/mgr5/skins/dragon/extok.xsl

<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:mgr="http://ispsystem.com/xslplugin" exclude-result-prefixes="mgr">
  <xsl:import href="extfunc.xsl"/>
  <xsl:output method="xml" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  <xsl:strip-space elements="*"/>
  <xsl:variable name="binary" select="/doc/@binary"/>
  <xsl:variable name="host" select="/doc/@host"/>
  <xsl:variable name="hostname" select="/doc/user/@hostname"/>
  <xsl:variable name="localdir">default/</xsl:variable>
  <xsl:template match="/">
    <xsl:choose>
      <!--Fatal error-->
      <xsl:when test="/doc/error and not(/doc/tparams/sfrom)">
        <xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html></xsl:text>
        <html>
          <head>
            <title>Fatal error</title>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
            <link rel="stylesheet" href="/manimg/orion/default/main.css?v=&amp;r=" type="text/css"/>
          </head>
          <body class="b-body">
            <div id="main-wrapper">
              <div id="fatal-error-tab1" class="b-fatal-error">
                <div class="b-fatal-error__round">
                  <div class="b-fatal-error__inner">
                    <div class="b-fatal-error__sign">
                      <div class="b-fatal-error__sign-top"><xsl:text> </xsl:text></div>
                      <div class="b-fatal-error__sign-body"><xsl:text> </xsl:text></div>
                      <div class="b-fatal-error__sign-empty"><xsl:text> </xsl:text></div>
                      <div class="b-fatal-error__sign-dot"><xsl:text> </xsl:text></div>
                    </div>
                    <div class="b-fatal-error__message"><xsl:value-of select="/doc/error/msg"/></div>
                  </div>
                </div>
                <div class="b-fatal-error__triangle"></div>
              </div>
            </div>
          </body>
        </html>
      </xsl:when>
       <!-- go from ok to blank page -->
      <xsl:when test="/doc/ok and /doc/ok/@type = 'blank'">
        <script type="text/javascript">
          window.opener = null;
          window.location= "<xsl:value-of select="/doc/ok" disable-output-escaping="yes"/>";
        </script>
      </xsl:when>
       <!-- top handler reload page-->
      <xsl:when test="/doc/ok and /doc/ok/@type = 'top'">
        <script type="text/javascript">
          window.opener = null;
          window.location= "<xsl:value-of select="concat(/doc/@host, $binary, '?', /doc/ok)" disable-output-escaping="yes"/>";
        </script>
      </xsl:when>
      <!--url handler -->
      <xsl:when test="/doc/ok and /doc/ok/@type = 'url'">
        <script type="text/javascript">
          window.opener = null;
          window.location = '<xsl:value-of select="/doc/ok" disable-output-escaping="yes" />';
        </script>
      </xsl:when>
       <!-- open form -->
      <xsl:when test="/doc/ok and /doc/ok/@type='form'">
        <script type="text/javascript">
          window.opener = null;
          window.location = '<xsl:value-of select="concat(/doc/@host, $binary, '?', /doc/ok)" disable-output-escaping="yes"/>';
        </script>
      </xsl:when>
      <!-- open list -->
      <xsl:when test="/doc/ok and /doc/ok/@type='list'">
        <script type="text/javascript">
          window.opener = null;
          window.location = '<xsl:value-of select="concat(/doc/@host, $binary, '?', /doc/ok)" disable-output-escaping="yes"/>';
        </script>
      </xsl:when>
      <xsl:when test="/doc/ok">
        <script type="text/javascript">
          window.opener = null;
          window.location = '<xsl:value-of select="concat(/doc/@host, $binary)"/>';
        </script>
      </xsl:when>
    </xsl:choose>

  </xsl:template>

</xsl:stylesheet>