You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

site.vsl 2.6 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!-- Content Stylesheet for Site -->
  3. ## Defined variables
  4. #set ($bodybg = "#ffffff")
  5. #set ($bodyfg = "#000000")
  6. #set ($bodylink = "#525D76")
  7. #set ($bannerbg = "#525D76")
  8. #set ($bannerfg = "#ffffff")
  9. #set ($subbannerbg = "#828DA6")
  10. #set ($subbannerfg = "#ffffff")
  11. #set ($tablethbg = "#039acc")
  12. #set ($tabletdbg = "#a0ddf0")
  13. <!-- start the processing -->
  14. #document()
  15. <!-- end the processing -->
  16. ## This is where the common page macro's live
  17. #macro ( subsection $subsection)
  18. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  19. <tr><td bgcolor="$subbannerbg">
  20. <font color="$subbannerfg" face="arial,helvetica,sanserif">
  21. <a name="$subsection.getAttributeValue("name")"><strong>$subsection.getAttributeValue("name")</strong></a>
  22. </font>
  23. </td></tr>
  24. <tr><td>
  25. <blockquote>
  26. #foreach ( $items in $subsection.getChildren() )
  27. #if ($items.getName().equals("img"))
  28. #image ($items)
  29. #elseif ($items.getName().equals("source"))
  30. #source ($items)
  31. #elseif ($items.getName().equals("table"))
  32. #table ($items)
  33. #elseif ($items.getName().equals("box"))
  34. #box ($items)
  35. #else
  36. $xmlout.outputString($items)
  37. #end
  38. #end
  39. </blockquote>
  40. </td></tr>
  41. </table>
  42. #end
  43. #macro ( section $section)
  44. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  45. <tr><td bgcolor="$bannerbg">
  46. <font color="$bannerfg" face="arial,helvetica,sanserif">
  47. <a name="$section.getAttributeValue("name")"><strong>$section.getAttributeValue("name")</strong></a>
  48. </font>
  49. </td></tr>
  50. <tr><td>
  51. <blockquote>
  52. #foreach ( $items in $section.getChildren() )
  53. #if ($items.getName().equals("img"))
  54. #image ($items)
  55. #elseif ($items.getName().equals("source"))
  56. #source ($items)
  57. #elseif ($items.getName().equals("table"))
  58. #table ($items)
  59. #elseif ($items.getName().equals("subsection"))
  60. #subsection ($items)
  61. #elseif ($items.getName().equals("box"))
  62. #box ($items)
  63. #else
  64. $xmlout.outputString($items)
  65. #end
  66. #end
  67. </blockquote>
  68. </td></tr>
  69. </table>
  70. #end
  71. #macro (document)
  72. #header()
  73. #set ($allSections = $root.getChild("body").getChildren("section"))
  74. #foreach ( $section in $allSections )
  75. #section ($section)
  76. #end
  77. #footer()
  78. #end