listmounts.xsl 3.19 KB
Newer Older
1
<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version = "1.0" >
2
<xsl:output omit-xml-declaration="no" method="html" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" indent="yes" encoding="UTF-8" />
3
<xsl:template match = "/icestats" >
4
<html xmlns="http://www.w3.org/1999/xhtml">
5 6 7 8
<head>
<title>Icecast Streaming Media Server</title>
<link rel="stylesheet" type="text/css" href="/style.css" />
</head>
9
<body>
10
<h2>Icecast2 Admin</h2>
11 12 13

<div class="roundcont">
<div class="roundtop">
14
<img src="/corner_topleft.jpg" class="corner" style="display: none" alt="" />
15 16 17 18
</div>
	<table border="0" cellpadding="1" cellspacing="3">
	<tr>        
	    <td align="center">
19 20 21
	        <a class="nav" href="stats.xsl">Admin Home</a>
		    <a class="nav" href="listmounts.xsl">List Mountpoints</a>
        	<a class="nav" href="moveclients.xsl">Move Listeners</a>
22 23 24 25
        	<a class="nav" href="/status.xsl">Index</a>
	    </td></tr>
	</table>
<div class="roundbottom">
26
<img src="/corner_bottomleft.jpg" class="corner" style="display: none" alt="" />
27 28
</div>
</div>
29
<p><br /></p>
30 31 32 33

<h1>Active Mountpoints</h1>
<div class="roundcont">
<div class="roundtop">
34
<img src="/corner_topleft.jpg" class="corner" style="display: none" alt="" />
35
</div>
36
<div class="content">
37
<xsl:for-each select="source">
38 39 40 41 42 43 44 45 46 47 48 49 50
<div class="streamheader">
    <table cellspacing="0" cellpadding="0" >
        <colgroup align="left" />
        <colgroup align="right" width="300" />
        <tr>
            <td><h3>Mount Point <xsl:value-of select="@mount" /></h3></td>
            <xsl:choose>
                <xsl:when test="authenticator">
                    <td align="right"><a class="auth" href="/auth.xsl">Login</a></td>
                </xsl:when>
                <xsl:otherwise>
                    <td align="right">
                        <a href="{@mount}.m3u">M3U</a>
51 52 53
                        <a href="{@mount}.xspf">XSPF</a>
                        <a href="{@mount}.vclt">VCLT</a>
                    </td>
54 55 56 57 58
                </xsl:otherwise>
            </xsl:choose>
    </tr></table>
</div>

59
<table border="0" cellpadding="1" cellspacing="5" style="background-color: 444444">
60 61
	<tr>        
	    <td align="center">
62 63 64
			<a class="nav2" href="listclients.xsl?mount={@mount}">List Clients</a>
        	<a class="nav2" href="moveclients.xsl?mount={@mount}">Move Listeners</a>
			<a class="nav2" href="updatemetadata.xsl?mount={@mount}">Update Metadata</a>
65
        	<a class="nav2" href="killsource.xsl?mount={@mount}">Kill Source</a>
66
                <xsl:if test="authenticator"><a class="nav2" href="manageauth.xsl?mount={@mount}">Manage Authentication</a></xsl:if>
67 68 69 70
	    </td></tr>
	</table>
<br />
<p><xsl:value-of select="listeners" /> Listener(s)</p>
71
<p><br /></p>
72 73 74 75
</xsl:for-each>
<xsl:text disable-output-escaping="yes">&amp;</xsl:text>nbsp;
</div>
<div class="roundbottom">
76
<img src="/corner_bottomleft.jpg" class="corner" style="display: none" alt="" />
77 78 79 80 81 82 83
</div>
</div>
<div class="poster">Support icecast development at <a class="nav" href="http://www.icecast.org">www.icecast.org</a></div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>