項目名をいれるサンプルページです。

このテンプレートは、nform/service/sample/set/koumoku.html です。

type sample_confi の item=id,value=1 のデータが呼び出され保存されます。

item とvalue の組み合わせを変更して試してみてください。

同じディレクトリに koumoku.html をコピーして、koumoku1.html をつくってみましょう。

koumoku1 は、 index.php?service=sample&option=set&tpl=koumoku1 で呼び出せます。

<{nform_set type=config item=id value=1}>
<{nform_get type=config item=id value=1}>
項目新規作成
[全体]キャプション(項目名) <{nform type='text' name=cap }>
[アカウント編集]表示順(0:非表示) <{nform type='text' name='editsort' size='1' value='1' }>
[アカウント編集]必須 <{nform type='checkbox' name='editmust' values=1 output='' }>
[アカウント情報]表示順(0:非表示) <{nform type='text' name='infosort' size='1' value='1' }>
[アカウント情報]公開制限レベル <{nform type='select' name='infoperm' values='1,2,3,4' output='弱,中,強,最強' }>
[新規登録]表示順(0:非表示) <{nform type='text' name='regsort' size='1' value='1' }>
[新規登録]必須 <{nform type='checkbox' name='regmust' values=1 output='' }>
[新規登録]メールに添付 <{nform type='checkbox' name='regmail' values=1 output='' }>
[新規登録]データベースに保存 <{nform type='checkbox' name='regdb' values=1 output='' }>
[全体]タイプ <{nform type='select' name='type' values='text,textarea,select,radio,checkbox,yesno' output='テキストボックス,テキストエリア,セレクト,ラジオボタン,チェックボックス,はい/いいえラジオ' }>
[全体]選択肢

タイプにセレクト,チェックボックス,ラジオボタンを選択した場合に限り、その選択肢となる要素を半角カンマ「,」で区切って記入してください。
例:北海道,青森県,秋田県