<?php
$template = <<<END
<!--biz63_plan:料金プラン-->
<section class="bg1 bg-pattern1" id="plan">
<!--{def item/title}-->
<h2 class="c">{val item/title}</h2>
<!--{/def}-->
<div class="scroll">
<table class="ta1 plan {val item/view}">
<tr>
<th>&nbsp;</th>
<!--{def item/plan1}-->
<th>{val item/plan1}</th>
<!--{/def}-->
<!--{def item/plan2}-->
<th>{val item/plan2}</th>
<!--{/def}-->
<!--{def item/plan3}-->
<th>{val item/plan3}</th>
<!--{/def}-->
<!--{def item/plan4}-->
<th>{val item/plan4}</th>
<!--{/def}-->
</tr>
<tr>
<!--{def item/subtitle1}-->
<td>{val item/subtitle1}</td>
<!--{/def}-->
<!--{def item/plan1item1}-->
<td>{val item/plan1item1}</td>
<!--{/def}-->
<!--{def item/plan2item1}-->
<td>{val item/plan2item1}</td>
<!--{/def}-->
<!--{def item/plan3item1}-->
<td>{val item/plan3item1}</td>
<!--{/def}-->
<!--{def item/plan4item1}-->
<td>{val item/plan4item1}</td>
<!--{/def}-->
</tr>
<tr>
<!--{def item/subtitle3}-->
<td>{val item/subtitle2}</td>
<!--{/def}-->
<!--{def item/plan1item2}-->
<td>{val item/plan1item2}</td>
<!--{/def}-->
<!--{def item/plan2item2}-->
<td>{val item/plan2item2}</td>
<!--{/def}-->
<!--{def item/plan3item2}-->
<td>{val item/plan3item2}</td>
<!--{/def}-->
<!--{def item/plan4item2}-->
<td>{val item/plan4item2}</td>
<!--{/def}-->
</tr>
<tr>
<!--{def item/subtitle3}-->
<td>{val item/subtitle3}</td>
<!--{/def}-->
<!--{def item/plan1item3}-->
<td>{val item/plan1item3}</td>
<!--{/def}-->
<!--{def item/plan2item3}-->
<td>{val item/plan2item3}</td>
<!--{/def}-->
<!--{def item/plan3item3}-->
<td>{val item/plan3item3}</td>
<!--{/def}-->
<!--{def item/plan4item3}-->
<td>{val item/plan4item3}</td>
<!--{/def}-->
</tr>
<tr>
<!--{def item/subtitle4}-->
<td>{val item/subtitle4}</td>
<!--{/def}-->
<!--{def item/plan1item4}-->
<td>{val item/plan1item4}</td>
<!--{/def}-->
<!--{def item/plan2item4}-->
<td>{val item/plan2item4}</td>
<!--{/def}-->
<!--{def item/plan3item4}-->
<td>{val item/plan3item4}</td>
<!--{/def}-->
<!--{def item/plan4item4}-->
<td>{val item/plan4item4}</td>
<!--{/def}-->
</tr>
<tr>
<!--{def item/subtitle5}-->
<td>{val item/subtitle5}</td>
<!--{/def}-->
<!--{def item/plan1item5}-->
<td>{val item/plan1item5}</td>
<!--{/def}-->
<!--{def item/plan2item5}-->
<td>{val item/plan2item5}</td>
<!--{/def}-->
<!--{def item/plan3item5}-->
<td>{val item/plan3item5}</td>
<!--{/def}-->
<!--{def item/plan4item5}-->
<td>{val item/plan4item5}</td>
<!--{/def}-->
</tr>
<tr>
<!--{def item/subtitle6}-->
<td>{val item/subtitle6}</td>
<!--{/def}-->
<!--{def item/plan1item6}-->
<td>{val item/plan1item6}</td>
<!--{/def}-->
<!--{def item/plan2item6}-->
<td>{val item/plan2item6}</td>
<!--{/def}-->
<!--{def item/plan3item6}-->
<td>{val item/plan3item6}</td>
<!--{/def}-->
<!--{def item/plan4item6}-->
<td>{val item/plan4item6}</td>
<!--{/def}-->
</tr>
</table>
</div>
</section>
END;

