public function jsonList($field, $attributes)
{
am(array("imgSrc" => "", "ajaxAddAction" => "", "ajaxDelAction" => ""), $attributes);
// JsonDb用Hiddenタグ
$out = $this->hidden('Json.' . $field . '.db');
// 追加テキストボックス
$out .= $this->text('Json.' . $field . '.name');
// 追加ボタン
$out .= $this->button('追加', array('id' => 'btnAdd' . $field));
// リスト表示用ビュー
$out .= '<div id="Json' . $field . 'View"></div>';
// javascript
$out .= '<script type="text/javascript"><!--' . "\n" . 'jQuery(function(){' . "\n" . 'var json_List = new JsonList({"dbId":"Json' . $field . 'Db","viewId":"JsonTagView","addButtonId":"btnAdd' . $field . '",' . "\n" . '"deleteButtonType":"img","deleteButtonSrc":"' . $attributes['imgSrc'] . '","deleteButtonRollOver":true,' . "\n" . '"ajaxAddAction":"' . $attributes['ajaxAddAction'] . '",' . "\n" . '"ajaxDelAction":"' . $attributes['ajaxDelAction'] . '"});' . "\n" . 'json_List.loadData();' . "\n" . '});' . "\n" . '//--></script>';
return $out;
}