Update of
/var/cvs/contributions/CMSContainer/cmsc/edit-webapp/src/webapp/editors/editwizards_new/xsl
In directory
james.mmbase.org:/tmp/cvs-serv31707/edit-webapp/src/webapp/editors/editwizards_new/xsl
Modified Files:
wizard.xsl
Log Message:
CMSC-933 image, attachment improvment, add search result column, editwizard add
fields
See also:
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer/cmsc/edit-webapp/src/webapp/editors/editwizards_new/xsl
See also: http://www.mmbase.org/jira/browse/CMSC-933
Index: wizard.xsl
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer/cmsc/edit-webapp/src/webapp/editors/editwizards_new/xsl/wizard.xsl,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- wizard.xsl 27 Sep 2008 06:42:52 -0000 1.14
+++ wizard.xsl 7 Oct 2008 09:57:27 -0000 1.15
@@ -784,4 +784,75 @@
<a href="#" class="button" onclick="javascript:window.open ('[EMAIL
PROTECTED]&type='+document.getElementById('calendar-type').value,
'calendar', 'height=400, width=500, top='+eval((window.screen.availHeight -
400)/2)+', left='+eval((window.screen.availWidth - 500)/2)+',toolbar=no,
menubar=no, scrollbars=no, location=no, status=no')"><xsl:value-of
select="$prompt_newsletter_select" /> </a> <a class="button" href="#"
onclick="javascript:document.getElementById('calendar-expression').innerHTML='';document.getElementById('[EMAIL
PROTECTED]').value=''"><xsl:value-of select="$prompt_newsletter_delete"
/></a></nobr>
<div id="calendar-expression"></div>
</xsl:template>
+
+ <xsl:template name="ftype-image">
+ <xsl:if test="@maywrite!='false'">
+ <xsl:choose>
+ <xsl:when test="@dttype='binary' and not(upload)">
+ <div class="imageupload">
+ <div>
+ <input type="hidden" name="[EMAIL PROTECTED]" value=""
dttype="binary" ftype="image" >
+ <xsl:if test="@dtrequired='true' and @size <= 0">
+ <xsl:attribute name="dtrequired">true</xsl:attribute>
+ </xsl:if>
+ </input>
+ <a href="{$uploadpage}&popupid={$popupid}&[EMAIL
PROTECTED]&wizard={/wizard/@instance}&[EMAIL PROTECTED]"
onclick="return doStartUpload(this);">
+ <xsl:call-template name="prompt_image_upload"/>
+ </a>
+ <br/>
+ <xsl:if test="@size > 0">
+ <img src="{node:saxonFunction($cloud, string(@number),
concat('servletpath(', $cloudkey, ',cache(', $imagesize,
'))'))}" hspace="0" vspace="0" border="0" title="[EMAIL
PROTECTED]'description']}"/>(<xsl:value-of select="round((@size) div
100) div 10"/>K)
+ <br/>
+ <a
+ href="{node:saxonFunction($cloud, string(@number),
concat('servletpath(', $cloudkey,')'))}"
+ target="_new">
+ <xsl:call-template name="prompt_image_full" />
+ </a>
+ <br/>
+ </xsl:if>
+ </div>
+ </div>
+ </xsl:when>
+ <xsl:when test="@dttype='binary' and upload">
+ <div class="imageupload">
+ <input type="hidden" name="[EMAIL PROTECTED]" value="YES"
dttype="binary" ftype="image" >
+ <xsl:if test="@dtrequired='true'">
+ <xsl:attribute name="dtrequired">true</xsl:attribute>
+ </xsl:if>
+ </input>
+ <xsl:if test="contains(upload/path, '/') or contains(upload/path,
'\')">
+ <img src="{upload/path}" hspace="0" vspace="0" border="0"
width="128" height="128"/>
+ <br/>
+ </xsl:if>
+ <span>
+ <xsl:value-of select="upload/@name"/>
+ <xsl:text disable-output-escaping="yes">&nbsp;</xsl:text>
+ (<xsl:value-of select="round((upload/@size) div 100) div 10"/>K)
+ </span>
+ <br/>
+ <a href="{$uploadpage}&popupid={$popupid}&[EMAIL
PROTECTED]&wizard={/wizard/@instance}&[EMAIL PROTECTED]"
onclick="return doStartUpload(this);">
+ <xsl:call-template name="prompt_image_replace"/>
+ </a>
+ </div>
+ </xsl:when>
+ <xsl:otherwise>
+ <span>
+ <img src="{node:saxonFunction($cloud, string(@number),
concat('servletpath(', $cloudkey, ',cache(', $imagesize,
'))'))}" hspace="0" vspace="0" border="0" title="[EMAIL
PROTECTED]'description']}"/>
+ <br/>
+ <a
+ href="{node:saxonFunction($cloud, string(@number),
concat('servletpath(', $cloudkey,')'))}"
+ target="_new">
+ <xsl:call-template name="prompt_image_full" />
+ </a>
+ <br/>
+ </span>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:if>
+ <xsl:if test="@maywrite='false'">
+ <span class="readonly">
+ <img src="{node:saxonFunction($cloud, string(@number),
concat('servletpath(', $cloudkey, ',cache(', $imagesize,
'))'))}" hspace="0" vspace="0" border="0"/>
+ </span>
+ </xsl:if>
+ </xsl:template>
</xsl:stylesheet>
\ No newline at end of file
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs