styleBorder.xts 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. BI and PM: qs
  5. (C) Copyright IBM Corp. 2001, 2017
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <!--
  9. Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
  10. Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  11. -->
  12. <xts:morphlet version="1.0" xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/QSRVUITextPL.xml,messages/portal.xml,messages/portalRL.xml" requiredCapability="canUseQueryStudio, canUseQueryStudioAdvancedMode">
  13. <xts:block id="page" type="exec" mode="output" processor="XSLT" mimeType="text/html">
  14. <!-- get the debug logic sheet -->
  15. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  16. <!-- get the new theme stuff -->
  17. <xts:logicsheet path="logicsheets/portal.xsl"/>
  18. <xts:logicsheet path="qs/logicsheets/dialogs.xsl"/>
  19. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  20. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  21. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  22. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  23. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  24. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  25. <!-- apply the form logic -->
  26. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  27. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/" xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/" xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/" xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/" xmlns:dbg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/debug/" xmlns:qsdlg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/qs/dialog/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="xsl xts lyt pf dp df cp cf dbg qsdlg xtsext">
  28. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  29. <!-- Default variables (like skin) -->
  30. <qsdlg:variables/>
  31. <!-- add any theme variables -->
  32. <df:variables/>
  33. <pf:variables/>
  34. <!-- start the output -->
  35. <xsl:template match="/root">
  36. <dp:page>
  37. <dp:script>
  38. <link rel="stylesheet" type="text/css" href="{$qsdlgskin}/prompting/promptCommon.css"/>
  39. <link rel="stylesheet" type="text/css" href="{$qsdlgskin}/qs/QSRVDialog.css"/>
  40. <script type="text/javascript">
  41. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/prompting/prompting.js</xsl:attribute>
  42. <xsl:text/>//<xsl:text/>
  43. </script>
  44. <script type="text/javascript">
  45. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/prompting/CTreeIE5NS6.js</xsl:attribute>
  46. <xsl:text/>//<xsl:text/>
  47. </script>
  48. <script type="text/javascript">
  49. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/prompting/CAlignmentPicker.js</xsl:attribute>
  50. <xsl:text/>//<xsl:text/>
  51. </script>
  52. <script type="text/javascript">
  53. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/prompting/CColorPicker.js</xsl:attribute>
  54. <xsl:text/>//<xsl:text/>
  55. </script>
  56. <script type="text/javascript">
  57. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/layout.js</xsl:attribute>
  58. <xsl:text/>//<xsl:text/>
  59. </script>
  60. <script type="text/javascript">
  61. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/dialogs/styleText.js</xsl:attribute>
  62. <xsl:text/>//<xsl:text/>
  63. </script>
  64. <script type="text/javascript">
  65. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/CSSManager.js</xsl:attribute>
  66. <xsl:text/>//<xsl:text/>
  67. </script>
  68. <script type="text/javascript">
  69. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/classes/CDialogManager.js</xsl:attribute>
  70. <xsl:text/>//<xsl:text/>
  71. </script>
  72. <script type="text/javascript">
  73. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/classes/CWindowManager.js</xsl:attribute>
  74. <xsl:text/>//<xsl:text/>
  75. </script>
  76. <!-- Fix for bug COGCQ00080804
  77. If a customer doesn't create a promptingStrings_<locale>.js file properly, we still want to have the defaults loaded.
  78. So, import the english one first
  79. -->
  80. <script type="text/javascript">
  81. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/prompting/res/promptingStrings_en.js</xsl:attribute>
  82. </script>
  83. <script type="text/javascript">
  84. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/prompting/res/promptingStrings_<xsl:choose>
  85. <!-- 'zh' isn't a valid locale for promptingStrings, defaulting to 'zh-cn' -->
  86. <xsl:when test="/root/user/param[@name='productLocale']='zh'">zh-cn</xsl:when>
  87. <xsl:otherwise><xsl:value-of select="/root/user/param[@name='productLocale']"/></xsl:otherwise>
  88. </xsl:choose>.js</xsl:attribute>
  89. <xsl:text/>//<xsl:text/>
  90. </script>
  91. <script type="text/javascript">&lt;!--
  92. var goDialogManager = new CDialogManager();
  93. var cf = getConfigFrame();
  94. function execute()
  95. {
  96. // send the style command
  97. if (cf)
  98. {
  99. <xsl:if test="/root/env/param[@name='section']='true'">
  100. //get the type of section border
  101. /* One of the following:
  102. borderSectionUnderline
  103. borderSectionOutside
  104. borderSectionAll
  105. borderSectionNone
  106. */
  107. //The new Type
  108. //determine whether borders are on or off
  109. var type = null;
  110. var optSection = document.f.optSection;
  111. for (var i=0; i &lt; optSection.length; i++) {
  112. if (optSection[i].checked == true) {
  113. type = optSection[i].value;
  114. break;
  115. }
  116. }
  117. // The new style
  118. if (type != null)
  119. {
  120. //get the CSS string
  121. var cssString = "border:";
  122. var w = document.f.selSectionBorderWidth.options[document.f.selSectionBorderWidth.selectedIndex].value;
  123. var c = document.f.SectionCP.value;
  124. var cssString = "border:";
  125. if (w || c || type != 'borderSectionNone') {
  126. var s = w + " solid " + c;
  127. cssString += s.replace(/^\s+/,'').replace(/\s+$/,''); // trim whitespaces
  128. if ( type == 'borderSectionUnderline' ) {
  129. cssString = cssString.replace(/^border/gi,'border-bottom');
  130. }
  131. else if ( type == 'borderSectionOutside' ) {
  132. cssString = (cssString.replace(/^border/gi,'border-top') + ';' + cssString.replace(/^border/gi,'border-bottom'));
  133. }
  134. }
  135. //send the command
  136. cf.sendBorderStyleCommand(cssString , type, false);
  137. }
  138. </xsl:if>
  139. //get the type of table border
  140. /* One of the following:
  141. borderTableAll
  142. borderTableHeadings
  143. borderTableHeadingsAndSummaries
  144. borderTableNone
  145. */
  146. //The new Type
  147. //determine whether borders are on or off
  148. var type = null;
  149. var optTableStyle = document.f.optTableStyle;
  150. for (var i=0; i &lt; optTableStyle.length; i++)
  151. {
  152. if (optTableStyle[i].checked == true)
  153. {
  154. type = optTableStyle[i].value;
  155. break;
  156. }
  157. }
  158. // The new style
  159. if (type != null)
  160. {
  161. //get the CSS string
  162. var cssString = "border:";
  163. //border width
  164. var tableBorderWidth = document.f.selTableBorderWidth.options[document.f.selTableBorderWidth.selectedIndex].value;
  165. //border style
  166. var tableBorderstyle = "solid";
  167. //border color
  168. var tableBorderColor = document.f.TableCP.value;
  169. if (tableBorderWidth || tableBorderColor) {
  170. cssString += tableBorderWidth + " " + tableBorderstyle + " " + tableBorderColor;
  171. }
  172. //send the command
  173. cf.sendBorderStyleCommand(cssString , type, false);
  174. }
  175. cf.sendBufferedCommands();
  176. cf.hideDialogFrame();
  177. }
  178. }
  179. function cancelDialog()
  180. {
  181. if (cf) {
  182. cf.hideDialogFrame();
  183. }
  184. }
  185. function init()
  186. {
  187. attachMouseEvents();
  188. resetToDefaults();
  189. var cf = getConfigFrame();
  190. if (cf) {
  191. <xsl:choose>
  192. <xsl:when test="/root/env/param[@name='section']='true'">
  193. cf.showDialogFrame(457);
  194. </xsl:when>
  195. <xsl:otherwise>
  196. cf.showDialogFrame(320);
  197. </xsl:otherwise>
  198. </xsl:choose>
  199. // apply selection
  200. var MQ = cf.cfgGet("MiniQueryObj");
  201. var styleList = MQ.getElementsByTagName("StyleList", false);
  202. var sectionStyle = null;
  203. var titleStyle = null;
  204. var columnStyle = null;
  205. var footerStyle = null;
  206. if (styleList.length) {
  207. styleList = styleList[0];
  208. <xsl:if test="/root/env/param[@name='section']='true'">
  209. sectionStyle = styleList.getElementsByTagName("SectionStyle");
  210. var sectionType = (sectionStyle.length ? sectionStyle[0].getAttribute("type") : null);
  211. sectionStyle = (sectionStyle.length ? sectionStyle[0].getAttribute("style") : null);
  212. if (sectionType) {
  213. var idx = 0;
  214. if (sectionType == 'borderSectionOutside') { idx = 1; }
  215. else if (sectionType == 'borderSectionAll') { idx = 2; }
  216. else if (sectionType == 'borderSectionNone') { idx = 3; }
  217. document.f.optSection[idx].checked = true;
  218. }
  219. var sbColor = getBorderColor(sectionStyle);
  220. if (sbColor) {
  221. sectionCP.setColor(sbColor);
  222. }
  223. var sbSize = getBorderSize(sectionStyle);
  224. if (sbSize) {
  225. document.f.selSectionBorderWidth.value = sbSize;
  226. }
  227. </xsl:if>
  228. titleStyle = styleList.getElementsByTagName("ColumnTitleStyle");
  229. columnStyle = styleList.getElementsByTagName("ColumnStyle");
  230. footerStyle = styleList.getElementsByTagName("ColumnFooterLabelStyle");
  231. titleStyle = (titleStyle.length ? titleStyle[0].getAttribute("style") : null);
  232. columnStyle = (columnStyle.length ? columnStyle[0].getAttribute("style") : null);
  233. footerStyle = (footerStyle.length ? footerStyle[0].getAttribute("style") : null);
  234. if (titleStyle != null) {
  235. if (titleStyle == columnStyle &amp;&amp; titleStyle == footerStyle) {
  236. if (isBorderNone(titleStyle)) {
  237. document.f.optTableStyle[3].checked = true;
  238. }
  239. else {
  240. document.f.optTableStyle[0].checked = true;
  241. }
  242. }
  243. else if (titleStyle != '' &amp;&amp; columnStyle == '' &amp;&amp; footerStyle == '') {
  244. document.f.optTableStyle[1].checked = true;
  245. }
  246. else if (titleStyle != '' &amp;&amp; columnStyle == '' &amp;&amp; footerStyle != '') {
  247. document.f.optTableStyle[2].checked = true;
  248. }
  249. }
  250. var borderColor = getBorderColor(titleStyle);
  251. if (!borderColor) { borderColor = getBorderColor(columnStyle); }
  252. if (!borderColor) { borderColor = getBorderColor(footerStyle); }
  253. if (borderColor) {
  254. tableCP.setColor(borderColor);
  255. }
  256. var borderSize = getBorderSize(titleStyle);
  257. if (!borderSize) { borderSize = getBorderSize(columnStyle); }
  258. if (!borderSize) { borderSize = getBorderSize(footerStyle); }
  259. if (borderSize) {
  260. document.f.selTableBorderWidth.value = borderSize;
  261. }
  262. }
  263. }
  264. }
  265. var reBORDER_NONE = /\s*border-?\w*\s*:\s*none\s*/gi;
  266. var reBORDER_COLOR = /\s*border-?\w*\s*:[^;]*(#\w+)/gi;
  267. var reBORDER_SIZE = /\s*border-?\w*\s*:[^;]*?(\d*\.*\d+\s*pt)/gi;
  268. function isBorderNone(s) {
  269. return (s.match(reBORDER_NONE) ? true : null);
  270. }
  271. function getBorderColor(s) {
  272. return (s &amp;&amp; s.match(reBORDER_COLOR) ? RegExp.$1: null);
  273. }
  274. function getBorderSize(s) {
  275. return (s &amp;&amp; s.match(reBORDER_SIZE) ? RegExp.$1: false);
  276. }
  277. function resetToDefaults() {
  278. <xsl:if test="/root/env/param[@name='section']='true'">
  279. sectionCP.setColor(null);
  280. document.f.optSection[0].checked = true;
  281. document.f.selSectionBorderWidth.options[0].selected = true;
  282. </xsl:if>
  283. tableCP.setColor(null);
  284. document.f.optTableStyle[0].checked = true;
  285. document.f.selTableBorderWidth.options[0].selected = true;
  286. }
  287. //--&gt;</script>
  288. <script type="text/javascript">
  289. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/dialogs/executeButton.js</xsl:attribute>
  290. <xsl:text/>//<xsl:text/>
  291. </script>
  292. <style type="text/css" rel="stylesheet">
  293. .borderIcon{ height:30px; padding:0px 5px; }
  294. </style>
  295. </dp:script>
  296. <form style="margin:0px" name="f" method="POST" onsubmit="return false;" onclick="hidePickers()">
  297. <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
  298. <tr>
  299. <td width="100%" height="0%">
  300. <!-- dialog header -->
  301. <dp:header help="false">
  302. <!-- header titles -->
  303. <dp:title>
  304. <xts:string id="STYLE_BORDER_TITLE"/>
  305. </dp:title>
  306. <!-- close link for the header -->
  307. <dp:close>
  308. <a href="javascript:getConfigFrame().hideDialogFrame()">
  309. <dp:closeMarker/>
  310. </a>
  311. </dp:close>
  312. <!-- description (hint text) -->
  313. <dp:description>
  314. <xts:string id="STYLE_BORDER_TITLE_DESCRIPTION"/>
  315. </dp:description>
  316. </dp:header>
  317. </td>
  318. </tr>
  319. <tr>
  320. <td width="100%" height="100%" valign="top">
  321. <!-- layout -->
  322. <lyt:layout style="1" border="no">
  323. <lyt:section>
  324. <xsl:if test="/root/env/param[@name='section']='true'">
  325. <table border="0" cellspacing="0" cellpadding="0">
  326. <tr>
  327. <td class="formLabel" colspan="2" style="padding-bottom:5px;">
  328. <xts:string id="STYLE_BORDER_SECTION"/>
  329. </td>
  330. </tr>
  331. <tr>
  332. <td valign="top" width="300">
  333. <table border="0" cellspacing="0" cellpadding="0">
  334. <xsl:call-template name="borderPickerRow">
  335. <xsl:with-param name="optionName">optSection</xsl:with-param>
  336. <xsl:with-param name="optionValue">borderSectionUnderline</xsl:with-param>
  337. <xsl:with-param name="icon"><xsl:value-of select="$webRoot"/>/qs/images/style/border_section_underlines.gif</xsl:with-param>
  338. <xsl:with-param name="text"><xts:string id="STYLE_BORDER_SECTION_UNDERLINE"/></xsl:with-param>
  339. </xsl:call-template>
  340. <xsl:call-template name="borderPickerRow">
  341. <xsl:with-param name="optionName">optSection</xsl:with-param>
  342. <xsl:with-param name="optionValue">borderSectionOutside</xsl:with-param>
  343. <xsl:with-param name="icon"><xsl:value-of select="$webRoot"/>/qs/images/style/border_section_outside_lines.gif</xsl:with-param>
  344. <xsl:with-param name="text"><xts:string id="STYLE_BORDER_SECTION_OUTSIDE"/></xsl:with-param>
  345. </xsl:call-template>
  346. <xsl:call-template name="borderPickerRow">
  347. <xsl:with-param name="optionName">optSection</xsl:with-param>
  348. <xsl:with-param name="optionValue">borderSectionAll</xsl:with-param>
  349. <xsl:with-param name="icon"><xsl:value-of select="$webRoot"/>/qs/images/style/border_section_all.gif</xsl:with-param>
  350. <xsl:with-param name="text"><xts:string id="STYLE_BORDER_SECTION_ALL"/></xsl:with-param>
  351. </xsl:call-template>
  352. <xsl:call-template name="borderPickerRow">
  353. <xsl:with-param name="optionName">optSection</xsl:with-param>
  354. <xsl:with-param name="optionValue">borderSectionNone</xsl:with-param>
  355. <xsl:with-param name="text"><xts:string id="STYLE_BORDER_SECTION_NONE"/></xsl:with-param>
  356. </xsl:call-template>
  357. </table>
  358. </td>
  359. <td class="formLabel" valign="top">
  360. <table>
  361. <tr>
  362. <td class="formLabel">
  363. <xts:string id="STYLE_BORDER_COLOR"/>
  364. </td>
  365. </tr>
  366. <tr>
  367. <td>
  368. <qsdlg:colorSwatch id="SectionCP" jsObjId="sectionCP" fct="sectionCP.updateSwatch" type="TYPE_BACKGROUND_COLOR"/>
  369. </td>
  370. </tr>
  371. <tr>
  372. <td class="formLabel" style="padding-top:20px;">
  373. <xts:string id="STYLE_BORDER_WIDTH"/>
  374. </td>
  375. </tr>
  376. <tr>
  377. <td>
  378. <SELECT name="selSectionBorderWidth">
  379. <OPTION value=""><xts:string id="FONT_DEFAULT"/></OPTION>
  380. <OPTION value="0.5pt"><xts:string id="FONT_SIZE_PT_PARAM"><xts:param name="size"><xsl:text disable-output-escaping="yes">&amp;frac12;</xsl:text></xts:param></xts:string></OPTION>
  381. <OPTION value="1pt"><xts:string id="FONT_SIZE_PT_PARAM"><xts:param name="size">1</xts:param></xts:string></OPTION>
  382. <OPTION value="3pt"><xts:string id="FONT_SIZE_PT_PARAM"><xts:param name="size">3</xts:param></xts:string></OPTION>
  383. <OPTION value="6pt"><xts:string id="FONT_SIZE_PT_PARAM"><xts:param name="size">6</xts:param></xts:string></OPTION>
  384. </SELECT>
  385. </td>
  386. </tr>
  387. </table>
  388. </td>
  389. </tr>
  390. </table>
  391. <br/>
  392. </xsl:if>
  393. <table border="0" cellspacing="0" cellpadding="0">
  394. <tr>
  395. <td class="formLabel" colspan="2" style="padding-bottom:5px;">
  396. <xts:string id="STYLE_BORDER_TABLE"/>
  397. </td>
  398. </tr>
  399. <tr>
  400. <td valign="top" width="300">
  401. <table border="0" cellspacing="0" cellpadding="0">
  402. <xsl:call-template name="borderPickerRow">
  403. <xsl:with-param name="optionName">optTableStyle</xsl:with-param>
  404. <xsl:with-param name="optionValue">borderTableAll</xsl:with-param>
  405. <xsl:with-param name="icon"><xsl:value-of select="$webRoot"/>/qs/images/style/border_all.gif</xsl:with-param>
  406. <xsl:with-param name="text"><xts:string id="STYLE_BORDER_TABLE_ALL"/></xsl:with-param>
  407. </xsl:call-template>
  408. <xsl:call-template name="borderPickerRow">
  409. <xsl:with-param name="optionName">optTableStyle</xsl:with-param>
  410. <xsl:with-param name="optionValue">borderTableHeadings</xsl:with-param>
  411. <xsl:with-param name="icon"><xsl:value-of select="$webRoot"/>/qs/images/style/border_headings.gif</xsl:with-param>
  412. <xsl:with-param name="text"><xts:string id="STYLE_BORDER_TABLE_HEADINGS"/></xsl:with-param>
  413. </xsl:call-template>
  414. <xsl:call-template name="borderPickerRow">
  415. <xsl:with-param name="optionName">optTableStyle</xsl:with-param>
  416. <xsl:with-param name="optionValue">borderTableHeadingsAndSummaries</xsl:with-param>
  417. <xsl:with-param name="icon"><xsl:value-of select="$webRoot"/>/qs/images/style/border_headings_summaries.gif</xsl:with-param>
  418. <xsl:with-param name="text"><xts:string id="STYLE_BORDER_TABLE_HEADINGS_AND_SUMMARIES"/></xsl:with-param>
  419. </xsl:call-template>
  420. <xsl:call-template name="borderPickerRow">
  421. <xsl:with-param name="optionName">optTableStyle</xsl:with-param>
  422. <xsl:with-param name="optionValue">borderTableNone</xsl:with-param>
  423. <xsl:with-param name="text"><xts:string id="STYLE_BORDER_TABLE_NONE"/></xsl:with-param>
  424. </xsl:call-template>
  425. </table>
  426. </td>
  427. <td class="formLabel" valign="top">
  428. <table>
  429. <tr>
  430. <td class="formLabel">
  431. <xts:string id="STYLE_BORDER_COLOR"/>
  432. </td>
  433. </tr>
  434. <tr>
  435. <td>
  436. <qsdlg:colorSwatch id="TableCP" jsObjId="tableCP" fct="tableCP.updateSwatch" type="TYPE_BACKGROUND_COLOR"/>
  437. </td>
  438. </tr>
  439. <tr>
  440. <td class="formLabel" style="padding-top:20px;">
  441. <xts:string id="STYLE_BORDER_WIDTH"/>
  442. </td>
  443. </tr>
  444. <tr>
  445. <td>
  446. <SELECT name="selTableBorderWidth">
  447. <OPTION value=""><xts:string id="FONT_DEFAULT"/></OPTION>
  448. <OPTION value="0.5pt"><xts:string id="FONT_SIZE_PT_PARAM"><xts:param name="size"><xsl:text disable-output-escaping="yes">&amp;frac12;</xsl:text></xts:param></xts:string></OPTION>
  449. <OPTION value="1pt"><xts:string id="FONT_SIZE_PT_PARAM"><xts:param name="size">1</xts:param></xts:string></OPTION>
  450. <OPTION value="3pt"><xts:string id="FONT_SIZE_PT_PARAM"><xts:param name="size">3</xts:param></xts:string></OPTION>
  451. <OPTION value="6pt"><xts:string id="FONT_SIZE_PT_PARAM"><xts:param name="size">6</xts:param></xts:string></OPTION>
  452. </SELECT>
  453. </td>
  454. </tr>
  455. </table>
  456. </td>
  457. </tr>
  458. </table>
  459. <br/>
  460. <a class="formLink" href="javascript:void(0)" onclick="resetToDefaults();"><xts:string id="STYLE_BORDER_RESET"/></a>
  461. </lyt:section>
  462. </lyt:layout>
  463. </td>
  464. </tr>
  465. <tr>
  466. <td width="100%" height="0%">
  467. <dp:footer>
  468. <df:button df:id="IDS_OK" df:style="href" onkeypress="javascript:executeOk(event)" df:href="javascript:executeOk(null)"/>
  469. <df:button df:id="IDS_CANCEL" df:style="href" onkeypress="javascript:executeCancel(event)" df:href="javascript:executeCancel(null)"/>
  470. </dp:footer>
  471. </td>
  472. </tr>
  473. </table>
  474. </form>
  475. <!-- <dbg:dumpxml select="/"/> -->
  476. </dp:page>
  477. </xsl:template>
  478. <xsl:template name="borderPickerRow">
  479. <xsl:param name="optionName" select="''"/>
  480. <xsl:param name="optionValue" select="''"/>
  481. <xsl:param name="icon" select="''"/>
  482. <xsl:param name="text" select="''"/>
  483. <tr>
  484. <td>
  485. <input type="radio" name="{$optionName}" value="{$optionValue}"/>
  486. </td>
  487. <xsl:choose>
  488. <xsl:when test="$icon!=''">
  489. <td class="borderIcon">
  490. <img src="{$icon}" width="48" height="22"/>
  491. </td><td valign="middle" class="formText">
  492. <xsl:value-of select="$text"/>
  493. </td>
  494. </xsl:when>
  495. <xsl:otherwise>
  496. <td class="formText borderIcon" colspan="2">
  497. <xsl:value-of select="$text"/>
  498. </td>
  499. </xsl:otherwise>
  500. </xsl:choose>
  501. </tr>
  502. </xsl:template>
  503. </xsl:stylesheet>
  504. </xts:block>
  505. </xts:morphlet>