Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

331 lines
14 KiB

  1. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  2. <xsl:template match="/">
  3. <xsl:apply-templates select="mys"></xsl:apply-templates>
  4. </xsl:template>
  5. <!--MAIN BODY-->
  6. <xsl:template match="mys">
  7. <DIV id="divHeader" style="overflow:hidden; width: 100%;" noWrap="">
  8. <TABLE class="MysBodyTable" cellpadding="0" cellspacing="0">
  9. <!--Header Row -->
  10. <tr class="mysHeaderRow" >
  11. <td>
  12. <span class="mysLogoSpan">
  13. <center>
  14. <img width="48" height="48">
  15. <xsl:attribute name="src"><xsl:value-of select="image/@src"/></xsl:attribute>
  16. </img>
  17. </center>
  18. </span>
  19. </td>
  20. <td valign="top" width="100%" colspan="2" >
  21. <table cellpadding="0" cellspacing="0" height="100%" width="100%">
  22. <tr valign="top">
  23. <td width="50%">
  24. <div class="mysTitle"><xsl:value-of select="@title"/></div>
  25. <div style="margin-bottom:10px">
  26. <span class="mysServerCaption"><b><xsl:value-of select="@serverCaption"/></b></span>
  27. <b><span class="mysServer" id="server"></span></b>
  28. </div>
  29. </td>
  30. <td valign="middle" width="50%" align="right">
  31. <table style="margin-left:0px" width="100%">
  32. <tr>
  33. <td align="right" width="100%">
  34. <div style="margin-left:4px" class="mysSearchCaption"><xsl:value-of select="@searchCaption" disable-output-escaping="yes"/></div>
  35. </td>
  36. <td >
  37. <input type="edit" id="search" size="15" maxlength="256" onkeydown="if (window.event.keyCode == 13) {{ SearchHelp ( search.value ) ; }}">
  38. <xsl:attribute name="ACCESSKEY"><xsl:value-of select="@searchAccessKey"/></xsl:attribute>
  39. </input>
  40. <!-- The following label assigns Name to input field for accessibility-->
  41. <label style="display:none" for="search"><xsl:value-of select="@searchCaption" disable-output-escaping="yes"/></label>
  42. </td>
  43. <td valign="middle">
  44. <div style="margin-right:24px;">
  45. <img id="searchImg" tabindex="0" width="27" height="27" src="greenarrow_large.gif"
  46. onclick="SearchHelp(search.value);"
  47. onkeydown="if(window.event.keyCode == 13 || window.event.keyCode == 32) {{ SearchHelp(search.value); }}"/>
  48. <!-- The following label assigns Name to input field for accessibility-->
  49. <label style="display:none" for="searchImg"><xsl:value-of select="@searchCaption" disable-output-escaping="yes"/></label>
  50. </div>
  51. </td>
  52. </tr>
  53. </table>
  54. </td>
  55. </tr>
  56. </table>
  57. </td>
  58. </tr>
  59. </TABLE>
  60. </DIV>
  61. <DIV id="divBody" style=" overflow:auto; WIDTH:100%;" noWrap="" >
  62. <TABLE id="mainbody" class="MysBodyTable" cellpadding="0" cellspacing="0">
  63. <!--Body Row -->
  64. <tr>
  65. <td colspan="3">
  66. <table height="100%" width="100%" cellpadding="0" cellspacing="0">
  67. <tr>
  68. <!--Main Body Cell -->
  69. <td class="mysTaskPaneCell" colspan="2" width="100%" valign="top" style="margin-left: 24px; margin-right: 23px">
  70. <xsl:apply-templates select="tasklist"/>
  71. </td>
  72. <!--Tool Tray Cell -->
  73. <td rowspan="2" valign="top" style="margin-left: 24px; margin-right: 23px;">
  74. <xsl:apply-templates select="tools"/>
  75. </td>
  76. </tr>
  77. <tr>
  78. <td valign="bottom">
  79. <div class="mysTdDontDisplayCaption" id="logonBoxDiv">
  80. <input class="mysChkDontDisplayCaption" id="logonBox" type="checkbox" name="chkDontDisplay" onclick="setLogonBox(this.checked);" >
  81. <xsl:attribute name="ACCESSKEY"><xsl:value-of select="@dontDisplayAccessKey"/></xsl:attribute>
  82. </input>
  83. <label for="logonBox">
  84. <xsl:value-of select="@dontDisplayCaption" disable-output-escaping="yes"/>
  85. </label>
  86. </div>
  87. </td>
  88. </tr>
  89. <tr height="12px"><td></td></tr>
  90. </table>
  91. </td>
  92. </tr>
  93. </TABLE>
  94. </DIV>
  95. </xsl:template>
  96. <!--TASKS-->
  97. <xsl:template match="/mys/tasklist">
  98. <table class="mysTasks" cellpadding="0" cellspacing="0">
  99. <xsl:for-each select="task">
  100. <tr>
  101. <td>
  102. <xsl:apply-templates select="."/>
  103. </td>
  104. </tr>
  105. </xsl:for-each>
  106. </table>
  107. </xsl:template>
  108. <!--single task-->
  109. <xsl:template match="/mys/tasklist/task">
  110. <table class="mysTask" cellpadding="0" cellspacing="0">
  111. <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
  112. <tr ID="taskHeader"><!--Title row-->
  113. <td rowspan="5" valign="top" align="center"><!--Cell for icon-->
  114. <span class="mysTaskLogoCellSpan">
  115. <img class="mysTaskLogo" height="36" width="36">
  116. <xsl:attribute name="src"><xsl:value-of select="image/@src"/></xsl:attribute>
  117. </img>
  118. </span>
  119. </td>
  120. <td width="100%" valign="top"><!--Title cell-->
  121. <div class="mysTaskTitle"><xsl:value-of select="@title"/></div>
  122. <table class="mysMinTaskWidth"></table>
  123. </td>
  124. </tr>
  125. <tr id="taskBody" height="100%"><!--Body row-->
  126. <td valign="top" ><!--Description cell-->
  127. <div class="mysTaskDescription"><xsl:value-of select="description"/></div>
  128. </td>
  129. <td valign="top" colspan="2" ><!--subtask cell-->
  130. <div class="mysTaskSubTaskPane" >
  131. <xsl:apply-templates select="subtasks"/>
  132. </div>
  133. </td>
  134. </tr>
  135. <tr style="display:none" id="taskBodyNoInfo" height="100%"><!--Body row-->
  136. <td valign="top" ><!--Description cell-->
  137. <div width="100%" class="mysTaskDescription">
  138. <table>
  139. <tr>
  140. <td colspan="2">
  141. <div class="mysTaskNoDataDescription" width="100%"><xsl:value-of select="@nodatadescription"/><br/><br/></div>
  142. </td>
  143. </tr>
  144. <tr>
  145. <td valign="top">
  146. <img width="20" height="20" src="info.gif"/>
  147. </td>
  148. <td>
  149. <div class="mysTaskNoDataDescription" width="100%"><xsl:value-of select="@nodata"/></div>
  150. </td>
  151. </tr>
  152. </table>
  153. </div>
  154. </td>
  155. <td valign="top" colspan="2" ><!--subtask cell-->
  156. <div class="mysTaskSubTaskPane" >
  157. </div>
  158. </td>
  159. </tr>
  160. <tr id="roleDescription"><td><div class="mysRoleListDescription"><xsl:value-of select="@roledescription"/></div></td></tr>
  161. <tr id="taskRoles"><!--Roles row-->
  162. <td colspan="3">
  163. <span class="mysTaskRolesPane" id="roles"/>
  164. </td>
  165. </tr>
  166. </table>
  167. </xsl:template>
  168. <xsl:template match="/mys/tasklist/task/subtasks">
  169. <table width="100%" class="mysSubTasks" cellpadding="0" cellspacing="0">
  170. <xsl:for-each select="subtask">
  171. <tr class="mysSubtaskRow">
  172. <td valign="top">
  173. <div class="mysSubtaskImageCell">
  174. <center>
  175. <a class="mysSubtaskLink" tabIndex="-1" hideFocus="true" >
  176. <xsl:choose>
  177. <xsl:when test="@type = 'url'">
  178. <xsl:attribute name="href"><xsl:value-of select="@link" /></xsl:attribute>
  179. <xsl:attribute name="target">_blank</xsl:attribute>
  180. </xsl:when>
  181. <xsl:when test="@type = 'help'">
  182. <xsl:attribute name="href">javascript:execChm("<xsl:value-of select="@link" />")</xsl:attribute>
  183. </xsl:when>
  184. <xsl:when test="@type = 'hcp'">
  185. <xsl:attribute name="href">javascript:execCmd('"<xsl:value-of select="@link" />"')</xsl:attribute>
  186. </xsl:when>
  187. <xsl:when test="@type = 'program'">
  188. <xsl:attribute name="href">javascript:execCmd("<xsl:value-of select="@link" />")</xsl:attribute>
  189. </xsl:when>
  190. <xsl:when test="@type = 'cpl'">
  191. <xsl:attribute name="href">javascript:execCpl("<xsl:value-of select="@link" />")</xsl:attribute>
  192. </xsl:when>
  193. <xsl:otherwise>
  194. <xsl:attribute name="href">about:blank</xsl:attribute>
  195. </xsl:otherwise>
  196. </xsl:choose>
  197. <xsl:attribute name="title"><xsl:value-of select="@tooltip" /></xsl:attribute>
  198. <img width="20" height="20" border="0" >
  199. <xsl:attribute name="src"><xsl:value-of select="image/@src"/></xsl:attribute>
  200. </img>
  201. </a>
  202. </center>
  203. </div>
  204. </td>
  205. <td width="100%" valign="top">
  206. <div class="mysSubtaskTextCell">
  207. <a class="mysSubtaskLink">
  208. <xsl:choose>
  209. <xsl:when test="@type = 'url'">
  210. <xsl:attribute name="href"><xsl:value-of select="@link" /></xsl:attribute>
  211. <xsl:attribute name="target">_blank</xsl:attribute>
  212. </xsl:when>
  213. <xsl:when test="@type = 'help'">
  214. <xsl:attribute name="href">javascript:execChm("<xsl:value-of select="@link" />")</xsl:attribute>
  215. </xsl:when>
  216. <xsl:when test="@type = 'hcp'">
  217. <xsl:attribute name="href">javascript:execCmd("iexplore.exe " + "<xsl:value-of select="@link" />")</xsl:attribute>
  218. </xsl:when>
  219. <xsl:when test="@type = 'program'">
  220. <xsl:attribute name="href">javascript:execCmd("<xsl:value-of select="@link" />")</xsl:attribute>
  221. </xsl:when>
  222. <xsl:when test="@type = 'cpl'">
  223. <xsl:attribute name="href">javascript:execCpl("<xsl:value-of select="@link" />")</xsl:attribute>
  224. </xsl:when>
  225. <xsl:otherwise>
  226. <xsl:attribute name="href">about:blank</xsl:attribute>
  227. </xsl:otherwise>
  228. </xsl:choose>
  229. <xsl:attribute name="title"><xsl:value-of select="@tooltip" /></xsl:attribute>
  230. <xsl:attribute name="onmouseover">this.style.textDecoration='underline';</xsl:attribute>
  231. <xsl:attribute name="onmouseout">this.style.textDecoration='none';</xsl:attribute>
  232. <xsl:value-of select="@name" />
  233. </a>
  234. </div>
  235. </td>
  236. </tr>
  237. </xsl:for-each>
  238. </table>
  239. </xsl:template>
  240. <xsl:template match="/mys/tasklist/subtasks/subtask">
  241. asdf
  242. </xsl:template>
  243. <!--Tools area-->
  244. <xsl:template match="/mys/tools">
  245. <table class="mysToolTrays" cellpadding="0" cellspacing="0">
  246. <xsl:for-each select="tooltray">
  247. <tr>
  248. <td>
  249. <xsl:apply-templates select="."/>
  250. </td>
  251. </tr>
  252. </xsl:for-each>
  253. </table>
  254. </xsl:template>
  255. <!--Tools tray-->
  256. <xsl:template match="/mys/tools/tooltray">
  257. <table class="mysToolTray" cellpadding="0" cellspacing="0">
  258. <tr class="mysToolTrayTitleRow">
  259. <td width="100%" ><div class="mysToolTrayTitle"><b><xsl:value-of select="@title" disable-output-escaping="yes"/></b></div></td>
  260. </tr>
  261. <tr class="mysToolTrayTopRowSpacer">
  262. <td></td>
  263. </tr>
  264. <xsl:for-each select="tool">
  265. <tr class="mysToolLinkRow">
  266. <td>
  267. <xsl:apply-templates select="."/>
  268. </td>
  269. </tr>
  270. </xsl:for-each>
  271. <tr class="mysToolTrayBottomRowSpacer">
  272. <td></td>
  273. </tr>
  274. </table>
  275. </xsl:template>
  276. <xsl:template match="/mys/tools/tooltray/tool">
  277. <div class="mysToolLinkRow">
  278. <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
  279. <xsl:if test="@id">
  280. <xsl:attribute name="style">display: none;</xsl:attribute>
  281. </xsl:if>
  282. <a class="mysToolLink">
  283. <xsl:attribute name="accesskey"><xsl:value-of select="@accesskey"/></xsl:attribute>
  284. <xsl:choose>
  285. <xsl:when test="@type = 'url'">
  286. <xsl:attribute name="href"><xsl:value-of select="@link" /></xsl:attribute>
  287. <xsl:attribute name="target">_blank</xsl:attribute>
  288. </xsl:when>
  289. <xsl:when test="@type = 'help'">
  290. <xsl:attribute name="href">javascript:execChm("<xsl:value-of select="@link" />")</xsl:attribute>
  291. </xsl:when>
  292. <xsl:when test="@type = 'hcp'">
  293. <xsl:attribute name="href">javascript:execCmd('"<xsl:value-of select="@link" />"')</xsl:attribute>
  294. </xsl:when>
  295. <xsl:when test="@type = 'program'">
  296. <xsl:attribute name="href">javascript:execCmd("<xsl:value-of select="@link" />")</xsl:attribute>
  297. </xsl:when>
  298. <xsl:when test="@type = 'cpl'">
  299. <xsl:attribute name="href">javascript:execCpl("<xsl:value-of select="@link" />")</xsl:attribute>
  300. </xsl:when>
  301. <xsl:otherwise>
  302. <xsl:attribute name="href">about:blank</xsl:attribute>
  303. </xsl:otherwise>
  304. </xsl:choose>
  305. <xsl:attribute name="title"><xsl:value-of select="@tooltip" /></xsl:attribute>
  306. <xsl:attribute name="onmouseover">this.style.textDecoration = 'underline';</xsl:attribute>
  307. <xsl:attribute name="onmouseout">this.style.textDecoration = 'none';</xsl:attribute>
  308. <xsl:value-of select="@name" />
  309. </a>
  310. </div>
  311. </xsl:template>
  312. </xsl:stylesheet>