$biz63_plan = array(
	"title" => "biz63料金プラン",
	"name" => "biz63_plan",			// 名称、重複すると正しく動作しません
	"template" => $template,		// ブロックのテンプレートファイル
	"input" => array(
		"help" => array(
			"title" => "使い方",
			"type" => "comment",
			"link" => DOCUMENT1 . "/?act=biz63_plan",
			"class" => "notice",
		),
		"notice1" => array(
			"title" => "入力の無い部分は表示されません。<br>プランの数とそれぞれの項目数が一致しないと乱れます",
			"type" => "comment",
			"class"=> "notice",
		),
		"title" => array(
			"title" => "タイトル",
			"type" => "text",
		),
		"view" => array(
			"title" => "出現",
			"type" => "select",
			"list" => array(
				"" => "なし",
				"up" => "上から",
				"down" => "下から",
				"transform1" => "横回転",
				"transform2" => "縦回転",
				"blur" => "徐々に",
			),
		),
		"dummy1" => array(
			"title" => " ",
			"type" => "comment",
		),
		"plan1" => array(
			"title" => "プラン名1",
			"type" => "text",
		),
		"plan2" => array(
			"title" => "プラン名2",
			"type" => "text",
		),
		"plan3" => array(
			"title" => "プラン名3",
			"type" => "text",
		),
		"dummy2" => array(
			"title" => " ",
			"type" => "comment",
		),
		"subtitle1" => array(
			"title" => "項目見出し1",
			"type" => "text",
		),
		"plan1item1" => array(
			"title" => "プラン1項目1",
			"type" => "text",
		),
		"plan2item1" => array(
			"title" => "プラン2項目1",
			"type" => "text",
		),
		"plan3item1" => array(
			"title" => "プラン3項目1",
			"type" => "text",
		),
		"dummy3" => array(
			"title" => " ",
			"type" => "comment",
		),
		"subtitle2" => array(
			"title" => "項目見出し2",
			"type" => "text",
		),
		"plan1item2" => array(
			"title" => "プラン1項目2",
			"type" => "text",
		),
		"plan2item2" => array(
			"title" => "プラン2項目2",
			"type" => "text",
		),
		"plan3item2" => array(
			"title" => "プラン3項目2",
			"type" => "text",
		),
		"dummy4" => array(
			"title" => " ",
			"type" => "comment",
		),
		"subtitle3" => array(
			"title" => "項目見出し3",
			"type" => "text",
		),
		"plan1item3" => array(
			"title" => "プラン1項目3",
			"type" => "text",
		),
		"plan2item3" => array(
			"title" => "プラン2項目3",
			"type" => "text",
		),
		"plan3item3" => array(
			"title" => "プラン3項目3",
			"type" => "text",
		),
		"dummy5" => array(
			"title" => " ",
			"type" => "comment",
		),
		"subtitle4" => array(
			"title" => "項目見出し4",
			"type" => "text",
		),
		"plan1item4" => array(
			"title" => "プラン1項目4",
			"type" => "text",
		),
		"plan2item4" => array(
			"title" => "プラン2項目4",
			"type" => "text",
		),
		"plan3item4" => array(
			"title" => "プラン3項目4",
			"type" => "text",
		),
		"dummy6" => array(
			"title" => " ",
			"type" => "comment",
		),
		"subtitle5" => array(
			"title" => "項目見出し5",
			"type" => "text",
		),
		"plan1item5" => array(
			"title" => "プラン1項目5",
			"type" => "text",
		),
		"plan2item5" => array(
			"title" => "プラン2項目5",
			"type" => "text",
		),
		"plan3item5" => array(
			"title" => "プラン3項目5",
			"type" => "text",
		),
		"dummy7" => array(
			"title" => " ",
			"type" => "comment",
		),
		"subtitle6" => array(
			"title" => "項目見出し6",
			"type" => "text",
		),
		"plan1item6" => array(
			"title" => "プラン1項目6",
			"type" => "text",
		),
		"plan2item6" => array(
			"title" => "プラン2項目6",
			"type" => "text",
		),
		"plan3item6" => array(
			"title" => "プラン3項目6",
			"type" => "text",
		),
	),
	"func" => "func_biz63_plan",
);

block_add($biz63_plan);

function func_biz63_plan($def, $info)
{
	return $info;
}
