forked from Kitware/CDash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrecoverPassword.xsl
104 lines (95 loc) · 3.21 KB
/
recoverPassword.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
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
<xsl:include href="footer.xsl"/>
<xsl:include href="local/footer.xsl"/>
<xsl:include href="headscripts.xsl"/>
<xsl:include href="local/headscripts.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>
<xsl:call-template name="headscripts"/>
</head>
<body>
<div id="header">
<div id="headertop">
<div id="topmenu">
<a><xsl:attribute name="href">user.php</xsl:attribute>
<xsl:choose>
<xsl:when test="cdash/user/id>0">My CDash</xsl:when>
<xsl:otherwise>Login</xsl:otherwise>
</xsl:choose></a><a href="index.php">All Dashboards</a>
<xsl:if test="cdash/user/id>0">
<a href="user.php?logout=1">Log Out</a>
</xsl:if>
</div>
</div>
<div id="headerbottom">
<div id="headerlogo">
<a>
<xsl:attribute name="href">
<xsl:value-of select="cdash/dashboard/home"/></xsl:attribute>
<img id="projectlogo" border="0" height="50px">
<xsl:attribute name="alt"></xsl:attribute>
<xsl:choose>
<xsl:when test="cdash/dashboard/logoid>0">
<xsl:attribute name="src">displayImage.php?imgid=<xsl:value-of select="cdash/dashboard/logoid"/></xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="src">images/cdash.gif</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
</img>
</a>
</div>
<div id="headername2">
CDash
<span id="subheadername">
Recover password
</span>
</div>
</div>
</div>
<br/>
<div style="color: red;"><xsl:value-of select="cdash/warning" /></div>
<div style="color: green;"><xsl:value-of select="cdash/message" /></div>
<br/>
<!-- Main -->
<form method="post" action="" name="loginform">
<table border="0" cellpadding="4" cellspacing="0" width="100%" class="tabb">
<tbody>
<tr class="table-heading">
<td width="10%" class="nob"><div align="right"></div></td>
<td width="90%" class="nob"><div align="left"><b>Enter your email address you registered with CDash.</b></div></td>
</tr>
<tr class="table-heading">
<td width="10%" class="nob"><div align="right"> Email: </div></td>
<td width="90%" class="nob"><input class="textbox" name="email" size="40"/></td>
</tr>
<tr class="table-heading">
<td width="10%" class="nob"></td>
<td width="90%" class="nob"><input type="submit" value="Recover password >>" name="recover" class="textbox"/>
</td>
</tr>
</tbody>
</table>
</form>
<!-- FOOTER -->
<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>