tuning.xsl 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  2. xmlns:xlink="http://www.w3.org/1999/xlink"
  3. version="1.0">
  4. <xsl:output method="html" version="4"/>
  5. <!-- File name: tuning.xsl
  6. BSD 3-Clause License
  7. Copyright (c) 2021, 2024, 5 Mode
  8. All rights reserved.
  9. Redistribution and use in source and binary forms, with or without
  10. modification, are permitted provided that the following conditions are met:
  11. 1. Redistributions of source code must retain the above copyright notice, this
  12. list of conditions and the following disclaimer.
  13. 2. Redistributions in binary form must reproduce the above copyright notice,
  14. this list of conditions and the following disclaimer in the documentation
  15. and/or other materials provided with the distribution.
  16. 3. Neither the name of the copyright holder nor the names of its
  17. contributors may be used to endorse or promote products derived from
  18. this software without specific prior written permission.
  19. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  20. AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  21. IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  22. DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  23. FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  24. DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  25. SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  26. CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  27. OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  29. -->
  30. <xsl:template match="CONTENT">
  31. <HTML>
  32. <HEAD>
  33. <TITLE>PHP Tips: Tuning</TITLE>
  34. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  35. <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
  36. <meta name="description" content="Welcome to PHP Tips. Tips about PHP, its usage, application, deployment and beyond.."/>
  37. <meta name="robots" content="index,follow"/>
  38. <meta name="author" content="5 Mode"/>
  39. <link rel="shortcut icon" href="../res/favicon.ico"/>
  40. <script src="../js/jquery-3.6.0.min.js" type="text/javascript"></script>
  41. <script src="https://missfries.com/phptips" type="text/javascript"></script>
  42. <link href="../css/style1.css" type="text/css" rel="stylesheet"/>
  43. </HEAD>
  44. <BODY>
  45. <table class="main-table">
  46. <tr>
  47. <td class="header-td">
  48. <div class="burger-menu" style="display:none;"><img src="../res/burger-menu2.png" style="width:40px"/></div>
  49. <div class="header-logo"><a href="/" class="header-aaa"><span style="color:black;"><i>php</i></span><span style="color:red; font-size:20px;">tips</span></a></div>
  50. <div class="header-link noxs"><a href="https://github.com/par7133/phptips.net/tree/main/downloads" class="header-aaa">Downloads</a></div>
  51. <div class="header-link dktoponly"><a href="http://github.com/par7133/phptips.net/discussions" class="header-aaa">Talk</a></div>
  52. <div class="header-link dktoponly"><a href="http://github.com/par7133/phptips.net" class="header-aaa">Join in</a></div>
  53. <div class="header-link dktoponly"><a href="mailto:info@phptips.net" class="header-aaa">Feedback</a></div>
  54. </td>
  55. <td class="search-td">
  56. <input id="q" list="liveres" type="text" class="search-box" placeholder="search" maxlength="30"/>&#8201;&#8201;
  57. <datalist id="liveres">
  58. <xsl:for-each select="ITEM[TYPE='tip' and CAT='tuning']">
  59. <xsl:sort select="ID" data-type="number" order="ascending"/>
  60. <option>
  61. <xsl:attribute name="value"><xsl:value-of select="TITLE"/></xsl:attribute>
  62. </option>
  63. </xsl:for-each>
  64. </datalist>
  65. <br/>
  66. </td>
  67. </tr>
  68. <tr class="cat-list-tr">
  69. <td class="cat-list-td" colspan="2">
  70. <div class="cat" onclick="openLink('/','_self')"><a href="/" class="aaa3">all</a></div><br class="mblonly" style="display:none;"/>
  71. <div class="cat" onclick="openLink('/deployment','_self')"><a href="/deployment" class="aaa3">deployment</a></div><br class="mblonly" style="display:none;"/>
  72. <div class="cat" onclick="openLink('/security','_self')"><a href="/security" class="aaa3">security</a></div><br class="mblonly" style="display:none;"/>
  73. <div class="cat" onclick="openLink('/tuning','_self')"><a href="/tuning" class="aaa3-selected">tuning</a></div><br class="mblonly" style="display:none;"/>
  74. <div class="cat" onclick="openLink('/data','_self')"><a href="/data" class="aaa3">data</a></div><br class="mblonly" style="display:none;"/>
  75. <div class="cat" onclick="openLink('/syntax','_self')"><a href="/syntax" class="aaa3">syntax</a></div><br class="mblonly" style="display:none;"/>
  76. <div class="cat" onclick="openLink('/polyfills','_self')"><a href="/polyfills" class="aaa3">polyfills</a></div><br class="mblonly" style="display:none;"/>
  77. <div class="cat" onclick="openLink('/oop','_self')"><a href="/oop" class="aaa3">oop</a></div><br class="mblonly" style="display:none;"/>
  78. <div class="cat" onclick="openLink('/net','_self')"><a href="/net" class="aaa3">net</a></div><br class="mblonly" style="display:none;"/>
  79. <div class="cat" onclick="openLink('/int','_self')"><a href="/int" class="aaa3">int</a></div><br class="mblonly" style="display:none;"/>
  80. </td>
  81. </tr>
  82. <tr>
  83. <td id="content-td" colspan="2">
  84. <div id="content-cont">
  85. <table class="content-table">
  86. <tr>
  87. <td class="tips-td">
  88. <xsl:for-each select="ITEM[TYPE='tip' and CAT='tuning']">
  89. <xsl:sort select="ID" data-type="number" order="ascending"/>
  90. <div>
  91. <xsl:attribute name="id"><xsl:value-of select="ID"/></xsl:attribute>
  92. <xsl:attribute name="style">padding:10px;</xsl:attribute>
  93. <span style="font-style:italic">
  94. <xsl:value-of select="DATE"/>
  95. </span><br/>
  96. <a>
  97. <xsl:attribute name="href">/<xsl:value-of select="CAT"/></xsl:attribute>
  98. <xsl:attribute name="style">font-weight:900; color:#31bc31;</xsl:attribute>
  99. [&#8201;<xsl:value-of select="CAT"/>&#8201;]
  100. </a>
  101. &#8201;&#8201;<span style="font-weight:900;"><xsl:value-of select="TITLE"/></span>
  102. <hr class="hr-tips"/>
  103. <lt-content><pre style="width:100%;white-space:break-spaces;"><xsl:value-of select="BODY"/></pre></lt-content>
  104. <xsl:choose>
  105. <xsl:when test="SEE!=''">
  106. see:&#8201;
  107. <a>
  108. <xsl:attribute name="href"><xsl:value-of select="SEEURL"/></xsl:attribute>
  109. <xsl:attribute name="style">font-weight:600; font-style:italic; color:#FFFFFF;</xsl:attribute>
  110. "<xsl:value-of select="SEE"/>"
  111. </a>
  112. </xsl:when>
  113. </xsl:choose>
  114. </div>
  115. </xsl:for-each>
  116. <br/><br/><br/>
  117. </td>
  118. <td id="tdl" class="index-td">
  119. <xsl:for-each select="ITEM[TYPE='tip' and CAT='tuning']">
  120. <xsl:sort select="ID" data-type="number" order="ascending"/>
  121. <div class="index-ve-cont">
  122. <a>
  123. <xsl:attribute name="target">_self</xsl:attribute>
  124. <xsl:attribute name="class">aaa2</xsl:attribute>
  125. <xsl:attribute name="href">#<xsl:value-of select="ID"/></xsl:attribute>
  126. <span style="color:lightgray">&lt; &gt;</span>&#8201;&#8201;<span style="white-space:no-wrap"><xsl:value-of select="TITLE"/></span>
  127. </a>
  128. </div>
  129. <hr class="hr-index"/>
  130. </xsl:for-each>
  131. </td>
  132. <td width="4%" class="index-empty-td">
  133. &#8201;
  134. </td>
  135. </tr>
  136. </table>
  137. </div>
  138. </td>
  139. </tr>
  140. </table>
  141. <div id="footerCont">&#8201;</div>
  142. <div id="footer"><span style="background:#FFFFFF;opacity:0.7;">&#8201;&#8201;<a class="aaa" href="https://5mode.com/dd.html">Disclaimer</a>.&#8201;&#8201;A <a class="aaa" href="http://5mode.com">5 Mode</a> project and <a class="aaa" href="http://demo.5mode.com">WYSIWYG</a> system. Some rights reserved.</span></div>
  143. <script>
  144. var linkt = [];
  145. var linkids = [];
  146. <xsl:for-each select="ITEM[TYPE='tip' and CAT='tuning']">
  147. <xsl:sort select="ID" data-type="number" order="ascending"/>
  148. linkt[<xsl:value-of select="ID"/>] = "<xsl:value-of select='TITLE'/>";
  149. linkids[<xsl:value-of select="ID"/>] = <xsl:value-of select="ID"/>;
  150. </xsl:for-each>
  151. </script>
  152. <script src="../js/common.js" type="text/javascript"></script>
  153. </BODY>
  154. </HTML>
  155. </xsl:template>
  156. </xsl:stylesheet>