Changeset 640
- Timestamp:
- 11/21/11 02:38:41 (6 months ago)
- File:
-
- 1 edited
-
admin/trunk/xsl/Cms/templateEditor.xsl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
admin/trunk/xsl/Cms/templateEditor.xsl
r554 r640 7 7 8 8 <xsl:template match="/"> 9 <xsl:variable name="prepath"> 10 <xsl:choose> 11 <xsl:when test="/CORINIS/CmsAdmin/modifyTemplate"> 12 <xsl:value-of select="'../'"/> 13 </xsl:when> 14 <xsl:otherwise> 15 <xsl:value-of select="''"/> 16 </xsl:otherwise> 17 </xsl:choose> 18 </xsl:variable> 9 19 <xsl:text disable-output-escaping="yes"><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD xhtml 1.0//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml.dtd">]]></xsl:text> 10 20 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"> 11 21 <head> 12 <xsl:call-template name="htmlHeaders"/> 22 <xsl:call-template name="htmlHeaders"> 23 <xsl:with-param name="prePath" select="$prepath"/> 24 </xsl:call-template> 13 25 14 26 <title>Corinis Administration - Cms</title> 15 27 <!-- module js --> 16 <script type="text/javascript" src="static/Cms/templateEditor.js"><xsl:text> </xsl:text></script> 28 <link rel="stylesheet" href="{$prepath}static/Cms/template/lib/codemirror.css"><xsl:text> </xsl:text></link> 29 <link rel="stylesheet" href="{$prepath}static/Cms/template/theme/default.css"><xsl:text> </xsl:text></link> 30 <script type="text/javascript" src="{$prepath}static/Cms/template/lib/codemirror.js"><xsl:text> </xsl:text></script> 31 <script type="text/javascript" src="{$prepath}static/Cms/template/mode/xml/xml.js"><xsl:text> </xsl:text></script> 32 <script type="text/javascript" src="{$prepath}static/Cms/templateEditor.js"><xsl:text> </xsl:text></script> 17 33 </head> 18 34 <body style="background-color:#fff"> 19 <form class="text" type="post" method="post" name="quelltext"> 20 <input type="hidden" name="CmsAdmin_modifyTemplateEntry" value="true"/> 21 <table width="100%" height="100%" border="0"> 22 <tr><td> 23 <div style="width:100%;height:100%"> 24 <textarea onblur="saved=false;" name="CmsAdmin_content" wrap="off" style="width:100%;height:100%"> 25 $CONTENT; 26 </textarea> 27 </div> 28 </td></tr></table> 35 File <xsl:value-of select="//TEMPLATE"/> 36 <form class="text" type="post" method="post" name="sourceForm" id="sourceForm" action="./CmsAdmin:modifyTemplate/CmsAdmin:getDocument?xsl=Cms/templateEditor.xsl&CmsAdmin_modelType=1"> 37 <input type="hidden" name="CmsAdmin_modifyTemplateEntry" value="true"/> 38 <input type="hidden" name="CmsAdmin_id" value="-1" id="docid"/> 39 <textarea onblur="saved=false;" name="CmsAdmin_content" id="code" rows="40">$CONTENT;</textarea> 40 <input type="submit"/> 29 41 </form> 30 42 31 <form class="text" type="post" name="clean">32 <input type="hidden" name="CmsAdmin_showTidy" value="T"/>33 <input type="hidden" name="field" value="clean version"/>34 </form>35 43 <form class="text" type="post" name="indent"> 36 44 <input type="hidden" name="CmsAdmin_indent" value="T"/>
Note: See TracChangeset
for help on using the changeset viewer.
