forked from Kitware/CDash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
manageMeasurements.xsl
123 lines (115 loc) · 3.86 KB
/
manageMeasurements.xsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
<xsl:include href="footer.xsl"/>
<xsl:include href="headscripts.xsl"/>
<xsl:include href="headeradminproject.xsl"/>
<!-- Local includes -->
<xsl:include href="local/footer.xsl"/>
<xsl:include href="local/headscripts.xsl"/>
<xsl:include href="local/headeradminproject.xsl"/>
<xsl:output method="xml" indent="yes" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
<xsl:template match="/">
<html>
<head>
<title><xsl:value-of select="cdash/title"/></title>
<meta name="robots" content="noindex,nofollow" />
<link rel="StyleSheet" type="text/css">
<xsl:attribute name="href">
<xsl:value-of select="cdash/cssfile"/>
</xsl:attribute>
</link>
<script src="javascript/cdashFilters.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
function Ask()
{
if(confirm('Are you sure you want to delete selected entries?')) return true;
else return false;
}
</script>
<xsl:call-template name="headscripts"/>
</head>
<body bgcolor="#ffffff">
<xsl:choose>
<xsl:when test="/cdash/uselocaldirectory=1">
<xsl:call-template name="headeradminproject_local"/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="headeradminproject"/>
</xsl:otherwise>
</xsl:choose>
<form method='POST'>
<xsl:attribute name="action">manageMeasurements.php?projectid=<xsl:value-of select="cdash/project/id" /></xsl:attribute>
<br/>
<table width="800px" align='center'>
<tr bgcolor="#CCCCCC"><th>Measurement Name</th><th>Show on Test Page</th><th>Show Test Summary Page</th><th>Delete</th></tr>
<xsl:for-each select="/cdash/measurements/measurement">
<tr>
<td align="center">
<input name="name[]" type="text" id="name[]" size="25">
<xsl:attribute name="value"><xsl:value-of select="name" /></xsl:attribute>
</input>
<input type='hidden' name='id[]'>
<xsl:attribute name="value"><xsl:value-of select="id" /></xsl:attribute>
</input>
</td>
<td align="center">
<input type="checkbox" value="1">
<xsl:attribute name="name">showT[<xsl:value-of select="id" />]</xsl:attribute>
<xsl:if test="showT=1">
<xsl:attribute name="checked"></xsl:attribute>
</xsl:if>
</input>
</td>
<td align="center">
<input type="checkbox" value="1">
<xsl:attribute name="name">showS[<xsl:value-of select="id" />]</xsl:attribute>
<xsl:if test="showS=1">
<xsl:attribute name="checked"></xsl:attribute>
</xsl:if>
</input>
</td>
<td align="center">
<input type="checkbox" name="select[]">
<xsl:attribute name='value'><xsl:value-of select='id'/></xsl:attribute>
</input>
</td>
</tr>
</xsl:for-each>
<tr bgcolor="#CADBD9">
<td align="center">
<input name="nameN" type="text" id="nameN" size="25"/>
</td>
<td align="center">
<input type="checkbox" name="showTN" value="1"/>
</td>
<td align="center">
<input type="checkbox" name="showSN" value="1"/>
</td>
<td></td>
</tr>
</table>
<center>
<input name='submit' value='Save' type='submit'/>
<input name='del' value='Delete Selected' onClick='javascript:return Ask()' type='submit'/>
</center>
<input type='hidden' name='projectid'>
<xsl:attribute name="value">
<xsl:value-of select="/cdash/project/id" />
</xsl:attribute>
</input>
</form>
<!-- FOOTER -->
<br/>
<xsl:choose>
<xsl:when test="/cdash/uselocaldirectory=1">
<xsl:call-template name="footer_local"/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="footer"/>
</xsl:otherwise>
</xsl:choose>
</body>
</html>
</xsl:template>
</xsl:stylesheet>