<{$xoops_module_header}>

# <{$xoops_sitename}>

<{$xoops_banner}>
Welcome <{if $xoops_isuser}><{$xoops_uname}><{else}>Guest<{/if}>
style="margin-right:-160px;"<{/if}>>
style="margin-left:-180px;"<{/if}>>
<{if $xoops_showcblock == 1}> <{php}> $prev_htmls = array( 'bdbd' => '' , 'bdcc' => '

' , 'bdcl' => '
' , 'bdcr' => '
| ' , 'ccbd' => '
' , 'cccc' => '' , 'cccl' => '
' , 'cccr' => '
| ' , 'clbd' => ' |
' , 'clcc' => ' |
' , 'clcl' => '' , 'clcr' => ' | ' , 'crbd' => '

' , 'crcc' => '
' , 'crcl' => '
' , 'crcr' => '' , ) ; $i = 0 ; $xoops_cblocks = array() ; foreach( $this->_tpl_vars['xoops_ccblocks'] as $i => $block ) { $weight = $block['weight'] * 65536 + $i ; $block['align'] = 'cc' ; $xoops_cblocks[ $weight ] = $block ; } foreach( $this->_tpl_vars['xoops_clblocks'] as $i => $block ) { $weight = $block['weight'] * 65536 + $i + 16384 ; $block['align'] = 'cl' ; $xoops_cblocks[ $weight ] = $block ; } foreach( $this->_tpl_vars['xoops_crblocks'] as $i => $block ) { $weight = $block['weight'] * 65536 + $i + 32768 ; $block['align'] = 'cr' ; $xoops_cblocks[ $weight ] = $block ; } // body's weight = 100 $xoops_cblocks[ 100 * 65536 + 49152 ] = array( 'align' => 'bd' ) ; ksort( $xoops_cblocks ) ; array_push( $xoops_cblocks , array( 'align' => 'bd' ) ) ; $prev_align = 'bd' ; foreach( $xoops_cblocks as $key => $block ) { $xoops_cblocks[$key]['prev_html'] = $prev_htmls[ $prev_align . $block['align'] ] ; $prev_align = $block['align'] ; } /* foreach( $xoops_cblocks as $key => $block ) { echo htmlspecialchars("$key:{$block['align']}:{$block['prev_html']}")."
" ; } exit ; */ $last = array_pop( $xoops_cblocks ) ; $this->_tpl_vars['xoops_cblocks'] = $xoops_cblocks ; $this->_tpl_vars['xoops_cblocks_terminator'] = $last['prev_html'] ; <{/php}> <{foreach item=block from=$xoops_cblocks}> <{$block.prev_html}> <{if $block.align == "bd"}>
<{$xoops_contents}>
<{else}>
<{if $block.title|regex_replace:"/.*none/":"none" ne "none"}>
<{$block.title}>
<{/if}>
<{$block.content}>
<{/if}> <{/foreach}> <{$xoops_cblocks_terminator}> <{else}>
<{$xoops_contents}>
<{/if}>
<{if $xoops_showlblock == 1}>
<{foreach item=block from=$xoops_lblocks}>
<{$block.title}>
<{$block.content}>
<{/foreach}>
<{/if}>
<{if $xoops_showrblock == 1}>
<{foreach item=block from=$xoops_rblocks}>
<{$block.title}>
<{$block.content}>
<{/foreach}>
<{/if}>
xoops9.com