/openshift/adei

To get this branch, use:
bzr branch http://darksoft.org/webbzr/openshift/adei

« back to all changes in this revision

Viewing changes to xslt/settings.xsl

  • Committer: Suren A. Chilingaryan
  • Date: 2011-01-26 02:48:39 UTC
  • mto: This revision was merged to the branch mainline in revision 212.
  • Revision ID: csa@dside.dyndns.org-20110126024839-nv6qp2ie9stmd2dn
Support of Appled devices by Toni Pirhonen

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<xsl:stylesheet version="1.0"  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
3
 <xsl:output method="html" encoding="utf-8"/>
 
4
<xsl:template match="result">
 
5
  <div class = "settingspage">
 
6
  <div class="settingsheading"><table class="headingtable"><tr><td><div class="btn"><xsl:attribute name="onclick">javascript:settingmodule.goTo("<xsl:value-of select='history'/>");</xsl:attribute>Back</div></td><td><h1><xsl:value-of select="heading"/></h1></td></tr></table>
 
7
  </div>
 
8
  <div class = "settingscontent">
 
9
  <xsl:if test="string(page)='controlssearch'">
 
10
                <table>
 
11
                <tr>
 
12
                <td><input type="text" id="searchfield"></input></td><td><button><xsl:attribute name="onclick">javascript:settingmodule.Search();</xsl:attribute>Search</button></td>
 
13
                </tr>
 
14
                </table>
 
15
  </xsl:if>
 
16
  <xsl:if test="string(page) = 'searchresults'">
 
17
        <xsl:if test="count(//Value)=1">
 
18
        <xsl:if test="//Value[@certain]">
 
19
            <script type="text/javascript">
 
20
                adei.SetConfiguration(htmlEntityDecode('<xsl:value-of select="//Value/@props"/>'));
 
21
                adei.OpenModule('graph');
 
22
            </script>
 
23
        </xsl:if>
 
24
      </xsl:if>
 
25
        <ul class='ilist'>
 
26
        <xsl:for-each select='module/results/Value'>
 
27
                <li><xsl:attribute name='onclick'>javascript:settingmodule.goTo('<xsl:value-of select="@props"/>',true);</xsl:attribute><xsl:value-of select='@title'/></li>
 
28
        </xsl:for-each>
 
29
        </ul>
 
30
  </xsl:if>
 
31
  <xsl:if test="string(page)!='controlssearch'">
 
32
        <ul class='ilist'>
 
33
        <xsl:for-each select="value">
 
34
                <li><xsl:attribute name="onclick">javascript:settingmodule.sendGetRequest("<xsl:value-of select='@page'/>","<xsl:value-of select='@value'/>");</xsl:attribute><xsl:value-of select='@name' /></li>
 
35
        </xsl:for-each>
 
36
        </ul>
 
37
  </xsl:if>
 
38
  </div>
 
39
  </div>
 
40
</xsl:template>
 
41
</xsl:stylesheet>
 
42
         
 
 
b'\\ No newline at end of file'