:::

16-3 上課範例:block_right.html

<TABLE class='right_tbl' cellpadding=0 cellspacing=0>
  <{if $block.title|regex_replace:"/.*\[hide\].*/":"hide" ne "hide"}>
        <{if $block.title|regex_replace:"/.*\[pic\].*/":"Picture True" eq "Picture True"}>
    <TR>
        <TD class="<{cycle values='block_o , block_g , block_b'}>">
          <img src="<{$xoops_imageurl}><{$block.title|regex_replace:"/.*\[pic\]/":""}>" alt="<{$block.title|regex_replace:"/\[pic\].*/":""}>" title="<{$block.title|regex_replace:"/\[pic\].*/":""}>" align="absmiddle" hspace=2 />
      </TD>
    </TR>
        <{else}>
    <TR>
        <TD class="<{cycle values='block_o , block_g , block_b'}>">
            <{if $block.title|regex_replace:"/.*\[icon\].*/":"Icon True" eq "Icon True"}>
            <img src="<{$xoops_imageurl}><{$block.title|regex_replace:"/.*\[icon\]/":""}>" alt="<{$block.title|regex_replace:"/\[icon\].*/":""}>" title="<{$block.title|regex_replace:"/\[icon\].*/":""}>" align="right" hspace=2  />
            <{$block.title|regex_replace:"/\[icon\].*/":""}>
            <{elseif $block.title|regex_replace:"/.*\[link\].*/":"Link True" eq "Link True"}>
            <a href="<{$block.title|regex_replace:"/.*\[link\]/":""}>" alt="<{$block.title|regex_replace:"/\[link\].*/":""}>" title="<{$block.title|regex_replace:"/\[link\].*/":""}>"><{$block.title|regex_replace:"/\[link\].*/":""}></a>
            <{else}>
        <{$block.title}>
            <{/if}>
      </TD>
    </TR>
        <{/if}>
    <{/if}>
<TR>
    <TD style="background-image:url(<{xoImgUrl images/block_bg1.png}>);">
  <!--主內容開始-->
    <div style="margin:5px 0px 5px 30px;"><{$block.content}></div>
  <!--主內容結束-->
  </TD>
</TR>
</TABLE>


:::

搜尋


書籍目錄

展開 | 闔起

線上使用者

13人線上 (5人在瀏覽線上書籍)

會員: 1

訪客: 12

staff3402_goo,

更多…