Your IP : 3.145.157.4


Current Path : /usr/local/mgr5/skins/dragon/
Upload File :
Current File : //usr/local/mgr5/skins/dragon/modules.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:template match="/" priority="100">
    <xsl:choose>
      <!--Fatal error-->
      <xsl:when test="/doc/error and not(/doc/tparams/sfrom)">
        <xsl:value-of select="/doc/error/msg"/>
      </xsl:when>
      <!-- go from ok to blank page -->
      <xsl:when test="/doc/ok and /doc/ok/@type = 'blank' and /doc/tparams/to = 'newwindow'">
        <script language="JavaScript">
          location= "<xsl:value-of select="/doc/ok" disable-output-escaping="yes"/>";
        </script>
      </xsl:when>
      <!--from extform-->
      <xsl:when test="/doc/ok and /doc/ok/@type = 'top' and /doc/tparams/sfromextform = 'yes'">
        <script>
          location= "<xsl:value-of select="concat(/doc/@host, $binary, '?', /doc/ok)" disable-output-escaping="yes"/>";
        </script>
      </xsl:when>
      <!--from extform-->
      <xsl:when test="/doc/ok and /doc/ok/@type = 'url' and /doc/tparams/sfromextform = 'yes'">
        <script>
          location = '<xsl:value-of select="/doc/ok" disable-output-escaping="yes" />';
        </script>
      </xsl:when>
      <!--top go to url-->
      <xsl:when test="/doc/ok and /doc/ok/@type = 'top' and /doc/ok != '' and not(/doc/tparams/sfrom)">
        <script>
          location= "<xsl:value-of select="concat(/doc/@host, $binary, '?', /doc/ok)" disable-output-escaping="yes"/>";
        </script>
      </xsl:when>
    </xsl:choose>
  </xsl:template>
</xsl:stylesheet>