|
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template mode="edit" match="file">
<div class="adminmenu">
<div class="adminmenu">
<a class="button">
<xsl:attribute name="href">javascript:ThrowEventConfirm('removefile','<xsl:value-of select="@path"/>','Do you want to delete the file?')</xsl:attribute>
Delete file
</a>
<a class="button">
<xsl:attribute name="href">javascript:ThrowEventNew('renamefile','<xsl:value-of select="@path"/>','Write the new name')</xsl:attribute>
Rename file
</a>
<a class="button">
<xsl:attribute name="href">
<xsl:text>default.aspx?process=download/</xsl:text>
<xsl:value-of select="@path"/>&download=true</xsl:attribute>
Download file
</a>
<a class="button">
<xsl:attribute name="href">javascript:ModalDialogShow('<xsl:value-of select="/data/basepath"/>/default.aspx?process=admin/choose/folder','ReturnMethodMoveFile()');
</xsl:attribute>
Move file
</a>
<script language="JavaScript">
function ReturnMethodMoveFile()
{
tmpValue = ModalDialog.value;
ModalDialogRemoveWatch();
ThrowEvent('movefile','<xsl:value-of select="@path"/>*' +tmpValue);
}
</script>
</div>
<b><xsl:value-of select="@path"/></b><br/>
<xsl:if test="@mainmimetype='image'">
<div class="adminmenu">
<img>
<xsl:attribute name="src">default.aspx?process=download/<xsl:value-of select="@path"/></xsl:attribute>
</img>
</div>
</xsl:if>
</div>
</xsl:template>
</xsl:stylesheet>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.