- 数据库明细表增加字段 BILLC_IMAGES
xml <BILLC_IMAGES desc="" name="明细影像" />
xsl
<!--明细图片--> <td align="center"> <span> <xsl:attribute name="id"> <xsl:value-of select="concat(‘BILLC_IMAGES_ctl‘,@num)" /> </xsl:attribute> <input type="hidden" onpropertychange="ChangeValue(this,‘SaveTable/TBILL_CONTENT[@num=‘+this.num+‘]/BILLC_IMAGES‘,this.value);"> <xsl:attribute name="id"> <xsl:value-of select="concat(‘search_BILLC_IMAGES_ctl‘,@num,‘_input‘)" /> </xsl:attribute> <xsl:attribute name="value"> <xsl:value-of select="BILLC_IMAGES" /> </xsl:attribute> <xsl:attribute name="num"> <xsl:value-of select="@num" /> </xsl:attribute> </input> <input type="text" class="input" style="width:70%" readonly="true" onpropertychange="ChangeDescValue(this,‘SaveTable/TBILL_CONTENT[@num=‘+this.num+‘]/BILLC_IMAGES‘,this.value);"> <xsl:attribute name="id"> <xsl:value-of select="concat(‘search_BILLC_IMAGES_ctl‘,@num,‘_showinput‘)" /> </xsl:attribute> <xsl:attribute name="value"> <xsl:value-of select="BILLC_IMAGES/@desc" /> </xsl:attribute> <xsl:attribute name="num"> <xsl:value-of select="@num" /> </xsl:attribute> </input> <button class="image_small" onclick="fn_call(‘image‘,‘明细影像‘,‘BILLC_IMAGES‘,this.num)"> <xsl:attribute name="num"> <xsl:value-of select="@num" /> </xsl:attribute> </button> </span> </td>
CSS增加:
.image_small { background-image: url(images/image.gif); background-repeat: no-repeat; border-color: #ffffff; border-style: solid; border-width: 0px; height: 17px; padding-left: 22px; padding-top: 3px; width: 17px; }
时间: 2024-10-29 19:08:38