- Timestamp:
- 2011-06-27T11:07:20+12:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/oran/transform/layouts/formatmanager.xsl
r24139 r24202 19 19 <!-- Sam2's div code --> 20 20 21 <script type="text/javascript" src="interfaces/oran/js/jquery-1.4.2.js"><xsl:text> </xsl:text></script> 22 <script type="text/javascript" src="interfaces/oran/js/jquery-ui-1.8rc1/ui/jquery-ui.js"><xsl:text> </xsl:text></script> 23 <script type="text/javascript" src="interfaces/oran/js/jquery.selectboxes.js"><xsl:text> </xsl:text></script> 21 24 <script type="text/javascript" src="interfaces/oran/js/innerxhtml.js"><xsl:text> </xsl:text></script> 25 <script type="text/javascript" src="interfaces/oran/js/jquery.xml.js"><xsl:text> </xsl:text></script> 22 26 <script type="text/javascript" src="interfaces/oran/js/gui_div.js"><xsl:text> </xsl:text></script> 23 27 … … 53 57 .droppable_hl { border: dashed 1px #ccc; background-color:#FFFFCC; } 54 58 59 #XSLTcode {width: 99%; } 60 55 61 .elementToolBox {position: fixed; top: 25%; right: 0px; background: none repeat scroll 0% 0% white; width: 250px; } 56 62 … … 62 68 <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/themes/base/jquery-ui.css"/> 63 69 70 71 64 72 <table width="100%" border="1"> 65 73 66 <td width="75%"> 67 68 <button id="updateFormatStatement" type="button" onclick="updateFormatStatement()">Update Format Statement</button> 69 <button id="saveFormatStatement" type="button" onclick="saveFormatStatement()">Save Format Statement</button> 70 71 <div id="formatStatement"> 72 <div id="formatRoot"> 73 74 <xsl:call-template name="xml-to-gui"> 75 <xsl:with-param name="node-set" select="//format"/> <!-- [@type='browse']"/> --> 76 <xsl:with-param name="metadataSets" select="//metadataSetList"/> 77 </xsl:call-template> 78 </div> 79 </div> 80 </td> 81 82 83 <td class="elementToolBox"> 74 <td width="100%"> 75 <xsl:choose> 76 <xsl:when test="/page/pageRequest/@action = 'd'"> 77 <!-- TOC on or off --> 78 <xsl:choose> 79 <xsl:when test="/page/pageResponse/format[@type='display']/gsf:option[(@name='TOC') and (@value='true')]"> 80 <input type="checkbox" name="TOC" checked="checked" onclick="displayTOC(this)">Display Table of Contents (set to true)</input> 81 </xsl:when> 82 <xsl:otherwise> 83 <input type="checkbox" name="TOC" onclick="displayTOC(this)">Display Table of Contents (set to false)</input> 84 </xsl:otherwise> 85 </xsl:choose> <br/> 86 87 <!-- book cover image on or off --> 88 <xsl:choose> 89 <xsl:when test="/page/pageResponse/format[@type='display']/gsf:option[(@name='coverImage') and (@value='true')]"> 90 <input type="checkbox" name="bookCover" checked="checked" onclick="displayBookCover(this)">Display Book Cover Image (set to true)</input> 91 </xsl:when> 92 <xsl:otherwise> 93 <input type="checkbox" name="bookCover" onclick="displayBookCover(this)">Display Book Cover Image (set to false)</input> 94 </xsl:otherwise> 95 </xsl:choose> <br/> 96 97 <textarea id="XSLTcode" rows="5"> 98 The XSLT code for the relevant part of the page will be displayed here. 99 </textarea> 100 <!-- What are we doing? It might be possible to tweak saveFormatStatement() if we are only dealing with format stuff but are we? --> 101 <br/> 102 <table> 103 <td> 104 <button id="saveDocumentChanges" type="button" onclick="saveDocumentChanges()">Save Changes</button> 105 </td> 106 <td> 107 <form> 108 <input name="documentChanges" type="radio" id="applyToDocument" value="document" checked="true"/>Apply to this document only 109 <input name="documentChanges" type="radio" id="applyToCollection" value="collection" />Apply to collection 110 </form> 111 </td> 112 </table> 113 </xsl:when> 114 <xsl:otherwise> 115 <table> 116 <td> 117 <button id="updateFormatStatement" type="button" onclick="updateFormatStatement()">Update Format Statement</button> 118 </td> 119 <td> 120 <button id="saveFormatStatement" type="button" onclick="saveFormatStatement()">Save Format Statement</button> 121 </td> 122 <td> 123 <form> 124 <input name="classifiers" type="radio" id="applyToThis" value="this" checked="true"/>This Classifier 125 <input name="classifiers" type="radio" id="applyToAll" value="all" />All Classifiers 126 </form> 127 </td> 128 </table> 129 130 <div id="formatStatement"> 131 <div id="formatRoot"> 132 <xsl:call-template name="xml-to-gui"> 133 <xsl:with-param name="node-set" select="//format"/> <!-- [@type='browse']"/> --> 134 <xsl:with-param name="metadataSets" select="//metadataSetList"/> 135 </xsl:call-template> 136 </div> 137 </div> 138 </xsl:otherwise> 139 </xsl:choose> 140 </td> 141 </table> 142 143 <div class="elementToolBox"> 84 144 <h2> Elements to add </h2> 85 145 <!-- <div class="header element_type_gsf_template css_gsf_template" title="gsf:template">TEMPLATE</div> --> … … 212 272 <div class="draggable_td css_td" title="gsf:column">NEW TABLE COLUMN</div> 213 273 214 </td> 215 </table> 274 </div> 216 275 217 276 <!--
Note:
See TracChangeset
for help on using the changeset viewer.