「データベースフィールド」の版間の差分

提供:MoodleDocs
移動先:案内検索
39行目: 39行目:
=== ピクチャー ===
=== ピクチャー ===


The user can upload an image file from their computer.
ユーザはイメージファイルをアップロードすることができます。


=== ラジオボタン ===
=== ラジオボタン ===

2007年12月9日 (日) 16:59時点における版


作成中です - Mitsuhiro Yoshida 2007年12月4日 (火) 13:31 (CST)

「フィールド」は名前付けされた情報の単位です。例えば、あなたの好きな色合いを入力できるテキストフィールド「お気に入りの色」やアメリカ合衆国の50州の中から1つを選択できる「州」というリストのように、データベースの各エントリには、様々なタイプを持った複数のフィールドを持つことができます。いくつかのフィールドを適切な名称およびタイプで組み合わせることで、あなたのデータベースのアイテムに関するすべての情報を取得することができます。

フィールド名および説明

すべてのフィールドでは、フィールド名およびフィールド説明を入力する必要があります。フィールド名は、ユニーク (一意) で短く適切なものにしてください。

フィールドタイプ

チェックボックス

1つまたはそれ以上のチェックボックスを作成することができます。オプションボックスのそれぞれの行は、異なるチェックボックスとなります。オプションボックスに入力するテキストは、チェックボックスがチェックされるときの条件となります。例えば、「有効」というテキストを入力した場合、チェックボックスをチェックすることで「有効」、チェックしないことで「無効」となります。このテキストは、エントリのチェックボックスの横に表示され、チェック後はテキスト自体が表示されます。あなたがユーザにオプションの中から1つのみ選択して欲しい場合、代わりにラジオボタンを使ってください。

例えば、映画データベースにホラー、コメディ、ウェスタン等の複数チェックボックスを使用することができます。異なる映画ジャンルにチェックボックスを設定することで、ホラー & コメディ、コメディ & ウェスタンのように1つ以上をチェックすることができます。 メニュー (複数選択)フィールドで同様のことができますが、 複数のチェックボックスをクリックする方法が分かりやすいインターフェースです。

日付

ドロップダウンリストより年月日を選択することで、ユーザが日付を入力することができます。

ファイル

ユーザにファイルのアップロードを求めます。ファイルがイメージの場合、ピクチャーフィールドの使用をお勧めします。

メニュー

オプションボックスに入力するテキストは、ユーザが選択できるドロップダウンリストとして表示されます。それぞれの行は、異なるオプションとなります。

メニュー (複数選択)

オプションボックスに入力するテキストは、ユーザが選択できるドロップダウンリストとして表示されます。optionキーまたはshiftキーをクリックして選択することで、ユーザは複数のオプションを選択することができます。これは極めて高度なコンピュータスキルのため、代わりにチェックボックスを使用する方が賢明です。

数値

ユーザに数値の入力を求めます。数値には正負の値を入力することができます (例 -2、-1、0、1、2)。あなたが数値および負号以外の値を入力した場合、切り捨てられるか、ゼロに変換されます。例えば、「1,000,000」は「1」に変更され、「six」は「0」になります。

ピクチャー

ユーザはイメージファイルをアップロードすることができます。

ラジオボタン

Allows the user to choose one from a range of options. If the user doesn't select any of these options then they will be prompted to do so and can only submit the entry when one option is chosen.

If you only have two options and they are opposites (true/false, yes/no) then you could simply use a single checkbox instead. However checkboxes default to their unchecked status and so people could submit without actively selecting one of the options. This may not always be appropriate.

テキスト

Users can enter text up to 60 characters in length. For longer text, or for text that requires formatting such as headers and bullet points, you can use a textarea field.

テキストエリア

Allows users to enter a long piece of text including formatting similar to that found when creating forum posts. Max number of characters in text area = ?

URI

Ask the user to enter a URL. If you select autolink then the URL becomes a clickable link. If you also enter a forced name for the link then that text will be used for the hyperlink. For example in a database of authors you may wish people to enter the author's website. If you enter the text 'homepage' as a forced name then clicking on text "homepage" will take you to the entered URL.

緯度/経度

Moodle 1.7

Users can enter a geographic location, by specifying the location's latitude and longitude. For example, Moodle HQ is at latitude -31.9545, longitude 115.877. When viewing the record, links are automatically generated linking to geographic data services such as Google Earth, OpenStreetMap, GeaBios,Mapstars and more. (The teacher can choose which of those links appear, if any.)