Your IP : 216.73.216.155


Current Path : /usr/local/ispmgr/skins/sirius/
Upload File :
Current File : //usr/local/ispmgr/skins/sirius/eula.xsl

<?xml version='1.0'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="UTF-8" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>

<xsl:variable name="theme" select="/doc/@theme"/>
<xsl:variable name="binary" select="/doc/@binary"/>
<xsl:variable name="msg" select="/doc/messages"/>

<xsl:template match="/doc">
<html>
<head>
	<link href="{$theme}{@css}" rel="stylesheet" type="text/css"/>
	<title><xsl:value-of select="$msg/msg[@name='title']"/></title>
	<xsl:if test="/doc/@host"><base href='{/doc/@host}{/doc/@theme}{/doc/@img}'/></xsl:if>
	<script language="JavaScript">
		<xsl:if test="not(/doc/@host)">document.write( "&lt;base href='"+location.protocol+"//"+location.host+"<xsl:value-of select="/doc/@theme"/><xsl:value-of select="/doc/@img"/>'&gt;" );</xsl:if>
	</script>
	<xsl:if test="htmlinc">
		<xsl:for-each select="htmlinc">
			<xsl:value-of select="inc" disable-output-escaping="yes"/>
		</xsl:for-each>
	</xsl:if>
</head>
<body leftmargin="0" marginheight="0" marginwidth="0" topmargin="0">
	<center>
		<div class="eula-content"><xsl:apply-templates select="*[name() != 'htmlinc']"/></div>
	</center>
	<br/><br/><br/>
</body>
</html>
</xsl:template>

<xsl:template match="h1">
	<h1 class="eula"><xsl:apply-templates/></h1>
</xsl:template>

<xsl:template match="h2">
	<h2 class="eula"><xsl:apply-templates/></h2>
</xsl:template>

<xsl:template match="div">
	<div><xsl:for-each select="@*"><xsl:copy/></xsl:for-each><xsl:apply-templates/></div>
</xsl:template>

<xsl:template match="p">
	<p class="eula"><xsl:apply-templates/></p>
</xsl:template>

<xsl:template match="ul">
	<ul class="eula"><xsl:apply-templates/></ul>
</xsl:template>

<xsl:template match="li">
	<li class="eula"><xsl:apply-templates/></li>
</xsl:template>

<xsl:template match="u">
	<u><xsl:apply-templates/></u>
</xsl:template>

<xsl:template match="br">
	<br/>
</xsl:template>

<xsl:template match="buttons">
	<div align="center"><xsl:apply-templates/></div>
</xsl:template>

<xsl:template match="button">
	<input type="button" class="button">
		<xsl:attribute name="value"><xsl:value-of select="@value"/></xsl:attribute>
		<xsl:attribute name="onclick">location = '<xsl:value-of select="/doc/@binary"/>?func=eula&amp;answer=<xsl:value-of select="@action"/>'</xsl:attribute>
	</input>
</xsl:template>

</xsl:stylesheet>