#┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ #┃C-BOARD Moyuku msg.skin.pl #┠────────────────────────────────────── #┃for PDA #┃ツリー、一覧画面のスキンファイルです。 #┃途中にある「$〜」はそれぞれプログラムによって任意の文字列に #┃置き換えられます。 #┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ package DESIGN; require './app/helper/etc.pl'; #┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ #┃ ツリー全体 #┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ sub make_tree_all { my ( $tree ) = @_; if ( $::FORM{'cmd'} ne 'thr' ) { return <<"__MyHTML__";
__MyHTML__ } return ''; } #┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ #┃ ツリー表示 #┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ sub tree { local *MSG = shift; #── 記事 my $type = shift; #── タイプ my $r_branch = shift; #── インデント my %type = qw(prt Parent chl Child); if ( ! $MSG{'subject'} ) { #空コール回避 map使用の弊害か? return; } # PDA用 $CNF::STY::tre{'indent'}{'width'} = 2; $CNF::STY::tre{'branch'}{'icon'}{'width'} = 4; print <<"__MyHTML__";${$r_branch} |
@{[&make_no(\$MSG{'no'})]}$MSG{'subject'} $MSG{'name'} $MSG{'date'} |
@{[&make_clips(\$MSG{'file'})]}@{[&make_new(\$MSG{'time'})]} @{[&make_notread(\$MSG{'no'})]}@{[&make_select(\$MSG{'no'})]} |
by $MSG{'name'}@{[(&ETC::name_matching($MSG{'name'},$CNF::master{'name'},$CNF::master{'mode'})) && ($CNF::STY::bse{'master_icon'}) ? "" : '']} @{[&make_new(\$MSG{'time'})]} @{[&make_mail(\$MSG{'email'},\$MSG{'mail_mode'},\$MSG{'no'})]}@{[&make_web(\$MSG{'web'})]} @{[&make_genre(\$MSG{'genre'})]} $MSG{'date'} | |
$MSG{'body'} |
|
${$r_attach} @{[&make_hit(\$MSG{'hit'})]} @{[&make_sage(\$MSG{'sage'})]} @{[&make_agent(\$MSG{'agent'},\$MSG{'host'})]} | |
| |
@{[&make_tree_all(\$MSG{'tree'})]} |