zoukankan      html  css  js  c++  java
  • MOSS 查询

            <property name="CommonViewFields" type="string" >Title,Text;Modified,DateTime;Author,User;Subject,Text;</property>


       <xsl:template name="我的文件测试" match="Row[@Style='我的文件测试']" mode="itemstyle">
            <xsl:variable name="SafeLinkUrl">
                <xsl:call-template name="OuterTemplate.GetSafeLink">
                    <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
                </xsl:call-template>
            </xsl:variable>
            <xsl:variable name="SafeImageUrl">
                <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
                    <xsl:with-param name="UrlColumnName" select="'ImageUrl'"/>
                </xsl:call-template>
            </xsl:variable>
            <xsl:variable name="DisplayTitle">
                <xsl:call-template name="OuterTemplate.GetTitle">
                    <xsl:with-param name="Title" select="@Title"/>
                    <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
                </xsl:call-template>
            </xsl:variable>
            <div class="item">
                <xsl:if test="string-length($SafeImageUrl) != 0">
                    <div class="image-area-right">
                        <a href="{$SafeLinkUrl}">
                          <xsl:if test="$ItemsHaveStreams = 'True'">
                            <xsl:attribute name="onclick">
                              <xsl:value-of select="@OnClickForWebRendering"/>
                            </xsl:attribute>
                          </xsl:if>
                          <xsl:if test="$ItemsHaveStreams != 'True' and @OpenInNewWindow = 'True'">
                            <xsl:attribute name="onclick">
                              <xsl:value-of disable-output-escaping="yes" select="$OnClickTargetAttribute"/>
                            </xsl:attribute>
                          </xsl:if>
                          <img class="image" src="{$SafeImageUrl}" title="mailto:%7B@ImageUrlAltText}">
                            <xsl:if test="$ImageWidth != ''">
                              <xsl:attribute name="width">
                                <xsl:value-of select="$ImageWidth" />
                              </xsl:attribute>
                            </xsl:if>
                            <xsl:if test="$ImageHeight != ''">
                              <xsl:attribute name="height">
                                <xsl:value-of select="$ImageHeight" />
                              </xsl:attribute>
                            </xsl:if>
                          </img>
                        </a>
                    </div>
                </xsl:if>
                <div class="link-item">
                  <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate"/>
                    <table style=" 100%;">
                    <tr><td style="50%; height:20px;font-family:微软雅黑;font-size:12px;"> 
                                              <a href="{$SafeLinkUrl}" title="mailto:%7B@LinkToolTip}">
                  <xsl:if test="$ItemsHaveStreams = 'True'">
                    <xsl:attribute name="onclick">
                      <xsl:value-of select="@OnClickForWebRendering"/>
                    </xsl:attribute>
                  </xsl:if>
                  <xsl:if test="$ItemsHaveStreams != 'True' and @OpenInNewWindow = 'True'">
                    <xsl:attribute name="onclick">
                      <xsl:value-of disable-output-escaping="yes" select="$OnClickTargetAttribute"/>
                    </xsl:attribute>
                  </xsl:if>
                  <xsl:value-of select="$DisplayTitle"/>
                </a>                   
                      </td>
                          <td style="20%">                     
                   <xsl:value-of select="@Modified" />
                    </td>
                     <td style="10%; text-align:center;">                     
                   <xsl:value-of select="@Author" />
                    </td>
                      <td style="10%; text-align:center;">                     
                   <xsl:value-of select="@Subject" />
                    </td>                               

                   
                    </tr>
                    </table>
                   
                </div>
            </div>
        </xsl:template>

    第二Note类型也可以

            <property name="CommonViewFields" type="string" >Title,Text;Modified,DateTime;Author,User;Subject,Text;KpiDescription,Note</property>

       <xsl:template name="我的文件测试" match="Row[@Style='我的文件测试']" mode="itemstyle">
            <xsl:variable name="SafeLinkUrl">
                <xsl:call-template name="OuterTemplate.GetSafeLink">
                    <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
                </xsl:call-template>
            </xsl:variable>
            <xsl:variable name="SafeImageUrl">
                <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
                    <xsl:with-param name="UrlColumnName" select="'ImageUrl'"/>
                </xsl:call-template>
            </xsl:variable>
            <xsl:variable name="DisplayTitle">
                <xsl:call-template name="OuterTemplate.GetTitle">
                    <xsl:with-param name="Title" select="@Title"/>
                    <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
                </xsl:call-template>
            </xsl:variable>
            <div class="item">
                <xsl:if test="string-length($SafeImageUrl) != 0">
                    <div class="image-area-right">
                        <a href="{$SafeLinkUrl}">
                          <xsl:if test="$ItemsHaveStreams = 'True'">
                            <xsl:attribute name="onclick">
                              <xsl:value-of select="@OnClickForWebRendering"/>
                            </xsl:attribute>
                          </xsl:if>
                          <xsl:if test="$ItemsHaveStreams != 'True' and @OpenInNewWindow = 'True'">
                            <xsl:attribute name="onclick">
                              <xsl:value-of disable-output-escaping="yes" select="$OnClickTargetAttribute"/>
                            </xsl:attribute>
                          </xsl:if>
                          <img class="image" src="{$SafeImageUrl}" title="mailto:%7B@ImageUrlAltText}">
                            <xsl:if test="$ImageWidth != ''">
                              <xsl:attribute name="width">
                                <xsl:value-of select="$ImageWidth" />
                              </xsl:attribute>
                            </xsl:if>
                            <xsl:if test="$ImageHeight != ''">
                              <xsl:attribute name="height">
                                <xsl:value-of select="$ImageHeight" />
                              </xsl:attribute>
                            </xsl:if>
                          </img>
                        </a>
                    </div>
                </xsl:if>
                <div class="link-item">
                  <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate"/>
                    <table style=" 100%;">
                    <tr><td style="50%; height:20px;font-family:微软雅黑;font-size:12px;"> 
                                              <a href="{$SafeLinkUrl}" title="mailto:%7B@LinkToolTip}">
                  <xsl:if test="$ItemsHaveStreams = 'True'">
                    <xsl:attribute name="onclick">
                      <xsl:value-of select="@OnClickForWebRendering"/>
                    </xsl:attribute>
                  </xsl:if>
                  <xsl:if test="$ItemsHaveStreams != 'True' and @OpenInNewWindow = 'True'">
                    <xsl:attribute name="onclick">
                      <xsl:value-of disable-output-escaping="yes" select="$OnClickTargetAttribute"/>
                    </xsl:attribute>
                  </xsl:if>
                  <xsl:value-of select="$DisplayTitle"/>
                </a>                   
                      </td>
                          <td style="10%">                     
                   <xsl:value-of select="@Modified" />
                    </td>
                     <td style="10%; text-align:center;">                     
                   <xsl:value-of select="@Author" />
                    </td>
                      <td style="10%; text-align:center;">                     
                   <xsl:value-of select="@Subject" />
                    </td>                               
     <td style="10%; text-align:center;">                     
                   <xsl:value-of select="@KpiDescription" />
                    </td>
                   
                    </tr>
                    </table>
                   
                </div>
            </div>
        </xsl:template>

  • 相关阅读:
    wpf 样式
    珠宝软件操作手册
    解决redis连接错误:MISCONF Redis is configured to save RDB snapshots, but it is currently not able to...
    Jquery页面中添加键盘按键事件,如ESC事件
    .NET中ToString()的用法
    Springboot-shiro-redis实现登录认证和权限管理
    redis读书笔记
    mongoDB工具类以及测试类【java】
    自己的mongodb的CRUD封装
    这两天学的线程池归纳
  • 原文地址:https://www.cnblogs.com/IsNull/p/1993467.html
Copyright © 2011-2022 走看看